/* ============================================================
   ДИНАСТИЯ — Landing page styles
   Style: Modern Manor / Contemporary Country Estate
   ============================================================ */

:root {
  --pine: #264538;
  --pine-dark: #1a3126;
  --sage: #8E9D86;
  --milk: #F5F1E8;
  --sand: #DCCFBC;
  --graphite: #252825;
  --brass: #B79B69;
  --white: #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1180px;
  --gap: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 2px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--graphite);
  background: var(--milk);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--pine-dark);
}

p { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 640px) {
  .container { padding: 0 40px; }
}

@media (min-width: 1600px) {
  :root { --container: 1360px; }
}

@media (min-width: 1920px) {
  :root { --container: 1520px; }
}

.section {
  padding: clamp(3.5rem, 9vw, 7rem) 0;
  position: relative;
}

.section--sand { background: var(--sand); }
.section--pine { background: var(--pine); color: var(--milk); }
.section--pine h2, .section--pine h3 { color: var(--milk); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 700;
  display: inline-block;
  margin-bottom: 0.9rem;
}

.section-title {
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  max-width: 18ch;
  letter-spacing: -0.01em;
}

.section-sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: #4b544c;
  max-width: 52ch;
  margin-top: 1.1rem;
  line-height: 1.7;
}

.section--pine .section-sub { color: #cfd9d0; }

@media (min-width: 1600px) {
  .section-title { font-size: 3.6rem; max-width: 20ch; }
  .section-sub { font-size: 1.18rem; max-width: 58ch; }
  body { font-size: 17px; }
  .faq-accordion summary { font-size: 1.1rem; }
  .faq-accordion p { font-size: 1.02rem; max-width: 60ch; }
  .team-quote, .review-text { font-size: 1.02rem; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.9rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--pine);
  color: var(--milk) !important;
}
.btn--primary:hover { background: var(--pine-dark); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: var(--pine-dark) !important;
  border-color: var(--pine-dark);
}
.btn--ghost:hover { background: var(--pine-dark); color: var(--milk) !important; transform: translateY(-2px); }

.btn--on-pine {
  background: var(--milk);
  color: var(--pine-dark) !important;
}
.btn--on-pine:hover { background: var(--brass); color: var(--pine-dark) !important; transform: translateY(-2px); }

.btn--outline-on-pine {
  background: transparent;
  color: var(--milk) !important;
  border-color: rgba(245,241,232,0.55);
}
.btn--outline-on-pine:hover { border-color: var(--milk); background: rgba(245,241,232,0.08); transform: translateY(-2px); }

.btn--small { padding: 0.75rem 1.4rem; font-size: 0.85rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* ---------- Arch motif (signature element) ----------
   Echoes the building's real arched windows & column capitals.
   Used to frame photography and mark section transitions. */

.arch-frame {
  position: relative;
  border-radius: 240px 240px 6px 6px / 140px 140px 6px 6px;
  overflow: hidden;
  isolation: isolate;
}

.arch-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(245,241,232,0.35);
  pointer-events: none;
}

.arch-divider {
  width: 100%;
  height: clamp(28px, 5vw, 56px);
  display: block;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header.is-scrolled {
  background: rgba(245,241,232,0.92);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 1px 0 rgba(37,40,37,0.08);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.logo-mark {
  height: 42px;
  width: auto;
  transition: height 0.4s var(--ease);
}

.logo-mark--dark { display: none; }
.is-scrolled .logo-mark--light { display: none; }
.is-scrolled .logo-mark--dark { display: block; }
.is-scrolled .logo-mark { height: 34px; }

.logo span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--milk);
}
.is-scrolled .logo span { color: var(--pine-dark); }

.header-cta { display: none; }

.site-nav {
  display: none;
}

@media (min-width: 860px) {
  .header-cta { display: inline-flex; }
}

@media (min-width: 1140px) {
  .site-nav {
    display: flex;
    gap: 1.7rem;
    align-items: center;
  }

  .site-nav a {
    font-size: 0.86rem;
    letter-spacing: 0.01em;
    color: rgba(245,241,232,0.88);
    white-space: nowrap;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s var(--ease);
  }

  .site-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 100%;
    bottom: 0;
    height: 1px;
    background: var(--brass);
    transition: right 0.3s var(--ease);
  }

  .site-nav a:hover { color: var(--milk); }
  .site-nav a:hover::after { right: 0; }

  .is-scrolled .site-nav a { color: #4b544c; }
  .is-scrolled .site-nav a:hover { color: var(--pine-dark); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--milk);
  overflow: hidden;
}

.hero > .container {
  width: 100%;
  min-width: 0;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 45%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18,38,29,0.94) 0%, rgba(18,38,29,0.88) 48%, rgba(18,38,29,0.25) 66%, rgba(18,38,29,0.08) 100%);
}

