/* ==========================================================================
   Media Castle — shared stylesheet
   mediacastle.co.za
   One file for every page. Mobile-first: base styles are for phones,
   min-width media queries add tablet and desktop layouts.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
    /* Brand colours */
    --red: #A3122A;            /* the one accent: buttons, logo, key headings, lines (white on red = 7.8:1) */
    --red-dark: #861022;       /* hover / pressed */
    --charcoal: #2B2B2E;       /* body text (never pure black) */
    --ink: #1E1E21;            /* dark sections (3D, games, credentials strip) */
    --ink-2: #26262A;          /* cards on dark sections */
    --grey: #6B6B70;           /* secondary text on light (4.9:1 on off-white) */
    --grey-light: #BDB8B0;     /* secondary text on dark (8.4:1 on ink) */
    --line: #E4DED4;           /* borders on light */
    --line-dark: #3A3A3F;      /* borders on dark */
    --paper: #FAF7F2;          /* warm off-white background */
    --white: #FFFFFF;

    /* Type */
    --font-head: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;

    /* Layout */
    --wrap: 1180px;
    --gutter: 20px;
    --radius: 6px;
    --shadow: 0 10px 30px rgba(30, 30, 33, 0.08);
    --shadow-hover: 0 16px 40px rgba(30, 30, 33, 0.14);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--charcoal);
    background: var(--paper);
    overflow-x: hidden;
}

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

a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--charcoal);
    line-height: 1.15;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

