/* ============================================
   VARIABLE FONT
   ============================================ */
@font-face {
    font-family: 'Manrope';
    src: url('/assets/fonts/Manrope-Variable.woff2') format('woff2-variations'),
         url('/assets/fonts/Manrope-Variable.woff2') format('woff2');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --black: #171617;
    --black-light: #1e1d1e;
    --black-lighter: #252425;
    --cream: #f1ede4;
    --cream-dim: rgba(241, 237, 228, 0.7);
    --cream-muted: rgba(241, 237, 228, 0.5);
    --cream-subtle: rgba(241, 237, 228, 0.1);
    --accent: #009C6F;
    --accent-bright: #00b37f;
    --accent-dark: #007a57;
    --accent-glow: rgba(0, 156, 111, 0.4);
    --accent-dim: rgba(0, 156, 111, 0.15);
    --gray: #666666;
    --gray-light: #999999;
    --white: #ffffff;
    --border-dark: rgba(241, 237, 228, 0.1);
    --border-light: rgba(23, 22, 23, 0.1);
    --font-main: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --section-padding: clamp(80px, 12vw, 140px);
    --container-width: 1200px;
    --container-padding: clamp(20px, 5vw, 40px);
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--cream);
    background: var(--black);
}

body.menu-open {
    overflow: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* ============================================
   SECTION PILLBOX LABELS
   ============================================ */
.section-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(0, 156, 111, 0.12) 0%, rgba(0, 156, 111, 0.04) 100%);
    border: 1px solid rgba(0, 156, 111, 0.25);
    border-radius: 100px;
    padding: 8px 18px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.section-pill-light {
    background: linear-gradient(135deg, rgba(0, 156, 111, 0.08) 0%, rgba(0, 156, 111, 0.02) 100%);
    border-color: rgba(0, 156, 111, 0.2);
}

/* ============================================
   HEADER
   ============================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 14px 0;
    background: rgba(23, 22, 23, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-dark);
    transition: var(--transition-base);
}

header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
    opacity: 0.5;
}

header.scrolled {
    background: rgba(23, 22, 23, 0.95);
    padding: 10px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo { height: 38px; width: auto; }

.logo-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(0, 156, 111, 0.25);
}

.logo-badge {
    font-size: 10px;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--cream-dim);
    transition: var(--transition-fast);
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-link:hover { 
    color: var(--cream);
    background: var(--cream-subtle);
}

.nav-cta {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition-fast);
    margin-left: 8px;
    position: relative;
    overflow: hidden;
}

.nav-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 100%);
    opacity: 0;
    transition: var(--transition-fast);
}

.nav-cta span { position: relative; z-index: 1; }
.nav-cta:hover::before { opacity: 1; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--accent-glow); }

/* Desktop Dropdowns */
.nav-dropdown {
    position: relative;
}

.nav-link.has-dropdown {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow {
    width: 14px;
    height: 14px;
    transition: var(--transition-fast);
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--black-light);
    border: 1px solid var(--border-dark);
    border-radius: 16px;
    padding: 12px;
    min-width: 320px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    transition: var(--transition-fast);
    text-decoration: none;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-dim);
    border-radius: 10px;
    flex-shrink: 0;
}

.dropdown-item-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
}

.dropdown-item-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--cream);
}

.dropdown-item-desc {
    font-size: 12px;
    color: var(--cream-muted);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-dark);
    margin: 8px 0;
}

/* Highlighted dropdown item (Client Portal) */
.dropdown-item-highlight {
    background: var(--accent-dim);
    border: 1px solid var(--accent);
}

.dropdown-item-highlight:hover {
    background: var(--accent);
}

.dropdown-item-highlight:hover .dropdown-item-title,
.dropdown-item-highlight:hover .dropdown-item-desc {
    color: white;
}

.dropdown-item-highlight:hover .dropdown-item-icon {
    background: rgba(255, 255, 255, 0.2);
}

.dropdown-item-highlight:hover .dropdown-item-icon svg {
    stroke: white;
}

.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--cream);
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    transition: var(--transition-fast);
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

.mobile-menu-btn svg { width: 18px; height: 18px; display: block; }

