/* ============================================================
   Oasis at Norterra — brand-kit redesign
   Palette: cream #FAF9F6 · teal #81BECB · sand #D1BAA6
            terracotta #DA986E · sage #929471 · charcoal #4D4D4D
   Type: Fraunces (display serif, TAN Pearl stand-in) + Montserrat
   ============================================================ */

/* ---- Self-hosted fonts (variable woff2, latin subset) ---- */
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --cream:      #FAF9F6;
  --cream-2:    #F1EDE6;   /* tinted section band */
  --sand:       #D1BAA6;
  --sand-soft:  #E7DBCD;
  --teal:       #81BECB;
  --teal-deep:  #3F8494;   /* accessible teal for text/links */
  --terra:      #DA986E;
  --terra-deep: #B26A3C;   /* accessible CTA fill */
  --terra-dark: #9A5A30;
  --sage:       #929471;
  --sage-deep:  #6E7052;
  --ink:        #2B2B2B;   /* strong headings / wordmark tone */
  --charcoal:   #4D4D4D;   /* body text */
  --warm-dk:    #3B3027;   /* warm near-black backgrounds */
  --muted:      #6f6a63;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1200px;
  --gut: clamp(1.15rem, 4vw, 2.5rem);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -22px rgba(59,48,39,.35);
  --shadow-sm: 0 8px 24px -14px rgba(59,48,39,.4);
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--teal-deep); text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

::selection { background: var(--teal); color: #fff; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(3.75rem, 9vw, 7rem); }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--terra-deep);
  display: inline-block;
  margin-bottom: 1.1rem;
}
.eyebrow.on-dark { color: var(--sand); }
h2.h {
  font-size: clamp(1.9rem, 4.6vw, 3.15rem);
  max-width: 20ch;
}
.lead { font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: var(--charcoal); max-width: 60ch; }
.center { text-align: center; }
.center .h, .center .lead, .center .eyebrow { margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: .95rem 1.7rem; border-radius: 999px;
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--terra-deep); color: #fff;
  box-shadow: 0 12px 26px -12px rgba(154,90,48,.7);
}
.btn-primary:hover { background: var(--terra-dark); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(154,90,48,.8); }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(75,75,75,.28); }
.btn-ghost:hover { border-color: var(--terra-deep); color: var(--terra-deep); transform: translateY(-2px); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost.on-dark:hover { background: #fff; color: var(--warm-dk); border-color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250,249,246,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(75,75,75,.08);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 10px 30px -20px rgba(59,48,39,.4); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 74px; }
.brand img { height: 52px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2.1rem; list-style: none; }
.nav-links a {
  font-weight: 500; font-size: .95rem; color: var(--charcoal); position: relative; padding: .35rem 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0; background: var(--terra-deep);
  transition: width .28s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-phone { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ink); }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--warm-dk); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(43,35,27,.67) 0%, rgba(43,35,27,.47) 38%, rgba(43,35,27,.83) 100%),
    radial-gradient(120% 90% at 50% 42%, rgba(43,35,27,.20) 0%, rgba(43,35,27,.60) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  padding-block: clamp(3.5rem, 10vw, 7rem);
  max-width: 50rem; margin-inline: auto; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero-logo {
  width: clamp(270px, 46vw, 560px); height: auto; margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
  filter: drop-shadow(0 8px 26px rgba(0,0,0,.35));
}
.hero .eyebrow { color: var(--sand); margin-bottom: 1rem; }
.hero h1 {
  color: var(--cream);
  font-size: clamp(1.75rem, 3.4vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 1.3rem;
  max-width: 20ch;
}
.hero h1 em { font-style: italic; color: var(--teal); }
.hero-sub { color: rgba(255,255,255,.9); font-size: clamp(1.02rem, 1.7vw, 1.2rem); max-width: 46ch; margin: 0 auto 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 1.5rem; }
.hero-note { color: rgba(255,255,255,.75); font-size: .92rem; }

/* ---------- wave divider ---------- */
.wave { display: block; width: 100%; height: auto; }
.wave-flip { transform: rotate(180deg); }

/* ---------- stats ---------- */
.stats { background: var(--cream); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 3vw, 2.5rem); text-align: center; }
.stat { position: relative; padding: .5rem; }
.stat + .stat::before {
  content: ""; position: absolute; left: calc(-1 * clamp(.5rem,1.5vw,1.25rem)); top: 12%; height: 76%; width: 1px;
  background: linear-gradient(var(--sand), transparent);
}
.stat .num {
  font-family: var(--font-display); font-size: clamp(2.4rem, 5.5vw, 3.4rem); color: var(--terra-deep); line-height: 1;
  min-height: clamp(2.4rem, 5.5vw, 3.4rem);
  display: flex; align-items: flex-end; justify-content: center;
}
.stat .num.word { font-size: clamp(1.75rem, 4vw, 2.5rem); white-space: nowrap; }
.stat .num.teal { color: var(--teal-deep); }
.stat .num.sage { color: var(--sage-deep); }
.stat .label { margin-top: .55rem; font-size: .9rem; color: var(--muted); letter-spacing: .01em; }

/* ---------- split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; height: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.split-media .badge {
  position: absolute; bottom: -22px; left: -22px; background: var(--cream); border-radius: var(--radius-sm);
  padding: 1rem 1.3rem; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: .8rem; max-width: 78%;
}
.split-media .badge svg { width: 30px; height: 30px; color: var(--terra-deep); flex-shrink: 0; }
.split-media .badge b { font-family: var(--font-display); font-size: 1.02rem; color: var(--ink); display: block; }
.split-media .badge span { font-size: .84rem; color: var(--muted); }
.prose p { margin-bottom: 1.1rem; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- services ---------- */
.services { background: var(--cream-2); position: relative; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 1.6rem); margin-top: 3rem; }
.card {
  background: var(--cream); border-radius: var(--radius); padding: 2rem 1.8rem;
  border: 1px solid rgba(146,148,113,.16);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card .ic {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1.15rem;
  background: rgba(129,190,203,.16); color: var(--teal-deep);
}
.card:nth-child(3n+2) .ic { background: rgba(218,152,110,.18); color: var(--terra-deep); }
.card:nth-child(3n) .ic { background: rgba(146,148,113,.18); color: var(--sage-deep); }
.card .ic svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.28rem; margin-bottom: .55rem; }
.card p { font-size: .96rem; color: var(--charcoal); }

