/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f5f0e8;
  --bg-2:      #ece3d2;
  --paper:     #ffffff;
  --ink:       #1a1a1a;
  --ink-soft:  #2a2a2a;
  --ink-mute:  #6b6b63;
  --accent:    #a68a4a;
  --accent-2:  #7a6435;
  --line:      rgba(26,26,26,0.12);
  --line-soft: rgba(26,26,26,0.07);

  --serif: "Cormorant Garamond", ui-serif, Georgia, serif;
  --sans:  "Inter", -apple-system, "Segoe UI", sans-serif;

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

  --nav-h: 84px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -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, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: 0; font-family: var(--serif); font-weight: 500; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  border-radius: 8px; font-weight: 500; font-size: .9rem;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.kicker {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 600;
}
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-head { max-width: 46ch; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-top: .5rem; }
.section-head p { color: var(--ink-mute); margin-top: .9rem; font-size: 1.05rem; }

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

/* =============================================================
   4. Typography
   ============================================================= */
em { font-style: italic; color: var(--accent-2); }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 999px;
  font-size: .95rem; font-weight: 600;
  transition: transform .35s var(--ease-out), background .35s var(--ease-out), color .35s var(--ease-out);
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* =============================================================
   5. Nav
   ============================================================= */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  padding-block: .5rem;
  transition: padding .4s var(--ease-out), background .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.nav.is-solid {
  padding-block: .3rem;
  background: rgba(245,240,232,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-brand { display: flex; align-items: center; }
.nav-brand img { height: 128px; width: auto; }
.nav-links { display: none; gap: 2rem; font-size: .92rem; }
.nav-links a { position: relative; padding-block: .2rem; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
  background: var(--accent-2); transition: right .35s var(--ease-out);
}
.nav-links a:hover::after { right: 0; }
@media (min-width: 960px) { .nav-links { display: flex; align-items: center; } }
.nav-cta { display: none; }
@media (min-width: 720px) { .nav-cta { display: inline-flex; } }

/* =============================================================
   6. Sections — Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding-block: clamp(5rem, 12vw, 8rem) clamp(3rem, 7vw, 5rem);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(26,26,26,.15) 0%, rgba(26,26,26,.1) 40%, rgba(26,26,26,.75) 100%);
}
.hero-content { max-width: 42ch; color: #fdfbf6; }
.hero-content .kicker { color: #e9dcbd; }
.hero-title {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  line-height: 1.02;
  margin-top: .7rem;
  text-wrap: balance;
}
.hero-title em { color: #e9dcbd; }
.hero-sub { margin-top: 1.2rem; font-size: 1.15rem; color: rgba(253,251,246,.88); max-width: 38ch; }
.hero-actions { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .btn-ghost { border-color: rgba(253,251,246,.4); color: #fdfbf6; }
.hero .btn-ghost:hover { background: #fdfbf6; color: var(--ink); }

/* =============================================================
   Marquee
   ============================================================= */
.marquee {
  overflow: hidden;
  background: var(--bg-2);
  border-block: 1px solid var(--line);
  padding-block: .9rem;
}
.marquee-track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  width: max-content;
  animation: marqueeScroll 26s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation-duration: 70s; }
}
.marquee-track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--accent-2);
  position: relative;
  padding-right: 3rem;
}
.marquee-track span::after {
  content: "\00B7";
  position: absolute; right: 0.9rem; top: 0;
  color: var(--line); font-style: normal;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =============================================================
   Stats
   ============================================================= */
.stats {
  position: relative;
  background: var(--ink); color: var(--bg);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}
.stats-halo {
  position: absolute;
  inset: -15% 15% -30% 15%;
  background: radial-gradient(40% 50% at 50% 0%, rgba(166,138,74,.14), transparent 75%);
  filter: blur(70px);
  pointer-events: none;
}
.stats .section-head { position: relative; }
.stats .section-head h2 { color: var(--bg); }
.stats-grid {
  position: relative;
  display: grid; gap: 2.6rem 1.5rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 2.8rem;
}
@media (min-width: 720px) {
  .stats-grid { gap: 3rem 3.5rem; }
  .stat:nth-child(odd) { border-right: 1px solid rgba(233,220,189,.14); }
}
.stat { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.stat-icon { width: 38px; height: 38px; color: var(--accent); }
.stats-feature {
  position: relative;
  margin-top: 2.8rem; padding-top: 2.6rem;
  border-top: 1px solid rgba(233,220,189,.16);
  display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap;
}
.stats-feature .stat-num { font-size: clamp(2.4rem, 6vw, 3.4rem); }
.stats-feature .stat-label { font-size: .95rem; max-width: 32ch; }
.stat-ring { width: 52px; height: 52px; transform: rotate(-90deg); }
.stat-ring-track { fill: none; stroke: rgba(233,220,189,.16); stroke-width: 5; }
.stat-ring-fill {
  fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 188.5; stroke-dashoffset: 188.5;
  transition: stroke-dashoffset 1.1s var(--ease-out);
}
.stat-ring-fill.is-filled { stroke-dashoffset: var(--ring-offset, 188.5); }
.stat-num {
  font-family: var(--serif); font-size: clamp(2.1rem, 5vw, 2.9rem); font-weight: 600;
  color: var(--accent); font-variant-numeric: tabular-nums;
}
.stat-label { font-size: .82rem; color: rgba(233,220,189,.8); line-height: 1.3; }

/* =============================================================
   Services — bento
   ============================================================= */
.bento {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento .card:nth-child(1) { grid-column: span 4; }
  .bento .card:nth-child(2) { grid-column: span 2; }
  .bento .card:nth-child(3) { grid-column: span 2; }
  .bento .card:nth-child(4) { grid-column: span 2; }
  .bento .card:nth-child(5) { grid-column: span 2; }
  .bento .card:nth-child(6) { grid-column: span 4; }
}
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.9rem;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .45s var(--ease-out);
  will-change: transform;
}
.card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.card p { color: var(--ink-mute); font-size: .96rem; }
.card.is-hovering {
  box-shadow: 0 24px 48px -20px rgba(166,138,74,.35);
  border-color: var(--accent);
}

/* =============================================================
   Plans (two-tier)
   ============================================================= */
.plans { background: var(--bg-2); }
.plans-grid { display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .plans-grid { grid-template-columns: 1fr 1fr; } }
.plan-card {
  background: var(--paper); border-radius: 20px; padding: 2.2rem;
  border: 1px solid var(--line);
}
.plan-tag {
  display: inline-block; padding: .3rem .8rem; border-radius: 999px;
  background: var(--bg); color: var(--accent-2); font-size: .78rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem;
}
.plan-card h3 { font-size: 1.5rem; margin-bottom: .8rem; }
.plan-card p { color: var(--ink-mute); }

/* =============================================================
   Process
   ============================================================= */
.process-list { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .process-list { grid-template-columns: repeat(4, 1fr); } }
.process-item {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.8rem;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .45s var(--ease-out);
}
.process-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -20px rgba(166,138,74,.35);
  border-color: var(--accent);
}
.process-item .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--paper); color: var(--accent);
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
  margin-bottom: 1rem;
}
.process-item h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.process-item p { color: var(--ink-mute); font-size: .95rem; }