/* Force mobile menu on touch devices (tablets, phones) */
@media (hover: none) {
    .nav-links { display: none !important; }
    .mobile-menu-btn { display: flex !important; }
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: var(--black-light);
    z-index: 201;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-dark);
}

.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cream-dim);
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-dark);
    border-radius: 10px;
    transition: var(--transition-fast);
}

.mobile-menu-close:hover { 
    color: var(--cream); 
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}
.mobile-menu-close svg { width: 18px; height: 18px; display: block; }

.mobile-menu-nav {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.mobile-menu-section {
    margin-bottom: 24px;
}

.mobile-menu-section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--cream-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 8px;
    background: var(--black);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--cream-dim);
    transition: var(--transition-fast);
}

.mobile-menu-link:hover {
    color: var(--cream);
    border-color: var(--accent-dim);
}

.mobile-menu-link svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

/* Client Portal Section */
.mobile-menu-section-portal {
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--border-dark);
}

.mobile-menu-cta {
    padding: 24px;
    border-top: 1px solid var(--border-dark);
}

.mobile-menu-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.mobile-menu-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-dark);
    border-radius: 10px;
    color: var(--cream);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.mobile-menu-contact-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
}

.mobile-menu-contact-btn.whatsapp:hover {
    border-color: #25D366;
    color: #25D366;
}

.mobile-menu-contact-btn.email:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.mobile-menu-contact-btn svg {
    width: 18px;
    height: 18px;
}

.mobile-menu-cta-main {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn svg { 
    width: 18px; 
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 156, 111, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary span { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; }

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 156, 111, 0.4);
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-secondary {
    background: transparent;
    color: var(--cream);
    border: 1px solid rgba(241, 237, 228, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--cream);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.btn-secondary span { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; }
.btn-secondary svg { position: relative; z-index: 1; transition: color 0.3s ease; }

.btn-secondary:hover {
    color: var(--black);
    border-color: var(--cream);
}

.btn-secondary:hover svg {
    color: var(--black);
}

.btn-secondary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}


/* ============================================
   THANK YOU OVERLAY
   ============================================ */
.thank-you-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    padding: 20px;
}

.thank-you-overlay.active {
    opacity: 1;
    visibility: visible;
}

.thank-you-content {
    background: var(--black-light);
    border: 1px solid var(--border-dark);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
    max-width: 480px;
    width: 100%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.thank-you-overlay.active .thank-you-content {
    transform: scale(1);
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-dim);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--accent);
}

.thank-you-icon svg { width: 40px; height: 40px; }

.thank-you-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.thank-you-content p {
    font-size: 16px;
    color: var(--cream-dim);
    margin-bottom: 28px;
    line-height: 1.6;
}

.thank-you-close {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--accent);
    color: var(--white);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.thank-you-close:hover {
    background: var(--accent-bright);
    transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--cream-muted);
    margin-top: 16px;
    max-width: 280px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a,
.footer-social-btn {
    width: 40px;
    height: 40px;
    background: var(--cream-subtle);
    border: 1px solid var(--border-dark);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cream-dim);
    transition: var(--transition-fast);
    cursor: pointer;
}

.footer-social a:hover,
.footer-social-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.footer-social svg { width: 18px; height: 18px; }

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 12px; }

.footer-column a {
    font-size: 14px;
    color: var(--cream-muted);
    transition: var(--transition-fast);
}

.footer-column a:hover { color: var(--cream); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-dark);
}

.footer-copyright {
    font-size: 13px;
    color: var(--cream-muted);
}

.footer-legal { display: flex; gap: 24px; }

.footer-legal a {
    font-size: 13px;
    color: var(--cream-muted);
    transition: var(--transition-fast);
}

.footer-legal a:hover { color: var(--cream); }

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: var(--transition-base);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

.whatsapp-float-tooltip {
    position: absolute;
    right: 70px;
    background: var(--black);
    color: var(--cream);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: var(--transition-fast);
}

.whatsapp-float-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--black);
}

.whatsapp-float:hover .whatsapp-float-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
    }
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
    .whatsapp-float-tooltip {
        display: none;
    }
}


/* ============================================
   LIGHT THEME (Legal/Info Pages)
   ============================================ */

/* Logo switching - default shows light logo */
.logo-dark {
    display: none;
}

