/* ---------- Self-hosted fonts (no requests to Google Fonts) ----------
   Inter is a variable font: one file covers weights 400, 500 and 600.
   Latin + Latin-Extended only (covers English and Afrikaans accents). */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('../fonts/inter-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/poppins-600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/poppins-600-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    /* Color Palette */
    --color-black: #0f1012;
    --color-white: #ffffff;
    --color-grey-light: #f6f6f6;
    --color-grey-mid: #888888;
    --color-grey-dark: #333333;
    --color-grey-line: #ebebeb;

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    /*--font-secondary: 'Playfair Display', serif;*/
    --font-secondary: 'Poppins', sans-serif;

    /* Spacing & Transitions */
    --transition-speed: 0.3s;
    --border-radius: 4px;
    --carousel-speed: 80s;
}

/* Change the color of the highlighted text */
::selection {
    background-color: #000000;
    /* Set background color of highlighted text */
    color: #ffffff;
    /* Set text color of highlighted text */
}

/* Prevent text selection on UI / decorative elements */
.hero-section,
.client-carousel,
footer {
    user-select: none;
}

/* Hide blinking caret outside form fields */
.section-title,
h2 {
    caret-color: transparent;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    font-family: var(--font-primary);
    color: var(--color-black);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.red {
    color: red;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
}

h3 {
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--color-grey-dark);
    text-align: justify;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

/* Keep keyboard focus visible across light and dark sections. */
:where(a, button):focus-visible {
    outline: 3px solid var(--color-black);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px var(--color-white);
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

/* Keep text left-aligned on phones, while retaining justification on tablet and desktop. */
@media (max-width: 600px) {
    p {
        text-align: left;
    }
}

/* Typography Utilities */
h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--color-black);
}

/* Buttons */
.btn-primary,
.form-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--color-black);
    color: var(--color-white);
    border: 1px solid var(--color-white);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed);
    width: fit-content;
    border-radius: 4px;
}

.btn-primary:hover,
.form-btn:hover {
    opacity: 0.7;
    transform: translateY(-3px);
}

.btn-secondary {
    display: inline-block;
    padding: 0.5rem 0;
    background: none;
    color: var(--color-black);
    border: none;
    border-bottom: 1px solid var(--color-black);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.btn-secondary:hover {
    color: var(--color-grey-mid);
    border-color: var(--color-grey-mid);
}

/* --- Standalone Service Pages --- */
/* --- Standalone Service Pages Design System --- */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
    padding: 3rem 2rem 5rem;
    padding-top: calc(3rem + 90px);
}

.page-content .container,
.service-container {
    max-width: 1200px;
    padding: 1.2rem 2rem;
    margin: 0 auto;
    width: 100%;
}

.legal-page-content {
    padding-top: calc(3rem + 90px);
}

.legal-document {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.2rem 2rem 3rem;
}

.legal-document h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1.25rem;
}

.legal-document h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 4px;
    background-color: var(--color-black);
}

.legal-document h2 {
    font-size: 1.85rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--color-black);
    position: relative;
    padding-bottom: 0.85rem;
}

.legal-document h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--color-black);
}

.legal-document p,
.legal-document li {
    color: var(--color-grey-dark);
}

.legal-document ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0 0 1.5rem;
}

.legal-document p {
    line-height: 1.7;
}

.legal-document li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-document a {
    color: var(--color-grey-mid);
    text-decoration: underline;
}

.legal-document a:hover {
    color: var(--color-black);
}

.legal-document .last-updated {
    font-size: 0.85rem;
    color: var(--color-grey-mid);
    margin-bottom: 2rem;
}

.legal-document .red {
    color: red;
}

/* Service Hero Layout */
.service-hero {
    margin-bottom: 5rem;
}

.service-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-grey-mid);
    margin-bottom: 1rem;
}

.service-eyebrow::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--color-black);
    border-radius: 50%;
}

.service-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-black);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1.25rem;
}

.service-hero-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 4px;
    background-color: var(--color-black);
}

