/* ============================================================
   TANIT VILLA — Shared Stylesheet
   Aesthetic: tropical quiet-luxury — deep teal, warm sand,
   sunset clay accent. Display: Fraunces. Body: Jost.
   ============================================================ */

:root {
  /* Color */
  --ink:        #1b211d;   /* near-black green, body text */
  --teal-900:   #0e3330;   /* deepest teal */
  --teal-700:   #15514a;   /* primary brand teal */
  --teal-500:   #2f7a6f;   /* lighter teal */
  --sand:       #f6f0e6;   /* warm page background */
  --sand-deep:  #ece3d3;   /* slightly deeper sand panels */
  --cream:      #fdfaf3;   /* lightest / cards */
  --clay:       #c0734a;   /* sunset clay accent */
  --gold:       #c79a55;   /* muted gold */
  --line:       #d9cfbd;   /* hairline borders on sand */
  --line-dark:  rgba(255,255,255,.16);

  /* Type */
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body:    "Jost", -apple-system, "Segoe UI", sans-serif;

  /* Rhythm */
  --maxw: 1180px;
  --gut: clamp(1.25rem, 4vw, 4rem);
  --radius: 4px;

  --shadow-soft: 0 1px 2px rgba(27,33,29,.04), 0 8px 30px rgba(27,33,29,.07);
  --shadow-lift: 0 2px 6px rgba(27,33,29,.06), 0 24px 60px rgba(27,33,29,.13);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-weight: 300;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  font-size: 17px;
  letter-spacing: .005em;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; color: var(--teal-900); }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-optical-sizing: auto; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); }