.hero-inner {
  position: relative;
  padding: 160px 0 48px;
  width: 100%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(245,241,232,0.12);
  border: 1px solid rgba(245,241,232,0.4);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero-descriptor {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--sand);
  margin-bottom: 0.6rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 7vw, 3.6rem);
  color: var(--milk);
  max-width: 16ch;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1.08rem;
  font-weight: 600;
  max-width: 46ch;
  margin-top: 1.4rem;
  color: var(--milk);
  text-shadow: 0 1px 3px rgba(0,0,0,0.55), 0 2px 10px rgba(0,0,0,0.35);
}

@media (min-width: 1600px) {
  .hero h1 { font-size: 4.6rem; max-width: 19ch; }
  .hero-sub { font-size: 1.3rem; max-width: 52ch; }
  .hero-benefit { font-size: 0.92rem; padding: 0.65rem 1.05rem; }
  .hero-benefit svg { width: 19px; height: 19px; }
}

.hero .btn-row { margin-top: 1.8rem; }

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.6rem;
}

.hero-benefit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  background: rgba(20,28,23,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(245,241,232,0.32);
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: var(--milk);
  white-space: nowrap;
}

.hero-benefit svg {
  width: 16px;
  height: 16px;
  color: var(--brass);
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .hero-inner {
    width: 50%;
    max-width: 640px;
  }

  .hero h1,
  .hero-sub,
  .offer-strip {
    max-width: 100%;
  }

  .hero-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-benefit {
    min-width: 0;
    border-radius: 14px;
    white-space: normal;
  }

  .hero .btn-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero .btn {
    min-width: 0;
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    text-align: center;
    white-space: normal;
  }
}

@media (min-width: 720px) {
  .hero-inner { padding: 170px 0 56px; }
}

@media (min-width: 1000px) and (max-height: 950px) {
  .hero-inner { padding: 96px 0 28px; }
  .hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
  .hero-sub { margin-top: 0.8rem; font-size: 0.98rem; }
  .hero-benefits { margin-top: 1rem; gap: 0.5rem; }
  .hero-benefit { padding: 0.4rem 0.7rem; font-size: 0.74rem; }
  .offer-strip { margin-top: 1.1rem; padding: 0.7rem 1.1rem; }
  .offer-strip strong { font-size: 1.05rem; }
  .hero .btn-row { margin-top: 1.1rem; }
  .hero .btn { padding: 0.8rem 1.5rem; font-size: 0.88rem; }
}

/* ---------- Offer strip (in hero) ---------- */

.offer-strip {
  margin-top: 2.4rem;
  padding: 1.1rem 1.4rem;
  background: rgba(37,40,37,0.35);
  border: 1px solid rgba(183,155,105,0.5);
  border-left: 3px solid var(--brass);
  max-width: 560px;
  backdrop-filter: blur(6px);
}

.offer-strip strong {
  color: var(--brass);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.offer-strip p { font-size: 0.92rem; color: rgba(245,241,232,0.92); }

/* ---------- Promo block ---------- */

.promo {
  background: var(--pine);
  color: var(--milk);
  position: relative;
  overflow: hidden;
}

.promo h2, .promo h3, .promo h4 { color: var(--milk); }
.promo .section-sub { color: #cfd9d0; }

.promo::before {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 60%; height: 160%;
  background: radial-gradient(closest-side, rgba(183,155,105,0.16), transparent 70%);
}

.promo-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  position: relative;
}

@media (min-width: 860px) {
  .promo-grid { grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; }
}

.promo-price-card {
  background: rgba(245,241,232,0.06);
  border: 1px solid rgba(183,155,105,0.4);
  padding: 2.2rem;
  text-align: center;
}

.promo-price-old {
  font-size: 1.1rem;
  color: rgba(245,241,232,0.55);
  text-decoration: line-through;
  text-decoration-color: rgba(183,155,105,0.6);
  text-decoration-thickness: 1px;
}

.promo-price-new {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 3.6rem);
  color: var(--milk);
  margin: 0.3rem 0;
  letter-spacing: -0.01em;
}

