/* GENERAL STYLES */
/* Use border-box sizing to avoid overflow from padding/borders */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    background: #0f2027 url('Images/background/sigma-bg-lite.svg') center/cover no-repeat;
    color: #ffffff;
    font-size: var(--fs-base);
}

/* =============================
     Utility Classes (New)
     Reusable tokens to avoid style duplication across pages
     ============================= */
.heading-chip {
    display: inline-block;
    background: var(--surface-card-near);
    padding: 10px 16px;
    border-radius: var(--surface-radius);
    outline: 1px solid var(--surface-outline);
    box-shadow: var(--shadow-soft);
    color: #0f2233;
    text-shadow: none;
}
.heading-chip--sm { padding: 8px 14px; font-size: 1.1rem; }

/* Paragraph/intro style capsule */
.text-chip {
    display: inline-block;
    background: var(--surface-card-near);
    font-size: var(--fs-base);
    padding: 8px 14px;
    border-radius: var(--surface-radius);
    outline: 1px solid var(--surface-outline);
    box-shadow: var(--shadow-soft);
    color: #0f2233;
}

/* Generic capsule surface (for list items, CTA blocks, etc.) */
.capsule {
    background: var(--surface-card-near);
    outline: 1px solid var(--surface-outline);
    border-radius: var(--surface-radius);
    box-shadow: var(--shadow-soft);
    color: #0f2233;
}
/* Accessibility helper (visually hidden but screen-reader available) */
.visually-hidden { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0 0 0 0)!important; clip-path:inset(50%)!important; border:0!important; white-space:nowrap!important; }


/* Performance: only render sections when they enter viewport */
.services,
.why-choose-us,
.team-section,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: 1000px; /* reserve space to avoid jank */
}

/* Responsive vertical rhythm reductions */
@media (max-width: 860px) { .services, .why-choose-us, .team-section { padding: 60px var(--section-pad-x); } }
@media (max-width: 600px) { .services, .why-choose-us, .team-section { padding: 52px var(--section-pad-x); } }
/* Dial back effects on small screens for performance */
@media (max-width: 900px) { body { background-size: cover; background-attachment: scroll; } }
html {
    scroll-behavior: smooth;
}

/* Prevent background scroll when overlays/menus are open */
body.no-scroll { overflow: hidden; }

/* Make images responsive by default */
img { max-width: 100%; height: auto; }

/* Provide offset for anchored sections below sticky header */
/* Root variables (consolidated & includes fluid scale) */
:root {
  --header-h: 64px;
  --brand-blue: #223B63;
  --brand-blue-rgb: 34, 59, 99;
  --brand-green: #A9BE8C;
  --brand-green-rgb: 169, 190, 140;
  --af-blue: var(--brand-blue);
  --af-blue-rgb: var(--brand-blue-rgb);
  --af-blue-bright: #4C6FA6;
  --en-green: #2C9B47;
  --en-green-rgb: 44, 155, 71;
    /* Neutral gray surfaces replacing pure white (#ffffff) while keeping transparency */
                --surface-gray-rgb: 170,172,176; /* a bit more gray */
    --surface-card-near: rgba(var(--surface-gray-rgb), 0.94); /* replaces solid white chips */
    --surface-card-light: rgba(var(--surface-gray-rgb), 0.212); /* replaces translucent white 0.212 */
    --card-text-bg: rgba(var(--surface-gray-rgb), 0.94); /* was rgba(255,255,255,0.96) */
  --card-text-bg-dark: rgba(0, 0, 0, 0.34);
  --card-text-shadow: none;
  --card-chip-radius: 10px;
  --card-chip-pad-y: 6px;
  --card-chip-pad-x: 10px;
  --section-pad-y: 80px;
  --section-pad-y-sm: 60px;
  --section-pad-x: 20px;
  --nav-gap: 1.25rem;
  --grid-gap: 20px;
    --team-grid-gap: 3.5rem;
    --surface-radius: 14px;
    --surface-outline: rgba(255,255,255,0.25);
    --shadow-header: 0 4px 18px rgba(0,0,0,0.08);
    --shadow-soft: 0 6px 24px rgba(0,0,0,0.18);
    --shadow-hover: 0 10px 36px rgba(0,0,0,0.24);
    --container-max-w: 1200px;
    --heading-size-lg: 2.5rem;
    --chip-pad-y: 10px;
    --chip-pad-x: 14px;
    --chip-pad-x-lg: 16px;
    /* Fluid scale */
    --fs-base: clamp(0.95rem, 0.85rem + 0.4vw, 1.05rem);
    --fs-sm: clamp(0.8rem, 0.75rem + 0.35vw, 0.95rem);
    --fs-lg: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
    --fs-h2: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
    --fs-h3: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
    /* Hero shared sizing */
    --hero-w: clamp(480px, 82vw, 1700px);
    --hero-pad-y: clamp(12px, 2.2vw, 48px);
    --hero-pad-x: clamp(18px, 3vw, 64px);
}
section { scroll-margin-top: calc(var(--header-h, 80px) + 10px); }