.logo-light {
    display: block;
}

.light-theme {
    background: var(--cream);
    color: var(--black);
}

.light-theme header {
    background: var(--cream);
    border-bottom-color: var(--black);
}

/* Light theme shows dark logo */
.light-theme .logo-light {
    display: none;
}

.light-theme .logo-dark {
    display: block;
}

.light-theme .nav-link,
.light-theme .mobile-menu-btn svg {
    color: var(--black);
}

.light-theme .nav-dropdown-menu {
    background: var(--black);
}

.light-theme footer {
    background: var(--black);
    color: var(--cream);
}


/* ============================================
   FEATURED NAV LINK STYLES
   ============================================ */

/* Desktop featured nav link */
.nav-link-featured {
    background: linear-gradient(135deg, var(--accent-dim), rgba(0, 156, 111, 0.05));
    border: 1px solid rgba(0, 156, 111, 0.3);
    color: var(--accent) !important;
    border-radius: 8px;
    padding: 8px 16px !important;
}

.nav-link-featured:hover {
    background: rgba(0, 156, 111, 0.2) !important;
    color: var(--accent-bright) !important;
}

/* Mobile "Start Here" section */
.mobile-menu-section-start {
    background: linear-gradient(135deg, var(--accent-dim), rgba(0, 156, 111, 0.03));
    border: 1px solid rgba(0, 156, 111, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 8px;
}

.mobile-menu-section-start .mobile-menu-section-title {
    color: var(--accent);
}

/* Mobile featured link */
.mobile-menu-link-featured {
    background: linear-gradient(135deg, var(--accent-dim), rgba(0, 156, 111, 0.05));
    border: 1px solid rgba(0, 156, 111, 0.3);
    border-radius: 10px;
    color: var(--accent) !important;
}

.mobile-menu-link-featured:hover {
    background: rgba(0, 156, 111, 0.2);
}

.mobile-menu-link-featured svg {
    color: var(--accent);
}

/* ============================================
   GLOBAL RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-sidebar {
        grid-template-columns: 1fr 1fr;
    }
    .contact-info { grid-column: span 2; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
    .btn { padding: 14px 24px; font-size: 13px; }
    .form-row { grid-template-columns: 1fr; }
    .contact-sidebar { grid-template-columns: 1fr; }
    .contact-info { grid-column: span 1; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .thank-you-content { padding: 40px 24px; max-width: 100%; }
    .thank-you-icon { width: 64px; height: 64px; }
}
/* ============================================
   PERSPECTIVES SECTION
   ============================================ */
.perspectives-section {
    padding: var(--section-padding) 0;
    background: var(--black);
    border-top: 1px solid var(--border-dark);
}

.perspectives-section .section-pill {
    background: var(--accent-dim);
    color: var(--accent);
}

.perspectives-section .section-title {
    color: var(--cream);
}

.perspectives-section .section-desc {
    color: var(--cream-dim);
}

.perspectives-grid {
    display: grid;
    gap: 24px;
}

/* Featured Article - Full Width */
.perspective-featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-dark);
    border-radius: 20px;
    overflow: hidden;
    min-height: 420px;
    transition: var(--transition-base);
}

.perspective-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.perspective-featured-image {
    position: relative;
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--black) 100%);
    overflow: hidden;
}

.perspective-featured-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23009c6f' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.perspective-featured-visual {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.perspective-featured-icon {
    width: 120px;
    height: 120px;
    background: rgba(0, 156, 111, 0.15);
    border: 2px solid rgba(0, 156, 111, 0.3);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.perspective-featured-icon svg {
    width: 56px;
    height: 56px;
    color: var(--accent);
}

.perspective-featured-content {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.perspective-featured-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.perspective-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 6px 12px;
    border-radius: 6px;
}

.perspective-read-time {
    font-size: 12px;
    color: var(--cream-muted);
}

.perspective-featured-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--cream);
    line-height: 1.3;
    margin-bottom: 16px;
}

.perspective-featured-excerpt {
    font-size: 15px;
    color: var(--cream-dim);
    line-height: 1.7;
    margin-bottom: 24px;
}

.perspective-featured-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    transition: var(--transition-fast);
}