.promo-price-new span {
  font-size: 1.1rem;
  font-family: var(--font-body);
  color: var(--sand);
  font-weight: 500;
}

.promo-price-caption {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
}

.promo-footnote {
  font-size: 0.8rem;
  color: rgba(245,241,232,0.55);
  margin-top: 1.6rem;
  max-width: 42ch;
}

/* ---------- Emotional block ---------- */

.emotional {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.emotional-lead {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.4vw, 2.4rem);
  color: var(--pine-dark);
  max-width: 18ch;
}

.emotional-body {
  font-size: 1.05rem;
  color: #4b544c;
  max-width: 48ch;
}

.emotional-signoff {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--pine);
  margin-top: 1.4rem;
  line-height: 1.5;
}

/* ---------- Story / media-text alternating blocks ---------- */

.story {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .story {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  .story--reverse .story-media { order: 2; }
  .story--reverse .story-text { order: 1; }
}

.story-media img {
  width: 100%;
  height: clamp(280px, 42vw, 460px);
  object-fit: cover;
}

.story-text .eyebrow { margin-bottom: 0.7rem; }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.98rem;
  color: var(--graphite);
}

.feature-list li::before {
  content: "";
  width: 6px; height: 6px;
  margin-top: 0.55rem;
  background: var(--brass);
  flex-shrink: 0;
  transform: rotate(45deg);
}

/* ---------- Family model (5 principles) ---------- */

.principles {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(38,69,56,0.15);
}

.principle {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.6rem;
  align-items: baseline;
  padding: 1.9rem 0;
  border-bottom: 1px solid rgba(38,69,56,0.15);
}

.principle-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--sage);
  font-weight: 600;
  min-width: 2.2ch;
}

.principle h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.principle p {
  color: #4b544c;
  font-size: 0.98rem;
  max-width: 54ch;
}

/* ---------- Hour-by-hour day timeline ---------- */

.timeline {
  display: grid;
  gap: 2.2rem;
}

@media (min-width: 860px) {
  .timeline { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

.timeline-period {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--pine);
  padding-bottom: 0.7rem;
  margin-bottom: 0.3rem;
  border-bottom: 2px solid var(--brass);
}

.timeline-row {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(38,69,56,0.12);
}

.timeline-time {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--pine-dark);
  min-width: 3.4rem;
  flex-shrink: 0;
}

.timeline-row p {
  font-size: 0.92rem;
  color: #4b544c;
  line-height: 1.5;
}

/* ---------- Day timeline ---------- */

.day-timeline {
  display: grid;
  gap: 1.4rem;
}