p + p { margin-top: 1em; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.skip-link {
    position: absolute; left: -999px; top: 10px; z-index: 3000;
    background: var(--white); color: var(--charcoal); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { left: 10px; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

section { padding: 72px 0; }

.section-white { background: var(--white); }
.section-paper { background: var(--paper); }

/* ---------- 3. Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-head); font-weight: 700; font-size: 0.98rem;
    padding: 14px 26px; border-radius: var(--radius);
    text-decoration: none; cursor: pointer; border: 2px solid transparent;
    transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); color: var(--white); }
.btn-secondary { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-secondary:hover { background: var(--charcoal); color: var(--white); }
/* outline button on dark backgrounds / hero */
.btn-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.8); }
.btn-light:hover { background: var(--white); color: var(--ink); }

.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.text-link {
    font-family: var(--font-head); font-weight: 700; font-size: .95rem;
    color: var(--red); text-decoration: none;
}
.text-link::after { content: ' →'; transition: margin .2s var(--ease); }
.text-link:hover::after { margin-left: 4px; }

/* ---------- 4. Wordmark (placeholder until the logo is ready) ---------- */
.site-mark {
    position: fixed; top: 18px; left: 18px; z-index: 1001;
    display: inline-flex; align-items: center;
    background: var(--white); padding: 8px 14px; border-radius: var(--radius);
    box-shadow: var(--shadow); text-decoration: none;
}
.site-mark img { height: 30px; width: auto; }
.wordmark {
    font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
    letter-spacing: .02em; text-transform: uppercase; color: var(--charcoal);
}
.wordmark span { color: var(--red); }

/* ---------- 5. Hamburger + menu overlay ---------- */
.hamburger-menu { position: fixed; top: 18px; right: 18px; z-index: 1001; }

.hamburger-btn {
    width: 52px; height: 52px; border: none; border-radius: var(--radius);
    background: var(--red); cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    box-shadow: var(--shadow); transition: background .25s var(--ease);
}
.hamburger-btn:hover { background: var(--red-dark); }
.hamburger-btn span {
    display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.hamburger-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(30, 30, 33, .55);
    overflow: hidden;
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.menu-overlay.active { opacity: 1; visibility: visible; }

.menu-overlay nav {
    position: absolute; top: 0; right: 0; height: 100%;
    width: min(400px, 100%);
    background: var(--ink); color: var(--white);
    padding: 92px 32px 40px; overflow-y: auto;
    transform: translateX(100%); transition: transform .35s var(--ease);
}
.menu-overlay.active nav { transform: translateX(0); }

.menu-nav { list-style: none; }
.menu-nav li a {
    display: block; padding: 9px 0;
    font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
    color: var(--white); text-decoration: none;
    border-bottom: 1px solid var(--line-dark);
    transition: padding .2s var(--ease), color .2s;
}
.menu-nav li a:hover { padding-left: 6px; color: var(--grey-light); }
.menu-nav li a[aria-current="page"] { border-left: 3px solid var(--red); padding-left: 10px; }
.menu-section-label {
    display: block; margin-top: 22px; padding-bottom: 4px;
    font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-light);
}
.menu-nav li.sub-item a { font-family: var(--font-body); font-weight: 400; font-size: 1rem; padding: 7px 0 7px 14px; }

.menu-contact { margin-top: 30px; padding-top: 22px; border-top: 2px solid var(--red); }
.menu-contact h3 { color: var(--white); font-size: 1rem; margin-bottom: 8px; }
.menu-contact p { margin: 4px 0; }
.menu-contact a { color: var(--white); }
.menu-contact a:hover { color: var(--grey-light); }

/* ---------- 6. Hero slider ---------- */
.hero {
    position: relative; min-height: 88vh; min-height: 88svh;
    background: var(--ink); color: var(--white); overflow: hidden;
    padding: 0;
}
.hero-slide {
    position: absolute; inset: 0;
    display: flex; align-items: center;
    opacity: 0; visibility: hidden; transition: opacity 1s var(--ease), visibility 1s;
}
.hero-slide.active { opacity: 1; visibility: visible; }
/* Background image set per slide with style="--slide-bg: url(...)" */
.hero-slide::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(100deg, rgba(30,30,33,.92) 0%, rgba(30,30,33,.72) 50%, rgba(30,30,33,.35) 100%),
        var(--slide-bg, none);
    background-color: var(--ink);
    background-size: cover; background-position: center;
    transform: scale(1.04); transition: transform 12s linear;
}
.hero-slide.active::before { transform: scale(1); }
.hero-container { position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 110px var(--gutter) 110px; }
.hero-content { max-width: 680px; }
.service-type {
    display: inline-block; margin-bottom: 18px; padding-left: 12px;
    border-left: 3px solid var(--red);
    font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: #E9E4DC;
}
.hero-content h1, .hero-content .hero-heading {
    color: var(--white);
    font-family: var(--font-head); font-weight: 800; line-height: 1.08;
    font-size: clamp(2.1rem, 6vw, 3.6rem); letter-spacing: -0.015em;
    margin-bottom: 18px;
}
.hero-content p:not(.service-type) { font-size: 1.12rem; color: #EDEAE4; max-width: 600px; }

.hero-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,.1); color: var(--white); border: 1px solid rgba(255,255,255,.35);
    font-size: 1.6rem; line-height: 1; cursor: pointer; display: none;
    transition: background .2s;
}
.hero-arrow:hover { background: var(--red); border-color: var(--red); }
.hero-arrow-prev { left: 18px; }
.hero-arrow-next { right: 18px; }

.hero-nav { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.hero-dot {
    width: 12px; height: 12px; border-radius: 50%; cursor: pointer;
    border: 2px solid var(--white); background: transparent; transition: background .2s, width .3s var(--ease);
}
.hero-dot.active { background: var(--white); width: 30px; border-radius: 6px; }

.hero-progress { position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: rgba(255,255,255,.12); z-index: 5; }
.hero-progress-bar { width: 0; height: 100%; background: var(--red); }

/* ---------- 7. Section headers ---------- */
.section-header { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-header .label, .label {
    font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    color: var(--red); margin-bottom: 10px;
}
.section-header h2 { margin-bottom: 14px; }
.underline { width: 64px; height: 4px; background: var(--red); margin: 0 auto 18px; border-radius: 2px; }
.section-header p:not(.label) { color: var(--grey); font-size: 1.1rem; }
.section-header.left { text-align: left; margin-left: 0; }
.section-header.left .underline { margin-left: 0; }

/* ---------- 8. Audience router (homepage, under hero) ---------- */
.audiences { padding-top: 0; margin-top: -60px; position: relative; z-index: 6; background: transparent; }
.audience-grid { display: grid; gap: 18px; }
.audience-card {
    display: flex; flex-direction: column;
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); text-decoration: none; color: var(--charcoal);
    border-top: 4px solid var(--red);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.audience-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); color: var(--charcoal); }
