/* ==========================================================================
   CMDC Beach Resort — stylesheet
   Palette: brand yellow + turquoise, softened into earthy / pastel tones.
   Change the colours here and the whole site follows.
   ========================================================================== */

:root {
  --ivory: #f6f1e8;
  --sand: #ece2d0;
  --stone: #d6c9b3;
  --ochre: #c4a060;       /* brand yellow, muted */
  --ochre-deep: #9c7a3e;
  --seaglass: #a9c7bf;    /* brand turquoise, pastel */
  --teal: #4d7a74;        /* brand turquoise, deep */
  --teal-deep: #35574f;
  --ink: #2b2925;
  --muted: #6d665b;
  --line: rgba(43, 41, 37, 0.14);
  --white: #fffdf9;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(80px, 12vw, 160px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

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

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--ink); color: var(--ivory); padding: 10px 16px;
}
.skip:focus { left: 8px; }

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(44px, 7.5vw, 104px); }
h2 { font-size: clamp(34px, 4.6vw, 62px); }
h3 { font-size: clamp(26px, 2.6vw, 36px); }
p { margin: 0 0 1.2em; }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 22px;
}
.lead {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.45;
  font-weight: 300;
}
.muted { color: var(--muted); }

.link {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  transition: gap 0.4s var(--ease), color 0.3s;
}
.link:hover { gap: 20px; color: var(--teal); }
.link::after { content: "→"; letter-spacing: 0; font-size: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 30px;
  font-size: 12px; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase;
  border: 1px solid currentColor;
  transition: background 0.35s, color 0.35s, border-color 0.35s;
}
.btn:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn--solid { background: var(--teal); border-color: var(--teal); color: var(--white); }
.btn--solid:hover { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--white); }
.btn--light { color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ---------- Layout ---------- */

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; margin: 0 auto; }
.center { text-align: center; }
.section { padding: var(--section) 0; }
.section--sand { background: var(--sand); }
.section--teal { background: var(--teal-deep); color: var(--ivory); }
.section--teal .eyebrow { color: var(--seaglass); }

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

.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  color: var(--white);
  transition: background 0.5s var(--ease), color 0.5s var(--ease), box-shadow 0.5s;
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 92px;
  max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter);
  transition: height 0.5s var(--ease);
}
/* The blurred background sits on a pseudo-element: backdrop-filter on the header
   itself would trap the fixed full-screen mobile menu inside the header bar. */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(246, 241, 232, 0.96);
  box-shadow: 0 1px 0 var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.header.is-solid,
.header--solid { color: var(--ink); }
.header.is-solid::before,
.header--solid::before { opacity: 1; }
.header.is-solid .header__inner { height: 72px; }

