/* =========================================================
   Moroccan Brothers — premium dark landing
   ========================================================= */

:root {
    /* base */
    --bg:              #0a0807;
    --bg-2:            #0f0c0a;
    --surface:         #14110e;
    --surface-2:       #1a1612;
    --surface-3:       #211c17;
    --border:          rgba(245, 230, 200, 0.07);
    --border-strong:   rgba(245, 230, 200, 0.14);

    /* text */
    --text:            #f5efe4;
    --text-2:          rgba(245, 239, 228, 0.66);
    --text-3:          rgba(245, 239, 228, 0.42);

    /* moroccan flag */
    --red:             #c1272d;
    --red-deep:        #7a1b1f;
    --red-glow:        rgba(193, 39, 45, 0.45);
    --green:           #006233;
    --green-deep:      #003d20;
    --green-glow:      rgba(0, 98, 51, 0.40);

    /* accent */
    --gold:            #d4af37;
    --gold-soft:       #b8941e;
    --gold-glow:       rgba(212, 175, 55, 0.18);

    /* layout */
    --radius:          18px;
    --radius-sm:       12px;
    --radius-lg:       28px;
    --max:             1200px;
    --max-narrow:      820px;
    --gutter:          clamp(20px, 3vw, 40px);
    --section:         clamp(56px, 6vw, 96px);

    /* type */
    --serif:           'Fraunces', 'Cormorant', Georgia, 'Times New Roman', serif;
    --sans:            'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--red); color: #fff; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(193, 39, 45, 0.08), transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(0, 98, 51, 0.06), transparent 60%);
    background-attachment: fixed;
}

/* faint noise texture for premium feel */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.025;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    mix-blend-mode: overlay;
}

img, svg { display: block; max-width: 100%; }

/* =========================================================
   Typography
   ========================================================= */

h2, h3, h4, h5 {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.05;
    color: var(--text);
    font-variation-settings: 'opsz' 144, 'SOFT' 50;
}
h1 {
    font-family: 'Bricolage Grotesque', var(--sans);
    font-weight: 600;
    font-size: clamp(30px, 3.5vw, 44px);
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: var(--text);
    font-variation-settings: 'opsz' 96, 'wdth' 100;
}
h2 { font-size: clamp(34px, 5vw, 60px); letter-spacing: -0.03em; }
h3 { font-size: clamp(20px, 1.8vw, 24px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }

p { color: var(--text-2); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    padding: 8px 14px;
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.04);
}
.eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 12px var(--gold);
}
.eyebrow-quiet {
    color: var(--text-3);
    border-color: var(--border);
    background: transparent;
}

.grad-text {
    background: linear-gradient(95deg, #ff6b6b 0%, var(--gold) 50%, #4cd07a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
h2 .grad-text { font-weight: 700; }

.hl-green {
    color: #19c069;
    text-decoration: underline;
    text-decoration-color: #19c069;
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
}

/* =========================================================
   Layout
   ========================================================= */

.container {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
    position: relative;
    z-index: 2;
}
.container-narrow { max-width: var(--max-narrow); }

.section {
    padding: var(--section) 0;
    position: relative;
    overflow: hidden;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(245, 239, 228, 0.05) 1px, transparent 1.2px);
    background-size: 30px 30px;
}

/* Soft red + green color flares — slightly elongated, hint of brand color */
.section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(ellipse 28% 16% at 18% 30%, rgba(193, 39, 45, 0.10), transparent 75%),
        radial-gradient(ellipse 30% 14% at 82% 72%, rgba(0, 98, 51, 0.085),  transparent 75%);
}
.section:nth-of-type(odd)::before {
    background-image:
        radial-gradient(ellipse 26% 15% at 82% 26%, rgba(0, 98, 51, 0.09),   transparent 75%),
        radial-gradient(ellipse 30% 16% at 18% 76%, rgba(193, 39, 45, 0.11), transparent 75%);
}
.section:nth-of-type(3n)::before {
    background-image:
        radial-gradient(ellipse 32% 12% at 50% 14%, rgba(193, 39, 45, 0.09), transparent 75%),
        radial-gradient(ellipse 34% 12% at 50% 88%, rgba(0, 98, 51, 0.075), transparent 75%);
}