/* ---------- gallery ---------- */
.gallery { background: var(--cream); }
.gal-grid {
  margin-top: 2.8rem;
  display: grid; gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
}
.gal-grid figure { position: relative; overflow: hidden; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.gal-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gal-grid figure:hover img { transform: scale(1.06); }
.gal-grid figcaption {
  position: absolute; left: 0; bottom: 0; right: 0; padding: 1.4rem .9rem .75rem;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: #fff; text-transform: uppercase;
  background: linear-gradient(0deg, rgba(43,35,27,.78), transparent);
}
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

/* ---------- difference ---------- */
.difference { background: var(--warm-dk); color: rgba(255,255,255,.82); position: relative; }
.difference h2.h { color: var(--cream); }
.difference .eyebrow { color: var(--sand); }
.checks { list-style: none; margin-top: 1.8rem; display: grid; gap: 1.1rem; }
.checks li { display: flex; gap: 1rem; align-items: flex-start; }
.checks .tick {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal); color: var(--warm-dk); margin-top: 1px;
}
.checks .tick svg { width: 17px; height: 17px; }
.checks b { color: #fff; font-weight: 600; }
.diff-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%; max-height: 540px; object-fit: cover; }

/* ---------- testimonial ---------- */
.quote { background: var(--sand-soft); position: relative; overflow: hidden; }
.quote .wrap { position: relative; z-index: 2; }
.quote .mark {
  font-family: var(--font-display); font-size: 8rem; line-height: .6; color: var(--terra); opacity: .4;
  height: 3rem; display: block;
}
.quote blockquote {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2.35rem); line-height: 1.4; color: var(--ink);
  max-width: 24ch; margin: 1rem auto 1.6rem; font-style: italic;
}
.quote cite { font-style: normal; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-size: .78rem; color: var(--sage-deep); }

/* ---------- closing CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--warm-dk); }
.cta-media { position: absolute; inset: 0; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.cta-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,35,27,.72), rgba(43,35,27,.82)); }
.cta-inner { position: relative; z-index: 2; text-align: center; padding-block: clamp(4rem, 10vw, 7rem); }
.cta-inner .eyebrow { color: var(--sand); }
.cta-inner h2 { color: var(--cream); font-size: clamp(2rem, 5.5vw, 3.5rem); max-width: 16ch; margin-inline: auto; }
.cta-inner p { color: rgba(255,255,255,.85); max-width: 46ch; margin: 1.3rem auto 2.2rem; }
.cta-phone {
  display: inline-flex; align-items: center; gap: .7rem; font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.5rem); color: #fff; margin-top: .4rem;
}
.cta-phone svg { width: 30px; height: 30px; color: var(--teal); }
.cta-address { color: rgba(255,255,255,.7); font-size: .95rem; margin-top: .8rem; }

/* ---------- footer ---------- */
.site-footer { background: #241d16; color: rgba(255,255,255,.62); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer img.foot-logo { height: 74px; margin-bottom: 1.2rem; }
.site-footer p { font-size: .92rem; max-width: 34ch; }
.foot-col h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sand); margin-bottom: 1rem; font-weight: 600; }
.foot-col a, .foot-col address { color: rgba(255,255,255,.72); font-style: normal; display: block; margin-bottom: .55rem; font-size: .95rem; }
.foot-col a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .84rem; color: rgba(255,255,255,.45); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links, .nav-phone, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .split, .difference .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media img, .diff-media img { max-height: 420px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .g-wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .stat:nth-child(3)::before, .stat + .stat::before { display: none; }
  .svc-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .gal-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .g-tall, .g-wide { grid-row: span 1; grid-column: span 1; }
  .hero-actions { gap: .9rem; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions .btn { width: auto; }
}

/* ---------- mobile menu ---------- */
.m-menu { position: fixed; inset: 0; z-index: 80; background: var(--warm-dk); color: #fff; display: none; flex-direction: column; padding: 2rem var(--gut); }
.m-menu.open { display: flex; }
.m-menu-top { display: flex; justify-content: space-between; align-items: center; }
.m-menu-top img { height: 42px; }
.m-menu nav { margin-top: 3.5rem; display: flex; flex-direction: column; gap: 1.6rem; }
.m-menu nav a { font-family: var(--font-display); font-size: 2rem; color: var(--cream); }
.m-menu .btn { margin-top: 2.5rem; }
.x-btn, .nav-toggle { background: none; border: none; cursor: pointer; color: var(--ink); padding: .4rem; }
.m-menu .x-btn { color: #fff; }
.nav-toggle svg, .x-btn svg { width: 28px; height: 28px; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}