/* =============================
     Responsive Enhancements (mobile/tablet) – no burger menu
     ============================= */
@media (max-width: 1099px) { .nav { flex-wrap: wrap; justify-content: flex-end; } .logo-img { height: 58px; } }
@media (max-width: 680px) {
    .header { flex-wrap: wrap; row-gap: 4px; padding: 0.4rem 0.75rem 0.55rem; }
    .logo { margin-right: 0; }
    .nav { flex: 1 1 100%; justify-content: center; gap: 0.55rem 0.9rem; }
    .nav a { padding: 6px 8px; font-size: 0.85rem; }
    .nav a .af { font-size: 0.9rem; }
    .nav a .en { font-size: 0.7rem; }
    .nav a::after { left: 6px; right: 6px; bottom: 2px; }
}
@media (max-width: 420px) { .nav a { padding: 4px 6px; } .logo-img { height: 52px; } }
@media (max-width: 520px) { .hero-logo { width: 88vw; padding: 16px 20px; margin-bottom: 1.75rem; } .hero-content { padding-top: 2rem; } }
@media (max-width: 900px) and (min-width: 521px) { .hero-logo { width: clamp(360px, 70vw, 920px); padding: clamp(14px,2vw,36px) clamp(18px,3vw,48px); } }
@media (max-width: 600px) { .hero-subtext { font-size: 0.95rem; padding: 10px 12px; } }
@media (max-width: 860px) { .services, .why-choose-us, .team-section { padding: 60px var(--section-pad-x); } }
@media (max-width: 600px) { .services, .why-choose-us, .team-section { padding: 52px var(--section-pad-x); } }
@media (max-width: 900px) { body { background-size: cover; background-attachment: scroll; } }
@media (max-width: 600px) { .service-card { padding: 16px 16px 18px; } .service-card h3 .af, .service-card h3 .en { font-size: 1.05rem; } }
@media (max-width: 600px) { .why-card { padding: 16px 16px 18px; } .why-card h3 .af, .why-card h3 .en { font-size: 1.05rem; } }
@media (max-width: 680px) { .team-section h2 { margin-bottom: 2rem; } }
@media (max-width: 600px) { .team-card.glass { padding: 1.4rem 1rem 1.3rem; max-width: 400px; } .team-photo { width: 120px; height: 120px; margin-bottom: 1rem; } .team-card.glass h3 { font-size: 1.05rem; } .team-card.glass p { font-size: 0.85rem; } }
@media (max-width: 520px) { .team-card.glass { box-shadow: 0 4px 18px rgba(0,0,0,0.18); } .team-card.glass:hover { transform: translateY(-4px); } .team-photo { box-shadow: 0 0 0 2px rgba(var(--af-blue-rgb),0.4), 0 0 0 4px rgba(var(--en-green-rgb),0.22), 0 6px 18px rgba(0,0,0,0.25); } }
@media (max-width: 640px) { .footer { padding: 28px 20px 36px; } }
@media (max-width: 800px) { .footer-contact { text-align: center; } .footer-contact p { justify-content: center; } }
@media (max-width: 680px) { .services h2, .why-choose-us h2, .team-section h2 { --h2-size: var(--fs-h2); } }
@media (max-width: 480px) { .hero-logo { box-shadow: 0 6px 24px -6px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.28); } .service-card, .why-card, .team-card.glass { box-shadow: 0 4px 16px rgba(0,0,0,0.18); } }
@media (prefers-reduced-motion: reduce) { .service-card, .why-card, .team-card.glass, .card-cta, .hero-logo { transition: none !important; } }

/* Global bilingual text coloring: applies to spans/blocks marked by class or lang attribute */
/* Prefer class hooks when present; language attribute as a safe fallback */
.af, [lang="af"] { color: var(--af-blue); }
.en, [lang="en"] { color: var(--en-green); }

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(90deg, rgba(var(--af-blue-rgb),0.08), rgba(var(--en-green-rgb),0.06)), var(--surface-card-near);
        border-bottom: 1px solid rgba(15,34,51,0.06);
    box-shadow: var(--shadow-header);
}

