/* ==========================================
   Upstate AI - Bold, Dynamic Redesign
   CRAP Principles: Contrast · Repetition · Alignment · Proximity
   ========================================== */

:root {
    --forest-dark: #1a3a2e;
    --forest-medium: #2d5745;
    --forest-light: #3f7054;
    --forest-accent: #5a8f6e;
    --orange: #ff6900;
    --orange-light: #ff8c3a;
    --orange-glow: rgba(255, 105, 0, 0.15);
    --cream: #f7f4ea;
    --warm-white: #fdfcf8;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #f0f0f0;
    --text-muted: #556b5e;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 5rem;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(26, 58, 46, 0.06);
    --shadow-md: 0 8px 30px rgba(26, 58, 46, 0.1);
    --shadow-lg: 0 20px 60px rgba(26, 58, 46, 0.15);
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--warm-white);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; margin-bottom: var(--spacing-sm); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
p { margin-bottom: var(--spacing-sm); }

a { color: var(--orange); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--orange-light); }

.text-orange { color: var(--orange); }

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

/* ==========================================
   Fade-in Animation
   ========================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Respect reduced motion — show content immediately */
@media (prefers-reduced-motion: reduce) {
    .fade-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================
   Navigation — Glass effect, high contrast
   ========================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(247, 244, 234, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.4rem 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.navbar.scrolled {
    background: rgba(247, 244, 234, 0.96);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }

.nav-brand .logo {
    height: 54px;
    width: auto;
    filter: none; /* Full-color logo visible on light background */
    transition: var(--transition);
}
.nav-brand .logo:hover { filter: brightness(1.05); }

.nav-menu { display: flex; list-style: none; gap: 0.25rem; align-items: center; }
.nav-menu a {
    color: var(--forest-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.nav-menu a:hover { color: var(--orange); background: rgba(255, 105, 0, 0.08); }

.btn-nav {
    background: var(--orange) !important;
    color: #fff !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
}
.btn-nav:hover {
    background: var(--orange-light) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 105, 0, 0.4);
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-toggle span {
    width: 24px; height: 2px;
    background: var(--forest-dark);
    border-radius: 2px;
    transition: var(--transition);
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ==========================================
   Buttons
   ========================================== */
.btn-primary, .btn-primary-large, .btn-secondary, .btn-ghost {
    display: inline-block;
    padding: 1rem 2.25rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary, .btn-primary-large {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 105, 0, 0.35);
}
.btn-primary:hover, .btn-primary-large:hover {
    background: var(--orange-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 105, 0, 0.45);
    color: #fff;
}
.btn-primary-large { padding: 1.25rem 3rem; font-size: 1.15rem; }

.btn-secondary {
    background: transparent;
    color: var(--orange);
    border: 2px solid var(--orange);
}
.btn-secondary:hover {
    background: var(--orange);
    color: #fff;
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-ghost:hover {
    border-color: var(--orange);
    color: var(--orange);
    background: rgba(255, 105, 0, 0.08);
}

/* ==========================================
   Hero — Dynamic, energetic, diagonal divider
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--forest-dark);
    padding: calc(80px + var(--spacing-xl)) 0 calc(var(--spacing-xl) + 60px) 0;
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.hero-bg-image {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.18;
    filter: grayscale(30%) contrast(1.15);
}

/* Animated gradient overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 58, 46, 0.95) 0%,
        rgba(26, 58, 46, 0.88) 30%,
        rgba(45, 87, 69, 0.82) 60%,
        rgba(63, 112, 84, 0.78) 100%
    );
    z-index: 1;
}

/* Geometric floating shapes */
.hero-shapes {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}
.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.07;
}
.shape-1 {
    width: 600px; height: 600px;
    background: var(--orange);
    top: -200px; right: -100px;
    animation: float 20s ease-in-out infinite;
}
.shape-2 {
    width: 300px; height: 300px;
    background: var(--orange);
    bottom: -50px; left: 10%;
    animation: float 15s ease-in-out infinite reverse;
}
.shape-3 {
    width: 150px; height: 150px;
    border: 3px solid var(--orange);
    background: transparent;
    top: 30%; right: 15%;
    animation: float 12s ease-in-out infinite;
    opacity: 0.12;
}
.shape-4 {
    width: 80px; height: 80px;
    background: var(--orange);
    top: 20%; left: 5%;
    animation: float 18s ease-in-out infinite reverse;
    border-radius: var(--radius-md);
    transform: rotate(45deg);
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

.hero-content { 
    position: relative; 
    z-index: 3; 
    max-width: 750px; 
    text-align: center; 
    margin: 0 auto; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 105, 0, 0.15);
    border: 1px solid rgba(255, 105, 0, 0.3);
    color: var(--orange-light);
    padding: 0.4rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
}

.hero-title { color: #fff; margin-bottom: var(--spacing-md); }
.hero-region { font-size: calc(1em + 12px); display: block; }

.hero-tagline {
    font-size: clamp(1.3rem, 2.8vw, 1.8rem);
    color: var(--orange);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.4;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
    line-height: 1.5;
}
.stat-source { font-size: 0.85em; opacity: 0.6; }

.hero-description {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas { display: flex; gap: var(--spacing-sm); flex-wrap: wrap; justify-content: center; }

/* Diagonal divider */
.hero-divider {
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    z-index: 4;
    line-height: 0;
}
.hero-divider svg { width: 100%; height: 120px; display: block; }

/* ==========================================
   Prototype-First Section — Dark, bold
   ========================================== */
.prototype {
    padding: var(--spacing-xl) 0;
    background: var(--white);
    position: relative;
}

.prototype-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.prototype-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--orange);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.prototype-headline {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--forest-dark);
    margin-bottom: var(--spacing-md);
}

.prototype-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 500px;
}

.prototype-cards {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.proto-card {
    background: var(--forest-dark);
    color: #fff;
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    transition: var(--transition);
    border-left: 4px solid var(--orange);
}
.proto-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-lg);
}
.proto-icon { font-size: 1.8rem; flex-shrink: 0; line-height: 1; }
.proto-text { flex: 1; min-width: 0; }
.proto-card h3 { font-size: 1.1rem; margin-bottom: 0.3rem; color: var(--orange-light); font-weight: 700; }
.proto-card p { font-size: 0.95rem; color: rgba(255,255,255,0.85); margin: 0; line-height: 1.5; text-align: left; }

/* ==========================================
   Speaking Section (Tier Zero)
   ========================================== */
.speaking {
    padding: var(--spacing-lg) 0;
    background: var(--forest-dark);
    border-top: 4px solid var(--orange);
    border-bottom: 4px solid var(--orange);
    position: relative;
}
.speaking::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 105, 0, 0.05) 0%, transparent 50%, rgba(255, 105, 0, 0.05) 100%);
    pointer-events: none;
}
.speaking-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.speaking-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: #fff;
    margin-bottom: var(--spacing-sm);
    font-weight: 800;
}
.speaking-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

