/* ==============================================================
   GLOBAL RESET & TYPOGRAPHY
   ============================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    background: linear-gradient(to bottom,
                #fafafa 0%,
                #f0f0f0 100%);
    color: #222;
}

/* ==============================================================
   BRAND COLORS
   ============================================================== */
:root {
    --primary:       #2B69A4;   /* brand blue */
    --primary-dark:  #1e4c84;   /* darker blue for hover */
    --secondary:    #ABACAE;   /* neutral gray */
    --alt:          #303030;   /* dark gray (occasional) */
    --white:        #ffffff;
}

/* ==============================================================
   HEADER & NAVIGATION
   ============================================================== */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 1rem;
    z-index: 1000;
}

/* ---------- LOGO (circular with halo) ---------- */
.logo {
    height: 128px;
    width: 128px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--white);
    box-shadow:
        0 0 0 6px rgba(43,105,164,0.18),
        inset 0 0 6px rgba(0,0,0,.4);
}
.logo-link { display: inline-block; }

/* --------------------------------------------------------------
   DESKTOP NAVIGATION – blue pill + white buttons
   -------------------------------------------------------------- */
.nav-desktop {
    display: none;
    position: relative;
}
.nav-desktop::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -2rem;
    right: -2rem;
    transform: translateY(-50%);
    height: 2.8rem;
    background: var(--primary);
    border-radius: 1.4rem;
    padding-left: 1rem;
    padding-right: 3rem;
    z-index: -1;
}
.nav-list {
    list-style: none;
    display: flex;
    gap: 0.8rem;
}
.nav-list a {
    background: var(--white);
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: .4rem .9rem;
    border-radius: 0.6rem;
    transition: background .2s, color .2s;
}
.nav-list a:hover,
.nav-list a:focus {
    background: var(--primary-dark);
    color: var(--white);
}

/* --------------------------------------------------------------
   MOBILE NAVIGATION (unchanged)
   -------------------------------------------------------------- */
.burger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}
.burger span {
    width: 24px;
    height: 3px;
    background: #222;
    border-radius: 2px;
}
.nav-mobile {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    width: 200px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.nav-mobile.hidden { display: none; }
.nav-mobile .nav-list {
    flex-direction: column;
    padding: .5rem 0;
}
.nav-mobile .nav-list a {
    padding: .6rem 1rem;
    color: #222;
}

/* ==============================================================
   HERO SECTION – blue rounded border + overlay
   ============================================================== */
.hero-section {
    position: relative;               /* stacking context */
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    text-align: center;
    padding-bottom: 4rem;
}

/* --- Blue rounded border wrapper (behind everything) --- */
.video-border-wrapper {
    display: inline-block;
    padding: 8px;                    /* border thickness */
    background: var(--primary);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    transform-origin: top center;
    position: relative;
    z-index: 1;                      /* lower than overlay */
}

/* --- Video itself (no mask) --- */
.bordered-video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;              /* inner rounding */
}

/* --------------------------------------------------------------
   HERO OVERLAY – holds title, tagline, CTA
   -------------------------------------------------------------- */
.hero-overlay {
    position: absolute;
    inset: 0;                         /* fill the hero area */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    z-index: 2;                      /* above the blue border wrapper */
}

/* Title & tagline – off‑white, no shadow */
.hero-overlay .hero-title,
.hero-overlay .hero-tagline {
    color: #f5f5f5;                  /* off‑white */
    text-shadow: none;
}

/* --------------------------------------------------------------
   CTA BUTTON – ensure it’s on top and styled correctly
   -------------------------------------------------------------- */
.hero-overlay .cta-btn {
    position: relative;              /* creates its own stacking context */
    z-index: 3;                      /* highest of the three layers */
    margin-top: 1.5rem;
    padding: .8rem 1.6rem;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    transition: background .2s, transform .1s;
}
.hero-overlay .cta-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------
   HERO SCROLL ANIMATION – shrink/fade video, slide text
   -------------------------------------------------------------- */
.hero-section .hero-title,
.hero-section .hero-tagline,
.video-border-wrapper {
    transition: transform .6s ease-out,
                opacity .6s ease-out;
}

/* When the hero is mostly out of view, we add .scrolled-past */
.hero-section.scrolled-past .hero-title {
    transform: translateY(-30px);
    opacity: 0.6;
}
.hero-section.scrolled-past .hero-tagline {
    transform: translateY(-20px);
    opacity: 0.5;
}
.hero-section.scrolled-past .video-border-wrapper {
    transform: scale(0.85);
    opacity: 0.7;
}