.page-lead {
    font-size: 1.15rem;
    color: var(--color-grey-dark);
    margin-bottom: 1.75rem;
    line-height: 1.7;
    font-weight: 400;
}

/* Hero Trust Pills / Badges */
.service-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f4f4f5;
    border: 1px solid #e4e4e7;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-black);
}

.trust-badge svg {
    flex-shrink: 0;
    color: var(--color-black);
}

/* Editorial Hero Image Frame */
.service-hero-img-wrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    background: var(--color-grey-light);
    aspect-ratio: 4 / 3;
    width: 100%;
}

.service-hero-img-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;
}

.service-hero-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.service-hero-img-wrap:hover img {
    transform: scale(1.03);
}

/* Sub-sections Alternating Layout System */
.service-sections-wrapper {
    margin-top: 2rem;
    
}

.service-section-item {
    padding: 4rem 0;
    border-top: 1px solid var(--color-grey-line);
}

.service-section-item.alt-bg {
    background-color: #f6f6f6;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    border-top: 1px solid var(--color-grey-line);
    border-bottom: 1px solid var(--color-grey-line);
}

.service-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-section-grid.reverse .service-section-img-wrap {
    order: -1;
}

.service-section-img-wrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
    aspect-ratio: 1 / 1;
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
    background: var(--color-grey-light);
}

.service-section-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.service-section-img-wrap:hover img {
    transform: scale(1.04);
}

.service-section-content h2 {
    font-size: 1.85rem;
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--color-black);
    position: relative;
    padding-bottom: 0.85rem;
}

.service-section-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--color-black);
}

.service-section-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-grey-dark);
    margin-bottom: 1rem;
}

.service-section-content p:last-child {
    margin-bottom: 0;
}

.service-section-content a {
    color: var(--color-black);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.service-section-content a:hover,
.service-section-content a:focus-visible {
    color: var(--color-grey-mid);
}

/* Call to Action Banner */
.service-cta-banner {
    margin-top: 4rem;
    padding: 3.5rem 3rem;
    background: var(--color-black);
    color: var(--color-white);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.service-cta-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-white);
}

.service-cta-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.service-cta-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}

.service-cta-banner .btn-primary {
    background-color: var(--color-white);
    color: var(--color-black);
    border-color: var(--color-white);
}

.service-cta-banner .btn-primary:hover {
    background-color: transparent;
    color: var(--color-white);
}

.service-cta-banner .btn-secondary {
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.5);
}

.service-cta-banner .btn-secondary:hover {
    color: var(--color-white);
    border-color: var(--color-white);
    opacity: 0.8;
}

.page-footer {
    background: var(--color-black);
    color: var(--color-white);
    padding: 1.5rem 2rem;
    text-align: center;
}

.page-footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.page-footer a {
    color: var(--color-white);
    opacity: 0.7;
    text-decoration: none;
}

.page-footer a:hover {
    opacity: 1;
}

/* Service Pages Responsive Breakpoints */
@media (max-width: 992px) {
    .service-hero-grid,
    .service-section-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .service-section-grid.reverse .service-section-img-wrap {
        order: 0;
    }

    .service-hero-content h1 {
        font-size: 2.25rem;
    }

    .service-cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.5rem;
    }

    .service-cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .service-cta-actions .btn-primary,
    .service-cta-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-content {
        padding: 2rem 0 3rem;
        padding-top: calc(2rem + 80px);
    }

    .service-hero-content h1,
    .legal-document h1 {
        font-size: 2.25rem;
    }

    .trust-badge {
        font-size: 0.975rem;
    }

    .service-section-item {
        padding: 3rem 0;
    }

    .service-section-content h2 {
        font-size: 1.5rem;
    }
}

.btn-link {
    background: none;
    border: none;
    color: var(--color-black);
    text-decoration: underline;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-speed);
}

.btn-link:hover {
    color: var(--color-grey-mid);
}