/* Container helper */
.container { max-width: var(--container-max-w); margin: 0 auto; padding: 0 var(--section-pad-x); }
/* Apply container width to existing wrappers without changing HTML */
.services-content, .why-container, .team-grid { max-width: var(--container-max-w); margin: 0 auto; }

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    margin-right: auto;        /* Pushes nav to the right */
    padding: 4px 8px;
    background: var(--surface-card-near);
    border: 1px solid #e9eef5;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.logo-img {
    height: 64px;
    width: auto;
    max-width: 360px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.15));
}

/* NAVIGATION */

/* Inline navigation bar */
.nav { display: flex; gap: var(--nav-gap); align-items: center; }

/* Remove burger styles - no longer used */

/* Nav link with stacked Afrikaans over English */
.nav a {
        color: #0f2233;
        text-decoration: none;
        font-size: 0.95rem;
        transition: color 0.2s ease, background 0.2s ease;
        font-weight: 600;
        display: grid;
        grid-template-rows: auto auto;
        line-height: 1.1;
        padding: 8px 10px;
        border-radius: 10px;
}
.nav a .af, .nav a .en { display: block; }
.nav a .af { font-size: 1rem; }
.nav a .en { font-size: 0.85rem; }

/* Bilingual coloring inside nav links */
.nav a .af { color: var(--af-blue); }
.nav a .en { color: var(--en-green); opacity: 1; filter: none; }

.nav a:hover { background: linear-gradient(90deg, rgba(var(--af-blue-rgb),0.08), rgba(var(--en-green-rgb),0.08)); }

/* Inline layout, no sliding panel */

/* Focus ring for accessibility */
.nav a:focus-visible {
    outline: 2px solid rgba(var(--af-blue-rgb),0.6);
    outline-offset: 2px;
}

/* Underline indicator for hover/active */
.nav a { position: relative; }
.nav a::after {
    content: "";
    position: absolute;
    left: 10px; right: 10px;
    bottom: 4px;
    height: 2px;
    background: linear-gradient(90deg, var(--af-blue), var(--en-green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

/* Active nav link */
.nav a.active { background: linear-gradient(90deg, rgba(var(--af-blue-rgb),0.08), rgba(var(--en-green-rgb),0.08)); }

/* Remove overlay (not used) */

/* Desktop inline nav */
@media (min-width: 900px) {
    .nav { position: static; background: transparent; box-shadow: none; }
}

/* Mobile/tablet: wrap links to multiple lines if needed */
@media (max-width: 1099px) {
    .nav { flex-wrap: wrap; justify-content: flex-end; }
    .logo-img { height: 58px; }
}

/* Remove slide-in animation */
.nav a { opacity: 1; transform: none; transition: background 0.2s ease, color 0.2s ease; }










/* HERO SECTION */
.hero {
    position: relative;
    min-height: 100vh; /* fallback */
    min-height: 100svh;
    background: url('Images/Heading bg/hero-bg.jpg') center center/cover no-repeat;
    display: flex;
    align-items: center; /* vertically center content */
    justify-content: center; /* horizontally center content */
    text-align: center;
    color: white;
    padding: 0 var(--section-pad-x);
}
/* Fallback if --vh-unit set by JS (older Safari) */
@supports not (height: 100svh) {
    .hero { min-height: calc(var(--vh-unit, 1vh) * 100); }
}

/* Reduced motion class (JS adds .reduce-motion) */
.reduce-motion * { animation: none !important; transition: none !important; }

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(0, 0, 0, 0.7),
        rgba(0, 0, 0, 0.4)
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1900px; /* allow wider for larger logo growth */
    margin-top: 0; /* centered now */
    animation: fadeInUp 1.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vh, 3rem) 0;
}

/* .hero h1 removed (we use the logo instead) */

/* When using the logo in the hero instead of text */
.hero-logo {
    display: block;
    width: var(--hero-w);
    max-width: 100%;
    height: auto;
    margin: 0 auto clamp(1.1rem, 2.4vh, 2rem);
    background: #676869b4;
    border-radius: clamp(12px, 2vw, 32px);
    padding: var(--hero-pad-y) var(--hero-pad-x);
    box-shadow: 0 8px 32px -6px rgba(0,0,0,0.45), 0 2px 4px rgba(0,0,0,0.3);
    outline: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(4px) brightness(1.05);
    -webkit-backdrop-filter: blur(4px) brightness(1.05);
    transition: width .4s ease, padding .4s ease, box-shadow .4s ease;
}

/* Slight hover focus polish (non intrusive) */
.hero-logo:hover {
    box-shadow: 0 10px 42px -4px rgba(0,0,0,0.55), 0 4px 8px rgba(0,0,0,0.32);
}

/* Make the logo proportionally larger on very big screens without overwhelming */
@media (min-width: 1400px) {
    :root { --hero-w: clamp(1100px, 70vw, 1900px); }
}

/* Ultra-wide screens: allow even more presence without exceeding half viewport width excessively */
@media (min-width: 2000px) {
    :root { --hero-w: clamp(1300px, 62vw, 2200px); }
}

/* On narrow phones give it more width but reduce padding so content fits */
@media (max-width: 520px) {
    :root { --hero-w: 90vw; --hero-pad-y: 14px; --hero-pad-x: 18px; }
    .hero-content { padding-top: 1.5rem; }
}

/* If very short landscape (e.g., small laptops / tablets sideways) reduce vertical footprint */
@media (max-height: 620px) and (min-width: 700px) {
    .hero {
        min-height: 92vh;
    }
    :root { --hero-w: clamp(400px, 60vw, 1100px); --hero-pad-y: clamp(10px, 1.5vw, 28px); --hero-pad-x: clamp(14px, 2vw, 40px); }
}


/* keep generic hero p reset removed to avoid conflicts */

/* Enhanced paragraph under the hero logo */
.hero-subtext {
    display: flex;
    flex-direction: column;
    gap: 6px;
    /* match width and alignment of the logo */
    width: var(--hero-w);
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    color: #e9eef5;
}

.hero-subtext .subline {
    display: block;
    line-height: 1.35;
}
/* On dark hero overlay, use brighter accents for contrast */
.hero-subtext .af { color: var(--af-blue-bright); }
.hero-subtext .en { color: var(--en-green); }
.hero-subtext .en { margin-top: 6px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.18); }