.brand { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--serif); font-size: 30px; font-weight: 400; letter-spacing: 0.22em; }
.brand__sub { font-size: 9.5px; letter-spacing: 0.42em; text-transform: uppercase; margin-top: 7px; opacity: 0.85; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.nav a {
  position: relative;
  font-size: 12px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase;
  white-space: nowrap;
  padding: 6px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .nav__cta { border: 1px solid currentColor; padding: 10px 20px; }
.nav .nav__cta::after { display: none; }
.nav .nav__cta:hover { background: currentColor; }
.nav .nav__cta:hover span { color: var(--ink); }
.header.is-solid .nav .nav__cta:hover span, .header--solid .nav .nav__cta:hover span { color: var(--ivory); }

.menu-btn { display: none; width: 44px; height: 44px; position: relative; z-index: 120; }
.menu-btn span {
  position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor;
  transition: transform 0.4s var(--ease), top 0.4s var(--ease), opacity 0.3s;
}
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 26px; }
.menu-open .menu-btn span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1100px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 110;
    flex-direction: column; justify-content: center; gap: 26px;
    background: var(--teal-deep); color: var(--ivory);
    opacity: 0; visibility: hidden;
    transition: opacity 0.45s var(--ease), visibility 0.45s;
  }
  .nav a { font-family: var(--serif); font-size: 34px; letter-spacing: 0.02em; text-transform: none; font-weight: 300; }
  .nav .nav__cta { font-family: var(--sans); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; margin-top: 12px; }
  .nav .nav__cta:hover span { color: var(--teal-deep) !important; }
  .menu-open .nav { opacity: 1; visibility: visible; }
  .menu-open .header { color: var(--ivory); }
  .menu-open .header::before { opacity: 0; }
  .menu-open { overflow: hidden; }
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  color: var(--white); overflow: hidden; background: var(--teal-deep);
}
.hero__media, .hero__media > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img, .hero__media video { object-fit: cover; }
.hero__slide { opacity: 0; transition: opacity 2.2s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.hero__slide.is-active img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.hero__media video { opacity: 0; transition: opacity 1.5s; }
.hero__media video.is-ready { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(30, 30, 26, 0.42) 0%, rgba(30, 30, 26, 0) 28%),
    linear-gradient(to top, rgba(30, 30, 26, 0.62) 0%, rgba(30, 30, 26, 0.18) 45%, rgba(30, 30, 26, 0) 65%);
}
.hero__content {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(56px, 11vh, 120px);
  text-align: center; padding: 0 var(--gutter);
}
.hero__content .eyebrow { color: var(--white); opacity: 0.9; }
.hero__content h1 { margin-bottom: 34px; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.18); }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.play-icon {
  width: 0; height: 0; border-left: 9px solid currentColor;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.scroll-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 0; width: 1px; height: 44px;
  background: rgba(255, 255, 255, 0.35); overflow: hidden;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 0; top: -44px; width: 1px; height: 44px; background: var(--white);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { to { top: 44px; } }

/* ---------- Page hero (sub pages) ---------- */

.page-hero {
  position: relative; height: 78vh; height: 78svh; min-height: 460px; max-height: 860px;
  color: var(--white); overflow: hidden; background: var(--teal-deep);
}
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: settle 2.4s var(--ease) both; }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(30, 30, 26, 0.55), rgba(30, 30, 26, 0.05) 60%, rgba(30, 30, 26, 0.32));
}
.page-hero__content {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(48px, 9vh, 96px);
  text-align: center; padding: 0 var(--gutter);
}
.page-hero__content .eyebrow { color: var(--white); }
.page-hero__content h1 { margin: 0; }

.page-top { padding-top: 150px; }

/* ---------- Facts strip ---------- */

