/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f4efe6;
  --bg-2:      #e8dfd0;
  --paper:     #ffffff;
  --ink:       #1a1a1a;
  --ink-soft:  #2a2a2a;
  --ink-mute:  #6b6b6b;
  --accent:    #b85c3a;
  --accent-2:  #4a5d3a;
  --line:      rgba(26,26,26,0.12);

  --serif: "Fraunces", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.05; letter-spacing: -0.02em; font-family: var(--serif); font-weight: 500; }
em { font-style: italic; color: var(--accent); }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--paper); color: var(--ink);
  z-index: 9999; border-radius: 8px; font-weight: 500;
}
.skip-link:focus { top: 1rem; }

.kicker {
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 600; margin-bottom: .6rem;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =============================================================
   4. Buttons & form fields
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .9rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background .3s var(--ease-out);
}
.btn-primary { background: var(--accent); color: var(--paper); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -8px rgba(184,92,58,.5); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: .55rem 1.1rem; font-size: .85rem; }

.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.field span { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select {
  font: inherit; padding: .75rem .9rem; border: 1px solid var(--line);
  border-radius: 10px; background: var(--paper); color: var(--ink);
}
.field input:focus, .field select:focus { border-color: var(--accent); }

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  transition: background .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.nav.is-solid { background: rgba(244,239,230,.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 1.1rem; }
.nav-brand { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.nav-brand span { color: var(--accent); }
.nav-links { display: none; gap: 1.6rem; font-size: .9rem; font-weight: 500; }
.nav-links a:hover { color: var(--accent); }
@media (min-width: 720px) { .nav-links { display: flex; } }

/* =============================================================
   6. Hero
   ============================================================= */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(26,20,14,.78) 0%, rgba(26,20,14,.35) 45%, rgba(26,20,14,.15) 100%);
}
.hero-content { position: relative; color: #fff; padding-block: 4rem 4.5rem; max-width: 46rem; }
.hero-content .kicker { color: rgba(255,255,255,.85); }
.hero-title { font-size: clamp(2.2rem, 6vw, 3.8rem); color: #fff; margin-bottom: 1rem; max-width: 16ch; }
.hero-sub { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 42ch; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-actions .btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.hero-actions .btn-ghost:hover { border-color: #fff; }

/* =============================================================
   7. Facts strip
   ============================================================= */
.facts { padding-block: 2.5rem; border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 720px) { .facts-grid { grid-template-columns: repeat(4, 1fr); } }
.fact-item .fact-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-mute); margin-bottom: .3rem; }
.fact-item .fact-value { font-family: var(--serif); font-size: 1.3rem; }

/* =============================================================
   8. About
   ============================================================= */
.about { padding-block: 5rem; }
.about-grid { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .about-grid { grid-template-columns: 100px 1fr; gap: 3rem; } }
.about-num { font-family: var(--serif); font-size: 3rem; color: var(--accent); opacity: .5; }
.about-copy h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 1.2rem; }
.about-copy p { max-width: 60ch; color: var(--ink-soft); margin-bottom: 1rem; }
.about-copy p:last-child { margin-bottom: 0; }

/* =============================================================
   9. Gallery
   ============================================================= */
.gallery { padding-block: 5rem; background: var(--bg-2); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin-top: 2rem;
}
@media (min-width: 720px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gallery-item {
  position: relative; overflow: hidden; border-radius: 14px;
  aspect-ratio: 4 / 5; background: var(--line); cursor: zoom-in;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease-out), filter .5s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.08); filter: saturate(1.1); }
.gallery-item:hover { box-shadow: 0 20px 40px -16px rgba(26,20,14,.4); }

/* =============================================================
   10. Finance
   ============================================================= */
.finance { padding-block: 5rem; }
.finance-inner { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .finance-inner { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; } }
.finance-copy p { color: var(--ink-soft); max-width: 46ch; margin-top: .8rem; }
.finance-card {
  background: var(--paper); border-radius: 20px; padding: 2rem;
  border: 1px solid var(--line); box-shadow: 0 24px 48px -32px rgba(26,20,14,.35);
}
.finance-result { margin-top: .8rem; font-family: var(--serif); font-size: 1.2rem; color: var(--accent); min-height: 1.6em; }

/* =============================================================
   11. Contact
   ============================================================= */
.contact { padding-block: 5rem; background: var(--bg-2); }
.contact-inner { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .contact-inner { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; } }
.contact-copy p { color: var(--ink-soft); max-width: 46ch; margin-block: .8rem 1.6rem; }
.contact-form {
  background: var(--paper); border-radius: 20px; padding: 2rem;
  border: 1px solid var(--line); box-shadow: 0 24px 48px -32px rgba(26,20,14,.35);
}

/* =============================================================
   12. Footer
   ============================================================= */
.footer { padding-block: 2.5rem; text-align: center; color: var(--ink-mute); font-size: .9rem; }
.footer a:hover { color: var(--accent); }
.footer-inner p + p { margin-top: .3rem; }

/* =============================================================
   13. Lightbox
   ============================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(15,12,9,.94);
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 8px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; color: #fff; font-size: 1.6rem;
  width: 3rem; height: 3rem; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1);
  transition: background .25s var(--ease-out);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.22); }
.lightbox-close { top: 1.2rem; right: 1.2rem; }
.lightbox-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }

/* =============================================================
   14. Reduced motion — only intrusive
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition-duration: .01s; }
}