/* --- Header & Navigation --- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color var(--transition-speed), padding var(--transition-speed);
    padding: 1.5rem 0;
}

#main-header.scrolled {
    background-color: var(--color-white);
    padding: 1rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: block;
    height: 60px;
}

.logo-dark {
    height: 100%;
    width: auto;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

#main-header.scrolled .logo-dark {
    opacity: 1;
}

.hidden {
    display: none !important;
}

#desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-top: 20px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    display: inline-block;
    color: var(--color-black);
    opacity: 0.65;
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color var(--transition-speed), transform var(--transition-speed);
}

#main-header.scrolled .nav-links li a {
    color: var(--color-black);
    opacity: 0.65;
}

.nav-links li a:hover {
    color: var(--color-black);
    opacity: 1;
    transform: translateY(-3px);
}

#main-header.scrolled .nav-links li a:hover {
    color: var(--color-black);
    opacity: 1;
    transform: translateY(-3px);
}

/* --- Dropdown Menu --- */
.nav-links li.has-dropdown {
    position: relative;
}

.nav-links li.has-dropdown > a {
    display: inline-block;
    padding-right: 18px;
    position: relative;
}

.nav-links li.has-dropdown > a::after {
    content: '▾';
    font-size: 1.3rem;
    opacity: 0.65;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform var(--transition-speed);
    line-height: 1;
}

.nav-links li.has-dropdown:hover > a::after {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--color-white);
    min-width: 200px;
    padding: 0.75rem 0;
    border: 1px solid var(--color-grey-light);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-speed), visibility var(--transition-speed), transform var(--transition-speed);
    z-index: 100;
}

.nav-links li.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

#main-header.scrolled .dropdown-menu {
    border-color: var(--color-grey-light);
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 0.5rem 1.5rem;
    color: var(--color-black);
    opacity: 0.75;
    font-size: 0.82rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: background-color var(--transition-speed), opacity var(--transition-speed);
}

#main-header.scrolled .dropdown-menu li a {
    color: var(--color-black);
    opacity: 0.75;
}

.dropdown-menu li a:hover {
    background-color: var(--color-grey-light);
    opacity: 1;
    transform: none;
}

#main-header.scrolled .dropdown-menu li a:hover {
    opacity: 1;
    transform: none;
}

/* Mobile sub-links (Services children) */
.mobile-sub-link {
    margin: 0.3rem 0 !important;
}

.mobile-sub-link:first-child {
    margin-top: 0 !important;
}

/* Reduce gap between Services and first sub-link */
.nav-links-mobile li:has(+ .mobile-sub-link) {
    margin-bottom: 0.5rem;
}

.mobile-sub-link a {
    font-size: 1.1rem !important;
    padding-left: 1.1rem !important;
    opacity: 0.7;
    letter-spacing: 1px !important;
}

.social-icon {
    color: var(--color-black);
    display: flex;
    align-items: center;    
    transition: opacity var(--transition-speed), transform var(--transition-speed);
}

.social-icon:hover {
    opacity: 0.5;
    transform: translateY(-3px);
}

#main-header.scrolled .social-icon {
    color: var(--color-black);
}

#mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
    padding: 0;
    font: inherit;
    color: inherit;
    caret-color: transparent;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* The toggle is hidden on desktop. Do not let pointer focus produce a visible
   outline/caret artifact on the hidden control. Keyboard users still receive
   a clear focus indicator at the mobile breakpoint below. */
#mobile-menu-toggle:focus,
#mobile-menu-toggle:focus:not(:focus-visible) {
    outline: none;
}

.hamburger {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-black);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color var(--transition-speed);
    pointer-events: none;
}

#main-header.scrolled .hamburger {
    background-color: var(--color-black);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--color-black);
    left: 0;
    transition: all var(--transition-speed);
}

#main-header.scrolled .hamburger::before,
#main-header.scrolled .hamburger::after {
    background-color: var(--color-black);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

#mobile-menu-toggle.active .hamburger {
    background-color: transparent !important;
}

#mobile-menu-toggle.active .hamburger::before {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--color-black) !important;
}

#mobile-menu-toggle.active .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--color-black) !important;
}


#mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 2rem;
    z-index: 999;
    /* Blur the page content behind the mobile menu */
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.nav-links-mobile {
    text-align: left;
    width: 100%;
}

