/* ==========================================================
   Ayour Surf School — Taghazout, Morocco
   Colours, fonts and spacing live in :root. Change them there.
   ========================================================== */

:root {
  --sand: #f6eadd;
  --sand-deep: #ecd8c3;
  --paper: #fffaf4;
  --ink: #17221f;
  --ink-soft: #4b5552;
  --teal: #1e5650;
  --teal-hover: #174640;
  --teal-deep: #10322d;
  --terra: #b4461d;
  --terra-soft: #f0c9ae;
  --wa: #25d366;
  --wa-dark: #128c4a;

  --font-display: "Bricolage Grotesque", "Arial Rounded MT Bold", sans-serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  --font-amazigh: "Noto Sans Tifinagh", sans-serif;

  --radius: 22px;
  --radius-sm: 12px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --shadow: 0 10px 30px -12px rgba(23, 34, 31, 0.22);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
section[id] { scroll-margin-top: 72px; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); letter-spacing: -0.01em; }

.accent { color: var(--terra); }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 60ch;
}

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin-bottom: 18px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--teal);
  color: var(--paper);
  font: 600 0.98rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.btn:hover { background: var(--teal-hover); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }

.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }

.btn--ghost { background: transparent; border-color: currentColor; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.btn--ghost-light { background: transparent; border-color: rgba(255, 250, 244, 0.7); color: var(--paper); }
.btn--ghost-light:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  border-bottom: 2px solid var(--terra-soft);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}
.text-link:hover { border-color: var(--terra); }
.text-link { position: relative; }
.text-link::after { content: ""; position: absolute; inset: -10px -6px; }
.text-link svg { width: 18px; height: 18px; flex: none; }

/* ---------- Navigation ---------- */

.site-header {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 50;
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 24px, var(--wrap));
  margin-inline: auto;
  padding: 8px 8px 8px 18px;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: 0 12px 34px -16px rgba(23, 34, 31, 0.35);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.logo-text { display: grid; line-height: 1; padding-block: 4px; }
.logo-name { font: 800 1.6rem/0.9 var(--font-display); letter-spacing: -0.03em; }
.logo-sub { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--terra); margin-top: 4px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.nav-links a:hover { background: var(--sand); }
.nav-links a[aria-current="page"] { color: var(--terra); }

.nav-cta { min-height: 46px; padding: 10px 18px; }

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--sand);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav { padding: 8px 8px 8px 14px; }
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    background: var(--paper);
    border-radius: 18px;
    box-shadow: 0 20px 40px -18px rgba(23, 34, 31, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.35s var(--ease-out), visibility 0.25s;
  }
  .nav-links a { padding: 14px 16px; font-size: 1.05rem; }
  .nav.is-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links .nav-links-cta { display: block; margin-top: 6px; }
  .nav-links .nav-links-cta .btn { display: flex; width: 100%; padding: 14px 16px; }
}
@media (min-width: 961px) {
  .nav-links .nav-links-cta { display: none; }
}

/* ---------- Home hero (three panels) ---------- */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  max-height: 1000px;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 6px;
  background: var(--ink);
  overflow: hidden;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  text-decoration: none;
  clip-path: inset(0 0 0 0);
  animation: panel-in 1.3s var(--ease-out) both;
}
.hero-panel:nth-child(2) { animation-delay: 0.12s; }
.hero-panel:nth-child(3) { animation-delay: 0.24s; }

.hero-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: settle 2.2s var(--ease-out) both;
  transition: transform 0.9s var(--ease-out);
}
.hero-panel:nth-child(2) img { animation-delay: 0.12s; }
.hero-panel:nth-child(3) img { animation-delay: 0.24s; }
.hero-panel:hover img { transform: scale(1.04); }

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 29, 26, 0.45) 0%, rgba(16, 29, 26, 0) 28%, rgba(16, 29, 26, 0) 45%, rgba(16, 29, 26, 0.78) 100%);
  pointer-events: none;
}