/* Sporadic zellige outlines — just 2 per section, varied per section for irregularity */
.section::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.38;
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='none' stroke='%23d4af37' stroke-width='1' stroke-opacity='0.7'><rect x='15' y='15' width='70' height='70'/><rect x='15' y='15' width='70' height='70' transform='rotate(45 50 50)'/></g></svg>"),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='none' stroke='%23d4af37' stroke-width='1' stroke-opacity='0.7'><rect x='15' y='15' width='70' height='70'/><rect x='15' y='15' width='70' height='70' transform='rotate(45 50 50)'/></g></svg>");
    background-position: 7% 18%, 92% 78%;
    background-size: 220px, 320px;
    background-repeat: no-repeat;
    filter: blur(0.4px) drop-shadow(0 0 5px rgba(212, 175, 55, 0.28));
}
.section:nth-of-type(odd)::after {
    background-position: 90% 14%, 10% 82%;
    background-size: 280px, 200px;
}
.section:nth-of-type(3n)::after {
    background-position: 65% 12%, 25% 86%;
    background-size: 240px, 300px;
    opacity: 0.32;
}

/* Per-section overrides: remove or trim zellige overlays */
.section.results::after,
.section.testimonials::after,
.section.youtube::after { display: none; }

.section.academy::after {
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='none' stroke='%23d4af37' stroke-width='1' stroke-opacity='0.7'><rect x='15' y='15' width='70' height='70'/><rect x='15' y='15' width='70' height='70' transform='rotate(45 50 50)'/></g></svg>");
    background-position: 92% 80%;
    background-size: 320px;
    background-repeat: no-repeat;
}
.section.why::after {
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='none' stroke='%23d4af37' stroke-width='1' stroke-opacity='0.7'><rect x='15' y='15' width='70' height='70'/><rect x='15' y='15' width='70' height='70' transform='rotate(45 50 50)'/></g></svg>");
    background-position: 8% 88%;
    background-size: 280px;
    background-repeat: no-repeat;
    opacity: 0.36;
}
.section.final-cta::after {
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='none' stroke='%23d4af37' stroke-width='1' stroke-opacity='0.7'><rect x='15' y='15' width='70' height='70'/><rect x='15' y='15' width='70' height='70' transform='rotate(45 50 50)'/></g></svg>");
    background-position: 92% 22%;
    background-size: 280px;
    background-repeat: no-repeat;
    opacity: 0.36;
}

/* Per-section width overrides */
.section.results .container { max-width: 1380px; }
.section.faq .container.container-narrow { max-width: 1080px; }

/* Remove flares from sections after FAQ */
.section.final-cta::before,
.section.youtube::before { display: none; }

.section > .container { position: relative; z-index: 1; }

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.section-head .eyebrow { margin-bottom: 4px; }
.section-sub {
    font-size: 18px;
    color: var(--text-2);
    max-width: 580px;
    margin-top: 6px;
}

