/* Derive Design System - Single Source of Truth */
:root {
    /* Brand Colors - from letterhead */
    --derive-dark: #1A3512;          /* Dark green - primary headings */
    --derive-primary: #2A4F1C;       /* Dark green - links, buttons, subtitles */
    --derive-light: #f2f9f0;         /* Light sage - backgrounds, cards */

    /* Text Colors */
    --derive-text-dark: #333333;     /* Body text, primary content */
    --derive-text-body: rgb(50, 50, 50); /* Body text alternate */
    --derive-text-muted: #6c757d;    /* Muted/secondary text */
    --derive-text-subtle: #495057;   /* Subtle text, form placeholders */

    /* Background Colors */
    --derive-bg-white: #ffffff;
    --derive-bg-footer: #333333;     /* Footer background */
    --derive-bg-overlay: rgba(0, 0, 0, 0.4);  /* Hero overlay */
    --derive-bg-feature: rgba(0, 0, 0, 0.6);  /* Feature blocks */

    /* Border Colors */
    --derive-border-light: #e9ecef;  /* Light borders */
    --derive-border-subtle: #dee2e6; /* Subtle borders, dividers */
    --derive-border-card: #d5e0da;   /* Card borders */

    /* Map Marker */
    --derive-marker-bg: #ffffff;
    --derive-marker-border: #133D64; /* Navy blue marker border */

    /* Shadows */
    --derive-shadow-sm: 0 0 4px rgba(0, 0, 0, 0.3);
    --derive-shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.12);
    --derive-shadow-card: 0 4px 12px rgba(0, 0, 0, 0.1);

    /* Border Radius */
    --derive-radius-sm: 6px;
    --derive-radius-md: 8px;
    --derive-radius-lg: 12px;
    --derive-radius-xl: 25px;
    --derive-radius-map: 32px;
    --derive-radius-circle: 50%;

    /* Transitions */
    --derive-transition-fast: 0.2s ease;
    --derive-transition-normal: 0.3s ease;

    /* Typography */
    --derive-font-primary: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";

    /* Z-Index Scale
       Defined layers to prevent stacking conflicts.
       See css/Z-INDEX-GUIDE.md for usage documentation.
       ============================================= */
    --z-behind: -1;           /* Decorative elements behind content */
    --z-base: 0;              /* Default stacking level */
    --z-overlay: 1;           /* Overlays, pseudo-element backgrounds */
    --z-content: 2;           /* Content that must appear above overlays */
    --z-dropdown: 10;         /* Dropdowns, carousel controls, tooltips */
    --z-sticky: 50;           /* Sticky elements (not fixed) */
    --z-fixed: 99;            /* Fixed navigation, headers */
    --z-modal-backdrop: 1000; /* Modal backdrop */
    --z-modal: 1050;          /* Modal dialogs */
    --z-popover: 1100;        /* Popovers, tooltips above modals */
    --z-toast: 1500;          /* Toast notifications */
    --z-skip-link: 9999;      /* Accessibility skip link (always on top) */

    /* =============================================
       Bootstrap 5 CSS Variable Overrides
       Maps Derive design system to Bootstrap theming
       ============================================= */

    /* Primary color - Derive teal */
    --bs-primary: #2A4F1C;
    --bs-primary-rgb: 42, 79, 28;

    /* Link colors */
    --bs-link-color: var(--derive-primary);
    --bs-link-hover-color: var(--derive-dark);

    /* Body colors */
    --bs-body-color: var(--derive-text-body);
    --bs-body-bg: var(--derive-bg-white);

    /* Typography */
    --bs-body-font-family: var(--derive-font-primary);
    --bs-body-font-weight: 300;
    --bs-body-line-height: 1.7;

    /* Border colors */
    --bs-border-color: var(--derive-border-subtle);
}