/* ==============================================================
   BLURB SECTION
   ============================================================== */
.blurb-section {
    padding: 3rem 1rem;
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
}
.blurb-content p { margin-bottom: 1rem; }
.blurb-content strong { color: var(--primary); }

/* ==============================================================
   FOOTER
   ============================================================== */
.site-footer {
    background: #eaeaea;
    color: #555;
    text-align: center;
    padding: 1.5rem 1rem;
}
.site-footer a {
    color: var(--primary);
    text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }

/* ==============================================================
   SOFT‑BEVELED INPUTS (future forms)
   ============================================================== */
input,
textarea,
select,
button {
    border: none;
    outline: none;
    border-radius: 8px;
    padding: .6rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    background: #ddd;
    color: #222;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,.2),
                inset -2px -2px 5px rgba(255,255,255,.6);
    transition: box-shadow .2s ease;
}
input:focus,
textarea:focus,
select:focus,
button:focus {
    box-shadow: inset 1px 1px 3px rgba(0,0,0,.4),
                inset -1px -1px 3px rgba(255,255,255,.4);
}

/* ==============================================================
   FADE‑IN ON SCROLL (generic)
   ============================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s ease-out, transform .8s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================== */
@media (min-width: 768px) {
    .nav-desktop { display: block; }
    .burger,
    .nav-mobile { display: none; }
}
@media (max-width: 767px) {
    .hero-title { font-size: 2rem; }
    .hero-tagline { font-size: 1rem; }
}
/* --------------------------------------------------------------
   TEAM PAGE – GRID LAYOUT
   -------------------------------------------------------------- */
.team-section {
    padding: 3rem 1rem;
    max-width: 1100px;
    margin: 0 auto;
    background: var(--white);
    text-align: center;
}
.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 2rem;
    color: #222;
}

/* Grid container */
.team-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Individual member card */
.team-member {
    background: #fafafa;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.team-photo {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 4px solid var(--primary);   /* optional brand accent */
}
.team-name {
    font-size: 1.4rem;
    margin: .4rem 0 .2rem;
    color: #222;
}
.team-role {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: .8rem;
}
.team-bio p {
    font-size: .95rem;
    line-height: 1.5;
    color: #444;
}
/* --------------------------------------------------------------
   CONTACT PAGE – simple layout
   -------------------------------------------------------------- */
.contact-section {
    padding: 3rem 1rem;
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    text-align: center;
}
.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
    color: #222;
}
.contact-intro {
    margin-bottom: 1rem;
    color: #555;
}
.contact-list {
    list-style: disc;
    margin: 0 auto 2rem;
    max-width: 480px;
    text-align: left;
    color: #444;
}
.contact-list li {
    margin-bottom: .4rem;
}
.contact-details p {
    margin: .6rem 0;
    font-size: 1.1rem;
}
.contact-details a {
    color: var(--primary);
    text-decoration: none;
}
.contact-details a:hover {
    text-decoration: underline;
}
/* --------------------------------------------------------------
   PRACTICE AREA – layout for each service block
   -------------------------------------------------------------- */
.practice-area {
    padding: 3rem 1rem;
    background: var(--white);
}
.practice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}
.practice-grid.reverse {
    direction: rtl;               /* flips image/text order on wide screens */
}
.practice-grid.reverse .practice-text {
    direction: ltr;               /* keep text left‑to‑right */
}
.practice-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.practice-text h2 {
    margin-bottom: .6rem;
    color: var(--primary);
    font-size: 1.5rem;
}
.practice-text p {
    line-height: 1.6;
    color: #444;
}

/* Mobile‑first: stack image above text */
@media (max-width: 767px) {
    .practice-grid {
        grid-template-columns: 1fr;
    }
    .practice-grid.reverse {
        direction: ltr;   /* cancel the RTL on narrow screens */
    }
}
/* --------------------------------------------------------------
   1️⃣ GLOBAL PERSPECTIVE CONTAINER
   -------------------------------------------------------------- */
body {
    /* Give the whole page a 3‑D perspective so child transforms
       (translateZ) create a realistic “lifted” effect. */
    perspective: 1200px;
}

/* --------------------------------------------------------------
   2️⃣ PRACTICE AREA – MAIN BLOCK
   -------------------------------------------------------------- */