/* =============================================================
   Gallery — horizontal scroll
   ============================================================= */
.gallery-track {
  display: flex; gap: 1.1rem;
  overflow-x: auto; overflow-y: visible;
  scroll-snap-type: x mandatory;
  padding-block: .5rem 1.5rem;
  margin-inline: calc(-1 * 1.25rem);
  padding-inline: 1.25rem;
  -webkit-overflow-scrolling: touch;
}
.gallery-item {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: min(78vw, 380px);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.gallery-item img { width: 100%; height: 460px; object-fit: cover; transition: transform .6s var(--ease-out); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.1rem .9rem;
  background: linear-gradient(0deg, rgba(26,26,26,.75), transparent);
  color: #fdfbf6; font-size: .9rem;
}

/* =============================================================
   Contact
   ============================================================= */
.contact { background: var(--ink); color: var(--bg); }
.contact .kicker { color: var(--accent); }
.contact .section-head p { color: rgba(245,240,232,.7); }
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .9fr 1.1fr; } }
.contact-info p { color: rgba(245,240,232,.75); margin-top: 1rem; }
.contact-info .contact-line { display: block; margin-top: .5rem; color: var(--bg); font-weight: 500; }

.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .85rem; color: rgba(245,240,232,.7); }
.field input, .field select, .field textarea {
  background: rgba(245,240,232,.06);
  border: 1px solid rgba(245,240,232,.22);
  border-radius: 10px;
  padding: .8rem 1rem;
  color: var(--bg);
  font-family: var(--sans);
  font-size: .96rem;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(245,240,232,.4); }
.field select option { color: var(--ink); }
.form .btn-primary { background: var(--accent); color: var(--ink); justify-self: start; }
.form .btn-primary:hover { background: var(--bg); }
.form-note { font-size: .85rem; color: rgba(245,240,232,.55); }
.form-success {
  display: none; padding: 1.2rem; border-radius: 12px;
  background: rgba(166,138,74,.16); border: 1px solid var(--accent);
  color: var(--bg); font-size: .95rem;
}
.form.is-sent .form-fields { display: none; }
.form.is-sent .form-success { display: block; }

/* =============================================================
   WhatsApp floating button
   ============================================================= */
.whatsapp-fab {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.45);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.whatsapp-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 36px -8px rgba(0,0,0,.5); }
.whatsapp-fab svg { width: 30px; height: 30px; fill: #fff; }
@media (prefers-reduced-motion: reduce) { .whatsapp-fab:hover { transform: none; } }

/* =============================================================
   Footer
   ============================================================= */
.footer { padding-block: 2.5rem; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-direction: column; gap: .6rem; font-size: .85rem; color: var(--ink-mute); }
@media (min-width: 720px) { .footer-inner { flex-direction: row; justify-content: space-between; } }
.footer a { color: var(--ink-mute); text-decoration: underline; text-underline-offset: 2px; }
.footer a:hover { color: var(--ink); }

/* =============================================================
   9. Reduced motion — only intrusive
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .gallery-track { scroll-behavior: auto; }
}