.section-cta {
    display: flex;
    justify-content: center;
    margin-top: 64px;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: clamp(13px, 1.5vw, 18px) clamp(72px, 10vw, 150px);
    border-radius: 999px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: clamp(20px, 2.1vw, 28px);
    letter-spacing: -0.01em;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
    white-space: nowrap;
}
.btn-lg {
    padding: clamp(15px, 1.7vw, 21px) clamp(96px, 12vw, 200px);
    font-size: clamp(22px, 2.4vw, 32px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(95deg, #5b0e12 0%, #a81f25 45%, #ed4448 100%);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.18) inset,
        0 0 0 1px rgba(255, 100, 100, 0.20),
        0 14px 32px rgba(193, 39, 45, 0.45),
        0 4px 14px rgba(120, 20, 25, 0.35);
    position: relative;
}
.btn-primary:hover {
    transform: translateY(-1px);
    background: linear-gradient(95deg, #6e1418 0%, #c1272d 45%, #ff5b60 100%);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.24) inset,
        0 0 0 1px rgba(255, 120, 120, 0.30),
        0 20px 44px rgba(193, 39, 45, 0.55),
        0 6px 18px rgba(140, 25, 30, 0.40);
}

.btn-ghost {
    color: var(--text);
    background: rgba(245, 239, 228, 0.04);
    border-color: var(--border-strong);
}
.btn-ghost:hover {
    background: rgba(245, 239, 228, 0.08);
    border-color: rgba(212, 175, 55, 0.4);
}

.arrow { transition: transform .25s ease; display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }

/* =========================================================
   Nav
   ========================================================= */

.logo-bar {
    position: relative;
    z-index: 3;
    padding: 24px var(--gutter) 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}
.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity .2s ease;
}
.brand:hover { opacity: 0.85; }
.brand-logo {
    height: 56px;
    width: auto;
    display: block;
}
.brand-logo-sm { height: 48px; }
@media (max-width: 600px) {
    .brand-logo { height: 44px; }
    .brand-logo-sm { height: 36px; }
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
    position: relative;
    padding: 0 0 clamp(40px, 6vw, 72px);
    overflow: hidden;
    isolation: isolate;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.13;
    background-image:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='none' stroke='%23d4af37' stroke-width='0.8' stroke-opacity='0.7'><rect x='15' y='15' width='70' height='70'/><rect x='15' y='15' width='70' height='70' transform='rotate(45 50 50)'/></g></svg>"),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='none' stroke='%23d4af37' stroke-width='0.8' stroke-opacity='0.7'><rect x='15' y='15' width='70' height='70'/><rect x='15' y='15' width='70' height='70' transform='rotate(45 50 50)'/></g></svg>");
    background-position: -70px -70px, calc(100% + 70px) calc(100% + 70px);
    background-size: 230px, 250px;
    background-repeat: no-repeat;
    filter: blur(0.4px);
}

.hero-aurora { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.55;
    will-change: transform;
}
.blob-red {
    width: 720px;
    height: 720px;
    top: -180px;
    left: -160px;
    background: radial-gradient(circle, var(--red) 0%, var(--red-deep) 35%, transparent 70%);
    animation: floatA 22s ease-in-out infinite;
}
.blob-green {
    width: 760px;
    height: 760px;
    bottom: -260px;
    right: -180px;
    background: radial-gradient(circle, var(--green) 0%, var(--green-deep) 35%, transparent 70%);
    animation: floatB 26s ease-in-out infinite;
}
@keyframes floatA {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, 30px) scale(1.05); }
}
@keyframes floatB {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, -40px) scale(1.07); }
}


/* =========================================================
   Quadrille grid + lifting tile
   ========================================================= */

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    --grid: 120px;
    --line: rgba(245, 239, 228, 0.06);
    background-image:
        linear-gradient(to right, var(--line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--line) 1px, transparent 1px);
    background-size: var(--grid) var(--grid);
    background-position: 0 0;
    mask-image: radial-gradient(ellipse 95% 100% at 50% 50%, #000 40%, rgba(0,0,0,0.7) 80%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 95% 100% at 50% 50%, #000 40%, rgba(0,0,0,0.7) 80%, transparent 100%);
}

