/* Elite Casablanca — petrol blue, cream, gold and coral; Playfair Display + DM Sans. */

:root {
  --ink: #102a31;
  --cream: #f4f0e8;
  --paper: #fbf9f4;
  --gold: #bd9360;
  --coral: #e17b5b;
  --muted: #657474;
  --line: rgba(16, 42, 49, .15);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
  --max: 1240px;
  --edge: max(32px, calc((100% - var(--max)) / 2)); /* left/right edge of .wrap, for absolutely placed parts */
}

* { box-sizing: border-box; }
html { background: var(--ink); }
html.smooth { scroll-behavior: smooth; } /* added by site.js after load */
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.wrap { width: min(var(--max), calc(100% - 64px)); margin: auto; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; color: var(--gold); }
.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -.035em; }

/* ---------- Hero: a sticky stage over a tall section; scrolling through it plays the film ---------- */

.hero { position: relative; height: calc(100vh + max(200vh, 1500px)); background: var(--ink); }
/* 100vh is the large viewport on phones, so the film still fills the screen when the browser bars retract */
.hero-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--ink) url('casablanca-film-start.webp?v=d98b8265a4') center / cover; }
.hero-stage::before { content: ''; position: absolute; z-index: 2; right: 7%; top: 23%; width: 118px; height: 172px; border: 1px solid rgba(241, 220, 188, .26); border-radius: 70px 70px 0 0; pointer-events: none; }
.hero-stage::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(4, 20, 25, .38), transparent 30%), linear-gradient(90deg, rgba(9, 28, 34, .67) 0%, rgba(9, 28, 34, .18) 70%, rgba(9, 28, 34, .08) 100%), linear-gradient(0deg, rgba(8, 25, 30, .52), transparent 62%); }
.hero-video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.js .hero-video { opacity: 0; transition: opacity .45s ease; }
.js .hero-stage.is-ready .hero-video { opacity: 1; }
/* Text and controls live in the small viewport, so the browser's bottom bar never covers them */
.hero-frame { position: absolute; top: 0; left: 0; right: 0; height: 100%; height: 100svh; }