.perspective-featured-link svg {
    width: 18px;
    height: 18px;
    transition: var(--transition-fast);
}

.perspective-featured:hover .perspective-featured-link svg {
    transform: translateX(4px);
}

/* Article Cards Grid */
.perspectives-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.perspective-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-dark);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}

.perspective-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.perspective-card-image {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.perspective-card-image.residential {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
}

.perspective-card-image.automation {
    background: linear-gradient(135deg, #0c3c26 0%, #145a3c 100%);
}

.perspective-card-image.newyear {
    background: linear-gradient(135deg, #2c1810 0%, #4a2c1a 100%);
}

.perspective-card-visual {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.perspective-card-icon {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.perspective-card-icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
    opacity: 0.9;
}

.perspective-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.perspective-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.perspective-card-category {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 4px 8px;
    border-radius: 4px;
}

.perspective-card-date {
    font-size: 11px;
    color: var(--cream-muted);
}

.perspective-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--cream);
    line-height: 1.4;
    margin-bottom: 10px;
}

.perspective-card-excerpt {
    font-size: 13px;
    color: var(--cream-dim);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.perspective-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    transition: var(--transition-fast);
}

.perspective-card-link svg {
    width: 16px;
    height: 16px;
    transition: var(--transition-fast);
}

.perspective-card:hover .perspective-card-link svg {
    transform: translateX(4px);
}

.perspectives-cta {
    text-align: center;
    margin-top: 48px;
}

@media (max-width: 1024px) {
    .perspective-featured {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .perspective-featured-image {
        height: 240px;
    }

    .perspective-featured-content {
        padding: 32px;
    }

    .perspective-featured-title {
        font-size: 24px;
    }

    .perspectives-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .perspective-featured-content {
        padding: 24px;
    }

    .perspective-featured-title {
        font-size: 20px;
    }

    .perspective-featured-excerpt {
        font-size: 14px;
    }

    .perspectives-cards {
        grid-template-columns: 1fr;
    }

    .perspective-card-image {
        height: 160px;
    }
}


/* ============================================
   PROJECT SHOWCASE - Light Theme
   ============================================ */
.projects-section {
    padding: var(--section-padding) 0;
    background: var(--cream);
    color: var(--black);
}

.projects-section .section-pill {
    background: linear-gradient(135deg, rgba(0, 156, 111, 0.1) 0%, rgba(0, 156, 111, 0.03) 100%);
    border-color: rgba(0, 156, 111, 0.2);
}

.projects-section .section-desc {
    color: var(--gray);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.project-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 28px;
    transition: var(--transition-base);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 156, 111, 0.2);
}

.project-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
}

.project-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 156, 111, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.project-icon svg {
    width: 24px;
    height: 24px;
}

.project-header-text {
    flex: 1;
    min-width: 0;
}

.project-client {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.project-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--black);
    line-height: 1.2;
}

.project-desc {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 12px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-tag {
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    background: rgba(0, 156, 111, 0.08);
    border-radius: 100px;
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Tools & Connectors - Two Row Staggered Marquee */
.tools-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border-light);
}

.tools-header {
    text-align: center;
    margin-bottom: 30px;
}

.tools-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}

.tools-header p {
    font-size: 14px;
    color: var(--gray);
}

.tools-marquee-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tools-marquee-wrapper {
    overflow: hidden;
    position: relative;
}

.tools-marquee-wrapper::before,
.tools-marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.tools-marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--cream), transparent);
}

.tools-marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--cream), transparent);
}

/* Reduce gradient fade on mobile */
@media (max-width: 768px) {
    .tools-marquee-wrapper::before,
    .tools-marquee-wrapper::after {
        width: 20px;
    }
}

.tools-marquee-track {
    display: flex;
    width: fit-content;
}

.tools-marquee-track.row-1 {
    animation: toolsMarqueeLeft 45s linear infinite;
}

.tools-marquee-track.row-2 {
    animation: toolsMarqueeRight 50s linear infinite;
}

.tools-marquee-wrapper:hover .tools-marquee-track {
    animation-play-state: paused;
}

@keyframes toolsMarqueeLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes toolsMarqueeRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.tool-item {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    margin-right: 12px;
    background: var(--black);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--cream-dim);
    white-space: nowrap;
    transition: var(--transition-fast);
}

