/* ============================================================
   THE HIDEAWAY — Premium Spa & Wellness
   styles.css
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

:root {
  --forest: #1f2d24;
  --forest-deep: #15201a;
  --moss: #2f4438;
  --sage: #8a9a85;
  --gold: #b8945f;
  --gold-soft: #d4b485;
  --cream: #f5efe6;
  --cream-warm: #ede4d4;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --line: rgba(31, 45, 36, 0.12);
  --shadow-soft: 0 30px 80px -30px rgba(31, 45, 36, 0.25);
  --shadow-elegant: 0 50px 120px -40px rgba(31, 45, 36, 0.4);
  --maxw: 1320px;
  --r: 4px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .3s ease; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 .6em;
  color: var(--forest);
}
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); }
p { margin: 0 0 1.2em; color: var(--ink-soft); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 1rem;
  display: inline-block;
}
.divider {
  width: 60px; height: 1px;
  background: var(--gold);
  margin: 1.5rem 0;
}
.divider.center { margin-left: auto; margin-right: auto; }

/* ---------- NAVIGATION ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: all .4s ease;
  background: transparent;
}
.nav.scrolled {
  background: rgba(245, 239, 230, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand .mark {
  width: 36px; height: 36px;
  background: var(--forest);
  color: var(--gold-soft);
  display: grid; place-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  letter-spacing: 0;
}
.nav.transparent-light .brand,
.nav.transparent-light .nav-links a { color: var(--cream); }
.nav.transparent-light .brand .mark { background: var(--cream); color: var(--forest); }

.nav-links {
  display: flex; gap: 36px;
  list-style: none; margin: 0; padding: 0;
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav-links a {
  position: relative; padding: 6px 0;
  color: var(--forest);
  font-weight: 400;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width .35s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--gold); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--forest);
  background: var(--forest);
  color: var(--cream);
  transition: all .35s ease;
  cursor: pointer;
  border-radius: var(--r);
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--forest); }
.btn.ghost { background: transparent; color: var(--forest); }
.btn.ghost:hover { background: var(--forest); color: var(--cream); }
.btn.light { border-color: var(--cream); color: var(--cream); background: transparent; }
.btn.light:hover { background: var(--cream); color: var(--forest); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--forest); }
.btn.gold:hover { background: var(--forest); border-color: var(--forest); color: var(--cream); }

.burger { display: none; width: 32px; height: 28px; position: relative; }
.burger span { position: absolute; left: 0; right: 0; height: 1px; background: var(--forest); transition: .3s ease; }
.burger span:nth-child(1) { top: 4px; }
.burger span:nth-child(2) { top: 14px; }
.burger span:nth-child(3) { top: 24px; }
.nav.transparent-light .burger span { background: var(--cream); }
.burger.open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid; place-items: center;
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  transform: scale(1.08);
  animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(21, 32, 26, 0.55) 0%, rgba(21, 32, 26, 0.35) 40%, rgba(21, 32, 26, 0.85) 100%);
}
#three-canvas {
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  opacity: 0.55;
}
.hero-inner {
  text-align: center;
  padding: 140px 32px 100px;
  max-width: 1000px;
}
.hero h1 { color: var(--cream); margin-bottom: 1.2rem; }
.hero .eyebrow { color: var(--gold-soft); }
.hero p.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: rgba(245, 239, 230, 0.85);
  max-width: 640px;
  margin: 0 auto 2.2rem;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  color: var(--cream); font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  opacity: 0.7;
}
.hero-scroll::after {
  content: ''; display: block; width: 1px; height: 40px;
  background: var(--cream); margin: 12px auto 0;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%, 100% { transform: scaleY(1); opacity: .7; } 50% { transform: scaleY(0.5); opacity: 0.3; } }

/* ---------- PAGE HEADER (subpages) ---------- */
.page-header {
  position: relative;
  padding: 200px 0 100px;
  color: var(--cream);
  text-align: center;
  background: var(--forest-deep);
  overflow: hidden;
  isolation: isolate;
}
.page-header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
  opacity: 0.4;
}
.page-header h1 { color: var(--cream); margin-bottom: 0.5rem; }
.page-header p { color: rgba(245, 239, 230, 0.75); max-width: 620px; margin: 0 auto; }
.page-header .eyebrow { color: var(--gold-soft); }

/* ---------- SECTIONS ---------- */
section { padding: 110px 0; position: relative; }
section.tight { padding: 80px 0; }
section.dark { background: var(--forest); color: var(--cream); }
section.dark h2, section.dark h3 { color: var(--cream); }
section.dark p { color: rgba(245, 239, 230, 0.78); }
section.warm { background: var(--cream-warm); }

.section-head {
  max-width: 760px; margin: 0 auto 70px;
  text-align: center;
}
.section-head.left { text-align: left; margin-left: 0; }