.audience-card .card-img { aspect-ratio: 16 / 9; }
.audience-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.audience-card .for { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin-bottom: 6px; }
.audience-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.audience-card p { color: var(--grey); margin-bottom: 14px; }
.audience-card .tags { font-size: .9rem; color: var(--charcoal); font-weight: 600; margin-bottom: 16px; }
.audience-card .text-link { margin-top: auto; }

/* Shared image block for cards (background image, with a fallback tone while images are missing) */
.card-img, .service-card-img, .approach-card-img {
    background-color: #D9D2C7;
    background-image: linear-gradient(135deg, #E6E0D6 0%, #CFC7BA 100%);
    background-size: cover; background-position: center;
}

/* ---------- 9. About ---------- */
.about-content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
.about-content > *, .contact-grid > *, .services-grid > *, .work-grid > * { min-width: 0; }
.about-text h3 { font-size: 1.5rem; margin-bottom: 14px; }
.about-text p { color: var(--charcoal); }
.about-image { position: relative; isolation: isolate; max-width: 440px; margin: 0 auto; width: 100%; }
.about-image img, .about-image .photo-placeholder {
    width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius);
    background: #D9D2C7;
}
.about-image::after {
    content: ''; position: absolute; z-index: -1;
    right: -14px; bottom: -14px; width: 70%; height: 70%;
    border: 3px solid var(--red); border-radius: var(--radius);
}
.credentials { margin-top: 22px; display: grid; gap: 8px; list-style: none; }
.credentials li { padding-left: 26px; position: relative; }
.credentials li::before { content: ''; position: absolute; left: 0; top: .6em; width: 14px; height: 3px; background: var(--red); }

/* ---------- 10. Service cards ---------- */
.services-grid { display: grid; gap: 20px; }
.service-card {
    display: flex; flex-direction: column;
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line); text-decoration: none; color: var(--charcoal);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
a.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: transparent; color: var(--charcoal); }
.service-card-img, .service-card .approach-card-img { aspect-ratio: 16 / 10; }
.service-card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.service-card-body h3 { margin-bottom: 8px; }
.service-card-body p { color: var(--grey); font-size: 1rem; }
.service-card-body .text-link { margin-top: auto; padding-top: 14px; }

/* ---------- 11. Approach / process ---------- */
.approach-grid { display: grid; gap: 18px; counter-reset: step; }
.approach-item {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line);
}
.approach-card-img { aspect-ratio: 16 / 10; }
.approach-card-body { padding: 20px; }
.approach-card-body h3 { margin-bottom: 8px; }
.approach-card-body p { color: var(--grey); font-size: 1rem; }
/* numbered variant (no images) */
.approach-item.step { padding: 24px 22px; counter-increment: step; position: relative; }
.approach-item.step::before {
    content: counter(step, decimal-leading-zero);
    display: block; font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; line-height: 1;
    color: var(--red); margin-bottom: 14px;
}
.approach-item.step h3 { margin-bottom: 8px; }
.approach-item.step p { color: var(--grey); font-size: 1rem; }