/* ==========================================
   Section Titles
   ========================================== */
.section-title {
    text-align: center;
    color: var(--forest-dark);
    margin-bottom: var(--spacing-xs);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================
   Services — Bold featured card
   ========================================== */
.services {
    padding: var(--spacing-xl) 0;
    background: var(--cream);
    position: relative;
}

/* Subtle dot pattern */
.services::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(26, 58, 46, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(7, auto);
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.service-card {
    background: var(--white);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg) var(--spacing-md);
    transition: var(--transition);
    position: relative;
    display: grid;
    grid-row: span 7;
    grid-template-rows: subgrid;
    row-gap: 0;
}
.service-divider {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.06);
    align-self: end;
    margin: 0;
    padding: 0;
}
.service-card.featured .service-divider {
    border-top-color: rgba(255,255,255,0.1);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--orange);
}

.service-card.featured {
    background: var(--forest-dark);
    color: #fff;
    border: 3px solid var(--orange);
    transform: scale(1.04);
    box-shadow: 0 25px 60px rgba(26, 58, 46, 0.25), 0 0 0 1px rgba(255, 105, 0, 0.2);
}
.service-card.featured:hover {
    transform: scale(1.04) translateY(-4px);
    box-shadow: 0 30px 70px rgba(26, 58, 46, 0.3), 0 0 30px rgba(255, 105, 0, 0.15);
}

.service-card.featured .service-title,
.service-card.featured .service-description,
.service-card.featured .service-features { color: rgba(255,255,255,0.9); }
.service-card.featured .service-number { color: var(--orange); opacity: 0.4; }

.service-badge {
    position: absolute;
    top: -14px; right: 24px;
    background: var(--orange);
    color: #fff;
    padding: 0.4rem 1.25rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255, 105, 0, 0.4);
}