/* Spotlight: reveals multiple grid cells around the cursor */
.hero-spotlight {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    -webkit-mask-image:
        linear-gradient(to right, #000 1.5px, transparent 1.5px),
        linear-gradient(to bottom, #000 1.5px, transparent 1.5px);
    -webkit-mask-size: 120px 120px;
    -webkit-mask-repeat: repeat;
    mask-image:
        linear-gradient(to right, #000 1.5px, transparent 1.5px),
        linear-gradient(to bottom, #000 1.5px, transparent 1.5px);
    mask-size: 120px 120px;
    mask-repeat: repeat;
}

.hero-spotlight-fill {
    position: absolute;
    inset: 0;
    --mx: -400px;
    --my: -400px;
    background: linear-gradient(135deg,
        rgba(193, 39, 45, 0.55) 0%,
        rgba(212, 175, 55, 0.40) 50%,
        rgba(0, 98, 51, 0.55) 100%);
    -webkit-mask-image: radial-gradient(circle 300px at var(--mx) var(--my),
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.65) 30%,
        rgba(0,0,0,0.25) 65%,
        transparent 100%);
    mask-image: radial-gradient(circle 300px at var(--mx) var(--my),
        rgba(0,0,0,1) 0%,
        rgba(0,0,0,0.65) 30%,
        rgba(0,0,0,0.25) 65%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(10,8,7,0.95), transparent 70%),
        radial-gradient(ellipse 100% 60% at 50% 0%, transparent 50%, rgba(10,8,7,0.6) 100%);
}

.hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.hero .container { max-width: 1480px; }

.hero-title {
    max-width: 1380px;
    text-wrap: balance;
}

.hero-sub {
    font-size: clamp(14px, 1.15vw, 17px);
    color: rgba(245, 239, 228, 0.92);
    max-width: 760px;
    line-height: 1.55;
}

/* hero video */
.hero-video {
    position: relative;
    width: 100%;
    max-width: 820px;
    margin: 4px auto clamp(24px, 3.5vw, 48px);
}

.video-frame {
    position: relative;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(135deg, rgba(193, 39, 45, 0.5), rgba(212, 175, 55, 0.3) 50%, rgba(0, 98, 51, 0.5));
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px var(--border-strong),
        0 0 80px rgba(212, 175, 55, 0.06);
}
.video-inner {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: calc(var(--radius) - 1px);
    background: #0a0807;
    overflow: hidden;
}
.video-inner wistia-player {
    display: block;
    width: 100%;
    height: 100%;
}
.play-btn {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .25s ease, background .25s ease;
    z-index: 1;
}
.play-btn svg { width: 26px; height: 26px; margin-left: 3px; }
.play-btn:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, var(--red), var(--green));
    border-color: transparent;
}
.video-placeholder-text {
    color: var(--text-3);
    font-size: 13px;
    z-index: 1;
    letter-spacing: 0.02em;
}

.hero-trust {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    font-size: 13px;
    color: var(--text-3);
}
.trust-item strong { color: var(--text); font-weight: 600; }
.trust-divider {
    width: 1px;
    height: 18px;
    background: var(--border-strong);
}
@media (max-width: 600px) {
    .trust-divider { display: none; }
    .hero-trust { gap: 8px 20px; }
}

/* =========================================================
   Case Studies
   ========================================================= */

.case-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 28px;
}
.case {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(245, 230, 200, 0.03), rgba(245, 230, 200, 0))
        var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .35s ease, transform .35s ease, background .35s ease, box-shadow .35s ease;
}
.case:hover {
    border-color: rgba(212, 175, 55, 0.28);
    transform: translateY(-3px);
    background:
        linear-gradient(180deg, rgba(245, 230, 200, 0.05), rgba(245, 230, 200, 0))
        var(--surface-2);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.45);
}
.case-video {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-3);
    text-decoration: none;
    transition: transform .35s ease;
}
.case-thumb-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}
.case-video:hover .case-thumb-img { transform: scale(1.04); }
.case-video .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    width: 72px;
    height: 72px;
}
.case-video .play-btn svg { width: 26px; height: 26px; }
.case-video.is-playing .case-thumb-img,
.case-video.is-playing .play-btn { display: none; }
.case-title {
    font-family: var(--sans);
    font-size: clamp(20px, 1.75vw, 24px);
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: -0.018em;
    margin: 0;
    color: var(--text);
    padding: 0 4px;
}
.case-title .case-name { color: var(--gold); }
.case-title .hl {
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-decoration-thickness: 2.5px;
    text-underline-offset: 4px;
}
.case-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 4px;
}
.case-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.case-num {
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
}
.case-tag {
    font-family: var(--sans);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.18);
    color: var(--text-2);
    font-weight: 500;
}
.case-quote {
    font-family: var(--sans);
    font-size: 14.5px;
    color: rgba(245, 239, 228, 0.75);
    font-style: normal;
    line-height: 1.6;
    margin: 0;
    padding-left: 12px;
    border-left: 2px solid rgba(212, 175, 55, 0.35);
}
.case-stat {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: flex-start;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(193, 39, 45, 0.12), rgba(0, 98, 51, 0.12));
    border: 1px solid rgba(212, 175, 55, 0.30);
}
.case-stat-num {
    font-family: var(--sans);
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.015em;
}
.case-stat-label {
    font-family: var(--sans);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--gold);
    font-weight: 600;
    margin-top: 5px;
}
.case:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 18px);
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 760px) {
    .case-list { grid-template-columns: 1fr; gap: 36px; }
    .case:last-child {
        grid-column: auto;
        max-width: none;
        margin: 0;
    }
}