/* ---------- 12. Portfolio / work cards ---------- */
.work-grid { display: grid; gap: 22px; }
.work-card {
    display: flex; flex-direction: column; background: var(--white);
    border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
    text-decoration: none; color: var(--charcoal);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
a.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); color: var(--charcoal); }
.work-card .card-img { aspect-ratio: 16 / 10; }
.work-card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.work-card .meta { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); margin-bottom: 6px; }
.work-card h3 { margin-bottom: 8px; }
.work-card p { color: var(--grey); font-size: 1rem; }
.work-card .text-link { margin-top: auto; padding-top: 14px; }
.work-card.coming-soon { border: 2px dashed var(--line); background: transparent; justify-content: center; text-align: center; min-height: 220px; }
.work-card.coming-soon .work-card-body { justify-content: center; align-items: center; }
.experience-note { margin-top: 28px; text-align: center; color: var(--grey); font-size: 1rem; }

/* ---------- 13. Price teaser / strip ---------- */
.price-grid { display: grid; gap: 18px; }
.price-tile {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 22px; text-align: center;
}
.price-tile .what { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.price-tile .from { color: var(--grey); font-size: .9rem; }
.price-tile .amount { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--red); line-height: 1.2; }
.price-tile .per { color: var(--grey); font-size: .95rem; }
.price-note { text-align: center; color: var(--grey); max-width: 720px; margin: 26px auto 0; }
.center-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }

/* Single-line "projects typically start from" strip for service pages */
.price-strip {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
    background: var(--white); border-left: 4px solid var(--red); border-radius: var(--radius);
    padding: 22px 24px; box-shadow: var(--shadow);
}
.price-strip p { margin: 0; font-size: 1.1rem; }
.price-strip strong { color: var(--red); font-family: var(--font-head); }

/* ---------- 14. Dark sections (credentials strip, 3D and games pages) ---------- */
.section-dark { background: var(--ink); color: #EDEAE4; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark .section-header .label, .section-dark .label { color: var(--grey-light); } /* never red text on dark */
.section-dark .section-header p:not(.label) { color: var(--grey-light); }
.section-dark .service-card, .section-dark .approach-item, .section-dark .work-card, .section-dark .price-tile {
    background: var(--ink-2); border-color: var(--line-dark); color: #EDEAE4;
}
.section-dark .service-card-body p, .section-dark .approach-card-body p,
.section-dark .approach-item.step p, .section-dark .work-card p { color: var(--grey-light); }
.section-dark .approach-item.step::before { color: var(--white); }
.section-dark .text-link, .section-dark a:not(.btn) { color: var(--white); }
.section-dark .btn-secondary { color: var(--white); border-color: var(--white); }
.section-dark .btn-secondary:hover { background: var(--white); color: var(--ink); }

.stats-grid { display: grid; gap: 26px; grid-template-columns: repeat(2, 1fr); text-align: left; }
.stat { border-top: 3px solid var(--red); padding-top: 16px; }
.stat .big { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 5vw, 2.6rem); color: var(--white); line-height: 1.1; }
.stat p { color: var(--grey-light); font-size: .98rem; margin-top: 6px; }

/* ---------- 15. FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    list-style: none; cursor: pointer; position: relative;
    padding: 20px 44px 20px 0;
    font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--charcoal);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    font-size: 1.6rem; font-weight: 400; color: var(--red); transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer { padding: 0 0 22px; color: var(--charcoal); }
.faq-answer p { color: var(--grey); }

/* ---------- 16. Reviews (kept for when real reviews arrive) ---------- */
.review-grid { display: grid; gap: 20px; }
.review-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.stars { color: var(--red); letter-spacing: 2px; margin-bottom: 10px; }
.review-text { font-style: italic; }
.reviewer-name { margin-top: 12px; font-weight: 600; color: var(--grey); }