@media (min-width: 760px) {
  .day-timeline { grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
  .day-timeline--five { grid-template-columns: repeat(3, 1fr); }
}

.day-item {
  background: var(--white);
  padding: 1.8rem 1.6rem;
  border-top: 2px solid var(--brass);
}

.day-item .eyebrow { color: var(--pine); margin-bottom: 0.5rem; }
.day-item h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.day-item p { font-size: 0.92rem; color: #4b544c; }

/* ---------- For whom cards ---------- */

.situations {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 720px) {
  .situations { grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
}

.situation {
  background: var(--milk);
  border: 1px solid rgba(38,69,56,0.14);
  padding: 1.5rem 1.6rem;
  font-size: 0.98rem;
  line-height: 1.6;
  display: flex;
  gap: 0.9rem;
}

.situation::before {
  content: "";
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-top: 0.15rem;
  border: 1.5px solid var(--brass);
  border-radius: 50%;
  position: relative;
}
/* ---------- Photo gallery (small 2-up) ---------- */

.photo-gallery {
  display: grid;
  gap: 1.2rem;
}

@media (min-width: 720px) {
  .photo-gallery { grid-template-columns: repeat(2, 1fr); }
  .photo-gallery--five, .photo-gallery--three { grid-template-columns: repeat(3, 1fr); }
}

.photo-gallery figure { margin: 0; }

.photo-gallery img {
  width: 100%;
  height: clamp(220px, 30vw, 320px);
  object-fit: cover;
  border-radius: 140px 140px 4px 4px / 80px 80px 4px 4px;
}

.photo-gallery figcaption {
  margin-top: 0.7rem;
  font-size: 0.86rem;
  color: #6a7266;
}

/* ---------- Pool block ---------- */

.pool-block {
  position: relative;
}

.pool-media {
  position: relative;
}

.pool-media img {
  width: 100%;
  height: clamp(320px, 55vw, 560px);
  object-fit: cover;
}

.pool-caption {
  background: var(--white);
  padding: 2rem clamp(1.5rem, 4vw, 3rem);
  margin-top: -1px;
}

/* ---------- Safety grid ---------- */

.safety-grid {
  display: grid;
  gap: 1.2rem;
  margin-top: 2.2rem;
}

@media (min-width: 720px) {
  .safety-grid { grid-template-columns: repeat(3, 1fr); }
}

.safety-item {
  padding: 1.6rem 0;
  border-top: 1px solid rgba(245,241,232,0.25);
}

.safety-item h3 {
  color: var(--milk);
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.safety-item p {
  color: rgba(245,241,232,0.8);
  font-size: 0.92rem;
}

/* ---------- Pricing ---------- */

.pricing-card {
  background: var(--pine);
  color: var(--milk);
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  max-width: 640px;
  margin: 2.5rem auto 0;
}

.pricing-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.6rem;
}

.pricing-new {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.2rem);
}

.pricing-old {
  color: rgba(245,241,232,0.5);
  text-decoration: line-through;
  font-size: 1.1rem;
}

.placement-options {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
  font-size: 0.88rem;
  color: rgba(245,241,232,0.75);
}

.placement-options span { border-bottom: 1px dotted rgba(245,241,232,0.4); padding-bottom: 2px; }

/* ---------- Psychological CTA ---------- */

.soft-cta {
  text-align: center;
}
.soft-cta .container { max-width: 680px; }

/* ---------- Final CTA / Form ---------- */

.final-cta {
  position: relative;
  color: var(--milk);
  overflow: hidden;
}

.final-cta h2, .final-cta h3 { color: var(--milk); }
.final-cta .section-sub { color: #cfd9d0; }

.final-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.final-media img { width: 100%; height: 100%; object-fit: cover; }
.final-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,49,38,0.82), rgba(26,49,38,0.9));
}

.final-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 900px) {
  .final-grid { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: start; }
}

.final-offer-line {
  margin-top: 1.6rem;
  padding: 1rem 1.2rem;
  border-left: 2px solid var(--brass);
  font-size: 0.95rem;
  color: var(--sand);
}

.form-card {
  background: var(--milk);
  color: var(--graphite);
  padding: clamp(1.8rem, 4vw, 2.6rem);
}

.form-card h3 { color: var(--pine-dark); margin-bottom: 1.5rem; font-size: 1.4rem; }

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: #5a6259;
  margin-bottom: 0.4rem;
}

.field input,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1.5px solid #cdc3b0;
  background: var(--white);
  border-radius: var(--radius);
  color: var(--graphite);
  transition: border-color 0.25s var(--ease);
}

.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--pine);
}

.field-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: #5a6259;
  line-height: 1.5;
  margin: 1.3rem 0 1.4rem;
}

.field-checkbox input { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; }

.form-card .btn { width: 100%; }

.form-note {
  font-size: 0.8rem;
  color: #6a7266;
  margin-top: 0.9rem;
  text-align: center;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem 0;
}
.form-success.is-visible { display: block; }
.form-success h3 { color: var(--pine-dark); margin-bottom: 0.6rem; }
.form-success p { color: #4b544c; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--graphite);
  color: rgba(245,241,232,0.75);
  padding: 3.5rem 0 8rem;
  font-size: 0.9rem;
}

@media (min-width: 720px) {
  .site-footer { padding-bottom: 3.5rem; }
}

.footer-top {
  display: grid;
  gap: 2.2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(245,241,232,0.14);
  margin-bottom: 1.8rem;
}

@media (min-width: 760px) {
  .footer-top { grid-template-columns: 1.3fr 0.9fr 0.9fr 1fr; }
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--milk);
  margin-bottom: 0.6rem;
}

.footer-col h2 {
  color: var(--milk);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  font-weight: 700;
}