.facts {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-top: clamp(56px, 8vw, 96px);
}
.fact { padding: 34px 12px; text-align: center; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact__num { display: block; font-family: var(--serif); font-size: clamp(34px, 4vw, 50px); line-height: 1; margin-bottom: 10px; color: var(--teal); }
.fact__label { font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact { border-left: 0 !important; border-bottom: 1px solid var(--line); }
  .fact:nth-child(odd) { border-right: 1px solid var(--line); }
  .fact:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
}

/* ---------- Split (image + text) ---------- */

.split {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center;
}
.split--rev { grid-template-columns: 1fr 1.15fr; }
.split--rev .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split__media--wide img { aspect-ratio: 5 / 4; }
.split__inset {
  position: absolute; width: 44%; right: -8%; bottom: -12%;
  border: 10px solid var(--ivory);
}
.section--sand .split__inset { border-color: var(--sand); }
.split--rev .split__inset { right: auto; left: -8%; }
.split__inset img { aspect-ratio: 1 / 1; }
.split__text { max-width: 480px; }
.split__text h2 { margin-bottom: 28px; }
@media (max-width: 860px) {
  .split, .split--rev { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .split__inset { right: -4px; bottom: -40px; width: 42%; }
  .split--rev .split__inset { left: -4px; }
  .split__text { max-width: none; padding-top: 30px; }
}

/* ---------- Cards ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.card { display: block; }
.card__img { overflow: hidden; margin-bottom: 26px; }
.card__img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 1.4s var(--ease); }
.card:hover .card__img img { transform: scale(1.05); }
.card h3 { margin-bottom: 12px; }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.video-card .card__img { position: relative; margin-bottom: 20px; }
.video-card .card__img img { aspect-ratio: 4 / 5; }
.video-card__play { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin: -29px 0 0 -29px; border: 1px solid rgba(255, 253, 249, 0.8); border-radius: 50%; background: rgba(43, 41, 37, 0.28); color: var(--white); backdrop-filter: blur(4px); transition: background 0.3s, transform 0.3s; }
.video-card__play .play-icon { margin-left: 3px; }
.video-card:hover .video-card__play { background: rgba(43, 41, 37, 0.5); transform: scale(1.08); }
.video-card .eyebrow { margin-bottom: 8px; }
.video-card__play--lg { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.video-card__play--lg .play-icon { border-left-width: 14px; border-top-width: 9px; border-bottom-width: 9px; margin-left: 5px; }
.film { margin: 0 0 clamp(30px, 5vw, 60px); }
.film__poster { position: relative; display: block; width: 100%; overflow: hidden; }
.film__poster img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; transition: transform 1.4s var(--ease); }
.film__poster:hover img { transform: scale(1.03); }
.film__poster:hover .video-card__play { background: rgba(43, 41, 37, 0.5); transform: scale(1.08); }
.film__caption { margin: 18px 0 0; color: var(--muted); font-size: 16px; }
.film__caption .eyebrow { margin: 0 14px 0 0; }
.split__media.video-card .card__img { margin: 0; }
.split__media.video-card .card__img img { aspect-ratio: 5 / 4; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.5vw, 32px); margin-top: clamp(40px, 5vw, 64px); }
.mini-grid .card__img { margin: 0; }
.mini-grid .card__img img { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; }
.mini-grid .video-card { text-align: left; width: 100%; }
.mini-grid .video-card .card__img { margin-bottom: 16px; }
.mini-grid h4 { font-size: clamp(20px, 2vw, 26px); margin: 0; }
@media (max-width: 640px) { .film__poster img { aspect-ratio: 4 / 3; } .mini-grid { grid-template-columns: 1fr 1fr 1fr; gap: 10px; } .mini-grid h4 { font-size: 16px; } .mini-grid .eyebrow { display: none; } .mini-grid .video-card__play { width: 40px; height: 40px; margin: -20px 0 0 -20px; } }
@media (max-width: 1000px) { .cards.cards--4 { grid-template-columns: 1fr 1fr; gap: 40px 20px; } }
.card p { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; gap: 56px; }
  .card__img img { aspect-ratio: 4 / 3; }
}

.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { margin: 0; }
@media (max-width: 640px) { .section-head { flex-direction: column; align-items: start; } }

/* ---------- Full-bleed image band ---------- */

.band { position: relative; height: 86vh; min-height: 480px; overflow: hidden; color: var(--white); display: grid; place-items: center; text-align: center; }
.band img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.band--top img { object-position: 50% 12%; }
.band::after { content: ""; position: absolute; inset: 0; background: rgba(30, 32, 28, 0.28); }
.band__text { position: relative; z-index: 2; padding: 0 var(--gutter); max-width: 960px; }
.band__text .lead { font-size: clamp(30px, 4.2vw, 58px); line-height: 1.2; margin-bottom: 30px; }
.band__text .eyebrow { color: var(--white); }

/* ---------- Photo strip ---------- */

.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.strip a { overflow: hidden; }
.strip img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 1.2s var(--ease), opacity 0.4s; }
.strip a:hover img { transform: scale(1.06); }
@media (max-width: 760px) { .strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Feature rows (celebrations / experiences) ---------- */

.feature { padding: clamp(50px, 7vw, 90px) 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature .split__text h3 { font-size: clamp(32px, 3.6vw, 48px); margin-bottom: 22px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.tags li { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; padding: 7px 14px; border: 1px solid var(--line); color: var(--muted); }

.list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.list-grid > div { padding: 40px 32px 40px 0; border-bottom: 1px solid var(--line); }
.list-grid h4 { font-size: 26px; margin-bottom: 10px; }
.list-grid p { color: var(--muted); font-size: 16px; margin: 0; }
.section--teal .list-grid, .section--teal .list-grid > div { border-color: rgba(246, 241, 232, 0.18); }
.section--teal .list-grid p { color: rgba(246, 241, 232, 0.72); }
@media (max-width: 860px) { .list-grid { grid-template-columns: 1fr; } .list-grid > div { padding-right: 0; } }

/* ---------- Gallery ---------- */

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 30px; margin-bottom: 56px; }
.filters button {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; padding: 8px 0;
  color: var(--muted); border-bottom: 1px solid transparent; transition: color 0.3s, border-color 0.3s;
}
.filters button:hover { color: var(--ink); }
.filters button.is-active { color: var(--ink); border-color: var(--ink); }

.masonry { columns: 3 320px; column-gap: 14px; }
.masonry figure { margin: 0 0 14px; break-inside: avoid; overflow: hidden; cursor: zoom-in; background: var(--sand); }
.masonry figure[hidden] { display: none; }
.masonry img { width: 100%; transition: transform 1.2s var(--ease); }
.masonry figure:hover img { transform: scale(1.04); }

.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(26, 26, 23, 0.96);
  display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; object-fit: contain; }
.lightbox button { position: absolute; color: var(--ivory); width: 56px; height: 56px; font-size: 26px; font-weight: 200; opacity: 0.75; transition: opacity 0.2s; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 14px; right: 14px; font-size: 34px !important; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(246, 241, 232, 0.6); font-size: 12px; letter-spacing: 0.2em; }

/* Video modal */
.modal { position: fixed; inset: 0; z-index: 300; background: rgba(26, 26, 23, 0.94); display: grid; place-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__frame { width: min(1100px, 100%); aspect-ratio: 16 / 9; background: #000; }
.modal__frame.is-vertical { width: auto; height: min(86vh, 860px); aspect-ratio: 9 / 16; }
.modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal__close { position: absolute; top: 14px; right: 18px; color: var(--ivory); font-size: 34px; font-weight: 200; width: 56px; height: 56px; }

/* ---------- Getting here ---------- */

.map { width: 100%; aspect-ratio: 16 / 8; border: 0; filter: grayscale(0.55) sepia(0.15) contrast(0.95); display: block; }
@media (max-width: 760px) { .map { aspect-ratio: 4 / 5; } }
.route { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.route__step { border-top: 1px solid var(--line); padding-top: 28px; }
.route__num { font-family: var(--serif); font-size: 18px; color: var(--ochre-deep); margin-bottom: 8px; display: block; }
.route h3 { font-size: 30px; }
.route p { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .route { grid-template-columns: 1fr; } }

.info-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: center; }
.info-row h4 { font-family: var(--sans); font-size: 12px; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.info-row p { font-family: var(--serif); font-size: 26px; margin: 0; line-height: 1.3; }
@media (max-width: 760px) { .info-row { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(48px, 8vw, 120px); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 40px 0 0; }
.contact-list li { padding: 22px 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list small { display: block; font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-list a, .contact-list span { font-family: var(--serif); font-size: 26px; line-height: 1.3; }
.contact-list a:hover { color: var(--teal); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 17px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--stone); border-radius: 0;
  padding: 10px 0; width: 100%;
  transition: border-color 0.3s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); }
.form__note { grid-column: 1 / -1; font-size: 14px; color: var(--muted); margin: 0; }
@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

/* ---------- CTA + footer ---------- */

.cta { text-align: center; }
.cta h2 { margin-bottom: 20px; }
.cta p { max-width: 560px; margin: 0 auto 38px; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.footer { background: var(--ink); color: rgba(246, 241, 232, 0.72); padding: 90px 0 36px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer .brand { color: var(--ivory); margin-bottom: 26px; }
.footer h4 { font-family: var(--sans); font-size: 11.5px; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ivory); margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a:hover { color: var(--ivory); }
.footer__logo { width: 64px; margin-top: 24px; opacity: 0.9; border-radius: 4px; }
.footer__follow { margin-top: 32px; }
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social__btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(246, 241, 232, 0.28); border-radius: 50%; color: var(--ivory); transition: background 0.25s, color 0.25s, border-color 0.25s; }
.social__btn svg { width: 18px; height: 18px; fill: currentColor; }
.social__btn svg[fill="none"] { fill: none; }
.footer .social__btn:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 70px; padding-top: 26px; border-top: 1px solid rgba(246, 241, 232, 0.12); font-size: 13px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--teal); color: var(--white); display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s var(--ease), background 0.3s;
}
.wa-float:hover { transform: translateY(-3px); background: var(--teal-deep); }
.wa-float svg { width: 26px; height: 26px; fill: currentColor; }

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

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

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