.hero-panel-label {
  position: absolute;
  z-index: 2;
  top: 104px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.94);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
}
.hero-panel-label small { font-weight: 600; color: var(--terra); font-size: 0.8rem; }

.hero-copy {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: clamp(36px, 7vh, 72px);
  pointer-events: none;
}
.hero-copy .wrap > * { pointer-events: auto; }
.hero-copy h1 {
  color: var(--paper);
  max-width: 12ch;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
  animation: rise 1s 0.35s var(--ease-out) both;
}
.hero-copy p {
  color: var(--paper);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  font-weight: 500;
  max-width: 44ch;
  margin: 18px 0 28px;
  animation: rise 1s 0.5s var(--ease-out) both;
}
.hero-copy .btn-row { animation: rise 1s 0.62s var(--ease-out) both; }

@keyframes panel-in { from { clip-path: inset(100% 0 0 0); } }
@keyframes settle { from { transform: scale(1.18); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; height: 92vh; height: 92svh; min-height: 560px; }
  .hero-panel:nth-child(n + 2) { display: none; }
  .hero-panel { pointer-events: none; }
  .hero-panel img { object-position: 50% 30%; }
  .hero-panel-label { display: none; }
  .hero-copy h1 { max-width: 11ch; }
  .hero-copy .btn { flex: 1 1 auto; }
}

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

.page-hero {
  position: relative;
  min-height: 72vh;
  min-height: 72svh;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 clamp(40px, 7vh, 72px);
  color: var(--paper);
  background: var(--ink);
  overflow: hidden;
}
.page-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: settle 2.2s var(--ease-out) both;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 29, 26, 0.5) 0%, rgba(16, 29, 26, 0.05) 35%, rgba(16, 29, 26, 0.75) 100%);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { max-width: 13ch; animation: rise 1s 0.2s var(--ease-out) both; }
.page-hero p {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  font-weight: 500;
  max-width: 46ch;
  margin: 16px 0 26px;
  animation: rise 1s 0.32s var(--ease-out) both;
}
.page-hero .btn-row { animation: rise 1s 0.44s var(--ease-out) both; }
@media (max-width: 760px) { .page-hero .btn { flex: 1 1 auto; } }

.breadcrumb {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  font-weight: 600;
}
.breadcrumb a { text-decoration: none; opacity: 0.85; padding-block: 12px; }
.breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: 0.6; }

/* ---------- Amazigh strip ---------- */

.strip {
  background: var(--terra);
  color: var(--paper);
  overflow: hidden;
  padding: 14px 0;
  white-space: nowrap;
}
.strip-track {
  display: inline-flex;
  animation: strip 38s linear infinite;
}
.strip-group { display: inline-flex; align-items: center; }
.strip-item {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.strip-item .tz { font-family: var(--font-amazigh); letter-spacing: 0.08em; font-size: 1.05rem; }
.strip-item svg { width: 14px; height: 14px; flex: none; }

@keyframes strip { to { transform: translateX(-50%); } }

/* ---------- Welcome / split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.split--reverse > :first-child { order: 2; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}

.split h2 { margin-bottom: 22px; }
.split .lead { margin-bottom: 1em; }
.split .btn-row, .split .text-link { margin-top: 28px; }

.photo-pair {
  position: relative;
  padding: 0 0 12% 18%;
}
.photo-pair img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.photo-pair img + img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48%;
  aspect-ratio: 1;
  border: 6px solid var(--sand);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}

.photo-single img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

.moon-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--sand-deep);
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.moon-note .tz { font-family: var(--font-amazigh); color: var(--terra); font-size: 1.5rem; line-height: 1; }

/* ---------- Activity cards ---------- */

.activities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) {
  .activities {
    grid-template-columns: repeat(3, minmax(260px, 78vw));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 16px;
    scrollbar-width: none;
  }
  .activities::-webkit-scrollbar { display: none; }
  .activity { scroll-snap-align: center; }
}

