/* ============================================================
   hyle surfhouse — anza, agadir
   sun-faded coastal palette drawn from the house's own photos:
   cream walls, warm wood, terracotta rugs, teal Atlantic, gold hour
   ============================================================ */

:root {
  --paper: #f7f2e7;
  --paper-2: #efe7d4;
  --card: #fffdf6;
  --ink: #26333a;
  --ink-soft: #5c6a70;
  --ocean: #2f6d7a;
  --ocean-deep: #15383f;
  --clay: #bb5e38;
  --clay-dark: #9d4c2c;
  --gold: #d99e52;
  --line: #ddd1b8;
  --shadow: 0 18px 40px -18px rgba(38, 51, 58, .28);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --radius: 10px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--ocean); text-underline-offset: 3px; }
a:hover { color: var(--clay); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 560; line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap--narrow { max-width: 860px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: var(--paper); }

/* ---------- eyebrow / kicker ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: .65rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--clay);
}
.kicker::before { content: ""; width: 2.2rem; height: 2px; background: var(--clay); border-radius: 2px; }
.kicker--bare::before { display: none; }
.kicker--light { color: var(--gold); }
.kicker--light::before { background: var(--gold); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 242, 231, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__in {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 72px;
}
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1; }
.brand:hover { color: var(--ink); }
.brand__word { font-family: var(--font-display); font-weight: 640; font-size: 1.85rem; letter-spacing: -.02em; }
.brand__word::after { content: "."; color: var(--clay); }
.brand__sub { font-size: .66rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); margin-top: .22rem; }

.nav { display: flex; align-items: center; gap: clamp(.9rem, 1.8vw, 1.6rem); }
.nav a { text-decoration: none; font-weight: 700; font-size: .95rem; color: var(--ink); padding: .25rem 0; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.nav a:hover { color: var(--clay); }
.nav a[aria-current="page"] { border-bottom-color: var(--clay); color: var(--clay); }

.lang-switch {
  font-size: .8rem !important; font-weight: 700 !important; letter-spacing: .08em;
  border: 1.5px solid var(--line) !important; border-radius: 999px;
  padding: .32rem .8rem !important; color: var(--ink-soft) !important;
}
.lang-switch:hover { border-color: var(--ocean) !important; color: var(--ocean) !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.6rem; min-height: 48px;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 800; font-size: 1rem; text-decoration: none;
  cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--clay); color: #fff; box-shadow: 0 10px 24px -12px rgba(187, 94, 56, .7); }
.btn--primary:hover { background: var(--clay-dark); color: #fff; }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { color: var(--clay); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--clay); }
.btn--whatsapp { background: #1f7a52; color: #fff; }
.btn--whatsapp:hover { background: #17603f; color: #fff; }
.btn--small { padding: .55rem 1.1rem; font-size: .9rem; min-height: 42px; }
.nav .btn { min-height: 42px; padding: .5rem 1.25rem; font-size: .92rem; }

.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; align-items: end; min-height: min(92svh, 860px); color: #fff; isolation: isolate; }
.hero--short { min-height: min(62svh, 560px); }
.hero__img { position: absolute; inset: 0; z-index: -2; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(21, 44, 50, .82) 0%, rgba(21, 44, 50, .32) 45%, rgba(21, 44, 50, .12) 70%, rgba(21, 44, 50, .25) 100%);
}
.hero__in { width: 100%; padding-top: 7rem; padding-bottom: clamp(2.5rem, 7vh, 5rem); }
.hero h1 { max-width: 17ch; margin: 1rem 0 1.2rem; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero p.lede { max-width: 52ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.92); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero__fact {
  margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem;
  font-size: .85rem; font-weight: 700; letter-spacing: .06em; color: rgba(255,255,255,.85);
}
.hero__fact span { display: inline-flex; align-items: center; gap: .5rem; }
.hero__fact span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* ---------- ratings strip ---------- */
.ratings { background: var(--ocean-deep); color: #e9efe6; }
.ratings__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .8rem 3rem; padding: 1.3rem 0; text-align: center; }
.ratings b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--gold); }
.ratings small { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(233,239,230,.75); }
.ratings__note { flex-basis: 100%; font-size: .74rem; color: rgba(233,239,230,.55); margin-top: -.4rem; padding-bottom: .2rem; }

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--ocean-deep); color: #ecf2ea; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head h2 { margin: .9rem 0 .9rem; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
.section--dark .section-head p { color: rgba(236,242,234,.8); }