/* HERO LINK - restored previous styling */
.hero-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--en-green);
    color: var(--en-green);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero-link:hover {
    background: var(--en-green);
    color: #0f0f0f;
}

/* Fade-in-up animation keyframes */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}










/* SERVICES SECTION - Full Background */
.services {
    position: relative;
    padding: var(--section-pad-y) var(--section-pad-x);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

/* Unified section heading base styles */
.services h2,
.why-choose-us h2,
.team-section h2 {
    display: inline-block;
    background: var(--surface-card-near);
    padding: var(--chip-pad-y) var(--chip-pad-x-lg);
    border-radius: var(--surface-radius);
    outline: 1px solid var(--surface-outline);
    color: #0f2233;
    text-shadow: none;
    box-shadow: var(--shadow-soft);
}

.services h2 { font-size: var(--heading-size-lg); margin-bottom: 1.5rem; position: relative; z-index: 2; }

/* Shared readability chip style for card headings and descriptions */
.service-card h3,
.service-card p,
.why-card h3,
.why-card p {
    display: inline-block;
    background: var(--card-text-bg);
    padding: var(--card-chip-pad-y) var(--card-chip-pad-x);
    border-radius: var(--card-chip-radius);
    text-shadow: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

/* Services heading stacked via bilingual helper below */

.services-intro {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-size: 1.05rem;
    /* no fixed color; allow .af/.en to control */
}

/* Bilingual layout for Services intro */
.services-intros {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto 2.4rem auto;
    justify-items: center; /* Center grid items */
    text-align: center; /* Center text */
}
.services-intros .services-intro {
    margin: 0; /* use grid spacing */
    font-size: 1.05rem;
    text-align: center; /* Center text */
}
/* Color-code bilingual lines */
.services-intros .af { color: var(--af-blue); }
/* .services-intros .en inherits global .en color */
/* Apply hero-style capsule background to intros */
.services-intros .services-intro {
    background: var(--surface-card-near);
    border-radius: 12px;
    outline: 1px solid var(--surface-outline);
    padding: var(--chip-pad-y) var(--chip-pad-x);
    /* no fixed color; allow .af/.en to control */
}
@media (min-width: 900px) {
    .services-intros {
        grid-template-columns: 1fr 1fr;
        gap: 18px 26px;
        position: relative;
    }
    .services-intros .af { text-align: right; }
    .services-intros .en { text-align: left; }
    /* Subtle vertical divider between Afrikaans and English */
    .services-intros::before {
        content: "";
        position: absolute;
        top: 4px;
        bottom: 4px;
        left: 50%;
        width: 1px;
        transform: translateX(-0.5px);
        background: rgba(var(--af-blue-rgb), 0.25);
    }
}



.service-card {
    background: var(--surface-card-light); /* translucent gray */
    padding: 20px;
    border-radius: var(--surface-radius);
    outline: 1px solid var(--surface-outline);
    width: 100%;
    max-width: 360px;
    text-align: center;
    color: #0f2233; /* darker text for light capsule */
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-card h3 {
    color: #0f2233; /* base; bilingual spans override */
    margin-top: 10px;
}

.service-card p {
    color: #253a4e; /* readable on light capsule */
    line-height: 1.45;
}

/* br removed; bilingual stacking handled via CSS rules at bottom */

/* Bilingual coloring inside service cards */
.service-card .af { color: var(--af-blue); }
/* .service-card .en inherits global .en color */

/* chip styles consolidated above */

/* Keep grid layout */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--grid-gap);
    justify-content: center;
}

/* Learn more button (card CTA) */
.card-cta {
    display: inline-grid;
    grid-auto-flow: row;
    justify-items: center;
    gap: 2px;
    text-decoration: none;
    background: var(--surface-card-near);
    color: #0f2233;
    padding: 10px 42px 10px 14px; /* space for arrow */
    border-radius: var(--surface-radius);
    border: 1px solid var(--en-green);
    box-shadow: var(--shadow-soft);
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    margin-top: 8px;
    position: relative;
}
.card-cta .af, .card-cta .en { display: block; line-height: 1.1; }
.card-cta .en { margin-top: 2px; font-size: 0.95em; }
.card-cta::after {
    content: "\2192"; /* → */
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--en-green);
    font-size: 1.05em;
    transition: transform 0.2s ease, color 0.2s ease;
}
.card-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
    background: var(--en-green);
    border-color: var(--en-green);
}
.card-cta:hover .af, .card-cta:hover .en { color: #0f0f0f; }
.card-cta:hover::after { transform: translate(2px, -50%); color: #0f0f0f; }
.card-cta:focus-visible {
    outline: 2px solid rgba(var(--en-green-rgb),0.6);
    outline-offset: 2px;
}
.card-cta:active { transform: translateY(0); box-shadow: var(--shadow-soft); }





/* WHY CHOOSE US SECTION - Full Background */
.why-choose-us {
    position: relative;
    padding: var(--section-pad-y) var(--section-pad-x);
    color: #fff;
    text-align: center;
    overflow: hidden;
}



.why-container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: auto;
}

.why-choose-us h2 { font-size: var(--heading-size-lg); margin-bottom: 1.5rem; }

/* Color Afrikaans and English in Why Choose section heading */
.why-choose-us h2 .af { color: var(--af-blue); }
/* .why-choose-us h2 .en inherits global .en color */

/* Color bilingual text in Why cards for consistency */
.why-card .af { color: var(--af-blue); }
/* .why-card .en inherits global .en color */

/* .why-intro removed (bilingual intro uses .why-intros .services-intros) */

/* Bilingual intro for Why Choose Sigma shares the services-intros layout */
.why-intros { margin-bottom: 3rem; }
/* Apply capsule style to Why intros using same .services-intro class */
.why-intros .services-intro {
    background: var(--surface-card-near);
    border-radius: 12px;
    outline: 1px solid var(--surface-outline);
    padding: 10px 14px;
    /* no fixed color; allow .af/.en to control */
}



.why-card {
    background: var(--surface-card-light); /* translucent gray */
    padding: 20px;
    border-radius: var(--surface-radius);
    outline: 1px solid var(--surface-outline);
    text-align: center;
    color: #0f2233;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Icon styles for Why Choose Sigma cards */
.why-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.why-icon {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(var(--af-blue-rgb),0.45);
    padding: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}



.why-card h3 {
    color: #0f2233; /* base; bilingual spans override */
    margin-top: 10px;
    font-size: 1.3rem;
}

.why-card p {
    color: #253a4e;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* chip styles consolidated above */

/* Keep grid layout */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--grid-gap);
}

@media (max-width: 600px) {
    .why-icon { width: 68px; height: 68px; }
}








/* Teams Section */

/* Glass effect for team cards */
.team-section {
    padding: var(--section-pad-y) var(--section-pad-x);
    text-align: center;
    color: #fff;
}
.team-section h2 { font-size: var(--heading-size-lg); margin-bottom: 2.5rem; }

/* Bilingual color inside Team section heading */
.team-section h2 .af { color: var(--af-blue); }
/* .team-section h2 .en inherits global .en color */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
    gap: var(--team-grid-gap);
    justify-items: center;
    align-items: stretch; /* ensure cards in a row share the same height */
}

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