.nav-links-mobile li {
    margin: 2rem 0;
}

.nav-links-mobile li a {
    font-size: 1.2rem;
    font-family: var(--font-primary);
    color: var(--color-black);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 800px) {
    #desktop-nav {
        display: none;
    }

    #mobile-menu-toggle {
        display: block;
    }

    #mobile-menu-toggle:focus-visible {
        outline: 3px solid var(--color-black);
        outline-offset: 4px;
        border-radius: 2px;
    }
}


/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    height: 100dvh;
    width: 100%;
    overflow: hidden;
    background-color: var(--color-white);
}

.hero-slider,
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
    display: flex;
    align-items: top;
    padding-top: 70px;
    /* Account for carousel height to center content in the remaining space */
    padding-bottom: 80px;
}

.slide.slide-active {
    opacity: 1;
    z-index: 2;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* For parallax */
    background-size: cover;
    background-position: center;
    transform: translateY(0);
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
}

.hero-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    color: var(--color-black);
    z-index: 5;
}

.hero-content h1,
.hero-content p,
.hero-logo {
    max-width: 770px;
    width: 100%;
}

.hero-logo {
    height: 120px;
    width: auto;
    margin-bottom: 2rem;
    align-self: flex-start;
}

.hero-content h1,
.hero-content h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--color-black);
}

.hero-content h1 {
    margin-top: 20px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    text-align: left;
    /* Match h2's base padding so they look consistent */
}

/* Hero tagline: visually matches the H1 but is a non-heading element
   so the page has a single semantic H1 (SEO + accessibility). */
.hero-content .hero-tagline {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 20px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    color: var(--color-black);
    max-width: 770px;
    width: 100%;
    text-align: left;
}

.hero-content p {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-black);
    margin-bottom: 2.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: var(--color-black);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-15px) translateX(-50%);
    }

    60% {
        transform: translateY(-7px) translateX(-50%);
    }
}

/* Client Carousel */
.client-carousel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 10;
    overflow: hidden;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-track {
    display: flex;
    align-items: center;
    gap: 10rem;
    width: max-content;
    padding-right: 10rem;
    /* Essential for perfect loop math */
    animation: scrollCarousel var(--carousel-speed) linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-track img {
    height: 60px;
    opacity: 0.5;
    filter: brightness(0) invert(1);
    transition: opacity var(--transition-speed);
}

.carousel-track img:hover {
    opacity: 1;
    filter: brightness(0) invert(1);
}

@keyframes scrollCarousel {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .hero-content {
        position: relative;
        padding: 0 1.5rem;
        margin-left: 0;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 2.3rem;
        max-width: 100%;
        padding-top: 30px;
    }

    .hero-content .hero-tagline {
        font-size: 2.3rem;
        max-width: 100%;
        padding-top: 30px;
    }

    .hero-content p {
        font-size: 1.2rem;
        max-width: 100%;
    }

    .hero-logo {
        height: 100px;
        margin-bottom: 1rem;
    }

    .scroll-indicator {
        bottom: 15px;
    }

    .carousel-track {
        gap: 4rem;
    }

    .carousel-track img {
        height: 45px;
    }

    .client-section {
        padding: 1.25rem 0;
    }
}


/* --- About Section --- */
.about-section {
    background-color: var(--color-white);
    padding: 1rem 0rem 3rem;
    scroll-margin-top: 90px;
    border-top: 1px solid var(--color-grey-line);
}

.section-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-images {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    background: var(--color-grey-light);
}

.about-images::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: inherit;
    pointer-events: none;
    z-index: 2;
}

.about-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.about-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 0.6s ease;
}

.about-slide-active {
    opacity: 1;
}

.about-images:hover .about-slide-active {
    transform: scale(1.03);
}

.about-text h2::after {
    left: 0;
}
.about-text p {
    text-align: justify;
}

@media (max-width: 900px) {
    .section-split {
        grid-template-columns: 1fr;
    }

    .about-images {
        height: 350px;
        order: -1;
    }
}