/* =========================================================
   Why Morocco — feature grid
   ========================================================= */

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.why-card {
    padding: 36px;
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(245,230,200,0.025), rgba(245,230,200,0))
        var(--surface);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: border-color .3s ease, transform .3s ease;
}
.why-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><g fill='none' stroke='rgba(212,175,55,0.06)' stroke-width='1'><rect x='50' y='50' width='100' height='100'/><rect x='50' y='50' width='100' height='100' transform='rotate(45 100 100)'/></g></svg>");
    background-size: 200px 200px;
    background-position: bottom right;
    background-repeat: no-repeat;
    opacity: 0.5;
    pointer-events: none;
}
.why-card:hover {
    border-color: rgba(212, 175, 55, 0.22);
    transform: translateY(-3px);
}
.why-icon {
    width: 84px;
    height: 84px;
    border-radius: 18px;
    padding: 8px;
    background: linear-gradient(135deg, rgba(193,39,45,0.14), rgba(0,98,51,0.14));
    border: 1px solid rgba(212, 175, 55, 0.20);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    margin-bottom: 24px;
}
.why-icon svg { width: 100%; height: 100%; display: block; }
.why-card h3 {
    font-family: var(--sans);
    font-size: clamp(22px, 1.95vw, 26px);
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -0.018em;
    margin-bottom: 14px;
    max-width: 360px;
    color: var(--text);
}
.why-card p {
    font-size: 16.5px;
    line-height: 1.65;
    color: rgba(245, 239, 228, 0.85);
    max-width: 460px;
}
.why-card strong { color: var(--text); font-weight: 700; }

@media (max-width: 760px) {
    .why-grid { grid-template-columns: 1fr; }
    .why-card { padding: 28px; }
}

/* =========================================================
   Academy — 3x3 features
   ========================================================= */

.academy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.feature {
    padding: 40px 34px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    position: relative;
    transform-origin: center;
    transition:
        transform .4s cubic-bezier(0.16, 1, 0.3, 1),
        border-color .4s ease,
        background .4s ease,
        box-shadow .4s ease;
}
.academy-grid .feature:hover {
    border-color: rgba(212, 175, 55, 0.32);
    background: var(--surface-2);
    transform: scale(1.07);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 28px 64px rgba(0, 0, 0, 0.55);
    z-index: 2;
}
.feature-num {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--gold);
    letter-spacing: 0.16em;
    margin-bottom: 22px;
    font-weight: 600;
}
.feature h3 {
    font-family: var(--sans);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.018em;
    margin-bottom: 14px;
    color: var(--text);
}
.feature p {
    font-size: 16px;
    line-height: 1.65;
}

@media (max-width: 960px) { .academy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .academy-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Testimonials
   ========================================================= */

/* =========================================================
   Calculator
   ========================================================= */

.calc {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(245,230,200,0.025), rgba(245,230,200,0)) var(--surface);
    overflow: hidden;
    position: relative;
}
.calc-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: rgba(20, 17, 14, 0.4);
}
.calc-tab {
    flex: 1;
    padding: 18px 24px;
    background: transparent;
    border: 0;
    color: var(--text-2);
    font-family: var(--sans);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: color .25s ease, background .25s ease, border-color .25s ease;
    border-bottom: 2px solid transparent;
}
.calc-tab.is-active {
    color: var(--text);
    background: rgba(245, 230, 200, 0.04);
    border-bottom-color: var(--gold);
}
.calc-tab:hover { color: var(--text); }

.calc-panel { padding: clamp(24px, 4vw, 48px); }
.calc-panel[hidden] { display: none; }

.calc-section-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 18px;
}