.footer-col a, .footer-col p {
  display: block;
  margin-bottom: 0.55rem;
  color: rgba(245,241,232,0.72);
}
.footer-col a:hover { color: var(--milk); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(245,241,232,0.76);
}

.footer-bottom a { color: rgba(245,241,232,0.82); }
.footer-bottom a:hover { color: var(--milk); }

.istok-note {
  font-size: 0.72rem;
  color: rgba(245,241,232,0.74);
  margin-top: 1.4rem;
}

/* ---------- Sticky mobile CTA bar ---------- */

.mobile-cta-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  background: var(--pine-dark);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.18);
}

.mobile-cta-bar a {
  padding: 1rem 0.5rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--milk);
}

.mobile-cta-bar .call-link {
  background: rgba(245,241,232,0.08);
  border-right: 1px solid rgba(245,241,232,0.14);
}

.mobile-cta-bar .tour-link { background: var(--brass); color: var(--pine-dark); }

@media (min-width: 860px) {
  .mobile-cta-bar { display: none; }
}

/* ---------- Sub-page hero (compact, for inner SEO pages) ---------- */

.subhero {
  position: relative;
  min-height: 62svh;
  display: flex;
  align-items: flex-end;
  color: var(--milk);
  overflow: hidden;
}

.subhero .hero-media { position: absolute; inset: 0; z-index: -1; }
.subhero .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.subhero .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,49,38,0.6) 0%, rgba(26,49,38,0.4) 40%, rgba(26,49,38,0.85) 100%);
}

.subhero-inner { position: relative; padding: 150px 0 56px; width: 100%; }

.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: rgba(245,241,232,0.75);
  margin-bottom: 1.6rem;
}
.breadcrumb-link:hover { color: var(--milk); }

.subhero h1 {
  font-size: clamp(1.9rem, 5.5vw, 3.1rem);
  color: var(--milk);
  max-width: 20ch;
  letter-spacing: -0.01em;
}

.subhero-sub {
  font-size: 1.05rem;
  max-width: 50ch;
  margin-top: 1.3rem;
  color: rgba(245,241,232,0.88);
}

/* ---------- FAQ block ---------- */

.faq-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(38,69,56,0.15);
  margin-top: 2rem;
}

.faq-item {
  padding: 1.7rem 0;
  border-bottom: 1px solid rgba(38,69,56,0.15);
}

.faq-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--pine-dark);
}

.faq-item p {
  color: #4b544c;
  font-size: 0.98rem;
  max-width: 62ch;
}

/* ---------- FAQ accordion (interactive, main page) ---------- */

.faq-grid {
  display: grid;
  gap: 0.6rem 2.4rem;
  margin-top: 2rem;
}

@media (min-width: 820px) {
  .faq-grid { grid-template-columns: repeat(2, 1fr); }
}

.faq-accordion {
  border-bottom: 1px solid rgba(38,69,56,0.18);
  padding: 1.3rem 0;
}

.faq-accordion summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--pine-dark);
  line-height: 1.4;
}

.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary::marker { content: ""; }

.faq-icon {
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--brass);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--brass);
  transition: opacity 0.2s var(--ease);
}

.faq-icon::before {
  left: 50%; top: 6px; bottom: 6px; width: 1.5px;
  transform: translateX(-50%);
}

.faq-icon::after {
  top: 50%; left: 6px; right: 6px; height: 1.5px;
  transform: translateY(-50%);
}

.faq-accordion[open] .faq-icon { transform: rotate(90deg); }
.faq-accordion[open] .faq-icon::before { opacity: 0; }

.faq-accordion p {
  color: #4b544c;
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 56ch;
  margin-top: 0.9rem;
  padding-right: 1.5rem;
}

/* ---------- Cross-link cards (related situations) ---------- */

.related-links {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 720px) {
  .related-links { grid-template-columns: repeat(3, 1fr); }
}

.related-link {
  display: block;
  background: var(--white);
  border: 1px solid rgba(38,69,56,0.14);
  padding: 1.4rem 1.5rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.related-link:hover { border-color: var(--brass); transform: translateY(-2px); }

.related-link .eyebrow { margin-bottom: 0.5rem; }

.related-link h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--pine-dark);
  margin-bottom: 0.4rem;
}

.related-link p {
  font-size: 0.88rem;
  color: #6a7266;
}