/* --- Services Section --- */
.services-section {
    background-color: var(--color-grey-light);
    padding: 1rem 0rem 3rem;
    scroll-margin-top: 90px;
    border-top: 1px solid var(--color-grey-line);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
}

.card {
    display: block;
    position: relative;
    background: var(--color-grey-light);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    cursor: pointer;
    color: inherit;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px 8px 0 0;
    pointer-events: none;
    z-index: 2;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: transform 0.5s ease;
}

.card:hover .card-img {
    transform: scale(1.04);
}

.card .service-link {
    display: inline-block;
    color: var(--color-black);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: underline;
    text-underline-offset: 0.25rem;
}

.card:hover .service-link,
.card:hover .service-link:hover {
    color: var(--color-grey-mid);
}

.card:focus-visible {
    outline: 3px solid var(--color-black);
    outline-offset: 4px;
}

.card-content {
    padding: 1.5rem;
    background-color: var(--color-white);
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
    font-weight: 600;
}

.card-content p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .card-content h3 {
    font-size: 1.5rem;
}

.services-grid {
    gap: 3rem;
}
}

/* --- Team Section --- */
.team-section {
    background-color: var(--color-white);
    scroll-margin-top: 90px;
    padding: 1rem 0rem 3rem;
    border-top: 1px solid var(--color-grey-line);
}

.team-intro {
    max-width: 1200px;
    margin-bottom: 3rem;
    font-size: 1.05rem;
    color: var(--color-grey-dark);
    line-height: 1.7;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    align-items: stretch;
}

.team-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
    border: 1px solid var(--color-grey-line);
    border-top: 3px solid var(--color-black);
    padding: 2.25rem;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), border-color var(--transition-speed);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
    border-color: var(--color-grey-mid);
    border-top-color: var(--color-black);
}

.team-card-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-grey-line);
}

.team-badges {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.team-role {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-black);
}

.team-qual {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-grey-dark);
    background-color: var(--color-grey-light);
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.team-name {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-black);
    line-height: 1.2;
    margin: 0;
}

.team-bio {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.team-bio p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-grey-dark);
    margin: 0;
}

.team-card-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--color-grey-line);
}

.team-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-black);
    transition: color var(--transition-speed);
}

.team-email svg {
    transition: transform var(--transition-speed);
}

.team-email:hover {
    color: var(--color-grey-mid);
}

.team-email:hover svg {
    transform: translateX(3px);
}

@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-card {
        padding: 1.75rem;
    }
}


/* --- Contact Section --- */
.contact-section {
    background-color: var(--color-black);
    color: var(--color-grey-light);
    scroll-margin-top: 90px;
    padding: 1rem 0rem 3rem;
}

.contact-section .section-split {
    align-items: start;
}

.contact-section h2 {
    color: var(--color-white);
}

.contact-section h2::after {
    background-color: var(--color-white);
}

.contact-section p {
    color: var(--color-grey-mid);
}

.contact-details {
    margin-top: 2rem;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.contact-details a {
    color: inherit;
}

.contact-details a:hover {
    color: var(--color-grey-mid);
}

.mt-4 {
    margin-top: 2rem;
}

.contact-form-container form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-row {
    display: flex;
    gap: 1rem;
}

.input-row .input-group {
    flex: 1 1 0;
}

.required-note {
    margin: 0 0 -0.5rem;
    font-size: 0.8rem;
    color: var(--color-grey-mid);
}

.input-group label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--color-white);
    font-size: 0.85rem;
    font-weight: 500;
}

.input-group .optional-label {
    color: var(--color-grey-mid);
    font-size: 0.78rem;
    font-weight: 400;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 0.75rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-grey-dark);
    color: var(--color-white);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color var(--transition-speed);
}

.input-group input:focus-visible,
.input-group textarea:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
    border-color: var(--color-white);
}

.contact-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.form-btn {
    align-self: flex-start;
    background-color: var(--color-white);
    color: var(--color-black);
    border-color: var(--color-white);
    margin-top: 1rem;
}