.calc-properties {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 36px;
}
.calc-prop {
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    transition: border-color .25s ease, transform .25s ease, background .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    color: var(--text);
    font-family: var(--sans);
}
.calc-prop:hover {
    border-color: rgba(212, 175, 55, 0.35);
    transform: translateY(-2px);
}
.calc-prop.is-active {
    border-color: var(--gold);
    background: var(--surface-2);
    box-shadow: 0 0 0 1px var(--gold), 0 14px 30px rgba(0,0,0,0.4);
}
.calc-prop-img {
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    background: var(--surface-3);
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}
.calc-prop-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.calc-prop-img svg { width: 70%; height: 70%; }
.calc-prop-info { display: flex; flex-direction: column; gap: 3px; }
.calc-prop-name { font-size: 14.5px; font-weight: 600; }
.calc-prop-rent { font-size: 12.5px; color: var(--text-3); }

.calc-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 24px;
}
.calc-card {
    padding: 28px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--surface);
}
.calc-card-label {
    font-family: var(--sans);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 18px;
}
.calc-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}
.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--sans);
    font-size: 15px;
}
.calc-row > span:first-child { color: var(--text-2); }
.calc-row > span:last-child {
    color: var(--text);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.calc-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-family: var(--sans);
}
.calc-total-label {
    font-size: 13px;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.calc-total-value {
    font-size: 30px;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.calc-profit {
    background:
        radial-gradient(ellipse 80% 80% at 100% 0%, rgba(0, 98, 51, 0.18), transparent 70%),
        radial-gradient(ellipse 80% 80% at 0% 100%, rgba(193, 39, 45, 0.10), transparent 70%),
        var(--surface);
}
.calc-profit-num {
    font-family: var(--sans);
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 800;
    color: #19c069;
    line-height: 1;
    margin-bottom: 14px;
    font-variant-numeric: tabular-nums;
}
.calc-profit-num span {
    font-size: 0.4em;
    color: var(--text-2);
    font-weight: 600;
    margin-left: 4px;
}
.calc-profit-detail {
    font-family: var(--sans);
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.55;
    margin-bottom: 22px;
}
.calc-payback {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-radius: 10px;
    background: rgba(245, 230, 200, 0.04);
    border: 1px solid var(--border);
    font-family: var(--sans);
    font-size: 14px;
}
.calc-payback span { color: var(--text-2); }
.calc-payback strong { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }

.calc-disclaimer {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--text-3);
    line-height: 1.6;
    padding: 14px 18px;
    border-radius: 10px;
    background: rgba(245, 230, 200, 0.025);
    border: 1px solid var(--border);
    margin: 0;
}
.calc-disclaimer strong { color: var(--text-2); }

.calc-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(40px, 6vw, 80px) 24px;
    color: var(--text-2);
    gap: 16px;
}
.calc-soon svg { color: var(--gold); }
.calc-soon h3 { font-family: var(--sans); font-weight: 700; font-size: 26px; color: var(--text); margin: 0; }
.calc-soon p { max-width: 440px; font-size: 15px; }

@media (max-width: 760px) {
    .calc-properties { grid-template-columns: repeat(2, 1fr); }
    .calc-results { grid-template-columns: 1fr; }
}

/* Instagram reels grid */
.ig-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}
.ig-grid .instagram-media {
    margin: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    border-radius: 14px !important;
    overflow: hidden;
}
@media (max-width: 900px) {
    .ig-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .ig-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
}

/* Horizontal slider for testimonial screenshots — single card visible at a time */
.slider {
    position: relative;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 2.5vw, 36px);
}
.slider-viewport {
    flex: 0 0 auto;
    width: clamp(360px, 70vw, 1000px);
    overflow: hidden;
    border-radius: 24px;
}
.slider-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 12px 4px 16px;
}
.slider-track::-webkit-scrollbar { display: none; }
.slide {
    flex: 0 0 auto;
    width: clamp(360px, 70vw, 1000px);
    scroll-snap-align: center;
    padding: clamp(6px, 0.8vw, 12px);
    border-radius: 24px;
    border: 1px solid var(--border);
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(193, 39, 45, 0.10), transparent 70%),
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(0, 98, 51, 0.09), transparent 70%),
        linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 28px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}