/* Self-hosted Nunito Sans (WOFF2, variable font) */
@font-face {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 300 700;
    font-stretch: 100%;
    font-display: swap;
    src: url(/fonts/nunito-sans/nunito-sans-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Nunito Sans';
    font-style: normal;
    font-weight: 300 700;
    font-stretch: 100%;
    font-display: swap;
    src: url(/fonts/nunito-sans/nunito-sans-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;
}
  
  .circle-marker {
    width: 12px;
    height: 12px;
    background-color: var(--derive-marker-bg);
    border: 2px solid var(--derive-marker-border);
    border-radius: var(--derive-radius-circle);
    box-shadow: var(--derive-shadow-sm);
  } 
  #map {
    width: 100%;
    height: 100%;
    border-radius: var(--derive-radius-map);
    overflow: hidden;
  }

  .gm-style-cc {
    opacity: 0;          
    pointer-events: none;  
  }
  
  a[href^="https://maps.google.com/maps"],
  a[href^="https://www.google.com/maps"] {
    opacity: 0;
    pointer-events: none;
  }

body {
    line-height: 1.7;
    color: var(--derive-text-body);
    font-weight: 300;
    font-size: 1rem;
    font-family: var(--derive-font-primary);
}


.parallax {
    /* The image used */
    background-image: url('../images/background.webp');
  
    /* Full height */
    height: 100%; 
  
    /* Create the parallax scrolling effect */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }


.site-navbar-wrap a {
    color: var(--derive-bg-white);
}

.site-navbar .site-logo a {
    font-weight: 200;
    color: var(--derive-bg-white);
}

.site-navbar-wrap .site-navbar-top {
    font-size: 0.8rem;
}

.site-navbar-wrap {
    position: fixed;
    z-index: var(--z-fixed);
    width: 100%;
    left: 0;
    background-color: transparent;
    pointer-events: auto !important;
}

.site-navbar-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Semi-transparent white */
}


.site-blocks-cover {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top;
}

.site-blocks-cover,
.site-blocks-cover .row {
    min-height: 600px;
    height: calc(100vh);
}

img.site-logo {
    height: 250px;
    position: absolute;
    margin-top: -120px;
    margin-left: -40px;
}

/* Navbar logo - normal flow */
.navbar-logo {
    height: 50px;
    width: auto;
    display: block;
}

.site-blocks-cover h1 {
    color: var(--derive-bg-white);
    font-size: 2rem;
}

.site-blocks-cover .sub-text {
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--derive-bg-white);
    letter-spacing: .2em;
}

.site-blocks-cover.overlay:before {
    position: absolute;
    content: "";
    left: 0;
    bottom: 0;
    right: 0;
    top: 0;
    background: var(--derive-bg-overlay);
    min-height: 600px;
    pointer-events: none;
    z-index: var(--z-overlay);
}

/* Ensure hero text content stacks above the overlay */
.site-blocks-cover .container {
    position: relative;
    z-index: var(--z-content);
}

/* Establish stacking context for main content to appear above hero overlay */
#main-content {
    position: relative;
    z-index: var(--z-content);
}

.site-block-1 {
    padding-top: 50px;
}

@media (min-width: 992px) {
    .site-block-1 {
        padding-top: 0;
        position: absolute;
        width: 100%;
        -webkit-transform: translateY(-100%);
        -ms-transform: translateY(-100%);
        transform: translateY(-100%);
    }
}

.site-block-feature {
    background: var(--derive-bg-feature);
    position: relative;
    -webkit-transition: var(--derive-transition-normal) all;
    -o-transition: var(--derive-transition-normal) all;
    transition: var(--derive-transition-normal) all;
    top: 0;
}

.site-block-feature h3 {
    -webkit-transition: var(--derive-transition-normal) all;
    -o-transition: var(--derive-transition-normal) all;
    transition: var(--derive-transition-normal) all;
    font-size: 15px;
    color: #ffffff;
}

.site-block-feature p {
    -webkit-transition: var(--derive-transition-normal) all;
    -o-transition: var(--derive-transition-normal) all;
    transition: var(--derive-transition-normal) all;
    color: rgba(255, 255, 255, 0.4); /* Semi-transparent white */
    font-size: 1rem;
}

.site-section {
    padding: 2.5em 0;
}

.profile-image {
    max-width: 200px;
}