/* ---------- GRID LAYOUTS ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
.split.reverse > *:first-child { order: 2; }
.split .image-frame { position: relative; }
.split .image-frame img { width: 100%; box-shadow: var(--shadow-elegant); border-radius: var(--r); }
.split .image-frame::before {
  content: ''; position: absolute; inset: -24px -24px 24px 24px;
  border: 1px solid var(--gold); z-index: -1;
  border-radius: var(--r);
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
}

/* ---------- SERVICE CARDS ---------- */
.svc-card {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 50px 38px;
  position: relative;
  transition: all .5s ease;
  border-radius: var(--r);
  overflow: hidden;
}
.svc-card .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.3em;
  margin-bottom: 24px;
  display: block;
}
.svc-card h3 { color: var(--forest); margin-bottom: 16px; }
.svc-card p { font-size: 0.95rem; }
.svc-card .more {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-top: 20px;
  display: inline-block;
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
}
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: var(--gold);
}
.svc-card:hover .more { border-color: var(--gold); }

/* ---------- FEATURE BLOCKS ---------- */
.feature {
  text-align: center;
  padding: 30px 20px;
}
.feature .icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  display: grid; place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
}
.feature .icon svg { width: 28px; height: 28px; stroke: var(--gold); fill: none; stroke-width: 1.4; }
.feature h3 { font-size: 1.3rem; margin-bottom: 10px; }
.feature p { font-size: 0.9rem; margin: 0; }
section.dark .feature .icon { border-color: var(--gold-soft); }
section.dark .feature .icon svg { stroke: var(--gold-soft); }

/* ---------- PRICING ---------- */
.price-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.price-card {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 50px 36px;
  text-align: center;
  position: relative;
  transition: all .4s ease;
  border-radius: var(--r);
}
.price-card.featured {
  background: var(--forest);
  color: var(--cream);
  transform: translateY(-12px);
  box-shadow: var(--shadow-elegant);
}
.price-card.featured h3, .price-card.featured .price { color: var(--cream); }
.price-card.featured p, .price-card.featured ul li { color: rgba(245, 239, 230, 0.8); }
.price-card .tag {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  background: var(--gold); color: var(--forest);
  padding: 6px 18px; font-size: 0.7rem;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.price-card .price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.4rem;
  color: var(--forest);
  display: block;
  margin: 18px 0 6px;
}
.price-card .price small { font-size: 1rem; opacity: 0.6; }
.price-card .duration {
  font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px; display: block;
}
.price-card ul {
  list-style: none; padding: 0; margin: 24px 0;
  text-align: left;
}
.price-card ul li {
  padding: 10px 0 10px 26px;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 0.92rem;
}
.price-card.featured ul li { border-color: rgba(245, 239, 230, 0.12); }
.price-card ul li::before {
  content: '✓'; position: absolute; left: 0; color: var(--gold);
}

/* ---------- TESTIMONIALS ---------- */
.testimonial {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 50px 30px;
}
.testimonial blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.5;
  color: var(--forest);
  margin: 0 0 30px;
  font-style: italic;
  font-weight: 400;
}
section.dark .testimonial blockquote { color: var(--cream); }
.testimonial cite {
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.testimonial cite span { display: block; color: var(--ink-soft); margin-top: 6px; letter-spacing: 0.15em; font-size: 0.7rem; }
section.dark .testimonial cite span { color: rgba(245, 239, 230, 0.6); }

/* ---------- GALLERY ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.gallery-grid .g {
  overflow: hidden;
  border-radius: var(--r);
  position: relative;
  background: var(--forest);
}
.gallery-grid .g img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s ease;
}
.gallery-grid .g:hover img { transform: scale(1.06); }
.g1 { grid-column: span 7; aspect-ratio: 16/10; }
.g2 { grid-column: span 5; aspect-ratio: 4/5; }
.g3 { grid-column: span 4; aspect-ratio: 1/1; }
.g4 { grid-column: span 4; aspect-ratio: 1/1; }
.g5 { grid-column: span 4; aspect-ratio: 1/1; }
.g6 { grid-column: span 6; aspect-ratio: 4/3; }
.g7 { grid-column: span 6; aspect-ratio: 4/3; }

/* ---------- CONTACT / FORM ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: span 2; }
.field label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 10px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--cream);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 300;
  border-radius: var(--r);
  transition: border-color .3s ease;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
}

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.info-card {
  padding: 40px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  text-align: center;
  background: var(--cream);
}
.info-card .ic {
  width: 56px; height: 56px; margin: 0 auto 20px;
  display: grid; place-items: center;
  background: var(--forest);
  color: var(--gold-soft);
  border-radius: 50%;
}
.info-card .ic svg { width: 22px; height: 22px; stroke: var(--gold-soft); fill: none; stroke-width: 1.4; }
.info-card h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 12px;
}
.info-card p { font-size: 0.95rem; margin: 0; color: var(--forest); }
.info-card a:hover { color: var(--gold); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 880px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--forest);
  cursor: pointer;
  gap: 30px;
  width: 100%;
  text-align: left;
}
.faq-q .plus {
  width: 24px; height: 24px; flex-shrink: 0;
  position: relative;
}
.faq-q .plus::before, .faq-q .plus::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  background: var(--gold);
  transition: transform .3s ease;
}
.faq-q .plus::before { width: 16px; height: 1px; transform: translate(-50%, -50%); }
.faq-q .plus::after { width: 1px; height: 16px; transform: translate(-50%, -50%); }
.faq-item.open .faq-q .plus::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .5s ease, padding .3s ease;
}
.faq-item.open .faq-a { max-height: 600px; padding-top: 18px; }
.faq-a p { margin: 0; }

/* ---------- BIG CTA ---------- */
.cta-band {
  background: var(--forest);
  color: var(--cream);
  text-align: center;
  padding: 100px 32px;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--cream); margin-bottom: 1rem; }