.hero-top { position: absolute; top: 0; left: 0; right: 0; z-index: 4; }
.topline { background: var(--ink); color: #d9d8cc; text-align: center; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; padding: 10px 15px; }
.nav { color: white; }
.nav-inner { position: relative; height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, .26); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .76); border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 15px; }
.brand-name { display: block; font-family: var(--serif); font-size: 18px; letter-spacing: .02em; }
.brand-sub { display: block; font-size: 8px; letter-spacing: .2em; text-transform: uppercase; opacity: .74; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 12px; color: rgba(255, 255, 255, .9); }
.nav-links a { transition: opacity .2s; }
.nav-links a:hover { opacity: .65; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.lang { border: 0; background: none; color: white; font-size: 11px; letter-spacing: .1em; }
.nav-cta { padding: 12px 17px; border: 1px solid rgba(255, 255, 255, .7); font-size: 11px; letter-spacing: .05em; transition: all .2s; }
.nav-cta:hover { background: white; color: var(--ink); }
.menu-toggle { display: none; background: none; border: 0; color: white; font-size: 22px; }

.hero-content { position: absolute; z-index: 2; left: var(--edge); right: 32px; bottom: clamp(92px, 13vh, 150px); max-width: 870px; color: white; }
.hero-content h1 { font-size: clamp(57px, 8.2vw, 108px); line-height: .98; margin: 0 0 25px; }
.hero-kicker { display: flex; align-items: center; gap: 12px; color: #ead9be; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 23px; }
.hero-kicker::before { content: ''; width: 32px; height: 1px; background: var(--coral); }
.hero-copy { max-width: 490px; color: rgba(255, 255, 255, .84); font-size: 15px; line-height: 1.8; margin: 0 0 32px; }
.actions { display: flex; align-items: center; gap: 14px; }
.btn { min-height: 50px; padding: 0 23px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-size: 11px; font-weight: 700; letter-spacing: .07em; border: 1px solid transparent; transition: transform .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-light { background: var(--cream); color: var(--ink); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); }
.btn-dark { background: var(--ink); color: white; }
.hero-note { position: absolute; z-index: 2; right: var(--edge); bottom: 80px; max-width: 160px; border-left: 1px solid rgba(255, 255, 255, .62); padding: 4px 0 4px 18px; color: rgba(255, 255, 255, .8); font-size: 10px; line-height: 1.7; letter-spacing: .04em; }
.hero-note strong { display: block; color: white; font-family: var(--serif); font-size: 18px; font-weight: 500; letter-spacing: 0; }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .82); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }
.scroll-cue i { width: 25px; height: 25px; border: 1px solid rgba(255, 255, 255, .58); border-radius: 50%; display: grid; place-items: center; color: white; font-size: 15px; font-style: normal; animation: scrollBounce 1.7s ease-in-out infinite; }
.scroll-cue:hover { color: white; }
.scroll-cue:hover i { border-color: var(--coral); color: #f3c7a1; }
.story-progress { position: absolute; z-index: 3; right: var(--edge); bottom: 25px; display: flex; align-items: center; gap: 10px; color: white; font-size: 10px; letter-spacing: .13em; }
.video-progress-track { width: 105px; height: 2px; overflow: hidden; background: rgba(255, 255, 255, .4); }
.video-progress-track i { display: block; width: 100%; height: 100%; background: #efc49a; transform: scaleX(0); transform-origin: left center; }
.video-time { font-variant-numeric: tabular-nums; }
.hero-stage.is-failed .video-progress-track { display: none; } /* the film did not load: nothing to track */
@keyframes scrollBounce { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }

/* ---------- Sections ---------- */

.intro { padding: 106px 0 100px; }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: start; }
.intro h2 { font-size: clamp(39px, 5vw, 62px); line-height: 1.08; margin: 17px 0 0; }
.intro-right { padding-top: 48px; max-width: 490px; }
.intro-right p { color: var(--muted); font-size: 15px; line-height: 1.9; margin: 0 0 25px; }
.text-link { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; border-bottom: 1px solid var(--gold); padding-bottom: 8px; }
.text-link span { color: var(--coral); padding-left: 10px; }

.services { background: var(--cream); padding: 96px 0 104px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 42px; }
.section-head h2 { font-size: clamp(38px, 5vw, 57px); line-height: 1.1; margin: 14px 0 0; }
.section-head p { max-width: 330px; color: var(--muted); font-size: 13px; line-height: 1.8; margin: 0 0 4px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card { background: var(--paper); min-height: 335px; padding: 31px 29px 28px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; transition: transform .25s; }
.service-card:hover { transform: translateY(-5px); }
.service-card::after { content: attr(data-number); position: absolute; right: 12px; top: -16px; font-family: var(--serif); font-size: 114px; color: rgba(16, 42, 49, .045); line-height: 1; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.card-num { font-size: 10px; letter-spacing: .12em; color: var(--gold); }
.card-icon { width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--coral); }
.service-card h3 { position: relative; font: 500 29px/1.1 var(--serif); margin: 0 0 12px; }
.service-card p { position: relative; color: var(--muted); font-size: 12px; line-height: 1.8; max-width: 290px; margin: 0; }
.service-card .mini-link { position: relative; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; margin-top: 24px; font-weight: 700; }
.mini-link span { color: var(--coral); margin-left: 7px; }

.formats { padding: 103px 0 110px; background: var(--ink); color: var(--cream); }
.formats .section-head p { color: rgba(244, 240, 232, .64); }
.format-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 18px; }
.format-feature { min-height: 490px; position: relative; overflow: hidden; background: linear-gradient(0deg, rgba(8, 28, 33, .82), transparent 78%), url('casablanca-seminar.webp?v=53e41f6ae3') center / cover; }
.format-feature .format-copy { position: absolute; left: 34px; right: 34px; bottom: 33px; }
.format-tag { font-size: 9px; letter-spacing: .17em; text-transform: uppercase; color: #e9bd8c; }
.format-copy h3 { font: 500 38px/1.08 var(--serif); margin: 12px 0; }
.format-copy p { font-size: 12px; line-height: 1.8; color: rgba(255, 255, 255, .76); max-width: 460px; }
.format-stack { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; }
.format-small { position: relative; overflow: hidden; background-position: center; background-size: cover; }
.format-small::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 26, 30, .82), transparent 80%); }
.format-small.one { background-image: url('casablanca-rooftop-gathering.webp?v=fb326d2833'); }
.format-small.two { background-image: url('casablanca-atlantic-dusk.webp?v=741a366a06'); }
.format-small .format-copy { z-index: 1; position: absolute; left: 25px; bottom: 22px; right: 25px; }
.format-small h3 { font: 500 27px/1.1 var(--serif); margin: 7px 0; }
.format-small p { font-size: 11px; line-height: 1.65; color: rgba(255, 255, 255, .72); margin: 0; }

.approach { padding: 105px 0; background: var(--paper); }
.approach-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; }
.approach-lead h2 { font-size: clamp(39px, 5vw, 58px); line-height: 1.08; margin: 15px 0 21px; }
.approach-lead p { font-size: 13px; line-height: 1.9; color: var(--muted); max-width: 360px; }
.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 56px 1fr 20px; gap: 17px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.step-n { font: 500 17px var(--serif); color: var(--coral); }
.step h3 { font: 500 23px var(--serif); margin: 0 0 7px; }
.step p { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 0; max-width: 470px; }
.step-arrow { color: var(--gold); font-size: 18px; }