.media.custom-media .icon:before {
    content: "";
    position: absolute;
    width: 65px;
    height: 65px;
    border-radius: var(--derive-radius-circle);
    background-color: var(--derive-primary);
    left: 5px;
    top: -5px;
    z-index: var(--z-behind);
}

.media.custom-media span {
    font-size: 45px;
}

.site-footer {
    padding: 4em 0;
    background: var(--derive-bg-footer);
}

.site-footer .footer-heading {
    font-size: 20px;
    color: var(--derive-bg-white);
}

[data-aos="fade-out"] {
    opacity: 1;
    transition-property: opacity;
    &.aos-animate {
      opacity: 0;
    }
  }

[data-aos="background-fade-in"] {
    background-color: transparent;
    transition-property: background-color;
    &.aos-animate {
        background-color: var(--derive-dark);
    }
}

/* LinkedIn post cards hover effect */
.hover-lift {
    transition: transform var(--derive-transition-fast), box-shadow var(--derive-transition-fast);
}
.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: var(--derive-shadow-hover) !important;
}

#linkedin-posts .card {
    border: 1px solid var(--derive-border-light);
    border-radius: var(--derive-radius-lg);
    overflow: hidden;
}

#linkedin-posts .card-title {
    line-height: 1.3;
}

#linkedin-posts .card-footer {
    border-radius: 0 0 var(--derive-radius-lg) var(--derive-radius-lg);
}

/* Badges - Medium teal with white text */
#linkedin-posts .badge {
    background-color: var(--derive-primary) !important;
    color: var(--derive-bg-white) !important;
    border-radius: var(--derive-radius-sm);
    font-weight: 500;
    padding: 0.4em 0.8em;
}

/* Links - Medium teal */
#linkedin-posts .text-primary {
    color: var(--derive-primary) !important;
}

/* Featured article cards - larger with more emphasis */
#linkedin-posts .featured-article {
    border-left: 4px solid var(--derive-primary);
    min-height: 200px;
}
#linkedin-posts .featured-article .card-title {
    font-size: 1.15rem;
    font-weight: 600;
}
#linkedin-posts .featured-article .card-text {
    font-size: 0.95rem;
}

/* Quick take cards - compact */
#linkedin-posts .col-lg-3 .card {
    border-left: none;
}
#linkedin-posts .col-lg-3 .card-title {
    font-size: 0.95rem;
}
#linkedin-posts .col-lg-3 .card-body {
    padding: 1rem;
}

/* Derive brand button */
.btn-derive {
    background-color: var(--derive-primary);
    border-color: var(--derive-primary);
    color: var(--derive-bg-white);
    border-radius: var(--derive-radius-md);
    padding: 0.6rem 1.5rem;
    transition: all var(--derive-transition-fast);
}
.btn-derive:hover {
    background-color: var(--derive-dark);
    border-color: var(--derive-dark);
    color: var(--derive-bg-white);
}

/* Override Bootstrap 5 primary button globally */
.btn-primary {
    --bs-btn-bg: var(--derive-primary);
    --bs-btn-border-color: var(--derive-primary);
    --bs-btn-hover-bg: var(--derive-dark);
    --bs-btn-hover-border-color: var(--derive-dark);
    --bs-btn-active-bg: var(--derive-dark);
    --bs-btn-active-border-color: var(--derive-dark);
    --bs-btn-focus-shadow-rgb: 42, 79, 28;
    border-radius: var(--derive-radius-md);
}

/* Override Bootstrap outline-dark to solid Derive button */
.site-section .btn-outline-dark {
    color: var(--derive-bg-white);
    border-color: var(--derive-primary);
    border-radius: var(--derive-radius-md);
    background-color: var(--derive-primary);
}
.site-section .btn-outline-dark:hover {
    color: var(--derive-bg-white);
    background-color: var(--derive-dark);
    border-color: var(--derive-dark);
}

/* Team contact toggle button */
.contact-toggle {
    border-radius: var(--derive-radius-xl);
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
    transition: all var(--derive-transition-fast);
}
.contact-toggle .toggle-icon {
    transition: transform var(--derive-transition-normal);
    margin-left: 0.25rem;
}
.contact-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