/* ---------- 17. Contact ---------- */
.contact-grid { display: grid; gap: 30px; }
.contact-info { display: grid; gap: 16px; }
.contact-item {
    display: flex; gap: 16px; align-items: flex-start;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
}
.contact-icon {
    flex: 0 0 44px; height: 44px; border-radius: 50%;
    background: var(--red); color: var(--white);
    display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-details h3 { font-size: 1.05rem; margin-bottom: 2px; }
.contact-details p { color: var(--grey); margin: 0; }
.contact-details a { font-weight: 600; }
.contact-cta {
    background: var(--ink); color: #EDEAE4; border-radius: var(--radius); padding: 32px 26px;
    border-top: 4px solid var(--red);
}
.contact-cta h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 12px; }
.contact-cta p { color: var(--grey-light); }
.contact-cta ol { margin: 16px 0 0 20px; color: var(--grey-light); }
.contact-cta ol li { margin: 6px 0; }

/* ---------- 18. Breadcrumb (inner pages) ---------- */
.breadcrumb { font-size: .9rem; color: var(--grey); padding: 18px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: '/'; margin-right: 6px; color: var(--line); }
.breadcrumb a { color: var(--grey); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }

/* ---------- 19. Footer ---------- */
footer { background: var(--ink); color: var(--grey-light); padding: 60px 0 26px; border-top: 4px solid var(--red); }
.footer-content { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.footer-info { display: grid; gap: 34px; grid-template-columns: 1fr; }
.footer-section h4 { color: var(--white); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.footer-section p { font-size: .98rem; }
.footer-section a { display: block; color: var(--grey-light); text-decoration: none; padding: 3px 0; font-size: .98rem; }
.footer-section a:hover { color: var(--white); }
.footer-section .wordmark { color: var(--white); font-size: 1.2rem; display: inline-block; margin-bottom: 10px; }
.footer-section .wordmark span { color: var(--white); border-bottom: 3px solid var(--red); } /* no red text on dark */
.copyright { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: .88rem; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.copyright a { color: var(--grey-light); }

/* ---------- 20. Floating WhatsApp button ---------- */
.float-whatsapp {
    position: fixed; right: 18px; bottom: 18px; z-index: 900;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--red); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-hover); transition: transform .25s var(--ease), background .25s;
}
.float-whatsapp:hover { transform: scale(1.06); background: var(--red-dark); color: var(--white); }
.float-whatsapp svg { width: 28px; height: 28px; }

/* ---------- 21. Fade-in on scroll ---------- */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.fade-in.visible { opacity: 1; transform: none; }

/* ---------- 22. Tablet ---------- */
@media (min-width: 640px) {
    :root { --gutter: 28px; }
    .audience-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid, .work-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
    .approach-grid { grid-template-columns: repeat(2, 1fr); }
    .price-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-info { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 23. Desktop ---------- */
@media (min-width: 960px) {
    body { font-size: 1.09rem; }
    section { padding: 96px 0; }
    .site-mark { top: 24px; left: 28px; }
    .hamburger-menu { top: 24px; right: 28px; }
    .hero-arrow { display: block; }
    .hero-arrow-prev { left: 28px; }
    .hero-arrow-next { right: 28px; }
    .hero-container { padding: 120px 96px; }
    .audiences { margin-top: -80px; }
    .audience-grid { grid-template-columns: repeat(3, 1fr); }
    .about-content { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; }
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .services-grid.four { grid-template-columns: repeat(4, 1fr); }
    .services-grid.four .service-card-body p { font-size: .96rem; }
    .approach-grid { grid-template-columns: repeat(3, 1fr); }
    .approach-grid.five { grid-template-columns: repeat(5, 1fr); }
    .work-grid { grid-template-columns: repeat(3, 1fr); }
    .review-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
    .footer-info { grid-template-columns: 1.4fr 1fr 1.2fr 1.1fr; }
}

/* ==========================================================================
   Inner pages (stage 2–5 additions)
   ========================================================================== */

/* ---------- 25. Inner-page hero ---------- */
.hero-single { min-height: 64vh; min-height: 64svh; }
.hero-single .hero-container { padding-top: 130px; padding-bottom: 80px; }
.hero-crumb { position: absolute; top: 84px; left: 0; right: 0; z-index: 6; }
.hero-crumb .breadcrumb { padding: 0; color: var(--grey-light); }
.hero-crumb .breadcrumb a { color: #E9E4DC; }
.hero-crumb .breadcrumb a:hover { color: var(--white); }
.hero-crumb .breadcrumb li + li::before { color: var(--grey-light); }
.hero:has(.hero-crumb) .hero-container { padding-top: 140px; }

/* ---------- 26. Plain page intro (privacy and other text pages) ---------- */
.page-intro { padding: 120px 0 40px; background: var(--white); border-bottom: 1px solid var(--line); }
.page-intro .breadcrumb { padding: 0 0 22px; }
.page-intro h1 { margin-bottom: 12px; }
.page-intro p { color: var(--grey); max-width: 720px; }

.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 24px 0 8px; }
.prose ul, .prose ol { margin: 12px 0 0 22px; }
.prose li { margin: 6px 0; }
.prose p + ul, .prose ul + p { margin-top: 12px; }

/* ---------- 27. Text-only cards and wide images ---------- */
.service-card.text-only { border-top: 4px solid var(--red); }
.section-dark .service-card.text-only { border-top-color: var(--red); }
.about-image.wide { max-width: 560px; }
.about-image.wide img { aspect-ratio: 16 / 10; }
.section-dark .about-text p, .section-dark .credentials li { color: #EDEAE4; }
.section-dark .section-header.left .label { color: var(--grey-light); }
.price-strip-section { padding: 48px 0; }

/* ---------- 28. Pricing tiers ---------- */
.tier-grid { display: grid; gap: 20px; }
.tier {
    position: relative; display: flex; flex-direction: column;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px 24px 26px;
}
.tier.popular { border: 2px solid var(--red); box-shadow: var(--shadow); }
.tier .badge {
    position: absolute; top: -13px; left: 24px;
    background: var(--red); color: var(--white); font-family: var(--font-head); font-weight: 700;
    font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 12px; border-radius: 20px;
}
.tier h3 { font-size: 1.35rem; margin-bottom: 6px; }
.tier .who { color: var(--grey); font-size: 1rem; margin-bottom: 16px; }
.tier .from { color: var(--grey); font-size: .9rem; }
.tier .amount { font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; color: var(--red); line-height: 1.15; }
.tier .per { color: var(--grey); font-size: .95rem; margin-bottom: 16px; }
.tier ul { list-style: none; display: grid; gap: 8px; margin-bottom: 22px; }
.tier li { padding-left: 24px; position: relative; font-size: 1rem; }
.tier li::before { content: ''; position: absolute; left: 0; top: .62em; width: 12px; height: 3px; background: var(--red); }
.tier .btn { margin-top: auto; }
.pricing-group + .pricing-group { margin-top: 64px; }
.pricing-group > h3 { font-size: 1.5rem; margin-bottom: 6px; }
.pricing-group > p { color: var(--grey); margin-bottom: 26px; max-width: 720px; }
.fit-note {
    max-width: 820px; margin: 0 auto 48px; padding: 20px 24px;
    background: var(--white); border-left: 4px solid var(--red); border-radius: var(--radius); box-shadow: var(--shadow);
    font-size: 1.1rem;
}

/* Add-ons and quoted-work tables */
.price-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price-table th, .price-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table th { font-family: var(--font-head); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--grey); background: var(--paper); }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; }
.price-table td strong { font-family: var(--font-head); }
.price-table td .note { display: block; color: var(--grey); font-size: .95rem; }
.price-table tr:last-child td { border-bottom: none; }
.table-wrap { max-width: 900px; margin: 0 auto; }

.policy-grid { display: grid; gap: 18px; }
.policy { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); padding: 22px; }
.policy h3 { margin-bottom: 6px; }
.policy p { color: var(--grey); font-size: 1rem; }

/* ---------- 29. Estimator ---------- */
.estimator { display: grid; gap: 24px; }
.est-form { display: grid; gap: 18px; }
.est-block { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.est-block legend, .est-block h3 { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin-bottom: 10px; padding: 0; }
.est-block fieldset { border: none; }
.est-options { display: grid; gap: 8px; }
.est-options label, .est-row label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 1rem; }
.est-options input[type=radio], .est-options input[type=checkbox] { margin-top: 5px; accent-color: var(--red); width: 18px; height: 18px; flex: 0 0 18px; }
.est-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 8px 0; border-top: 1px solid var(--line); }
.est-row:first-of-type { border-top: none; }
.est-row input[type=number] {
    width: 84px; padding: 8px 10px; font: inherit; border: 1px solid #CFC7BA; border-radius: var(--radius); background: var(--paper);
}
.est-hint { color: var(--grey); font-size: .92rem; }
.est-result {
    background: var(--ink); color: #EDEAE4; border-radius: var(--radius); padding: 28px 24px;
    border-top: 4px solid var(--red); align-self: start;
}
.est-result h3 { color: var(--white); margin-bottom: 10px; }
.est-result .range { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 6vw, 2.4rem); color: var(--white); line-height: 1.15; }
.est-result .sub { color: var(--grey-light); margin-top: 6px; }
.est-result ul { list-style: none; margin: 16px 0 0; display: grid; gap: 6px; font-size: .98rem; color: var(--grey-light); }
.est-result li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line-dark); padding-bottom: 6px; }
.est-result .small { font-size: .9rem; color: var(--grey-light); margin-top: 16px; }