.eyebrow {
  font-family: var(--body); font-weight: 500; font-size: .74rem;
  letter-spacing: .26em; text-transform: uppercase; color: var(--clay);
  display: inline-block; margin-bottom: 1.1rem;
}
.lead { font-size: clamp(1.1rem, 1.7vw, 1.35rem); line-height: 1.6; color: #2f3a33; font-weight: 300; }
p + p { margin-top: 1.1rem; }
em.fr { font-family: var(--display); font-style: italic; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.wrap-wide { max-width: 1400px; margin: 0 auto; padding-inline: var(--gut); }
section { position: relative; }
.section-pad { padding-block: clamp(4.5rem, 9vw, 8.5rem); }
.center { text-align: center; }
.muted { color: #5a655d; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--body); font-weight: 400; font-size: .82rem;
  letter-spacing: .16em; text-transform: uppercase;
  padding: 1.05rem 2.1rem; border-radius: var(--radius);
  border: 1px solid var(--teal-700); background: var(--teal-700); color: var(--cream);
  transition: all .35s cubic-bezier(.2,.7,.3,1);
}
.btn:hover { background: var(--teal-900); border-color: var(--teal-900); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn--ghost { background: transparent; color: var(--teal-900); border-color: var(--teal-700); }
.btn--ghost:hover { background: var(--teal-700); color: var(--cream); }
.btn--light { background: var(--cream); color: var(--teal-900); border-color: var(--cream); }
.btn--light:hover { background: transparent; color: var(--cream); border-color: var(--cream); transform: translateY(-2px); }
.link-arrow { font-weight: 400; letter-spacing: .05em; color: var(--teal-700); border-bottom: 1px solid var(--clay); padding-bottom: 2px; transition: .3s; }
.link-arrow:hover { color: var(--clay); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem var(--gut); transition: background .4s, padding .4s, box-shadow .4s;
}
.site-head.scrolled { background: rgba(246,240,230,.92); backdrop-filter: blur(12px); padding-block: .9rem; box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand b { font-family: var(--display); font-weight: 500; font-size: 1.45rem; letter-spacing: .02em; color: var(--teal-900); }
.brand span { font-family: var(--body); font-size: .6rem; letter-spacing: .34em; text-transform: uppercase; color: var(--clay); margin-top: 5px; }
.site-head:not(.scrolled).on-dark .brand b { color: var(--cream); }
.site-head:not(.scrolled).on-dark .brand span { color: #e7d4ad; }
.brand__logo { height: 46px; width: auto; display: block; }
.brand__logo--ondark { display: none; }
.site-head:not(.scrolled).on-dark .brand__logo--onlight { display: none; }
.site-head:not(.scrolled).on-dark .brand__logo--ondark { display: block; }
.site-foot .brand__logo { height: 52px; }
@media (max-width: 600px){ .brand__logo { height: 38px; } }

.nav { display: flex; align-items: center; gap: 2.1rem; }
.nav a { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 400; position: relative; padding: 4px 0; transition: color .3s; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--clay); transition: width .35s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.site-head:not(.scrolled).on-dark .nav a { color: var(--cream); }
.nav .btn { padding: .7rem 1.3rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; z-index: 110; }
.nav-toggle span { width: 26px; height: 2px; background: var(--teal-900); transition: .35s; }
.site-head:not(.scrolled).on-dark .nav-toggle span { background: var(--cream); }

@media (max-width: 940px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 0; background: var(--teal-900);
    flex-direction: column; justify-content: center; gap: 1.6rem;
    transform: translateX(100%); transition: transform .5s cubic-bezier(.7,0,.2,1);
  }
  .nav.open { transform: translateX(0); }
  .nav a { color: var(--cream) !important; font-size: 1.1rem; }
  .nav a::after { background: var(--gold); }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--cream); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--cream); }
}

/* ============================================================
   IMAGE PLACEHOLDERS
   Tasteful gradient stand-ins until real photos are dropped in.
   Replace the <figure class="ph"> blocks with <img> — see README.
   ============================================================ */
.ph {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(14,51,48,.0), rgba(14,51,48,.35)),
    linear-gradient(120deg, #2f7a6f 0%, #15514a 42%, #0e3330 100%);
  display: flex; align-items: flex-end; min-height: 240px;
  color: rgba(255,255,255,.82);
}
.ph::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 75% 15%, rgba(199,154,85,.45), transparent 60%),
    radial-gradient(50% 60% at 15% 90%, rgba(192,115,74,.4), transparent 60%);
  mix-blend-mode: screen;
}
.ph::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}
.ph__tag {
  position: relative; z-index: 2; font-family: var(--body); font-size: .68rem;
  letter-spacing: .18em; text-transform: uppercase; padding: .8rem 1rem;
  background: rgba(14,51,48,.35); backdrop-filter: blur(3px);
  border-top-right-radius: var(--radius); font-weight: 400;
}
.ph--tall { min-height: 520px; }
.ph--sq { aspect-ratio: 1/1; min-height: 0; }
.ph--wide { aspect-ratio: 16/9; min-height: 0; }
.ph--hero { min-height: 100%; border-radius: 0; }
.ph > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 3; border-radius: inherit; display: block; }
.ph:has(img)::before, .ph:has(img)::after { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--cream); }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(14,51,48,.25) 0%, rgba(14,51,48,.1) 40%, rgba(14,51,48,.78) 100%); }
.hero__inner { padding-bottom: clamp(3rem, 7vw, 6rem); }
.hero h1 { color: var(--cream); max-width: 16ch; }
.hero .eyebrow { color: #f0dcb4; }
.hero__lead { max-width: 46ch; color: rgba(253,250,243,.9); font-size: clamp(1.05rem,1.6vw,1.3rem); margin-top: 1.4rem; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem; }
.hero__meta { display: flex; gap: 2.4rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.22); }
.hero__meta div span { display: block; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #e7d4ad; }
.hero__meta div b { font-family: var(--display); font-weight: 400; font-size: 1.7rem; }

/* ============================================================
   GENERIC SECTIONS / GRIDS
   ============================================================ */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--rev .split__media { order: 2; }
@media (max-width: 820px){ .split { grid-template-columns: 1fr; } .split--rev .split__media{ order:0; } }

.kicker-h2 { max-width: 22ch; }
.measure { max-width: 60ch; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 1.4rem; }
.card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.7rem; box-shadow: var(--shadow-soft); transition: transform .4s, box-shadow .4s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card h3 { font-size: 1.3rem; margin-bottom: .6rem; }
.card .num { font-family: var(--display); font-size: .9rem; color: var(--clay); display:block; margin-bottom:.8rem; letter-spacing:.1em; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature-grid > div { background: var(--cream); padding: 1.8rem; }
.feature-grid h4 { font-family: var(--body); font-weight: 500; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); margin-bottom: .7rem; }
.feature-grid ul li { padding: .28rem 0; color: #3a453d; font-size: .96rem; border-bottom: 1px dashed var(--line); }
.feature-grid ul li:last-child { border: 0; }

/* dark panel */
.panel-dark { background: var(--teal-900); color: var(--cream); }
.panel-dark h2, .panel-dark h3 { color: var(--cream); }
.panel-dark .eyebrow { color: var(--gold); }
.panel-dark .muted { color: rgba(253,250,243,.72); }

/* stat band */
.stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(150px,1fr)); gap: 2rem; text-align: center; }
.stats b { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem,5vw,3.6rem); display: block; color: var(--gold); }
.stats span { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(253,250,243,.8); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.gallery .ph:nth-child(1){ grid-column: span 2; grid-row: span 2; }
.gallery .ph:nth-child(6){ grid-column: span 2; }
@media (max-width: 720px){ .gallery { grid-template-columns: repeat(2,1fr); } .gallery .ph:nth-child(1){ grid-column: span 2; } }
.img-grid { display: grid; gap: 1rem; }
.img-grid--3 { grid-template-columns: repeat(3,1fr); }
.img-grid .ph { min-height: 300px; }
@media (max-width: 720px){ .img-grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .img-grid--3 { grid-template-columns: 1fr; } }

/* quote */
.pull { font-family: var(--display); font-weight: 400; font-style: italic; font-size: clamp(1.6rem,3.2vw,2.5rem); line-height: 1.3; color: var(--teal-900); max-width: 24ch; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-foot { background: var(--teal-900); color: rgba(253,250,243,.78); padding-block: clamp(3.5rem,6vw,5rem) 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.5rem; }
@media (max-width: 820px){ .foot-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px){ .foot-grid { grid-template-columns: 1fr; } }
.site-foot .brand b { color: var(--cream); }
.site-foot h4 { font-family: var(--body); font-weight: 500; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
.site-foot a { display: block; padding: .3rem 0; font-size: .95rem; transition: color .3s; }
.site-foot a:hover { color: var(--cream); }
.foot-bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .8rem; color: rgba(253,250,243,.55); }

/* ============================================================
   PAGE HEADER (interior pages)
   ============================================================ */
.page-head { padding-top: clamp(9rem, 14vw, 12rem); padding-bottom: clamp(2.5rem,5vw,4rem); background: var(--sand-deep); border-bottom: 1px solid var(--line); }
.page-head .eyebrow { margin-bottom: .8rem; }
.crumbs { font-size: .78rem; letter-spacing: .04em; color: #6c7670; margin-bottom: 1.4rem; }
.crumbs a:hover { color: var(--clay); }

/* ============================================================
   BLOG
   ============================================================ */
.post-list { display: grid; grid-template-columns: repeat(auto-fill,minmax(320px,1fr)); gap: 2rem; }
.post-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .4s, box-shadow .4s; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.post-card .ph { border-radius: 0; min-height: 200px; }
.post-card__body { padding: 1.6rem 1.6rem 1.9rem; display: flex; flex-direction: column; flex: 1; }
.post-card__cat { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--clay); margin-bottom: .7rem; }
.post-card h3 { font-size: 1.35rem; margin-bottom: .7rem; }
.post-card p { font-size: .95rem; color: #4d574f; flex: 1; }
.post-card .more { margin-top: 1.2rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-700); }

/* article body */
.article { max-width: 720px; margin: 0 auto; }
.article p, .article ul li, .article ol li { font-size: 1.08rem; line-height: 1.75; color: #2c352e; }
.article h2 { margin: 2.6rem 0 1rem; }
.article h3 { margin: 2rem 0 .7rem; }
.article ul, .article ol { margin: 1rem 0 1rem 1.2rem; }
.article ul li { list-style: none; position: relative; padding-left: 1.4rem; margin: .4rem 0; }
.article ul li::before { content: "—"; position: absolute; left: 0; color: var(--clay); }
.article ol { list-style: decimal; }
.article ol li { margin: .4rem 0; padding-left: .3rem; }
.article blockquote { border-left: 3px solid var(--clay); padding: .4rem 0 .4rem 1.6rem; margin: 1.8rem 0; font-family: var(--display); font-style: italic; font-size: 1.3rem; color: var(--teal-900); }
.article .callout { background: var(--sand-deep); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem; margin: 2rem 0; }
.article .callout strong { color: var(--teal-900); }
.byline { display: flex; gap: 1rem; align-items: center; font-size: .85rem; color: #6c7670; margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }

/* ============================================================
   FORMS
   ============================================================ */
.form-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.8rem,4vw,3rem); box-shadow: var(--shadow-soft); }
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-700); margin-bottom: .5rem; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; padding: .9rem 1rem; font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius); transition: border .3s, box-shadow .3s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px rgba(47,122,111,.14); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
@media (max-width:560px){ .field-row { grid-template-columns: 1fr; } }

