/* A coastal editorial system: dark arrival, sunlit exploration, quiet details. */
.coastal-design { --forest:#884832; --deep:#24211d; --moss:#77664e; --gold:#c6a06e; --gold-ink:#884832; }
.coastal-design .site-header { z-index:30; padding-block:23px; }
.coastal-design .site-header.is-sticky,.coastal-design .solid-header { background:rgba(36,33,29,.97); }
.coastal-design .site-header .nav-book { border-color:#a7654b; border-radius:3px; background:#884832; color:#fff8ef; }
.coastal-design .nav a.active { color:#edc99c; }
.coastal-design .language-option.is-active { background:#e8dac6; color:#292621; }
.coastal-design .button { border-radius:3px; }
.coastal-design .button-gold { background:#884832; color:#fff8ef; }
.coastal-design .footer-luxe { background:#24211d; }
.coastal-design .footer-luxe::before { opacity:.2; }
.coastal-design .page-hero .page-title { background-image:linear-gradient(90deg,rgba(32,27,22,.8),rgba(32,27,22,.16)),var(--hero-image); }

.hero.coastal-hero { --pointer-x:0px; --pointer-y:0px; align-items:initial; display:block; isolation:isolate; overflow:hidden; min-height:760px; height:min(900px,100svh); padding:0; color:#fff8ee; background:#171715; animation:none; }
.coastal-hero-scenery { position:absolute; inset:0; z-index:-3; background:linear-gradient(180deg,#171715 0%,rgba(23,23,21,.91) 44%,rgba(23,23,21,.72) 76%,#252019 100%),url('assets/essaouira-coastline.jpg') center 58%/cover; transition:filter .9s ease,opacity .9s ease; opacity:.82; }
.coastal-hero-scenery::after { content:''; position:absolute; inset:0; background:radial-gradient(ellipse at 70% 70%,rgba(194,125,54,.27),transparent 55%); }
.coastal-hero-grain { pointer-events:none; position:absolute; inset:0; z-index:-2; background-image:radial-gradient(ellipse at 65% 80%,rgba(232,199,143,.18),transparent 45%); }
.coastal-hero-wordmark { position:absolute; top:15%; left:5%; width:90%; color:#c9aa7e; font:400 clamp(4rem,13.9vw,15rem)/.95 var(--serif); letter-spacing:-.035em; white-space:nowrap; text-align:center; z-index:-1; transform:translate(calc(var(--pointer-x) * -.35),0); transition:transform .5s ease; }
.coastal-hero-horse { position:absolute; width:min(69vw,1000px); aspect-ratio:3/2; right:1%; top:21%; transform:translate(var(--pointer-x),var(--pointer-y)); transition:transform .6s cubic-bezier(.16,1,.3,1),filter .9s ease; pointer-events:none; z-index:1; filter:drop-shadow(12px 28px 32px rgba(0,0,0,.5)); }
.coastal-hero-horse img { display:block; width:100%; height:100%; object-fit:contain; }
.coastal-hero-horse canvas { position:absolute; inset:0; display:block; width:100%; height:100%; pointer-events:none; }
.coastal-hero[data-horse-renderer="webgl"] .coastal-hero-horse img { visibility:hidden; }
/* Keep a lightweight idle when graphics are unavailable. The native image is
   also the initial and reduced-motion view, so the horse never disappears. */
.coastal-hero[data-horse-renderer="fallback"] .coastal-hero-horse img {
  transform-origin:56% 91%;
  animation:horse-fallback-breath 4.8s ease-in-out infinite;
  animation-play-state:paused;
}
.coastal-hero[data-horse-renderer="fallback"][data-horse-running="true"] .coastal-hero-horse img { animation-play-state:running; }
@keyframes horse-fallback-breath {
  0%,100% { transform:scale(1,1); }
  50% { transform:scale(1.003,1.012); }
}
.coastal-hero[data-atmosphere="daylight"] .coastal-hero-scenery { opacity:1; filter:brightness(1.8) saturate(.5); }
.coastal-hero[data-atmosphere="daylight"] .coastal-hero-horse { filter:brightness(1.13) saturate(.72) drop-shadow(12px 28px 32px rgba(0,0,0,.5)); }
.coastal-hero[data-atmosphere="daylight"] .coastal-hero-wordmark { color:#ded2bb; }
.coastal-hero .hero-content { position:absolute; z-index:3; left:6%; bottom:17%; width:33%; max-width:430px; animation:none; }
.coastal-hero .eyebrow { color:#edc99c; font-size:.6rem; letter-spacing:.2em; max-width:310px; }
.coastal-hero h1 { font-size:clamp(2.8rem,4vw,4.8rem); line-height:1.05; letter-spacing:-.045em; margin:0 0 20px; text-wrap:balance; }
.coastal-hero h1 em { font-style:normal; font-weight:500; }
.coastal-hero .hero-copy { font-size:.91rem; line-height:1.7; max-width:280px; color:#e3dbcf; }
.coastal-hero .hero-actions { gap:20px; align-items:flex-start; flex-direction:column; margin-top:25px; }
.coastal-hero .hero-actions .button { padding:16px 24px; background:#884832; color:#fff8ee; border:1px solid #af7457; min-height:48px; font-size:.65rem; }
.coastal-hero .text-link { font-size:.62rem; color:#eee0ca; }
.coastal-hero .text-link span { font-size:inherit; margin:0; }
.coastal-hero-bottom { position:absolute; bottom:28px; left:6%; right:6%; display:flex; align-items:center; justify-content:space-between; z-index:4; padding-top:20px; border-top:1px solid rgba(236,212,179,.2); }
.coastal-discover { display:flex; align-items:center; gap:14px; color:#e6d7c1; text-decoration:none; font-size:.59rem; letter-spacing:.18em; text-transform:uppercase; }
.coastal-discover>span:first-child { display:grid; place-items:center; border:1px solid #746350; width:36px; height:36px; border-radius:50%; font-size:1rem; }
.coastal-hero-controls { display:flex; gap:12px; align-items:center; }
.coastal-light-switch { display:flex; border:1px solid #766c5c; border-radius:40px; padding:3px; background:#26231ff0; }
.coastal-light-switch button { font:500 .69rem var(--sans); color:#e0d5c5; cursor:pointer; min-height:44px; background:transparent; border:0; border-radius:30px; padding:9px 16px; }
.coastal-light-switch button[aria-pressed="true"] { color:#292621; background:#e8dac6; }
.coastal-hero :focus-visible { outline:2px solid #f2c48c; outline-offset:5px; }
.coastal-home .experience-section { padding:75px 6% 85px; background:#faf6ef; }
.coastal-home .experience-section .section-heading { margin-bottom:32px; }
.coastal-home .experience-section .section-heading h2 { max-width:600px; font-size:clamp(2.2rem,3.7vw,3.8rem); }
.coastal-home .experience-section .section-heading>p { max-width:350px; font-size:.87rem; }
.coastal-home .ride-grid { gap:24px; }
.coastal-home .ride-card { min-height:420px; border-radius:5px; box-shadow:none; }
.coastal-home .ride-card .card-content { padding:28px; }
.coastal-home .card-content h3 { font-size:clamp(1.8rem,2.6vw,2.7rem); }
.coastal-home .card-content .card-link { font-size:.61rem; }
.coastal-home .intro { padding-top:95px; padding-bottom:95px; }
.coastal-home .why-us { border-top:1px solid #e1d5c5; }
.coastal-home .sunset-banner { background-image:linear-gradient(90deg,rgba(45,31,24,.88),rgba(45,31,24,.39)),url('assets/sidi-kaouki-sunset-ride.jpg'); }
.coastal-home .choose-ride { background:#eee2d2; }
.coastal-home .visual-gallery { background:#ecd9cc; }

/* A single scene, not separate slides: settle the horse, then reveal the story. */
.hero-journey { --horse-travel:0px; --intro-reveal:0; background:#171715; }
.hero-journey:not([data-journey-state="fallback"]) :is(.hero-content,.coastal-hero-bottom,.coastal-hero-wordmark) { visibility:hidden; opacity:0; }
.hero-journey[data-journey-enabled="true"] { height:280svh; position:relative; }
.hero-journey[data-journey-enabled="true"] .hero.coastal-hero { position:sticky; top:0; height:100svh; min-height:740px; margin:0; }
.hero-journey[data-journey-enabled="true"] .coastal-hero-horse { transform:translate3d(calc(var(--horse-travel) + var(--pointer-x)),var(--pointer-y),0); transition:filter .9s ease; will-change:transform; }
.hero-journey[data-journey-state="pending"] .coastal-hero-horse { transform:translateX(-35vw); }
.hero-journey:is([data-journey-state="revealing"],[data-journey-state="complete"]) :is(.hero-content,.coastal-hero-bottom,.coastal-hero-wordmark) { visibility:visible; opacity:var(--intro-reveal); }
.hero-journey[data-journey-enabled="true"] .hero-content { transform:translate3d(0,calc((1 - var(--intro-reveal)) * 18px),0); }
.hero-journey[data-journey-enabled="true"] :is(.hero-content,.coastal-hero-bottom) { transition:none!important; }
.hero-journey-skip { position:absolute; bottom:30px; left:calc(50% - 23px); width:46px; height:46px; display:grid; place-items:center; z-index:5; border:1px solid #c9aa7e80; border-radius:50%; color:#edc99c; background:#24211d80; text-decoration:none; font-size:1.2rem; transition:opacity .3s; }
.hero-journey:is([data-journey-state="complete"],[data-journey-state="fallback"]) .hero-journey-skip { opacity:0; visibility:hidden; pointer-events:none; }

@media(min-width:1700px){.coastal-hero .hero-content{bottom:20%}.coastal-hero-horse{right:5%;top:15%}}
@media(max-width:1100px){
 .coastal-design .nav { background:#24211d; }
 .hero.coastal-hero { min-height:780px; height:90svh; }
 .coastal-hero-horse { width:86vw; right:-13%; top:25%; }
 .coastal-hero-wordmark { top:18%; }
 .coastal-hero .hero-content { bottom:20%; width:40%; }
 .coastal-hero h1 { font-size:3.1rem; }
 .coastal-home .experience-section .section-heading { gap:25px; }
 .coastal-home .ride-card .card-content { padding:22px; }
}
@media(max-width:700px){
 .hero.coastal-hero { height:auto; min-height:0; padding:465px 7% 175px; }
 .coastal-hero-wordmark { top:125px; left:5%; width:90%; font-size:14vw; }
 .coastal-hero-horse { top:170px; width:100%; right:0; height:310px; }
 .coastal-hero .hero-content { position:relative; left:auto; bottom:auto; width:100%; max-width:100%; }
 .coastal-hero h1 { font-size:clamp(2.45rem,9.5vw,3.8rem); }
 .coastal-hero h1 br { display:none; }
 .coastal-hero h1 em::before { content:' '; }
 .coastal-hero .hero-copy { max-width:340px; }
 .coastal-hero .eyebrow { font-size:.53rem; max-width:none; }
 .coastal-hero .hero-actions { gap:17px; }
 .coastal-hero-bottom { left:7%; right:7%; bottom:22px; align-items:flex-start; gap:13px; flex-direction:column-reverse; padding-top:15px; }
 .coastal-hero-controls { gap:8px; width:100%; flex-wrap:wrap; }
 .coastal-light-switch button { padding:8px 11px; font-size:.65rem; }
 .coastal-discover { font-size:.54rem; gap:10px; }
 .coastal-discover>span:first-child { width:28px; height:28px; }
 .coastal-home .experience-section { padding:62px 7%; }
 .coastal-home .experience-section .section-heading h2 { font-size:2.5rem; }
 .coastal-home .ride-grid { gap:18px; }
 .coastal-home .ride-card { min-height:410px; }
 .coastal-home .card-content h3 { font-size:2.35rem; }
 .hero-journey[data-journey-enabled="true"] { height:260svh; }
 .hero-journey[data-journey-enabled="true"] .hero.coastal-hero { padding:0; min-height:740px; }
 .hero-journey[data-journey-enabled="true"] .coastal-hero-horse { width:78%; height:auto; right:1%; top:12%; }
 .hero-journey[data-journey-enabled="true"] .coastal-hero-wordmark { top:10%; }
 .hero-journey[data-journey-enabled="true"] .hero-content { position:absolute; left:7%; bottom:auto; top:43%; width:86%; }
 .hero-journey[data-journey-enabled="true"] h1 { font-size:clamp(2.15rem,8.6vw,3.1rem); margin-bottom:14px; }
 .hero-journey[data-journey-enabled="true"] .eyebrow { margin-bottom:14px; }
 .hero-journey[data-journey-enabled="true"] .hero-copy { font-size:.85rem; line-height:1.55; margin-bottom:0; }
 .hero-journey[data-journey-enabled="true"] .hero-actions { margin-top:18px; gap:14px; }
 .hero-journey[data-journey-enabled="true"] .coastal-hero-bottom { bottom:18px; padding-top:12px; }
 .hero-journey[data-journey-enabled="true"] .coastal-discover { display:none; }
}
@media(prefers-reduced-motion:reduce){
 /* The owner requested an always-enabled, scroll-driven introduction. Avoid
    inherited visibility transitions; the direct scroll action owns its timing. */
 .hero-journey[data-journey-enabled="true"] :is(.hero-content,.coastal-hero-bottom) * { transition:none!important; }
 .coastal-hero[data-motion="playing"][data-horse-renderer="fallback"] .coastal-hero-horse img { animation-duration:4.8s!important; animation-iteration-count:infinite!important; }
}