/* Expanded contact details */
.contact-details {
    background: var(--derive-light);
    border-radius: var(--derive-radius-lg);
    padding: 1.25rem;
    border-left: 4px solid var(--derive-primary);
}
.contact-bio {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--derive-border-subtle);
    color: var(--derive-text-subtle);
    font-size: 0.95rem;
}
.contact-item {
    display: block;
    padding: 0.5rem 0;
    color: var(--derive-text-dark);
    text-decoration: none;
    transition: all var(--derive-transition-fast);
}
.contact-item:hover {
    color: var(--derive-primary);
    transform: translateX(5px);
}
.contact-item .mdi {
    width: 24px;
    display: inline-block;
    color: var(--derive-primary);
}

/* Trees That Count Carousel */
.ttc-carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--derive-radius-md);
}

#ttcCarousel {
    position: relative;
    height: 500px;
    overflow: hidden;
}

#ttcCarousel .carousel-inner {
    height: 100%;
    overflow: hidden;
}

#ttcCarousel .carousel-item {
    height: 100%;
    transition: transform 0.6s ease-in-out; /* Carousel-specific timing */
    display: flex;
    justify-content: center;
    align-items: center;
}

#ttcCarousel .carousel-item img {
    height: 100%;
    width: auto;
    max-width: none;
    border-radius: var(--derive-radius-md);
}

/* Side overlay panels with blur effect */
.ttc-side-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: var(--z-dropdown);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, rgba(255,255,255,0.95), rgba(255,255,255,0.7));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.ttc-side-overlay.ttc-left {
    left: 0;
    border-radius: var(--derive-radius-md) 0 0 var(--derive-radius-md);
    background: linear-gradient(to right, rgba(255,255,255,0.95), rgba(255,255,255,0.5)); /* Gradient overlays */
}

.ttc-side-overlay.ttc-right {
    right: 0;
    border-radius: 0 var(--derive-radius-md) var(--derive-radius-md) 0;
    background: linear-gradient(to left, rgba(255,255,255,0.95), rgba(255,255,255,0.5)); /* Gradient overlays */
}

/* Arrow buttons */
.ttc-side-overlay .carousel-control-prev,
.ttc-side-overlay .carousel-control-next {
    position: relative;
    width: 50px;
    height: 50px;
    background: var(--derive-primary);
    border-radius: var(--derive-radius-circle);
    opacity: 1;
}

.ttc-side-overlay .carousel-control-prev:hover,
.ttc-side-overlay .carousel-control-next:hover {
    background: var(--derive-dark);
}

.ttc-side-overlay .carousel-control-prev-icon,
.ttc-side-overlay .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Indicators */
#ttcCarousel .carousel-indicators {
    bottom: 15px;
    margin-bottom: 0;
}

#ttcCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: var(--derive-radius-circle);
    background-color: rgba(255, 255, 255, 0.6); /* Semi-transparent white */
    border: none;
    margin: 0 5px;
}

#ttcCarousel .carousel-indicators button.active {
    background-color: var(--derive-bg-white);
}

/* TTC Responsive */
@media (max-width: 992px) {
    #ttcCarousel {
        height: 400px;
    }

    .ttc-side-overlay {
        width: 60px;
    }

    .ttc-side-overlay .carousel-control-prev,
    .ttc-side-overlay .carousel-control-next {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    #ttcCarousel {
        height: 300px;
    }

    .ttc-side-overlay {
        width: 50px;
    }

    .ttc-side-overlay .carousel-control-prev,
    .ttc-side-overlay .carousel-control-next {
        width: 36px;
        height: 36px;
    }

    .ttc-side-overlay .carousel-control-prev-icon,
    .ttc-side-overlay .carousel-control-next-icon {
        width: 16px;
        height: 16px;
    }
}

/* TTC Impact Stats */
.ttc-stat-card {
    background: var(--derive-light);
    border-radius: var(--derive-radius-lg);
    border: 1px solid var(--derive-border-card);
    transition: transform var(--derive-transition-fast), box-shadow var(--derive-transition-fast);
}

.ttc-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--derive-shadow-card);
}