@media (max-width: 700px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* Larger spacing on wide screens */
@media (min-width: 1200px) {
    .team-grid { gap: 4.5rem; }
}

.team-card.glass {
    background: var(--surface-card-light); /* translucent gray */
    border-radius: var(--surface-radius);
    box-shadow: var(--shadow-soft);
    outline: 1px solid var(--surface-outline);
    padding: 2.0rem 1.4rem 1.6rem 1.4rem;
    width: 100%;
    max-width: 360px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
    will-change: transform;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    height: 100%; /* stretch to full row height for alignment */
}

.team-card.glass:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 36px rgba(0,0,0,0.24);
}

/* Gradient outline using mask for a sleek border */
/* gradient border removed to match capsule styling */

.team-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    /* Center face better within the circular crop */
    object-position: 50% 42%;
    /* Prefer smooth, high-quality resampling (browser-dependent hints) */
    image-rendering: auto;
    image-rendering: high-quality;
    image-rendering: -webkit-optimize-contrast;
    -ms-interpolation-mode: bicubic;
    border-radius: 50%;
    margin-bottom: 1.2rem;
    border: 0;
    background: #fff;
    box-shadow:
        0 0 0 3px rgba(var(--af-blue-rgb),0.38),
        0 0 0 6px rgba(var(--en-green-rgb),0.22),
        0 8px 28px rgba(0,0,0,0.25);
    /* Avoid scaling on hover to prevent resampling/pixel shimmer */
    transition: box-shadow 0.25s ease;
}
.team-card.glass:hover .team-photo {
    box-shadow:
        0 0 0 3px rgba(var(--af-blue-rgb),0.6),
        0 0 0 8px rgba(var(--en-green-rgb),0.28),
        0 12px 36px rgba(0,0,0,0.3);
}