.practice-area {
    /* Separate each block vertically */
    margin: 3rem auto;               /* big top/bottom gap */
    padding: 2rem 1.5rem;            /* inner breathing room */
    max-width: 1100px;
    background: #fff;                /* default (odd) background */
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,.06);  /* subtle lift */
    position: relative;              /* for pseudo‑element */
    overflow: hidden;                /* hide pseudo‑element overflow */

    /* Give the block a tiny 3‑D lift */
    transform: translateZ(0);
    transition: transform .4s ease-out,
                box-shadow .4s ease-out;
}

/* --------------------------------------------------------------
   3️⃣ ALTERNATING BACKGROUND (even blocks)
   -------------------------------------------------------------- */
.practice-area:nth-child(even) {
    background: #f9fbfd;            /* very light blue‑gray */
}

/* --------------------------------------------------------------
   4️⃣ SEPARATOR LINE (optional visual cue)
   -------------------------------------------------------------- */
.practice-area:not(:first-of-type)::before {
    content: "";
    position: absolute;
    top: -1.5rem;                    /* half of the vertical margin */
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(to right,
                transparent,
                rgba(0,0,0,.08),
                transparent);
}

/* --------------------------------------------------------------
   5️⃣ CONTENT GRID (image + text) – keep your existing .practice-grid
   -------------------------------------------------------------- */
.practice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}
.practice-grid.reverse {
    direction: rtl;                  /* flips order on wide screens */
}
.practice-grid.reverse .practice-text {
    direction: ltr;                  /* keep text LTR */
}

/* --------------------------------------------------------------
   6️⃣ IMAGE – add a faint “glow” to reinforce depth
   -------------------------------------------------------------- */
.practice-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 6px 14px rgba(0,0,0,.08);
    transition: transform .3s ease;
}

/* Slight zoom‑in on hover (adds interactivity) */
.practice-img:hover {
    transform: scale(1.02);
}

/* --------------------------------------------------------------
   7️⃣ TEXT – keep it clean
   -------------------------------------------------------------- */
.practice-text h2 {
    margin-bottom: .6rem;
    color: var(--primary);
    font-size: 1.5rem;
}
.practice-text p {
    line-height: 1.6;
    color: #444;
}

/* --------------------------------------------------------------
   8️⃣ MOBILE STACKING (unchanged, just reiterated)
   -------------------------------------------------------------- */
@media (max-width: 767px) {
    .practice-grid {
        grid-template-columns: 1fr;
    }
    .practice-grid.reverse {
        direction: ltr;   /* cancel RTL on narrow screens */
    }
}

/* --------------------------------------------------------------
   9️⃣ SUBTLE BACKGROUND PARALLAX (JS will toggle this class)
   -------------------------------------------------------------- */
.parallax-bg {
    background: linear-gradient(135deg,
                rgba(255,255,255,.95) 0%,
                rgba(245,250,255,.95) 100%);
    transition: background-position .6s ease-out;
    background-size: 200% 200%;
    background-position: 0% 0%;
}

/* When the page scrolls, we’ll add .parallax-bg to the <body>
   (or any container) to give the whole page a gentle shift. */
/* --------------------------------------------------------------
   3️⃣ INTRODUCTION SECTION – Alpine‑blue background
   -------------------------------------------------------------- */
.about-intro {
    background: #2B69A4;                /* Alpine brand blue */
    color: #f5f5f5;                     /* off‑white text for contrast */
    padding: 3rem 1rem;                 /* generous vertical spacing */
    border-radius: 12px;                /* softened corners to match cards */
    margin: 2rem auto;                  /* separate it from the next block */
    max-width: 1100px;                  /* keep it aligned with the cards */
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

/* Ensure headings inside the intro keep the same size */
.about-intro .page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

/* Paragraphs inside the intro – a little line‑height for readability */
.about-intro .about-content p {
    line-height: 1.6;
    margin-bottom: 0;
}

/* If you ever want the intro to also participate in the
   subtle page‑wide parallax (optional), just add the class
   .parallax-bg to the body – the rule is already in the CSS. */
/* --------------------------------------------------------------
   OUR WORK PAGE – COMMON SECTION STYLES
   -------------------------------------------------------------- */
.work-section {
    padding: 3rem 1rem;
    max-width: 1100px;
    margin: 0 auto;
    background: var(--white);
}

/* Title for each section */
.work-section .page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    text-align: center;
    color: #222;
}

/* Intro paragraph (brief description) */
.section-intro {
    margin: 0 auto 2rem;
    max-width: 800px;
    line-height: 1.6;
    color: #444;
    text-align: center;
}

/* --------------------------------------------------------------
   PROJECT CARD – video or image + description
   -------------------------------------------------------------- */