.service-number {
    font-size: 9rem;
    font-weight: 900;
    color: var(--forest-medium);
    opacity: 0.12;
    margin-bottom: -3rem;
    margin-left: -1.5rem;
    line-height: 0.8;
    position: relative;
    z-index: 0;
    pointer-events: none;
}

.service-title { color: var(--forest-dark); margin-bottom: var(--spacing-xs); position: relative; z-index: 1; }
.service-card.featured .service-title { color: #fff; }

.service-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--orange);
    margin-bottom: var(--spacing-sm);
}
.service-card {
    min-width: 0;
}
.service-price .price-detail { font-size: 0.85rem; font-weight: 400; color: var(--text-muted); }
.service-card.featured .service-price .price-detail { color: rgba(255,255,255,0.6); }

.service-description { color: var(--text-muted); margin-bottom: var(--spacing-md); font-size: 0.95rem; line-height: 1.6; }
.service-card.featured .service-description { color: rgba(255,255,255,0.8); }

.service-features { list-style: none; padding: 0; }
.service-features li {
    padding: 0.4rem 0;
    padding-left: 1.75rem;
    position: relative;
    font-size: 0.95rem;
}
.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--orange);
    font-weight: 800;
}
.service-features li strong { color: var(--orange); }

.service-roi {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.9rem;
    font-style: italic;
    color: var(--forest-accent);
    font-weight: 500;
}
.service-card.featured .service-roi {
    color: var(--orange-light);
    border-top-color: rgba(255, 255, 255, 0.1);
}
.roi-source { font-size: 0.8rem; opacity: 0.6; }

/* ==========================================
   About Section
   ========================================== */
.about {
    padding: var(--spacing-xl) 0;
    background: var(--cream);
    position: relative;
}
.about-divider-top {
    position: absolute;
    top: -1px; left: 0; right: 0;
    line-height: 0;
    z-index: 1;
}
.about-divider-top svg { width: 100%; height: 80px; display: block; }

.about-header {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.headshot {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--orange);
    box-shadow: 0 10px 40px rgba(255, 105, 0, 0.2);
    flex-shrink: 0;
}

.about-header-text { flex: 1; min-width: 280px; }
.about-header-text .section-title { text-align: left; }
.about-intro { font-size: 1.2rem; color: var(--forest-accent); font-weight: 500; margin-bottom: 0; }

.credentials { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--spacing-sm); margin-bottom: var(--spacing-lg); }

.credential-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--orange);
    transition: var(--transition);
}
.credential-item:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
}
.credential-icon { font-size: 2.25rem; flex-shrink: 0; }
.credential-item h3 { color: var(--forest-dark); margin-bottom: 0.25rem; font-size: 1.15rem; }
.credential-item p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }
.credential-cta {
    background: rgba(45, 87, 69, 0.1);
    border-left-color: var(--forest-accent);
}
.credential-cta h3 { color: var(--forest-dark); }
.credential-cta p { color: var(--text-muted); }
.credential-cta-link {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--orange);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
}
.credential-cta-link:hover { color: var(--orange-light); }

.about-cta {
    padding: var(--spacing-lg);
    background: var(--forest-dark);
    border-radius: var(--radius-lg);
    border: 2px solid rgba(255, 105, 0, 0.2);
}
.about-cta-content { display: flex; gap: var(--spacing-lg); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.about-cta-text-wrapper { flex: 1; min-width: 280px; text-align: center; }
.about-cta-text { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-bottom: var(--spacing-md); }
.ny-map { max-width: 180px; height: auto; opacity: 0.5; filter: brightness(1.5); flex-shrink: 0; }

/* ==========================================
   Industries Section
   ========================================== */
.industries {
    padding: var(--spacing-xl) 0;
    background: var(--forest-dark);
    color: #fff;
    position: relative;
}

.industries .section-title { color: #fff; }
.industries .section-subtitle { color: rgba(255,255,255,0.75); }

.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.industry-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
}
.industry-card:hover {
    background: rgba(255, 105, 0, 0.1);
    border-color: var(--orange);
    transform: translateY(-4px);
}
.industry-icon { font-size: 2.5rem; margin-bottom: var(--spacing-sm); }
.industry-card h3 { color: var(--orange-light); font-size: 1.15rem; margin-bottom: 0.5rem; }
.industry-card p { color: rgba(255,255,255,0.78); font-size: 0.9rem; margin: 0; line-height: 1.6; }
.industry-pill {
    display: inline-block;
    background: rgba(255, 105, 0, 0.15);
    border: 1px solid rgba(255, 105, 0, 0.3);
    color: var(--orange-light);
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-top: 0.75rem;
}

/* ==========================================
   Blog Section
   ========================================== */
.blog {
    padding: var(--spacing-xl) 0;
    background: var(--cream);
    position: relative;
}
.blog-divider-top {
    position: absolute;
    top: -1px; left: 0; right: 0;
    line-height: 0;
}
.blog-divider-top svg { width: 100%; height: 80px; display: block; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-sm);
    transition: var(--transition);
    border: 2px solid transparent;
}
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--orange);
}
.blog-category {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: var(--spacing-sm);
}
.blog-title { color: var(--forest-dark); margin-bottom: var(--spacing-xs); font-size: 1.2rem; }
.blog-excerpt { color: var(--text-muted); font-size: 0.95rem; margin-bottom: var(--spacing-sm); }
.blog-meta { display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.85rem; opacity: 0.7; }