.city { background: #e8e0d3; display: grid; grid-template-columns: 1fr 1fr; min-height: 485px; }
.city-image { background: url('casablanca-atlantic-dusk.webp?v=741a366a06') center / cover; }
.city-copy { padding: 78px clamp(36px, 7vw, 105px); align-self: center; }
.city-copy h2 { font-size: clamp(38px, 4.5vw, 55px); line-height: 1.08; margin: 14px 0 19px; }
.city-copy p { font-size: 13px; line-height: 1.9; color: #5e6a68; max-width: 440px; }
.city-note { display: flex; gap: 14px; align-items: center; margin-top: 28px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.city-note i { width: 34px; height: 34px; border: 1px solid rgba(16, 42, 49, .35); border-radius: 50%; display: grid; place-items: center; color: var(--coral); font-style: normal; }

.planner { padding: 105px 0 112px; }
.planner-shell { display: grid; grid-template-columns: .8fr 1.2fr; background: var(--cream); }
.planner-intro { padding: 48px 45px; background: var(--ink); color: var(--cream); position: relative; overflow: hidden; }
.planner-intro::after { content: 'E'; position: absolute; bottom: -110px; left: 8px; font: 300 300px var(--serif); color: rgba(255, 255, 255, .035); }
.planner-intro h2 { font-size: clamp(38px, 4vw, 52px); line-height: 1.07; margin: 15px 0 18px; position: relative; }
.planner-intro p { font-size: 12px; line-height: 1.8; color: rgba(244, 240, 232, .68); max-width: 270px; position: relative; }
.planner-form { padding: 42px 48px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 9px; letter-spacing: .15em; text-transform: uppercase; font-weight: 700; margin-bottom: 9px; color: #526361; }
.field input, .field select, .field textarea { width: 100%; border: 0; border-bottom: 1px solid rgba(16, 42, 49, .28); border-radius: 0; background: transparent; padding: 10px 0; color: var(--ink); outline: none; font-size: 13px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--coral); }
.field textarea { resize: vertical; min-height: 62px; }
/* iPhone Safari zooms into any field set below 16px when it gets focus, and stays zoomed */
@media (pointer: coarse) {
  .field input, .field select, .field textarea { font-size: 16px; }
}
.planner-form .btn { margin-top: 6px; border: 0; }
.result { display: none; margin-top: 20px; padding: 15px; background: var(--paper); font-size: 12px; line-height: 1.6; }
.result.show { display: block; }
.result pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; margin: 10px 0; } /* a pasted link must not widen the page */
.result button { border: 0; background: none; border-bottom: 1px solid var(--gold); font-weight: 700; font-size: 10px; letter-spacing: .08em; padding: 7px 0 4px; text-transform: uppercase; color: var(--ink); }

.final-cta { background: var(--coral); color: #172e33; padding: 72px 0; }
.final-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.final-cta h2 { font: 500 clamp(36px, 5vw, 58px)/1.05 var(--serif); margin: 12px 0 0; max-width: 650px; }
.final-cta .eyebrow { color: rgba(16, 42, 49, .7); }
.final-cta .btn { background: var(--ink); color: white; white-space: nowrap; }

footer { background: #0b2025; color: rgba(244, 240, 232, .7); padding: 50px 0 26px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 37px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.footer-brand { color: white; }
.footer-copy { font-size: 11px; line-height: 1.7; max-width: 300px; margin-top: 14px; }
.footer-links { display: flex; gap: 26px; align-items: flex-start; font-size: 11px; }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; font-size: 9px; letter-spacing: .08em; }
.demo-label { color: #d4ac7d; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 20; width: max-content; max-width: calc(100vw - 32px); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: white; padding: 14px 19px; font-size: 12px; box-shadow: 0 8px 25px #0003; transition: .25s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Medium screens ---------- */

@media (max-width: 900px) {
  .wrap { width: min(var(--max), calc(100% - 42px)); }
  .nav-links { gap: 17px; }
  .nav-cta { display: none; }
  .hero-content { left: 21px; right: 21px; }
  .hero-note { right: 23px; }
  .scroll-cue { left: 21px; transform: none; } /* centred, it would run into the progress bar */
  .story-progress { right: 22px; }
  .intro-grid { gap: 45px; }
  .approach-grid { gap: 50px; }
  .planner-shell { grid-template-columns: .75fr 1.25fr; }
  .planner-intro { padding: 38px 30px; }
  .planner-form { padding: 38px 32px; }
}

@media (min-width: 901px) and (max-width: 980px) {
  .scroll-cue { left: 32px; transform: none; }
}

/* ---------- Phones ---------- */

@media (max-width: 680px) {
  .wrap { width: calc(100% - 38px); }
  .topline { font-size: 8px; letter-spacing: .1em; }
  .nav-inner { height: 72px; }
  .brand-name { font-size: 16px; }
  .nav-links { display: none; position: absolute; top: 72px; left: 19px; right: 19px; background: var(--ink); padding: 22px; flex-direction: column; align-items: flex-start; gap: 19px; }
  .nav-links.open { display: flex; }
  .nav-right { gap: 11px; }
  .menu-toggle { display: block; }

  .hero { height: calc(100vh + max(180vh, 1400px)); }
  .hero-content { left: 19px; right: 19px; bottom: 105px; }
  .hero-content h1 { font-size: clamp(48px, 12vw, 68px); }
  .hero-kicker { font-size: 8px; }
  .hero-copy { font-size: 13px; max-width: 360px; }
  .actions { flex-wrap: wrap; }
  .btn { min-height: 46px; padding: 0 16px; }
  .scroll-cue { left: 19px; bottom: 18px; letter-spacing: .12em; }
  .story-progress { right: 19px; bottom: 22px; gap: 7px; font-size: 8px; }
  .video-progress-track { width: 55px; }

  .intro { padding: 72px 0; }
  .intro-grid { grid-template-columns: 1fr; gap: 19px; }
  .intro-right { padding-top: 0; }
  .intro h2 { font-size: 43px; }
  .services, .formats, .approach { padding: 72px 0; }
  .section-head { display: block; margin-bottom: 28px; }
  .section-head p { margin-top: 16px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 265px; }
  .format-grid { grid-template-columns: 1fr; }
  .format-feature { min-height: 420px; }
  .format-small { min-height: 225px; }
  .approach-grid { grid-template-columns: 1fr; gap: 32px; }
  .city { grid-template-columns: 1fr; }
  .city-image { min-height: 280px; }
  .city-copy { padding: 48px 25px; }
  .planner { padding: 72px 0; }
  .planner-shell { grid-template-columns: 1fr; }
  .planner-intro { padding: 35px 27px; }
  .planner-intro::after { font-size: 220px; bottom: -86px; }
  .planner-form { padding: 30px 23px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .final-cta { padding: 53px 0; }
  .final-inner { display: block; }
  .final-cta .btn { margin-top: 24px; }
  .footer-top { display: block; }
  .footer-links { margin-top: 28px; flex-wrap: wrap; gap: 18px; }
  .footer-bottom { display: block; line-height: 1.8; }
  .footer-bottom span { display: block; }
}

@media (max-width: 700px) {
  .hero-note { display: none; } /* up to 693px wide it would overlap the hero copy */
}

/* ---------- Short screens: the hero text must stay clear of the header ---------- */

@media (min-width: 681px) and (max-height: 760px) {
  .hero-content h1 { font-size: clamp(48px, min(8.2vw, 15vh), 96px); } /* two lines instead of three */
}
@media (min-width: 681px) and (max-height: 640px) {
  .hero-copy, .hero-note { display: none; }
}
@media (max-width: 680px) and (max-height: 620px) {
  .hero-copy { display: none; }
}
@media (max-height: 500px), (max-width: 680px) and (max-height: 540px) {
  .topline { display: none; }
  .nav-inner { height: 60px; }
  .nav-links { top: 60px; }
  .hero-content { bottom: 56px; }
  .hero-kicker { margin-bottom: 12px; }
  .hero-content h1 { font-size: clamp(30px, 12vh, 52px); margin-bottom: 16px; }
  .btn { min-height: 42px; }
  .scroll-cue { bottom: 14px; }
  .story-progress { bottom: 18px; }
}
@media (max-height: 270px) {
  .hero-kicker, .actions { display: none; } /* 300-400% browser zoom: only the title still fits under the header */
}

/* Narrow screens: the progress strip goes above the scroll cue (side by side they overlap, in
   French up to 514px wide); where the screen is also short there is no room for it at all. */
@media (max-width: 560px) {
  .story-progress { bottom: 54px; }
}
@media (max-width: 560px) and (max-height: 540px) {
  .story-progress { display: none; }
}
@media (max-width: 359px) {
  .hero-content h1 { font-size: 40px; } /* in French the title would otherwise reach the header */
  .hero-copy { display: none; }
}
@media (max-width: 480px) and (max-height: 380px) {
  .hero-kicker { display: none; } /* narrow and short at once: 300-400% browser zoom */
  .hero-content h1 { font-size: clamp(26px, 9vh, 34px); margin-bottom: 12px; }
  .actions { gap: 8px; }
  .btn { min-height: 38px; }
}

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