.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 3rem;
    background: #fafafa;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.project-card.reverse {               /* handy if you ever need opposite order */
    direction: rtl;
}
.project-card.reverse .project-info {
    direction: ltr;
}

/* Media (video or image) */
.project-media {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}
.project-video,
.placeholder-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Info column */
.project-info {
    display: flex;
    flex-direction: column;
}
.project-title {
    margin: 0 0 .5rem;
    font-size: 1.4rem;
    color: var(--primary);
}
.project-desc {
    flex-grow: 1;
    margin-bottom: .8rem;
    line-height: 1.5;
    color: #555;
}
.project-link {
    align-self: flex-start;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}
.project-link:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------
   GALLERY GRID – placeholders for future images
   -------------------------------------------------------------- */
.gallery-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 2rem;
}
.gallery-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    text-align: center;
}
.gallery-img {
    width: 100%;
    height: auto;
    display: block;
}
.gallery-item figcaption {
    padding: .6rem;
    font-size: .9rem;
    color: #555;
}

/* --------------------------------------------------------------
   SOCIAL LINKS (Instagram / VSCO)
   -------------------------------------------------------------- */
.social-links {
    margin-top: 2rem;
    text-align: center;
}
.social-links p {
    margin-bottom: .5rem;
    color: #222;
}
.social-btn {
    display: inline-block;
    margin: 0 .5rem;
    padding: .6rem 1.2rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
    transition: background .2s, transform .1s;
}
.social-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------
   PLACEHOLDER CARD – for sections that aren’t live yet
   -------------------------------------------------------------- */
.placeholder-card {
    background: #f4f8fb;
    border: 2px dashed var(--primary);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: #555;
}
.placeholder-text {
    font-size: 1.1rem;
    margin: 0;
}

/* --------------------------------------------------------------
   RESPONSIVE ADJUSTMENTS (mobile)
   -------------------------------------------------------------- */
@media (max-width: 767px) {
    .project-card {
        grid-template-columns: 1fr;
    }
    .project-card.reverse {
        direction: ltr;   /* cancel RTL on mobile */
    }
}
/* --------------------------------------------------------------
   OUR WORK – SECTION BASE (mirrors About page)
   -------------------------------------------------------------- */
.work-section {
    padding: 3rem 1rem;
    max-width: 1100px;
    margin: 0 auto;
    background: var(--white);
}
.work-section .page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
    text-align: center;
    color: #222;
}
.section-intro {
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.6;
    color: #444;
    text-align: center;
}

/* --------------------------------------------------------------
   CAROUSEL – generic reusable component
   -------------------------------------------------------------- */
.carousel {
    position: relative;
    overflow: hidden;
    margin: 2rem 0;
    border-radius: 12px;
    background: #fafafa;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.carousel-track {
    display: flex;
    transition: transform .5s ease;
    will-change: transform;
}
.carousel-slide {
    min-width: 100%;               /* each slide takes full carousel width */
    padding: 1.5rem;
    box-sizing: border-box;
    text-align: center;
}
.carousel-media {
    max-width: 960px;              /* cap the visual size */
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    margin: 0 auto 1rem;
}
.carousel-caption h2 {
    margin: .6rem 0 .3rem;
    font-size: 1.3rem;
    color: var(--primary);
}
.carousel-caption p {
    margin: 0;
    font-size: .95rem;
    line-height: 1.5;
    color: #555;
}