/* ==========================================
   CTA Section
   ========================================== */
.cta {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest-medium) 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255, 105, 0, 0.1) 0%, transparent 70%);
    top: -200px; right: -100px;
    pointer-events: none;
}
.cta-content { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.cta-title { color: #fff; margin-bottom: var(--spacing-md); }
.cta-description { font-size: 1.15rem; margin-bottom: var(--spacing-lg); color: rgba(255,255,255,0.85); }
.cta-note { margin-top: var(--spacing-md); color: var(--orange-light); font-size: 0.9rem; font-weight: 500; }

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: #0d1f18;
    color: var(--text-light);
    padding: var(--spacing-lg) 0 var(--spacing-md) 0;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}
.footer-logo {
    height: 45px;
    width: auto;
    margin-bottom: var(--spacing-xs);
    filter: brightness(1.5) saturate(0.4);
}
.footer-brand p { color: rgba(255,255,255,0.5); margin: 0; font-size: 0.9rem; }
.footer-links { display: flex; gap: var(--spacing-md); flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--orange); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: var(--spacing-md);
    text-align: center;
}
.footer-bottom p { color: rgba(255,255,255,0.4); margin: 0; font-size: 0.85rem; }

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .service-card.featured { transform: none; }
    .service-card.featured:hover { transform: translateY(-6px); }
    .industries-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-grid { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
    .nav-menu { 
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 28, 22, 0.98);
        flex-direction: column;
        padding: var(--spacing-md);
        gap: 0.5rem;
    }
    .nav-menu.open { display: flex; }
    .mobile-toggle { display: flex; }

    .hero { min-height: auto; padding: calc(70px + var(--spacing-lg)) 0 calc(var(--spacing-lg) + 60px) 0; overflow: hidden; }
    .hero-ctas { flex-direction: column; }
    .hero-ctas .btn-primary, .hero-ctas .btn-ghost { text-align: center; }
    
    /* Prevent any content from peeking above the navbar */
    body { overflow-x: hidden; position: relative; }

    .prototype-grid { grid-template-columns: 1fr; gap: var(--spacing-lg); }
    .services-grid { grid-template-columns: 1fr; }
    .industries-grid { grid-template-columns: 1fr; }

    .credentials { grid-template-columns: 1fr; }
    .about-header { flex-direction: column; text-align: center; }
    .about-header-text .section-title { text-align: center; }
    .headshot { width: 140px; height: 140px; }

    .about-cta { padding: var(--spacing-md); }
    .about-cta-content { flex-direction: column; text-align: center; gap: var(--spacing-md); }
    .about-cta-text-wrapper { min-width: auto; }
    .about-cta-text { margin-bottom: var(--spacing-sm); }
    .ny-map { max-width: 120px; margin: 0 auto; margin-bottom: 0; }
    
    /* Switch button to filled orange style for better mobile appearance */
    .about-cta .btn-secondary {
        background: var(--orange);
        color: #fff;
        border: none;
        padding: 0.875rem 1.75rem;
        box-shadow: 0 4px 20px rgba(255, 105, 0, 0.35);
    }
    .about-cta .btn-secondary:hover {
        background: var(--orange-light);
    }

    .footer-content { flex-direction: column; text-align: center; }
    .footer-links { flex-direction: column; gap: var(--spacing-sm); align-items: center; }
}

@media (max-width: 480px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4.5rem;
    }
    .hero-divider svg { height: 60px; }
    .proto-card { flex-direction: column; }
}