.cta-band p { color: rgba(245, 239, 230, 0.8); max-width: 600px; margin: 0 auto 2rem; }
.cta-band::before, .cta-band::after {
  content: ''; position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(184, 148, 95, 0.15);
}
.cta-band::before { width: 500px; height: 500px; top: -250px; left: -150px; }
.cta-band::after { width: 700px; height: 700px; bottom: -350px; right: -200px; }

/* ---------- FOOTER ---------- */
footer {
  background: var(--forest-deep);
  color: rgba(245, 239, 230, 0.72);
  padding: 80px 0 30px;
  font-size: 0.9rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 50px;
  margin-bottom: 60px;
}
footer h5 {
  font-family: 'Inter', sans-serif;
  color: var(--gold-soft);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 22px;
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin-bottom: 12px; }
footer a:hover { color: var(--gold-soft); }
footer .brand-foot {
  font-family: 'Cormorant Garamond', serif;
  color: var(--cream);
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: block;
}
.foot-bottom {
  border-top: 1px solid rgba(245, 239, 230, 0.1);
  padding-top: 30px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px;
  font-size: 0.78rem;
  color: rgba(245, 239, 230, 0.5);
}
.foot-bottom a { margin-left: 18px; }

/* ---------- LEGAL PAGES ---------- */
.legal-body {
  max-width: 820px; margin: 0 auto; padding: 60px 32px 100px;
}
.legal-body h2 { font-size: 1.8rem; margin-top: 50px; }
.legal-body h3 { font-size: 1.3rem; margin-top: 32px; color: var(--forest); }
.legal-body p, .legal-body li { font-size: 0.97rem; }
.legal-body ul, .legal-body ol { padding-left: 24px; margin-bottom: 1.4em; }
.legal-body li { margin-bottom: 10px; }
.legal-body .updated {
  font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 2rem;
}

/* ---------- COOKIE BANNER ---------- */
.cookie-banner {
  position: fixed; bottom: 24px; left: 24px; right: 24px;
  max-width: 760px; margin: 0 auto;
  background: var(--forest);
  color: var(--cream);
  padding: 22px 26px;
  display: flex; align-items: center; gap: 22px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-elegant);
  z-index: 200;
  font-size: 0.88rem;
  border-radius: var(--r);
  transform: translateY(200%);
  transition: transform .5s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { margin: 0; flex: 1; min-width: 240px; color: rgba(245, 239, 230, 0.85); }
.cookie-banner a { color: var(--gold-soft); text-decoration: underline; }
.cookie-banner button {
  padding: 12px 24px;
  background: var(--gold); color: var(--forest);
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  border-radius: var(--r);
  transition: background .3s ease;
}
.cookie-banner button:hover { background: var(--cream); }

/* ---------- ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .25s; }
.reveal.d3 { transition-delay: .4s; }
.reveal.d4 { transition-delay: .55s; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--cream);
    padding: 100px 40px;
    gap: 26px;
    font-size: 1.1rem;
  }
  .nav.transparent-light .nav-links.mobile-open a { color: var(--forest); }
  .split { grid-template-columns: 1fr; gap: 50px; }
  .split.reverse > *:first-child { order: 0; }
  .three-col, .two-col, .info-grid, .price-table { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: span 1; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .gallery-grid > .g { grid-column: span 12 !important; aspect-ratio: 4/3 !important; }
  section { padding: 80px 0; }
  .container { padding: 0 22px; }
  .page-header { padding: 150px 0 70px; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 120px 22px 80px; }
}