.ttc-stat-icon {
    font-size: 2rem;
    color: var(--derive-primary);
}

.ttc-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--derive-dark);
    line-height: 1.1;
}

.ttc-stat-number small {
    font-size: 1rem;
    font-weight: 400;
}

.ttc-stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--derive-text-dark);
    margin-top: 0.25rem;
}

.ttc-stat-detail {
    font-size: 0.8rem;
    color: var(--derive-text-muted);
    margin-top: 0.25rem;
}

/* ============================================
   Accessibility Enhancements
   ============================================ */

/* Skip to main content link - visible only on focus for keyboard users */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--derive-dark);
    color: var(--derive-bg-white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--derive-radius-md);
    z-index: var(--z-skip-link);
    text-decoration: none;
    font-weight: 600;
    transition: top var(--derive-transition-fast);
}

.skip-link:focus {
    top: 10px;
    outline: 3px solid var(--derive-primary);
    outline-offset: 2px;
}

/* Visually hidden - for screen readers only */
.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;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus styles for interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--derive-primary);
    outline-offset: 2px;
}

/* Remove outline for mouse users */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}

/* Breadcrumb navigation (hidden but accessible to screen readers) */
.breadcrumb-nav {
    padding: 0;
    margin: 0;
}

.breadcrumb-nav ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ============================================
   Bootstrap 5 Component Theming
   ============================================ */

/* Accordion - Derive brand colors */
.accordion-button:not(.collapsed) {
    background-color: var(--derive-light);
    color: var(--derive-dark);
    box-shadow: inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--derive-border-subtle);
}

.accordion-button:focus {
    border-color: var(--derive-primary);
    box-shadow: 0 0 0 0.25rem rgba(42, 79, 28, 0.25);
}

/* Form controls - Derive focus states */
.form-control:focus {
    border-color: var(--derive-primary);
    box-shadow: 0 0 0 0.25rem rgba(42, 79, 28, 0.25);
}

/* Links */
a {
    color: var(--derive-primary);
    text-decoration: none;
}

a:hover {
    color: var(--derive-dark);
}

/* Badge primary override */
.badge.bg-primary {
    background-color: var(--derive-primary) !important;
}

/* ============================================
   Insights Index Page
   ============================================ */

/* Article cards - consistent with homepage brand */
.insights-card {
    border: 1px solid var(--derive-border-light);
    border-radius: var(--derive-radius-lg);
    overflow: hidden;
    transition: transform var(--derive-transition-fast), box-shadow var(--derive-transition-fast), border-color var(--derive-transition-fast);
}

.insights-card:hover {
    border-color: var(--derive-primary);
}

.insights-card .card-title {
    line-height: 1.3;
}

.insights-card .card-footer {
    border-top: none;
}

.insights-card .badge {
    background-color: var(--derive-primary) !important;
    color: var(--derive-bg-white) !important;
    border-radius: var(--derive-radius-sm);
    font-weight: 500;
    padding: 0.4em 0.8em;
}

/* Sidebar year navigation */
.insights-year-nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--derive-radius-sm);
    color: var(--derive-text-dark);
    transition: all var(--derive-transition-fast);
}

.insights-year-nav a:hover {
    background-color: var(--derive-light);
    color: var(--derive-primary);
}

.insights-year-nav a.active {
    background-color: var(--derive-light);
    color: var(--derive-primary);
    font-weight: 700;
    border-left: 3px solid var(--derive-primary);
}

/* Mobile year filter pills */
.insights-year-pill {
    border: 1px solid var(--derive-border-card);
    color: var(--derive-text-dark);
    background: var(--derive-bg-white);
    border-radius: var(--derive-radius-xl);
    padding: 0.35rem 1rem;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all var(--derive-transition-fast);
}

.insights-year-pill:hover,
.insights-year-pill:focus {
    background: var(--derive-light);
    border-color: var(--derive-primary);
    color: var(--derive-primary);
}

/* Year section heading with brand accent */
.insights-year-heading {
    padding-left: 0.75rem;
    border-left: 3px solid var(--derive-primary);
    color: var(--derive-dark);
}