/* ---------- Parallax depth effect ---------- */

.hero-media, .final-media, .pool-media, .photo-gallery figure {
  overflow: hidden;
}

.parallax-layer {
  transform: scale(calc(1.15 * var(--hz, 1))) translateY(var(--py, 0px));
  transition: transform 0.05s linear, filter 0.5s var(--ease);
  will-change: transform;
}

.photo-gallery figure:hover .parallax-layer,
.story-media:hover .parallax-layer {
  --hz: 1.05;
  transition: transform 0.5s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .parallax-layer { transform: none !important; transition: none !important; }
}

/* ---------- Team member cards ---------- */

.team-grid {
  display: grid;
  gap: 2.2rem 1.6rem;
  text-align: center;
}

@media (min-width: 640px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .team-grid { grid-template-columns: repeat(4, 1fr); }
}

.team-photo {
  overflow: hidden;
  margin-bottom: 1.1rem;
  border-radius: 120px 120px 6px 6px / 70px 70px 6px 6px;
  aspect-ratio: 4 / 5;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  font-size: 1.2rem;
  color: var(--pine-dark);
  margin-bottom: 0.2rem;
}

.team-role {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brass);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.team-meta {
  font-size: 0.85rem;
  color: #6a7266;
  margin-bottom: 0.9rem;
  line-height: 1.5;
}

.team-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--pine);
  line-height: 1.55;
}

/* ---------- Review cards ---------- */

.reviews-grid {
  display: grid;
  gap: 1.4rem;
}

@media (min-width: 860px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

.review-card {
  background: var(--milk);
  border-left: 3px solid var(--brass);
  padding: 1.7rem 1.9rem;
}

.review-text {
  font-size: 0.94rem;
  color: #3f453f;
  line-height: 1.7;
  margin-bottom: 1.1rem;
}

.review-author {
  font-size: 0.84rem;
  color: var(--pine);
  font-weight: 700;
}

/* ---------- Contacts + map ---------- */

.contacts-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .contacts-grid { grid-template-columns: 0.85fr 1.15fr; gap: 3.5rem; align-items: stretch; }
}

.contacts-info {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.contacts-block h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brass);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contacts-block p, .contacts-block a {
  font-size: 1rem;
  color: var(--graphite);
  line-height: 1.6;
}

.contacts-block a:hover { color: var(--pine); }

.contacts-map {
  min-height: 340px;
  overflow: hidden;
  border: 1px solid rgba(38,69,56,0.14);
}

.contacts-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Cascading stagger for grid/list children — each child animates
   slightly after the previous one, using --stagger set via JS. */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--stagger, 0) * 0.09s);
}
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * {
    transition: none !important;
    transform: none !important;
  }
}

/* ---------- Scroll progress bar ---------- */

.scroll-progress-track {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2.5px;
  z-index: 200;
  background: transparent;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brass), var(--pine));
  transition: width 0.1s linear;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress-bar { transition: none; }
}

/* ---------- Interactive card lift on hover ---------- */

.day-item, .team-card, .review-card, .safety-item, .related-link {
  transition-property: transform, box-shadow;
  transition-duration: 0.35s;
  transition-timing-function: var(--ease);
}

.day-item:hover, .team-card:hover, .review-card:hover, .related-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -12px rgba(38,69,56,0.22);
}

.safety-item {
  transition-property: transform, border-color;
  transition-duration: 0.35s;
  transition-timing-function: var(--ease);
}
.safety-item:hover {
  transform: translateY(-3px);
  border-top-color: rgba(245,241,232,0.5);
}

.faq-accordion summary {
  transition: color 0.25s var(--ease);
}
.faq-accordion summary:hover {
  color: var(--pine);
}
.faq-accordion summary:hover .faq-icon {
  border-color: var(--pine);
  transform: scale(1.08);
}
.faq-accordion[open] .faq-icon { transform: rotate(90deg) scale(1.08); }

/* ---------- Utility ---------- */

.mt-lg { margin-top: clamp(2rem, 5vw, 3rem); }
.text-center { text-align: center; }
.small-note {
  font-size: 0.82rem;
  color: #6a7266;
  margin-top: 1rem;
}
.section--pine .small-note { color: rgba(245,241,232,0.55); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--milk);
  color: var(--pine-dark);
  padding: 0.8rem 1.2rem;
  z-index: 200;
}
.skip-link:focus { left: 20px; top: 20px; }