.tool-item:hover {
    background: var(--black-light);
    color: var(--cream);
}

.tool-item svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
    flex-shrink: 0;
}


/* ============================================
   THE SHIFT SECTION (Homepage)
   Insert after logos, before services
   ============================================ */
.shift-section {
    overflow: hidden;
}

/* Part 1: Reality - Cream Background */
.shift-reality {
    background: var(--cream);
    color: var(--black);
    padding: var(--section-padding) 0;
}

.shift-opener {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

/* Dark pill variant for cream backgrounds */
.section-pill-dark {
    background: linear-gradient(135deg, rgba(23, 22, 23, 0.08) 0%, rgba(23, 22, 23, 0.03) 100%);
    border-color: rgba(23, 22, 23, 0.15);
    color: var(--black);
}

.shift-headline {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.shift-sub {
    font-size: 18px;
    color: var(--gray);
    line-height: 1.7;
}

/* Problem Cards Grid */
.shift-problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .shift-problems-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.shift-problem-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    transition: var(--transition-base);
}

.shift-problem-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.shift-problem-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(239, 68, 68, 0.04) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.shift-problem-icon svg {
    width: 26px;
    height: 26px;
    color: #dc2626;
}

.shift-problem-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--black);
}

.shift-problem-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

/* Big Stat Block */
.shift-stat-block {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 20px;
}

.shift-stat-number {
    font-size: clamp(64px, 10vw, 100px);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.shift-stat-text {
    font-size: 17px;
    color: var(--gray);
    line-height: 1.7;
}

.shift-stat-text strong {
    color: var(--black);
}

/* Part 2: The Shift - Dark Background */
.shift-solution {
    background: var(--black);
    color: var(--cream);
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

/* Radial glow behind orchestrator box */
.shift-solution::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 700px;
    background: radial-gradient(ellipse at center, rgba(0, 156, 111, 0.15) 0%, rgba(0, 156, 111, 0.05) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Accent divider at bottom */
.shift-solution::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
    opacity: 0.6;
}

/* Ensure content sits above the glow */
.shift-solution .container {
    position: relative;
    z-index: 1;
}

.shift-revelation {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
}

.shift-headline-big {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.shift-headline-big .highlight {
    background: linear-gradient(135deg, var(--accent), var(--accent-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shift-desc {
    font-size: 18px;
    color: var(--cream-dim);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

/* Orchestrator Box */
.shift-orch-box {
    background: var(--black-light);
    border: 1px solid var(--border-dark);
    border-radius: 24px;
    padding: 40px;
    max-width: 900px;
    margin: 0 auto 50px;
    position: relative;
    overflow: hidden;
}

.shift-orch-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

.shift-orch-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.shift-orch-label {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-dim), rgba(0, 156, 111, 0.05));
    border: 1px solid rgba(0, 156, 111, 0.3);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    text-align: center !important;
}

.shift-orch-def {
    font-size: 18px;
    color: var(--cream-dim);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 700px;
    width: 100%;
    text-align: center !important;
}

.shift-caps-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center !important;
    width: 100%;
}

.shift-cap-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(241, 237, 228, 0.04);
    border: 1px solid var(--border-dark);
    border-radius: 100px;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--cream-dim);
    transition: var(--transition-base);
}

.shift-cap-pill:hover {
    background: rgba(241, 237, 228, 0.08);
    border-color: rgba(241, 237, 228, 0.2);
}

.shift-cap-pill svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
}

.shift-cap-pill strong {
    color: var(--cream);
}

@media (max-width: 768px) {
    .shift-caps-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .shift-cap-pill {
        justify-content: flex-start;
    }
    
    .shift-orch-box {
        padding: 28px 20px;
    }
}

/* Proof + CTAs */
.shift-proof {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.shift-proof-text {
    font-size: 18px;
    color: var(--cream-dim);
    margin-bottom: 8px;
}

.shift-proof-text strong {
    color: var(--cream);
}

.shift-proof-accent {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 32px;
}

.shift-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .shift-ctas {
        flex-direction: column;
        align-items: stretch;
    }
    
    .shift-ctas .btn {
        width: 100%;
    }
}