/* reviews */
.review { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; break-inside: avoid; box-shadow: var(--shadow-soft); }
.review .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: .9rem; }
.review p { font-size: 1.02rem; color: #36403a; }
.review .who { margin-top: 1.2rem; font-size: .85rem; color: #6c7670; }
.review .who b { font-family: var(--display); font-weight: 500; color: var(--teal-900); font-size: 1rem; }
.masonry { columns: 3 280px; column-gap: 1.4rem; }
.masonry > * { margin-bottom: 1.4rem; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.3,1), transform .9s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity:1; transform:none; } html{ scroll-behavior:auto; } }

/* utilities */
.mt-1{margin-top:1rem} .mt-2{margin-top:2rem} .mt-3{margin-top:3rem}
.mb-2{margin-bottom:2rem}
.maxw-sm{max-width:640px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

/* ---- Video tour (click-to-play facade) ---- */
.video-embed { position: relative; aspect-ratio: 16/9; max-width: 980px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: #0b1f1c center/cover no-repeat; box-shadow: var(--shadow-soft); }
.video-embed::before { content: ""; position: absolute; inset: 0; background: rgba(14,51,48,.30); transition: background .3s ease; }
.video-embed:hover::before { background: rgba(14,51,48,.12); }
.video-embed__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 78px; height: 78px; border-radius: 50%; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 30px rgba(0,0,0,.3); transition: transform .25s ease; z-index: 2; }
.video-embed:hover .video-embed__play { transform: translate(-50%,-50%) scale(1.07); }
.video-embed__play::after { content: ""; margin-left: 5px; border-style: solid; border-width: 13px 0 13px 22px; border-color: transparent transparent transparent var(--teal-900); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed.is-playing { cursor: default; }
.video-embed.is-playing::before, .video-embed.is-playing .video-embed__play { display: none; }

/* ---- WhatsApp call-to-action ---- */
.wa-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.1rem 1.6rem; flex-wrap: wrap; padding: 1.1rem 1.4rem; border-radius: var(--radius); background: #f0f7f1; border: 1px solid #d9ead9; }
.wa-cta__title { display: block; font-family: var(--display); font-size: 1.12rem; color: var(--teal-900); }
.wa-cta__sub { display: block; color: #5c645f; font-size: .92rem; margin-top: .2rem; }
.btn--whatsapp { background: #25D366; color: #fff; border: 0; display: inline-flex; align-items: center; gap: .55rem; }
.btn--whatsapp:hover { background: #1ebe5b; color: #fff; }
.btn--whatsapp svg { flex: none; }