.slide img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 16px 40px rgba(0, 0, 0, 0.55);
}
.slider-btn {
    position: relative;
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(20, 17, 14, 0.5);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(245, 239, 228, 0.18);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: background .3s ease, transform .3s ease, border-color .3s ease, box-shadow .3s ease;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.slider-btn:hover {
    background: rgba(20, 17, 14, 0.78);
    border-color: rgba(212, 175, 55, 0.5);
    transform: scale(1.08);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
}
.slider-btn:active { transform: scale(0.96); }
.slider-btn:disabled { opacity: 0.35; cursor: default; }
.slider-btn svg { width: 22px; height: 22px; }

@media (max-width: 600px) {
    .slider-btn { width: 44px; height: 44px; }
    .slider-btn svg { width: 18px; height: 18px; }
}

/* =========================================================
   FAQ
   ========================================================= */

.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color .25s ease, background .25s ease;
}
.faq-item[open] {
    border-color: rgba(212, 175, 55, 0.2);
    background: var(--surface-2);
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 26px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    font-family: var(--serif);
    font-size: 21px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-family: var(--sans);
    font-size: 22px;
    font-weight: 300;
    color: var(--gold);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .3s ease, background .3s ease;
}
.faq-item[open] summary::after {
    content: '−';
    background: rgba(212, 175, 55, 0.12);
    transform: rotate(180deg);
}
.faq-body {
    padding: 0 30px 28px 30px;
    color: var(--text-2);
    font-size: 17px;
    line-height: 1.7;
}

/* =========================================================
   Final CTA
   ========================================================= */

.cta-card {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, var(--red) 0%, var(--gold) 50%, var(--green) 100%);
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}
.cta-stars {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.10);
    pointer-events: none;
    z-index: 1;
}
.cta-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    background:
        radial-gradient(ellipse 60% 80% at 0% 0%, rgba(193,39,45,0.5), transparent 60%),
        radial-gradient(ellipse 60% 80% at 100% 100%, rgba(0,98,51,0.5), transparent 60%),
        #14110e;
    border-radius: calc(var(--radius-lg) - 1px);
    padding: clamp(48px, 7vw, 90px) clamp(28px, 5vw, 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}
.cta-inner h2 {
    max-width: 720px;
    font-size: clamp(36px, 5vw, 64px);
}
.cta-inner p {
    max-width: 580px;
    font-size: 17px;
    color: rgba(245, 239, 228, 0.78);
    margin-bottom: 4px;
}
.cta-sub {
    font-size: 13px;
    color: var(--text-3);
    margin-top: 4px;
}

/* =========================================================
   YouTube
   ========================================================= */

.yt-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1280px;
    margin: 0 auto;
}
.yt-card {
    text-decoration: none;
    color: var(--text);
    display: block;
    transition: transform .3s ease;
}
.yt-card:hover { transform: translateY(-3px); }
.yt-card:hover .play-btn {
    background: linear-gradient(135deg, var(--red), var(--green));
    border-color: transparent;
    transform: translate(-50%, -50%) scale(1.06);
}
.yt-thumb {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    position: relative;
    overflow: hidden;
    background: var(--surface);
    transition: border-color .3s ease, box-shadow .3s ease;
}
.yt-card:hover .yt-thumb {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}
.yt-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}
.yt-card:hover .yt-thumb img { transform: scale(1.04); }
.yt-thumb .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    z-index: 2;
    pointer-events: none;
}
.yt-thumb .play-btn svg { width: 22px; height: 22px; }
.yt-card.is-playing .yt-thumb img,
.yt-card.is-playing .play-btn { display: none; }

@media (max-width: 600px) { .yt-grid { grid-template-columns: 1fr; gap: 18px; } }

/* =========================================================
   Footer
   ========================================================= */

.footer {
    border-top: 1px solid var(--border);
    padding: 56px 0 64px;
    background:
        radial-gradient(ellipse 60% 100% at 50% 0%, rgba(193,39,45,0.04), transparent 60%),
        var(--bg-2);
}
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
}
.brand-footer .brand-mark { color: var(--green); }
.disclaimer {
    max-width: 720px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-3);
}
.footer-meta { font-size: 12px; color: var(--text-3); letter-spacing: 0.04em; }

/* =========================================================
   Reveal-on-scroll (progressive enhancement)
   ========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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