/* LinkedIn provenance line */
.insights-linkedin-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.insights-linkedin-meta a {
    color: var(--derive-primary);
}

.insights-linkedin-meta a:hover {
    color: var(--derive-dark);
}

.insights-linkedin-meta .mdi-linkedin {
    color: var(--derive-primary);
}

/* ============================================
   Navbar
   ============================================ */

/* Mobile nav background when expanded over transparent hero */
#mobileNav.show,
#mobileNav.collapsing {
    background: var(--derive-dark);
    border-radius: 0 0 var(--derive-radius-md) var(--derive-radius-md);
    margin: 0 -0.75rem;
    padding: 0 0.75rem;
}

.nav-link-custom {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: color var(--derive-transition-fast);
}

.nav-link-custom:hover {
    color: #fff;
}

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

.footer-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color var(--derive-transition-fast);
}

.footer-link:hover {
    color: rgba(255, 255, 255, 0.85);
}

.footer-social-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 1.25rem;
    transition: color var(--derive-transition-fast);
}

.footer-social-link:hover {
    color: #fff;
}

/* Newsletter inline slide-down */
.newsletter-slide {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}
.newsletter-slide.open {
    max-height: 80px;
    opacity: 1;
}

/* ============================================
   Stat Numbers
   ============================================ */

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--derive-primary);
    line-height: 1.1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--derive-text-muted);
}

/* ============================================
   Hero CTA Buttons
   ============================================ */

.site-blocks-cover .btn-outline-light {
    border-width: 2px;
}

.site-blocks-cover .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ============================================
   Parallax Stats Section
   ============================================ */

.parallax-stats {
    background-image: url('../images/dcg-team.webp');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Disable fixed attachment on mobile (causes issues on iOS/Android) */
@media (max-width: 768px) {
    .parallax-stats {
        background-attachment: scroll;
    }
}

.parallax-stats-overlay {
    background: rgba(0, 0, 0, 0.55);
    padding: 4rem 0;
}

.parallax-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.parallax-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) {
    .parallax-stat-number {
        font-size: 3.5rem;
    }

    .parallax-stats-overlay {
        padding: 5rem 0;
    }
}

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

.testimonial-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--derive-primary);
    color: var(--derive-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    font-size: 1.25rem;
    transition: all var(--derive-transition-fast);
}

.testimonial-nav-btn:hover {
    background-color: var(--derive-primary);
    color: #fff;
}

.testimonial-indicators.carousel-indicators {
    position: static;
    margin: 0;
    display: flex;
    gap: 6px;
    justify-content: center;
}

.testimonial-indicators.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--derive-border-card);
    border: none;
    padding: 0;
    opacity: 1;
    text-indent: 0;
    transition: background-color var(--derive-transition-fast);
}

.testimonial-indicators.carousel-indicators button.active {
    background-color: var(--derive-primary);
}

/* ============================================
   AOS Fallback
   Ensure content is visible if AOS fails to load
   or before animations are initialized
   ============================================ */

[data-aos] {
    visibility: visible !important;
}

@media print {
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ============================================
   Lead magnet (Property DD Checklist)
   ============================================ */
.lead-magnet-section {
    background: var(--derive-light);
}
.lead-magnet-card {
    background: #fff;
    border-radius: var(--derive-radius-lg);
    border-left: 4px solid var(--derive-primary);
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(26, 53, 18, 0.06);
}
.lead-magnet-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--derive-primary);
    margin-bottom: 0;
}
.lead-magnet-heading {
    color: var(--derive-dark);
}
.lead-magnet-bullets {
    list-style: none;
    padding-left: 0;
    margin: 0;
    color: var(--derive-text-subtle);
}
.lead-magnet-bullets li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.4rem;
}
.lead-magnet-bullets li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--derive-primary);
    font-weight: 700;
}
.lead-magnet-form-wrap {
    background: var(--derive-light);
    border-radius: var(--derive-radius-lg);
    padding: 1.5rem;
}
.lead-magnet-form-wrap #dd-checklist-form {
    min-height: 3rem;
}
@media (max-width: 991.98px) {
    .lead-magnet-card { padding: 1.5rem; }
}