/* ---------- Conversion-focused additions ---------- */

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-phone {
  display: none;
  color: var(--milk);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.is-scrolled .header-phone { color: var(--pine-dark); }

@media (min-width: 980px) {
  .header-phone { display: inline-flex; }
}

.hero-messenger {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.25rem;
  color: var(--milk);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero-price-strip span { color: rgba(245,241,232,0.88); }

.trust-strip {
  background: var(--milk);
  border-bottom: 1px solid rgba(38,69,56,0.12);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.trust-grid > div {
  padding: 0.75rem 1rem;
  border-left: 2px solid var(--brass);
}

.trust-grid strong,
.trust-grid span { display: block; }
.trust-grid strong { color: var(--pine-dark); font-size: 0.92rem; }
.trust-grid span { color: #596158; font-size: 0.78rem; margin-top: 0.2rem; }

@media (min-width: 860px) {
  .trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.included-note {
  margin-top: 1.4rem;
  padding: 1.25rem 1.4rem;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(38,69,56,0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.included-note p { color: #4b544c; font-size: 0.9rem; }
.text-link, .situation a { color: var(--pine); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

.situation-cards .situation {
  display: block;
  position: relative;
  padding: 1.6rem 1.6rem 1.5rem 3rem;
}

.situation-cards .situation::before {
  position: absolute;
  left: 1.3rem;
  top: 1.6rem;
}

.situation h3 { color: var(--pine-dark); font-size: 1.08rem; margin-bottom: 0.55rem; }
.situation p { color: #596158; font-size: 0.9rem; margin-bottom: 0.9rem; }
.situation a { font-size: 0.84rem; }

.photo-gallery figcaption small {
  display: block;
  color: #7a8179;
  font-size: 0.72rem;
  margin-top: 0.15rem;
}

.pricing-month {
  margin: 0.4rem 0 1.3rem;
  color: var(--sand);
  font-weight: 700;
}

.hp-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.form-error {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: #fff1ef;
  border: 1px solid #b94435;
  color: #7f2116;
  font-size: 0.84rem;
  line-height: 1.5;
}
.form-error.is-visible { display: block; }
.field-error { border-color: #a83232 !important; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #d6b978;
  outline-offset: 3px;
}

@media (max-width: 719px) {
  .hero-media::after {
    background: linear-gradient(180deg, rgba(26,49,38,0.55) 0%, rgba(26,49,38,0.42) 35%, rgba(26,49,38,0.84) 100%);
  }
  .hero-inner { padding: 104px 0 34px; }
  .hero-tag { font-size: 0.66rem; margin-bottom: 0.9rem; padding: 0.42rem 0.7rem; }
  .hero h1 { font-size: clamp(2rem, 10vw, 2.55rem); line-height: 0.98; }
  .hero-sub { margin-top: 0.9rem; font-size: 0.94rem; line-height: 1.5; }
  .hero-benefits {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 0.9rem;
  }
  .hero-benefit {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }
  .hero-benefit:nth-child(n+3) { display: none; }
  .offer-strip { margin-top: 0.9rem; padding: 0.7rem 0.9rem; }
  .offer-strip strong { font-size: 1.05rem; }
  .offer-strip p { font-size: 0.8rem; }
  .hero .btn-row { margin-top: 1rem; gap: 0.55rem; }
  .hero .btn { width: 100%; }
  .hero-messenger { width: 100%; justify-content: center; }
  .included-note { align-items: flex-start; flex-direction: column; }
}

@media (max-height: 650px) and (min-width: 720px) {
  .hero-inner { padding: 96px 0 72px; }
  .hero-tag { margin-bottom: 0.7rem; }
  .hero h1 { font-size: 2.35rem; line-height: 1; max-width: 17ch; }
  .hero-sub,
  .hero-benefits { display: none; }
  .offer-strip { margin-top: 0.8rem; padding: 0.65rem 0.9rem; }
  .offer-strip strong { font-size: 1rem; }
  .offer-strip p { font-size: 0.8rem; }
  .hero .btn-row { margin-top: 0.8rem; }
  .hero .btn { padding: 0.7rem 1.1rem; font-size: 0.82rem; }
  .hero-messenger { min-height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .parallax-layer { transform: none !important; }
}