/* editorial split rows (index story + feature pages) */
.story { display: grid; gap: clamp(2rem, 4vw, 4.5rem); grid-template-columns: repeat(12, 1fr); align-items: center; padding: clamp(2.2rem, 5vw, 4rem) 0; }
.story + .story { border-top: 1px solid var(--line); }
.story__media { grid-column: 1 / 8; position: relative; }
.story__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }
.story__body { grid-column: 8 / 13; }
.story--flip .story__media { grid-column: 6 / 13; order: 2; }
.story--flip .story__body { grid-column: 1 / 6; order: 1; }
.story__num {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: .95rem; color: var(--clay); letter-spacing: .12em;
}
.story h2, .story h3 { margin: .5rem 0 1rem; }
.story p { color: var(--ink-soft); }
.story .more { display: inline-block; margin-top: 1.1rem; font-weight: 800; text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; color: var(--ink); }
.story .more:hover { color: var(--clay); border-color: var(--clay); }

.caption { font-size: .8rem; color: var(--ink-soft); letter-spacing: .04em; margin-top: .6rem; font-style: italic; }
.section--dark .caption { color: rgba(236,242,234,.6); }

/* ---------- quotes ---------- */
.quote {
  font-family: var(--font-display); font-style: italic; font-weight: 420;
  font-size: clamp(1.25rem, 2.6vw, 1.8rem); line-height: 1.4; letter-spacing: -.005em;
}
.quote footer { font-family: var(--font-body); font-style: normal; font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); margin-top: 1rem; }
.section--dark .quote footer { color: var(--gold); }
.quote-band { display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.quote-band .quote { border-top: 2px solid var(--gold); padding-top: 1.4rem; }

.pull-quote { max-width: 820px; margin: clamp(2.5rem, 6vw, 4rem) auto; text-align: center; padding: 0 var(--gutter); }
.pull-quote .quote { font-size: clamp(1.5rem, 3.4vw, 2.3rem); }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: clamp(1.2rem, 2.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.card__body h3 { font-size: 1.35rem; }
.card__body p { color: var(--ink-soft); font-size: .98rem; }
.card__meta { display: flex; flex-wrap: wrap; gap: .45rem; }
.tag { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-soft); border-radius: 999px; padding: .28rem .7rem; }
.tag--clay { background: rgba(187,94,56,.1); border-color: rgba(187,94,56,.25); color: var(--clay-dark); }

/* fact list */
.facts { list-style: none; display: grid; gap: .65rem; }
.facts li { position: relative; padding-left: 1.5rem; color: var(--ink-soft); }
.facts li::before { content: "—"; position: absolute; left: 0; top: 0; color: var(--clay); font-weight: 700; }
.facts li b { color: var(--ink); }
.section--dark .facts li { color: rgba(236,242,234,.82); }
.section--dark .facts li b { color: #fff; }
.section--dark .facts li::before { color: var(--gold); }

/* photo mosaic */
.mosaic { display: grid; gap: .8rem; grid-template-columns: repeat(12, 1fr); }
.mosaic figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic__a { grid-column: span 7; aspect-ratio: 16/10; }
.mosaic__b { grid-column: span 5; aspect-ratio: 4/3.43; }
.mosaic__c { grid-column: span 4; aspect-ratio: 1/1.05; }
.mosaic__d { grid-column: span 4; aspect-ratio: 1/1.05; }
.mosaic__e { grid-column: span 4; aspect-ratio: 1/1.05; }

/* ---------- big CTA band ---------- */
.cta-band { position: relative; color: #fff; isolation: isolate; text-align: center; padding: clamp(4rem, 10vw, 7rem) 0; }
.cta-band__img { position: absolute; inset: 0; z-index: -2; }
.cta-band__img img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(21, 44, 50, .66); }
.cta-band h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); max-width: 22ch; margin: 1rem auto 1rem; }
.cta-band p { max-width: 52ch; margin: 0 auto; color: rgba(255,255,255,.88); }
.cta-band .hero__cta { justify-content: center; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .95rem; }
th, td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); }
th { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); background: var(--paper-2); }
tr:last-child td { border-bottom: none; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-bottom: .9rem; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; font-weight: 800; font-size: 1.02rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-display); font-size: 1.5rem; color: var(--clay); flex: none; transition: transform .25s; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item div { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }
.faq-item div p + p { margin-top: .6rem; }