/* Name styling */
.team-card.glass h3 {
    color: #0f2233;
    font-size: 1.25rem;
    letter-spacing: 0.3px;
    margin: 0 0 8px 0;
    text-shadow: none;
    display: inline-block;
    background: var(--card-text-bg);
    padding: var(--card-chip-pad-y) var(--card-chip-pad-x);
    border-radius: var(--card-chip-radius);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    min-height: 2.8rem; /* keep name area consistent across cards */
    display: flex;
    align-items: center;
}

/* Role styling as a soft glass chip */
.team-card.glass p {
    display: inline-block;
    margin: 0;
    padding: var(--card-chip-pad-y) var(--card-chip-pad-x);
    background: var(--card-text-bg);
    border-radius: var(--card-chip-radius);
    color: #253a4e;
    font-weight: 500;
    line-height: 1.45;
    text-shadow: none;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    min-height: 3.6rem; /* align role blocks even if some are one/two lines */
    display: flex;
    align-items: center;
    text-align: center;
}
.team-card.glass p br { display: block; content: ""; margin: 6px 0; }





/* FOOTER STYLES */
.footer {
    background: #0A2540; /* static dark blue */
    color: #fff;
    padding: 20px 40px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    flex-wrap: wrap;
}
@media (max-width: 800px) {
    .footer-container { gap: 16px; justify-content: center; text-align: center; }
    .footer-contact { text-align: center; }
}




/* Social Links */
.footer-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    color: #fff;
    font-size: 1.4rem; /* slightly bigger */
    transition: all 0.3s ease;
    position: relative;
}

/* Glow hover effect */
.social-link:hover {
    color: var(--en-green);
    transform: scale(1.1); /* subtle zoom */
}

/* Optional animated glow pulse */
/* remove glow pulse */

.footer-rights {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}





/* Contact Info */
.footer-contact {
    text-align: right; /* keep the block on the right */
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 8px; /* space between lines */
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;

    /* subtle highlight */
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 6px;

    /* readability boost removed to avoid glow */
    text-shadow: none;
}

/* Footer contact links inherit style and remove underline */
.footer-contact a.contact-link {
    color: inherit;
    text-decoration: none;
}
.footer-contact a.contact-link:focus-visible {
    outline: 2px solid rgba(255,255,255,0.6);
    outline-offset: 2px;
    border-radius: 4px;
}
.footer-contact a.contact-link:hover {
    text-decoration: underline;
}