.activity {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 3 / 4;
  padding: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--paper);
  text-decoration: none;
  background: var(--ink);
  isolation: isolate;
}
.activity img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.activity::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(16, 29, 26, 0) 35%, rgba(16, 29, 26, 0.86) 100%);
}
.activity:hover img { transform: scale(1.06); }
.activity h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.activity-meta { margin: 8px 0 18px; font-weight: 500; opacity: 0.92; }
.activity-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 250, 244, 0.3);
}
.activity-price { font: 800 1.5rem/1 var(--font-display); }
.activity-price small { display: block; font: 600 0.72rem/1.4 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
.activity-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  transition: transform 0.3s var(--ease-out);
}
.activity:hover .activity-arrow { transform: translateX(4px); }
.activity-arrow svg { width: 18px; height: 18px; }

/* ---------- Included list ---------- */

.included {
  background: var(--paper);
  border-radius: calc(var(--radius) + 10px);
  padding: clamp(32px, 6vw, 72px);
}
.included-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.included-list li { display: flex; align-items: center; gap: 16px; font-weight: 600; line-height: 1.35; }
.included-list svg { width: 46px; height: 46px; flex: none; color: var(--terra); }
@media (max-width: 860px) { .included-list { grid-template-columns: repeat(2, 1fr); gap: 26px; } }
@media (max-width: 520px) { .included-list { grid-template-columns: 1fr; } }

/* ---------- Price board ---------- */

.price-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .price-board { grid-template-columns: 1fr; } }

.price {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--sand-deep);
}
.price--dark { background: var(--teal-deep); border-color: var(--teal-deep); color: var(--paper); }
.price h3 { margin-bottom: 6px; }
.price-who { color: var(--ink-soft); font-weight: 500; }
.price--dark .price-who { color: #cfe0dc; }
.price-amount {
  margin: 26px 0 4px;
  font: 800 clamp(2.8rem, 5vw, 3.6rem)/1 var(--font-display);
  letter-spacing: -0.03em;
}
.price-unit { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 22px; }
.price--dark .price-unit { color: #cfe0dc; }
.price p { flex: 1; }
.price .btn { margin-top: 22px; width: 100%; }
.price--dark .btn { background: var(--paper); color: var(--ink); }
.price--dark .btn:hover { background: #fff; }

.extras {
  margin-top: 26px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--sand-deep);
  overflow: hidden;
}
.extras-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 30px;
}
.extras-row + .extras-row { border-top: 1px solid var(--sand-deep); }
.extras-row--head {
  background: var(--sand-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.extras-row strong { font-weight: 700; }
.extras-row .muted { color: var(--ink-soft); }
@media (max-width: 640px) {
  .extras-row { grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 20px; }
  .extras-row--head { display: none; }
  .extras-row .muted { grid-column: 1 / -1; font-size: 0.9rem; }
}

.price-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  align-items: center;
  gap: 8px 32px;
  padding: 28px clamp(24px, 4vw, 44px);
  border-radius: var(--radius);
  background: var(--teal-deep);
  color: var(--paper);
}
.price-strip div { display: grid; gap: 2px; }
.price-strip span { font-size: 0.9rem; color: #cfe0dc; font-weight: 500; }
.price-strip strong { font: 800 2rem/1.1 var(--font-display); }
.price-strip strong small { font: 600 0.8rem var(--font-body); color: #cfe0dc; margin-left: 4px; }
@media (max-width: 860px) {
  .price-strip { grid-template-columns: 1fr 1fr 1fr; }
  .price-strip .btn { grid-column: 1 / -1; margin-top: 14px; }
}
@media (max-width: 520px) {
  .price-strip { grid-template-columns: 1fr; gap: 16px; }
  .price-strip div { grid-template-columns: 1fr auto; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 250, 244, 0.16); }
  .price-strip .btn { margin-top: 0; }
}

/* ---------- Facts row ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--paper);
  border-bottom: 1px solid var(--sand-deep);
}
.fact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 26px 18px;
  font-weight: 600;
  text-align: left;
}
.fact + .fact { border-left: 1px solid var(--sand-deep); }
.fact svg { width: 36px; height: 36px; color: var(--terra); flex: none; }
@media (max-width: 700px) {
  .facts { grid-template-columns: 1fr; }
  .fact { justify-content: flex-start; padding: 16px var(--gutter); }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--sand-deep); }
}

/* ---------- Steps (how a lesson goes) ---------- */

.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}
.step img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.step div { padding: 26px 28px 30px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); }

/* ---------- Checklist ---------- */

.checklist {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checklist svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--teal); }

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

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 19vw, 250px);
  grid-auto-flow: dense;
  gap: 12px;
}
.gallery figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--sand-deep); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
@media (max-width: 700px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 44vw; gap: 8px; }
  .gallery .wide { grid-column: span 2; }
}

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