/* ---------- 30. Case study ---------- */
.case-facts { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-top: 22px; }
.case-facts div { border-top: 3px solid var(--red); padding-top: 10px; }
.case-facts dt { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.case-facts dd { font-family: var(--font-head); font-weight: 700; }
.shot { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: #D9D2C7; width: 100%; height: auto; }
.shot-grid { display: grid; gap: 22px; align-items: start; }
.shot-grid .phone { max-width: 320px; margin: 0 auto; }
.shot-grid.single { grid-template-columns: 1fr; margin-top: 22px; }
.shot-grid.pair { grid-template-columns: 1fr; margin-top: 22px; }
.shot-section-intro { max-width: 760px; margin: 0 auto 28px; text-align: center; color: var(--grey); }
video.shot { display: block; aspect-ratio: auto; }
@media (min-width: 640px) { .shot-grid.pair { grid-template-columns: 1fr 1fr; } }
.shot-caption { color: var(--grey); font-size: .95rem; margin-top: 8px; text-align: center; }

@media (min-width: 640px) {
    .tier-grid { grid-template-columns: repeat(2, 1fr); }
    .policy-grid { grid-template-columns: repeat(2, 1fr); }
    .case-facts { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 960px) {
    .tier-grid { grid-template-columns: repeat(3, 1fr); }
    .policy-grid { grid-template-columns: repeat(4, 1fr); }
    .estimator { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
    .est-result { position: sticky; top: 100px; }
    .shot-grid { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); }
    .hero-crumb { top: 96px; }
    .hero-crumb .container { padding: 0 96px; }
}
@media (max-width: 639px) {
    .price-table th, .price-table td { padding: 12px 10px; }
    .price-table td:last-child { white-space: normal; }
}

/* Grouped price tables */
.table-heading { max-width: 900px; margin: 40px auto 12px; font-size: 1.2rem; }
.table-heading:first-of-type { margin-top: 0; }
.promo-grid .service-card-body p { font-size: .98rem; }

/* ---------- 24. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    .fade-in { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------
   Castle mark + fire effects (effects.js)
   --------------------------------------------------------------- */
.mc-fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1500; }
.footer-castle { width: min(240px, 72%); margin: 0 0 22px; }
.mc-castle svg { width: 100%; height: auto; display: block; overflow: visible; }
.mc-castle .flag { transform-origin: 268px 52px; animation: mc-wave 3s ease-in-out infinite; }
@keyframes mc-wave { 50% { transform: skewY(-6deg) scaleX(.94); } }
/* draw-in only when effects.js is running (no JS = castle simply shows) */
.mc-anim .mc-castle .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s cubic-bezier(.4, .1, .2, 1); }
.mc-anim .mc-castle .draw-2 { transition-delay: .5s; }
.mc-anim .mc-castle .draw-3 { transition-delay: 1s; }
.mc-anim .mc-castle.is-drawn .draw { stroke-dashoffset: 0; }
.mc-anim .mc-castle .flag, .mc-anim .mc-castle .brazier { opacity: 0; transition: opacity .6s 1.9s; }
.mc-anim .mc-castle.is-drawn .flag, .mc-anim .mc-castle.is-drawn .brazier { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .mc-castle .flag { animation: none; } }

/* ---------------------------------------------------------------
   Entrance motion (in the style of kerosenesky.com / thebatman.co.za)
   Active only when html has .mc-motion (added by effects.js, never
   for prefers-reduced-motion). Without it, the plain fade-in above applies.
   --------------------------------------------------------------- */
:root { --ease-out: cubic-bezier(.2, .8, .2, 1); }

/* scroll reveals: a longer rise, a softer landing, staggered by effects.js via --d */
.mc-motion .fade-in { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.mc-motion .fade-in.visible { opacity: 1; transform: none; }

/* card images settle in from a slight zoom */
.mc-motion .fade-in .card-img, .mc-motion .fade-in .service-card-img, .mc-motion .fade-in .approach-card-img,
.mc-motion .fade-in.about-image img { transform: scale(1.1); transition: transform 1.6s var(--ease-out); transition-delay: var(--d, 0s); }
.mc-motion .fade-in.visible .card-img, .mc-motion .fade-in.visible .service-card-img, .mc-motion .fade-in.visible .approach-card-img,
.mc-motion .fade-in.visible.about-image img { transform: none; }
.mc-motion .about-image { overflow: hidden; }

/* headlines rise word by word from behind a mask */
.mc-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.mc-split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--base, 0s) + var(--wi, 0) * 45ms); }
.visible .mc-split .w > span, .mc-in .mc-split .w > span { transform: none; }
.mc-motion .section-header.fade-in { transform: none; }      /* the words do the moving */
.section-header h2.mc-split { --base: .05s; }