.form-btn:hover {
    opacity: 0.75;
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.form-status.success {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid #2ecc71;
}

.form-status.error {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}


/* --- Footer --- */
footer {
    background-color: #050505;
    color: var(--color-grey-mid);
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    line-height: 0;
}

.footer-nav a {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: inline-block;
    color: var(--color-white);
    opacity: 0.65;
    transition: color var(--transition-speed), transform var(--transition-speed);
}

.footer-nav a:hover,
.privacy-link:hover {
    color: var(--color-white);
    opacity: 1;
}

.footer-bottom {
    font-size: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.footer-bottom p {
    color: var(--color-grey-mid);
    text-align: center;
}

.privacy-link {
    color: var(--color-grey-mid);
    text-decoration: underline;
    font-size: 0.75rem;
}


/* --- Utilities & Interactivity --- */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-black);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed), transform var(--transition-speed);
    z-index: 900;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

#back-to-top:hover {
    transform: translateY(-5px);
    background-color: var(--color-grey-dark);
}

/* Scroll Reveal Animation */
.scroll-anim {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-anim.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Google Rating / Reviews Badge --- */
.google-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.1rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid var(--color-grey-line);
    border-radius: var(--border-radius);
    color: var(--color-black);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: all var(--transition-speed);
    width: fit-content;
    cursor: pointer;
    user-select: none;
}

.google-rating-badge:hover {
    transform: translateY(-2px);
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
    border-color: #d8d8d8;
}

.google-badge-brand {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-black);
    letter-spacing: -0.2px;
}

.google-g-icon {
    flex-shrink: 0;
}

.google-badge-divider {
    width: 1px;
    height: 18px;
    background-color: var(--color-grey-line);
}

.google-badge-stats {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
}

.rating-num {
    font-weight: 700;
    color: var(--color-black);
    font-size: 0.9rem;
}

.stars-group {
    display: flex;
    align-items: center;
    gap: 2px;
}

.star-icon {
    flex-shrink: 0;
}

.review-count {
    color: var(--color-grey-mid);
    font-size: 0.8rem;
    font-weight: 400;
}

/* Contact Section Google Rating Badge Variant */
.contact-google-rating {
    margin-top: 1.75rem;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    backdrop-filter: blur(4px);
}

.contact-google-rating .google-badge-brand {
    color: var(--color-white);
}

.contact-google-rating .rating-num {
    color: var(--color-white);
}

.contact-google-rating .google-badge-divider {
    background-color: rgba(255, 255, 255, 0.2);
}

.contact-google-rating .review-count {
    color: var(--color-grey-mid);
}

.contact-google-rating:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.star-half {
    position: relative;
    display: inline-block;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.star-half .star-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 14px;
    height: 14px;
}

.star-background {
    fill: #ffffff;
}

.star-foreground {
    fill: #F4B400;
    clip-path: inset(0 50% 0 0);
}


/* --- Contact Map Section --- */
.contact-map-wrapper {
    margin-top: 3.5rem;
    padding: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: var(--color-black);
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.map-title-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--color-white);
}

.map-title-group h3 {
    font-size: 1.3rem;
    font-family: var(--font-secondary);
    color: var(--color-white);
    margin: 0;
    font-weight: 600;
}

.map-directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--border-radius);
    transition: all var(--transition-speed);
}

.map-directions-btn:hover {
    background: var(--color-white);
    color: var(--color-black);
    border-color: var(--color-white);
}

.map-frame-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    background: var(--color-black);
}

.map-frame-container iframe {
    display: block;
    width: 100%;
}

/* Responsive Breakpoints for Google Integrations */
@media (max-width: 768px) {
    .hero-ctas {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
    }

    .google-rating-badge {
        width: 100%;
        justify-content: center;
    }

    .contact-map-wrapper {
        margin-top: 2.5rem;
        padding: 2rem 2rem 3rem;
    }

    .map-frame-container iframe {
        height: 280px;
    }

    .map-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .map-directions-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Respect visitors who request reduced motion at the operating-system level. */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .hero-bg {
        transform: none !important;
        will-change: auto;
    }

    .slide {
        transition: none;
    }
}