.faq { display: grid; gap: 10px; max-width: 820px; margin-inline: auto; }
.faq details {
  background: var(--paper);
  border-radius: var(--radius-sm);
  border: 1px solid var(--sand-deep);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--terra);
  border-bottom: 2px solid var(--terra);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq details p { padding: 0 24px 22px; color: var(--ink-soft); margin: 0; }

/* ---------- Highlights (Paradise Valley) ---------- */

.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 2px solid var(--ink);
}
.highlight { padding: 28px 28px 8px 0; }
.highlight + .highlight { padding-left: 28px; border-left: 1px solid var(--sand-deep); }
.highlight svg { width: 44px; height: 44px; color: var(--terra); margin-bottom: 16px; }
.highlight h3 { margin-bottom: 8px; }
.highlight p { color: var(--ink-soft); }
@media (max-width: 800px) {
  .highlights { grid-template-columns: 1fr; }
  .highlight, .highlight + .highlight { padding: 24px 0; border-left: 0; }
  .highlight + .highlight { border-top: 1px solid var(--sand-deep); }
}

.note-card {
  padding: clamp(26px, 4vw, 40px);
  border-radius: var(--radius);
  background: var(--paper);
}
.note-card h3 { margin-bottom: 18px; }

/* ---------- CTA band ---------- */

.cta {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  border-radius: calc(var(--radius) + 10px);
  overflow: hidden;
  background: var(--teal-deep);
  color: var(--paper);
}
.cta-copy { padding: clamp(36px, 6vw, 72px); align-self: center; }
.cta-copy h2 { margin-bottom: 18px; }
.cta-copy p { color: #d6e5e1; max-width: 42ch; margin-bottom: 30px; font-size: 1.08rem; }
.cta-phone { display: inline-block; margin-top: 10px; padding: 10px 0; font-weight: 600; color: #d6e5e1; text-decoration: none; }
.cta-phone:hover { color: var(--paper); text-decoration: underline; }
.cta img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
@media (max-width: 800px) {
  .cta { grid-template-columns: 1fr; }
  .cta img { order: -1; min-height: 0; aspect-ratio: 16 / 10; }
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-stack { display: grid; gap: 18px; }

.wa-card {
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius);
  background: var(--teal-deep);
  color: var(--paper);
}
.wa-card-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  margin-bottom: 22px;
}
.wa-card-icon svg { width: 32px; height: 32px; }
.wa-card h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 10px; }
.wa-card p { color: #d6e5e1; }
.wa-number {
  display: inline-block;
  margin: 10px 0 18px;
  padding-block: 8px;
  font: 800 clamp(1.6rem, 3.2vw, 2.1rem)/1.1 var(--font-display);
  color: var(--paper);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wa-card .btn { flex: 1 1 auto; white-space: nowrap; }
@media (max-width: 400px) { .wa-card .btn { flex-basis: 100%; padding-inline: 16px; } }

.info-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--paper);
}
.info-card h3 { margin-bottom: 10px; }
.info-card p { color: var(--ink-soft); }

.form-card {
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius);
  background: var(--paper);
}
.form-card h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 10px; }
.form-card > p { color: var(--ink-soft); margin-bottom: 28px; }