/* section underlines draw out after the heading */
.mc-motion .section-header .underline { transform: scaleX(0); transform-origin: center; transition: transform .9s var(--ease-out) .45s; }
.mc-motion .section-header.left .underline { transform-origin: left; }
.mc-motion .section-header.visible .underline { transform: scaleX(1); }

/* banners: headline words rise, then the label, text and buttons follow */
.mc-motion .hero-content > :not(h1):not(.hero-heading) { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.mc-motion .mc-in .hero-content > .service-type { transition-delay: .05s; }
.mc-motion .mc-in .hero-content > p:not(.service-type) { transition-delay: .5s; }
.mc-motion .mc-in .hero-content > .cta-buttons { transition-delay: .68s; }
.mc-motion .mc-in .hero-content > :not(h1):not(.hero-heading) { opacity: 1; transform: none; }
.hero-content .mc-split { --base: .15s; }

/* banners: a slow drift and zoom on the background photo */
.mc-motion .hero-slide.active::before { animation: mc-kenburns 26s ease-in-out infinite alternate; }
@keyframes mc-kenburns { from { transform: scale(1.04) translateX(0); } to { transform: scale(1.14) translateX(-1.5%); } }

/* a sweep of light across the main buttons on hover */
.mc-motion .btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.mc-motion .btn-primary::after {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 235, 225, .38) 50%, transparent 70%);
    transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.mc-motion .btn-primary:hover::after, .mc-motion .btn-primary:focus-visible::after { transform: translateX(120%); }