/* Navigation arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.85);
    border: none;
    font-size: 2rem;
    color: var(--primary);
    padding: .2rem .5rem;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
    transition: background .2s;
}
.carousel-nav:hover {
    background: rgba(255,255,255,1);
}
.carousel-nav.prev { left: 1rem; }
.carousel-nav.next { right: 1rem; }

/* Dots navigation */
.carousel-dots {
    position: absolute;
    bottom: 0.8rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: .6rem;
}
.carousel-dot {
    width: 10px;
    height: 10px;
    background: rgba(0,0,0,.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background .2s;
}
.carousel-dot.active {
    background: var(--primary);
}

/* --------------------------------------------------------------
   PLACEHOLDER CARD (consulting, AI, etc.)
   -------------------------------------------------------------- */
.placeholder-card {
    background: #f4f8fb;
    border: 2px dashed var(--primary);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: #555;
}
.placeholder-text {
    font-size: 1.1rem;
    margin: 0;
}

/* --------------------------------------------------------------
   SOCIAL BUTTONS (Instagram / VSCO)
   -------------------------------------------------------------- */
.social-links {
    margin-top: 2rem;
    text-align: center;
}
.social-links p {
    margin-bottom: .5rem;
    color: #222;
}
.social-btn {
    display: inline-block;
    margin: 0 .5rem;
    padding: .6rem 1.2rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
    transition: background .2s, transform .1s;
}
.social-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------
   RESPONSIVE ADJUSTMENTS (mobile)
   -------------------------------------------------------------- */
@media (max-width: 767px) {
    .carousel-nav { font-size: 1.6rem; }
    .carousel-caption h2 { font-size: 1.2rem; }
    .carousel-caption p { font-size: .85rem; }
}
/* --------------------------------------------------------------
   CAROUSEL – shared across all work sections
   -------------------------------------------------------------- */
.carousel {
    position: relative;
    max-width: 900px;               /* caps the overall carousel width */
    margin: 2rem auto;              /* center it and give vertical breathing room */
    overflow: hidden;               /* hide slides that are off‑screen */
    border-radius: 12px;
    background: #fafafa;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

/* Navigation arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(43,105,164,.8);   /* semi‑transparent brand blue */
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 2;
    transition: background .2s;
}
.carousel-nav:hover {
    background: rgba(43,105,164,1);
}
.carousel-nav.prev { left: 8px; }
.carousel-nav.next { right: 8px; }

/* Track – a flex container that we slide left/right */
.carousel-track {
    display: flex;
    transition: transform .45s ease;
}

/* Each slide */
.carousel-slide {
    min-width: 100%;                /* each slide takes the full carousel width */
    box-sizing: border-box;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Media (image or video) – capped size */
.carousel-media {
    max-width: 100%;
    max-height: 500px;              /* caps height for videos & large images */
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.06);
}

/* Caption under each slide */
.carousel-caption {
    margin-top: 1rem;
    text-align: center;
    max-width: 800px;
}
.carousel-caption h2 {
    margin: .4rem 0 .2rem;
    font-size: 1.4rem;
    color: var(--primary);
}
.carousel-caption p {
    margin: 0;
    line-height: 1.5;
    color: #444;
}

/* Placeholder slide styling (for sections not yet live) */
.placeholder-carousel .carousel-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}
.placeholder-text {
    font-size: 1.2rem;
    color: #666;
    text-align: center;
}

/* --------------------------------------------------------------
   RESPONSIVE ADJUSTMENTS
   -------------------------------------------------------------- */
@media (max-width: 767px) {
    .carousel { max-width: 100%; }
    .carousel-nav { width: 36px; height: 36px; font-size: 1.3rem; }
}
/* --------------------------------------------------------------
   12️⃣ TITLE BANNER FOR WORK PAGE (blue background, white text)
   -------------------------------------------------------------- */
.title-banner {
    background: var(--primary);          /* brand blue */
    color: var(--white);
    padding: 2.5rem 1rem;
    text-align: center;
}
.title-banner .page-title {
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--white);
}

/* --------------------------------------------------------------
   13️⃣ ABOUT PAGE – make title text white (keep sub‑text black)
   -------------------------------------------------------------- */
.about-intro {
    background: var(--primary);          /* already blue */
    color: var(--white);                 /* force all text to white */
}
.about-intro .page-title,
.about-intro p {
    color: var(--white);                 /* explicit for safety */
}

/* --------------------------------------------------------------
   14️⃣ SECTION HEADINGS FOR WORK PAGE (consistent styling)
   -------------------------------------------------------------- */
.work-section .section-heading {
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 1.5rem 0 0.8rem;
    text-align: center;
    color: #222;                         /* dark for readability */
}

/* --------------------------------------------------------------
   15️⃣ OPTIONAL – tighten spacing between work sections
   -------------------------------------------------------------- */
.work-section {
    margin-bottom: 4rem;
}
/* --------------------------------------------------------------
   12️⃣ TITLE BANNER – BUBBLE STYLE (same as other pages)
   -------------------------------------------------------------- */
.title-banner {
    background: var(--primary);          /* brand blue */
    color: var(--white);
    padding: 2.5rem 1rem;
    text-align: center;

    /* Bubble‑like container */
    max-width: 1100px;                   /* keep it aligned with other sections */
    margin: 2rem auto;                   /* centre & give vertical breathing room */
    border-radius: 12px;                 /* rounded corners = “bubble” */
    box-shadow: 0 4px 12px rgba(0,0,0,.15);/* subtle lift */
}

/* Keep the heading white (it already inherits the colour) */
.title-banner .page-title {
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--white);
}