.footer-contact i {
    color: #ffffff;
    width: 28px;
    height: 28px;
    min-width: 28px; /* aligns chips vertically */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem; /* icon size inside chip */
    border-radius: 50%;
    background: linear-gradient(135deg, var(--af-blue), var(--en-green));
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* ===============================
    Bilingual stacking styles (Afrikaans over English)
    No text/content changes; CSS-only layout tweaks
    =============================== */

/* Headings: stack Afrikaans (af) above English (en) in Services */
.services h2 { --h2-size: 2.5rem; font-size: 0; }
.services h2 .af,
.services h2 .en { display: block; font-size: var(--h2-size); line-height: 1.15; }
.services h2 .en { margin-top: 6px; }

/* Headings: stack in Why Choose Sigma */
.why-choose-us h2 { --h2-size: 2.5rem; font-size: 0; }
.why-choose-us h2 .af,
.why-choose-us h2 .en { display: block; font-size: var(--h2-size); line-height: 1.15; }
.why-choose-us h2 .en { margin-top: 6px; }

/* Headings: stack in Team (if bilingual heading is present) */
.team-section h2 { --h2-size: 2.5rem; font-size: 0; }
.team-section h2 .af,
.team-section h2 .en { display: block; font-size: var(--h2-size); line-height: 1.15; }
.team-section h2 .en { margin-top: 6px; }

/* Intro blocks: always stack Afrikaans then English */
.services-intros { grid-template-columns: 1fr !important; gap: 10px; }
.services-intros .en { margin-top: 4px; }
@media (min-width: 900px) {
  .services-intros { grid-template-columns: 1fr !important; }
  .services-intros::before { display: none !important; }
  .services-intros .af, .services-intros .en { text-align: left !important; }
}

/* Hero subtext: separate en line slightly, use dark divider on light surface */
.hero-subtext .en { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(15,34,51,0.12); }

/* Service cards: stack heading lines and paragraph lines */
.service-card h3 { font-size: 0; }
.service-card h3 .af,
.service-card h3 .en { display: block; font-size: 1.15rem; line-height: 1.2; }
.service-card h3 .en { margin-top: 4px; }
.service-card h3 br { display: none; }

.service-card p br { display: none; }
.service-card p .af,
.service-card p .en { display: block; }
.service-card p .en { margin-top: 6px; padding-top: 8px; border-top: 1px solid rgba(15,34,51,0.12); }

/* Why cards: stack heading lines and paragraph lines */
.why-card h3 { font-size: 0; }
.why-card h3 .af,
.why-card h3 .en { display: block; font-size: 1.15rem; line-height: 1.2; }
.why-card h3 .en { margin-top: 4px; }
.why-card h3 br { display: none; }

.why-card p br { display: none; }
.why-card p .af,
.why-card p .en { display: block; }
.why-card p .en { margin-top: 6px; padding-top: 8px; border-top: 1px solid rgba(15,34,51,0.12); }






/* =============== Modern Progressive Enhancement Hooks =============== */
/* Hide default focus outlines only when mouse is used; keep for keyboard */
.using-mouse :focus-visible { outline: none !important; box-shadow: none !important; }

/* Idle state (added when main thread is relatively free) could fade in non-critical UI */
.dom-idle .hero-logo { will-change: unset; }







/* Language toggle control */
.lang-toggle { display:flex; gap:6px; align-items:center; margin-left:4px; }
.lang-toggle { flex-direction:column; gap:4px; align-items:stretch; padding:6px 8px 8px; background: linear-gradient(145deg, var(--surface-solid), var(--surface-solid-alt)); border:1px solid rgba(var(--af-blue-rgb),0.18); border-radius:11px; box-shadow:0 3px 12px -4px rgba(0,0,0,0.16), 0 1px 3px rgba(0,0,0,0.08); position:relative; isolation:isolate; }
.lang-toggle::before { content:"Language"; position:absolute; top:-10px; left:10px; font:600 0.58rem/1 "Poppins",sans-serif; letter-spacing:1.1px; padding:3px 8px 4px; background:linear-gradient(90deg, var(--af-blue), var(--en-green)); color:#fff; border-radius:8px; box-shadow:0 2px 5px rgba(0,0,0,0.25); }
.lang-toggle-row { display:flex; gap:6px; }
.lang-btn { background: var(--surface-solid-alt); color:#0f2233; border:1px solid rgba(var(--af-blue-rgb),0.25); padding:5px 10px 6px; font:600 0.6rem/1 "Poppins",sans-serif; border-radius:8px; cursor:pointer; letter-spacing:.55px; min-width:46px; position:relative; overflow:hidden; transition: background .3s ease, color .3s ease, border-color .3s ease, transform .22s ease; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.lang-btn:before { content:""; position:absolute; inset:0; background:linear-gradient(120deg, rgba(var(--af-blue-rgb),0.15), rgba(var(--en-green-rgb),0.15)); opacity:0; transition:opacity .4s ease; }
.lang-btn:hover:before { opacity:1; }
.lang-btn:hover { border-color:rgba(var(--en-green-rgb),0.45); }
.lang-btn:active { transform:translateY(1px); }
.lang-btn--primary { font-size:0.65rem; letter-spacing:.9px; text-transform:uppercase; font-weight:700; padding:6px 11px 7px; }
.lang-btn.active { background:linear-gradient(135deg, var(--af-blue) 0%, var(--en-green) 100%); color:#fff; border-color:transparent; box-shadow:0 4px 14px -2px rgba(0,0,0,0.35); }
.lang-btn.active:before { display:none; }
.lang-btn.active::after { content:""; position:absolute; inset:0; background:radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), transparent 60%); mix-blend-mode:overlay; animation:langActivePulse 1.2s ease forwards; pointer-events:none; }
.lang-toggle-row .lang-btn:not(.active) { box-shadow:inset 0 0 0 1px rgba(255,255,255,0.4); }

@keyframes langActivePulse { 0% { opacity:0; transform:scale(.6); } 40% { opacity:.9; } 100% { opacity:0; transform:scale(1.4); } }

/* Subtle fade for language text when switching */
.lang-switching .af, .lang-switching .en { animation: langFade .45s ease; }
@keyframes langFade { from { opacity:0; transform:translateY(-4px); } to { opacity:1; transform:translateY(0); } }

/* Emphasize currently filtered language by slight raise */
[data-lang-filter="af"] .af { animation: langRise .6s ease; }
[data-lang-filter="en"] .en { animation: langRise .6s ease; }
@keyframes langRise { 0% { filter:brightness(1.05); transform:translateY(0); } 40% { filter:brightness(1.18); } 100% { filter:brightness(1); } }
.lang-btn:hover { background: linear-gradient(90deg, rgba(var(--af-blue-rgb),0.08), rgba(var(--en-green-rgb),0.08)); }
.lang-btn.active { background: linear-gradient(90deg, var(--af-blue), var(--en-green)); color:#fff; border-color:transparent; }
.lang-btn:focus-visible { outline:2px solid rgba(var(--en-green-rgb),0.6); outline-offset:2px; }

/* Container height animation for fluid language switches */
.bi-animating { transition: height .45s cubic-bezier(.4,0,.2,1); overflow:hidden; }

/* Animated bilingual visibility (smooth collapse instead of hard hide) */
.af, .en { position:relative; display:block; transition: opacity .4s ease, max-height .4s ease, transform .4s ease; max-height:400px; will-change:opacity, max-height, transform; }
[data-lang-filter="af"] .en,
[data-lang-filter="en"] .af { opacity:0; max-height:0; transform:translateY(-6px); overflow:hidden; pointer-events:none; }
/* When filtering to a single language, render that language in black for a neutral look */
[data-lang-filter="af"] .af,
[data-lang-filter="en"] .en { color:#000 !important; }
@media (prefers-reduced-motion: reduce) {
    .af, .en { transition:none !important; }
}

/* Remove top borders/margins where second language hidden */
[data-lang-filter] .service-card p .af,
[data-lang-filter] .service-card p .en,
[data-lang-filter] .why-card p .af,
[data-lang-filter] .why-card p .en { border-top:0 !important; margin-top:0 !important; padding-top:0 !important; }

/* Always show both languages in the hero subtext, even when a filter is active */
[data-lang-filter="af"] .hero-subtext .en,
[data-lang-filter="en"] .hero-subtext .af {
    opacity: 1 !important;
    max-height: 400px !important;
    transform: none !important;
    overflow: visible !important;
    pointer-events: auto !important;
}

/* Preserve intended hero subtext colors when filtered */
[data-lang-filter="af"] .hero-subtext .af { color: var(--af-blue-bright) !important; }
[data-lang-filter="en"] .hero-subtext .en { color: var(--en-green) !important; }