/* ---------- forms ---------- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.4rem, 3.5vw, 2.5rem); box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
label.field { display: grid; gap: .4rem; font-weight: 800; font-size: .88rem; letter-spacing: .03em; }
label.field small { font-weight: 500; color: var(--ink-soft); letter-spacing: 0; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 8px; padding: .75rem .9rem; width: 100%; min-height: 48px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(47,109,122,.18); }
input.invalid, select.invalid { border-color: var(--clay); box-shadow: 0 0 0 3px rgba(187,94,56,.15); }
.form-error { color: var(--clay-dark); font-weight: 700; font-size: .9rem; display: none; }
.form-error.show { display: block; }
.form-success { display: none; background: rgba(31,122,82,.1); border: 1.5px solid rgba(31,122,82,.35); color: #15603f; border-radius: 10px; padding: 1rem 1.2rem; font-weight: 700; }
.form-success.show { display: block; }
fieldset { border: none; display: grid; gap: .5rem; }
fieldset legend { font-weight: 800; font-size: .88rem; margin-bottom: .45rem; }
.choice-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.choice-row label {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 999px; padding: .5rem 1rem; font-weight: 700; font-size: .92rem;
  background: var(--paper); transition: border-color .2s, background .2s;
}
.choice-row label:has(input:checked) { border-color: var(--ocean); background: rgba(47,109,122,.1); color: var(--ocean-deep); }
.choice-row input { width: auto; min-height: 0; accent-color: var(--ocean); }

/* ---------- footer ---------- */
.site-footer { background: var(--ocean-deep); color: rgba(236,242,234,.82); padding: clamp(3rem, 7vw, 4.5rem) 0 7rem; font-size: .95rem; }
.site-footer a { color: #e9efe6; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 2fr 1fr 1fr 1.4fr; }
.footer-grid h3 { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; font-family: var(--font-body); font-weight: 800; color: var(--gold); margin-bottom: 1rem; }
.footer-grid ul { list-style: none; display: grid; gap: .55rem; }
.footer-brand .brand__word { color: #fff; font-size: 2.1rem; }
.footer-brand p { margin-top: .9rem; max-width: 34ch; color: rgba(236,242,234,.66); }
.footer-bottom { border-top: 1px solid rgba(236,242,234,.15); margin-top: 3rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .8rem 2rem; justify-content: space-between; font-size: .8rem; color: rgba(236,242,234,.55); }

/* ---------- sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; align-items: stretch; gap: .6rem;
  padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(21, 44, 50, .97); box-shadow: 0 -8px 24px rgba(0,0,0,.25);
}
.sticky-cta a { flex: 1; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border-radius: 10px; text-decoration: none; font-weight: 800; font-size: .92rem; }
.sticky-cta__wa { background: #1f7a52; color: #fff; }
.sticky-cta__call { background: rgba(255,255,255,.12); color: #fff; }
.sticky-cta__book { background: var(--clay); color: #fff; }
.sticky-cta__close { flex: none !important; width: 34px; min-height: 0 !important; background: none; border: none; color: rgba(255,255,255,.6); font-size: 1.3rem; cursor: pointer; }
.sticky-cta.hidden { display: none !important; }

/* ---------- reveal on scroll (JS adds .reveal; no-JS stays visible) ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- map embed ---------- */
.map-frame { border: 0; width: 100%; height: 420px; border-radius: var(--radius); filter: saturate(.85); box-shadow: var(--shadow); }

/* ---------- book page layout ---------- */
.book-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
@media (max-width: 980px) { .book-grid { grid-template-columns: 1fr; } }

/* ---------- misc ---------- */
.lead-cols { columns: 2; column-gap: 3rem; }
.lead-cols p { break-inside: avoid; margin-bottom: 1rem; color: var(--ink-soft); }
.note { font-size: .85rem; color: var(--ink-soft); border-left: 3px solid var(--gold); padding: .4rem 0 .4rem 1rem; }
hr.wave { border: none; height: 1px; background: var(--line); margin: clamp(2rem, 5vw, 3.5rem) 0; }

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .story__media, .story--flip .story__media { grid-column: 1 / -1; order: 0; }
  .story__body, .story--flip .story__body { grid-column: 1 / -1; order: 1; }
  .lead-cols { columns: 1; }
  .mosaic__a { grid-column: span 12; }
  .mosaic__b { grid-column: span 12; aspect-ratio: 16/10; }
  .mosaic__c, .mosaic__d, .mosaic__e { grid-column: span 6; }
  .mosaic__e { display: none; }
}

@media (max-width: 820px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem 0 1.2rem; box-shadow: 0 24px 40px -20px rgba(0,0,0,.25);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .85rem var(--gutter); font-size: 1.1rem; border-bottom: none; }
  .nav a[aria-current="page"] { color: var(--clay); }
  .nav .btn { margin: .8rem var(--gutter) 0; }
  .nav .lang-switch { margin: .4rem var(--gutter) 0; text-align: center; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 48px; height: 48px; padding: 0 11px;
    background: none; border: none; cursor: pointer;
  }
  .nav-toggle span { height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .sticky-cta { display: flex; }
  body { padding-bottom: 0; }
  .site-footer { padding-bottom: 8.5rem; }
  .form-grid { grid-template-columns: 1fr; }
  .mosaic__c, .mosaic__d { aspect-ratio: 4/3; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero__in { padding-top: 5rem; }
  .ratings__in { gap: .8rem 1.6rem; }
  .ratings b { font-size: 1.25rem; }
}