.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.field label { font-weight: 600; font-size: 0.92rem; }
.field label .opt { font-weight: 500; color: var(--ink-soft); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1.5px solid #d9c6b2;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font: 500 1rem/1.4 var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input[type="date"] { -webkit-appearance: none; appearance: none; display: block; min-width: 0; text-align: left; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4461d' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(30, 86, 80, 0.15);
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: var(--terra); }
.field-error { color: var(--terra); font-size: 0.88rem; font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }
.form-hint { margin-top: 14px; font-size: 0.88rem; color: var(--ink-soft); }
.form-card .btn { width: 100%; background: var(--wa-dark); }
.form-card .btn:hover { background: #0e7a40; }

.map {
  margin-top: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand-deep);
}
.map iframe { display: block; width: 100%; height: 380px; border: 0; }

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

.site-footer {
  margin-top: 0;
  background: var(--teal-deep);
  color: #d6e5e1;
}
.site-footer::before {
  content: "";
  display: block;
  height: 18px;
  background-color: var(--terra);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='18' viewBox='0 0 36 18'%3E%3Cpath d='M18 2 25 9 18 16 11 9Z' fill='none' stroke='%23fffaf4' stroke-width='1.6'/%3E%3Ccircle cx='18' cy='9' r='1.6' fill='%23fffaf4'/%3E%3Cpath d='M0 9 4 5M0 9 4 13M36 9 32 5M36 9 32 13' stroke='%23fffaf4' stroke-width='1.6'/%3E%3C/svg%3E");
  background-size: 36px 18px;
  background-repeat: repeat-x;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 40px;
  padding-block: clamp(48px, 7vw, 80px);
}
@media (max-width: 800px) { .footer-main { grid-template-columns: 1fr; gap: 34px; } }
.site-footer .logo { color: var(--paper); }
.site-footer .logo-sub { color: var(--terra-soft); }
.footer-about { max-width: 36ch; margin-top: 18px; }
.site-footer h2 {
  font: 700 0.8rem/1 var(--font-body);
  margin-top: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra-soft);
  margin-bottom: 18px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.footer-links li { min-height: 44px; display: flex; align-items: center; }
.footer-links a { display: block; padding-block: 11px; text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--paper); text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-block: 22px 96px;
  border-top: 1px solid rgba(214, 229, 225, 0.16);
  font-size: 0.85rem;
}
@media (min-width: 701px) { .footer-bottom { padding-bottom: 26px; } }

/* ---------- Floating WhatsApp ---------- */

.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.wa-float-label {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px -10px rgba(23, 34, 31, 0.45);
  transition: transform 0.3s var(--ease-out);
}
.wa-float-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 10px 26px -8px rgba(18, 140, 74, 0.7);
  transition: transform 0.3s var(--ease-out);
}
.wa-float-icon svg { width: 32px; height: 32px; }
.wa-float-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wa);
  animation: ping 1.6s 2.5s var(--ease-out) 2 both;
  opacity: 0;
}
.wa-float:hover .wa-float-icon { transform: scale(1.08); }
.wa-float:hover .wa-float-label { transform: translateX(-4px); }
@keyframes ping { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
@media (max-width: 700px) {
  .wa-float-label { display: none; }
  .wa-float-icon { width: 58px; height: 58px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
  .strip-track { animation: none; }
}

/* ---------- Small additions ---------- */

.page-hero--short { min-height: 56vh; min-height: 56svh; }
.page-hero--short::after { background: linear-gradient(180deg, rgba(16, 29, 26, 0.55) 0%, rgba(16, 29, 26, 0.35) 40%, rgba(16, 29, 26, 0.82) 100%); }
.checklist a { padding-block: 10px; margin-block: -10px; font-weight: 600; color: var(--teal); text-decoration-color: var(--terra-soft); text-underline-offset: 3px; }
.checklist a:hover { text-decoration-color: var(--terra); }
.form-hint a { padding-block: 10px; color: var(--teal); font-weight: 600; }

/* ---------- Very small phones (320–360px) ---------- */

@media (max-width: 360px) {
  .form-card, .wa-card, .info-card, .note-card, .price, .included, .cta-copy { padding: 22px; }
  .btn { padding-inline: 18px; }
}
