/* static/assets/css/style.css */
/* Fizzbiz Networks — Brand & Theme System */

/* ========================================
   CSS Variables & Theme System
   ======================================== */

:root {
    /* Core Fizzbiz Brand Colors */
    --teal: #17312C;
    --teal-dark: #0E1F1C;
    --teal-light: #2A4A44;
    --soft-green: #56B77E;
    --soft-green-dark: #3D9A63;
    --soft-green-light: #7EC99C;
    --cream: #FBFBFB;
    --coral: #F2735B;
    --coral-dark: #E05A42;
    --coral-light: #F58D7A;

    /* Theme-Aware Variables */
    --bg-primary: var(--cream);
    --bg-surface: #FFFFFF;
    --bg-secondary: #F5F7FA;
    --text-primary: #1A1A1A;
    --text-secondary: #5A6578;
    --text-inverse: #FFFFFF;
    --border-color: #E0E5EC;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --shadow-hover: rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Font Family */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-bg-strong: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-highlight: rgba(255, 255, 255, 0.85);
    --glass-shadow: 0 8px 32px rgba(23, 49, 44, 0.12);
    --glass-blur: 16px;
}

/* ========================================
   Base Styles
   ======================================== */

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition-base), color var(--transition-base);
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   Scroll Animations
   ======================================== */

.animate-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.animate-in {
    animation: fadeInUp 0.7s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Glassmorphism System
   ======================================== */

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
}

.glass-dark {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
    height: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.glass-card:hover {
    transform: translateY(-6px);
    background: var(--glass-bg-strong);
    box-shadow: 0 24px 48px -12px var(--shadow-hover), inset 0 1px 0 var(--glass-highlight);
}

.glass-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    transition: background var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.glass-btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
}

.glass-orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

/* ========================================
   Hero Section
   ======================================== */

.hero-section {
    padding-top: 5rem;
    padding-bottom: 6rem;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    position: relative;
    overflow: hidden;
}

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

.hero-content {
    display: flex;
    flex-direction: column;
}

.hero-heading {
    font-size: 2.25rem;
    line-height: 1.15;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    max-width: 32rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-stats {
    display: flex;
    align-items: center;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.stat-item {
    width: 100%;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--soft-green-light);
}

/* ========================================
   Service Cards
   ======================================== */

.service-card {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    text-decoration: none;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.service-card:hover {
    transform: translateY(-6px);
    background: var(--glass-bg-strong);
    box-shadow: 0 24px 48px -12px var(--shadow-hover), inset 0 1px 0 var(--glass-highlight);
}

.service-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--teal);
    margin-bottom: 0.5rem;
    transition: color var(--transition-base);
}

.service-card:hover .service-card-title {
    color: var(--teal-dark);
}

.service-card-arrow {
    display: inline-flex;
    transition: transform var(--transition-base);
    margin-left: 0.25rem;
}

.service-card:hover .service-card-arrow {
    transform: translateX(4px);
}

/* ========================================
   Project Cards
   ======================================== */

.project-card {
    height: 100%;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
    width: 100%;
}

.project-card:hover {
    transform: translateY(-6px);
    background: var(--glass-bg-strong);
    box-shadow: 0 24px 48px -12px var(--shadow-hover), inset 0 1px 0 var(--glass-highlight);
}

.project-card-media {
    height: 12rem;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    background: linear-gradient(135deg, var(--teal), var(--soft-green));
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.project-card-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color var(--transition-base);
}

.project-card:hover .project-card-overlay {
    background-color: rgba(0, 0, 0, 0.2);
}

.project-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--teal);
    margin-bottom: 0.5rem;
    transition: color var(--transition-base);
}

.project-card:hover .project-card-title {
    color: var(--teal-dark);
}

/* ========================================
   Grid System
   ======================================== */

/* Flex Grid (Bootstrap replacement) */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.col {
    flex: 1 0 0%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    min-width: 0;
}

/* CSS Grids */
.services-grid,
.projects-grid,
.why-grid,
.industries-grid {
    display: grid;
    gap: 1.5rem;
    width: 100%;
}

.services-grid {
    grid-template-columns: repeat(3, 1fr);
}

.projects-grid {
    grid-template-columns: repeat(3, 1fr);
}

.why-grid {
    grid-template-columns: repeat(3, 1fr);
}

.industries-grid {
    grid-template-columns: repeat(3, 1fr);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    width: 100%;
}

/* Grid children */
.services-grid > *,
.projects-grid > *,
.why-grid > *,
.industries-grid > *,
.process-grid > * {
    min-width: 0;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
    height: auto;
    display: flex;
    flex-direction: column;
}

/* Override col behavior inside grids */
.services-grid .col,
.projects-grid .col,
.why-grid .col,
.industries-grid .col,
.process-grid .col {
    flex: none;
    width: 100%;
    max-width: 100%;
    padding: 0;
    display: block;
    height: auto;
}

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

footer {
    background-color: var(--teal-dark);
    color: rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 3rem 0;
}

.footer-company {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-subheading {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-description {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social-link {
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition-base), transform var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-social-link:hover {
    color: var(--soft-green);
    transform: translateY(-3px) scale(1.1);
}

.footer-social-link svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Footer Navigation */
.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav li {
    margin: 0;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-base);
}

.footer-nav a:hover {
    color: var(--soft-green);
}

/* Newsletter Form */
.footer-newsletter p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
}

.footer-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-newsletter-input {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.footer-newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter-input:focus {
    outline: none;
    border-color: var(--soft-green);
    box-shadow: 0 0 0 2px rgba(86, 183, 126, 0.3);
}

.footer-newsletter-btn {
    background-color: var(--soft-green);
    color: var(--teal-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-lg);
    border: none;
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color var(--transition-base);
}

.footer-newsletter-btn:hover {
    background-color: var(--soft-green-dark);
}

/* Footer Bottom Bar */
.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-bottom-links a:hover {
    color: var(--soft-green);
}

/* Footer Container */
.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ========================================
   Utility Classes
   ======================================== */

/* Container */
.q-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.q-section {
    padding: 5rem 0;
    position: relative;
}

.q-section-content {
    width: 100%;
}

/* Headings */
.q-heading-1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.q-heading-2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.q-heading-2::after {
    content: '';
    position: absolute;
    bottom: -0.625rem;
    left: 50%;
    transform: translateX(-50%);
    width: 5rem;
    height: 3px;
    background: linear-gradient(90deg, var(--soft-green), var(--coral));
    border-radius: 3px;
}

/* Text */
.text-center {
    text-align: center;
}

.text-white {
    color: #ffffff;
}

.text-white-80 {
    color: rgba(255, 255, 255, 0.8);
}

.text-white-70 {
    color: rgba(255, 255, 255, 0.7);
}

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

.text-soft-green {
    color: var(--soft-green);
}

.text-soft-green-light {
    color: var(--soft-green-light);
}

.q-text-secondary {
    color: var(--text-secondary);
}

/* Spacing */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mt-auto { margin-top: auto; }

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.ms-1 { margin-left: 0.25rem; }
.ms-2 { margin-left: 0.5rem; }

.p-4 { padding: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }

/* Flex */
.d-flex {
    display: flex;
}

.d-inline-flex {
    display: inline-flex;
}

.d-block {
    display: block;
}

.d-inline-block {
    display: inline-block;
}

.flex-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-grow-1 {
    flex-grow: 1;
}

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

.align-items-center {
    align-items: center;
}

.align-self-start {
    align-self: flex-start;
}

.justify-content-center {
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}
.gap-3 {
    gap: 1rem;
}

/* Typography */
.fs-sm {
    font-size: 0.875rem;
}

.fs-4 {
    font-size: 1.5rem;
}

.fs-5 {
    font-size: 1.25rem;
}

.fw-medium {
    font-weight: 500;
}

.fw-semibold {
    font-weight: 600;
}

.fw-bold {
    font-weight: 700;
}

/* Max Width */
.max-w-lg {
    max-width: 32rem;
}

.max-w-2xl {
    max-width: 42rem;
}

/* Position */
.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

.z-1 {
    z-index: 1;
}

.overflow-hidden {
    overflow: hidden;
}

/* Border Radius */
.rounded-2 {
    border-radius: 0.5rem;
}

.rounded-3 {
    border-radius: 1rem;
}

.rounded-4 {
    border-radius: 1.5rem;
}

.rounded-circle {
    border-radius: 50%;
}

.rounded-pill {
    border-radius: 50rem;
}

.rounded-top-4 {
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
}

/* Backgrounds */
.bg-teal {
    background-color: var(--teal);
}

.bg-teal-dark {
    background-color: var(--teal-dark);
}

.bg-teal-gradient {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
}

.bg-teal-green-gradient {
    background: linear-gradient(135deg, var(--teal), var(--soft-green));
}

.bg-cream {
    background-color: var(--cream);
}

.bg-white {
    background-color: #ffffff;
}

.pill-soft-green {
    background-color: rgba(86, 183, 126, 0.1);
    color: var(--soft-green-dark);
    padding: 0.25rem 1rem;
    border-radius: 50rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
}

/* Icon Tile */
.icon-tile {
    width: 3rem;
    height: 3rem;
    background-color: rgba(86, 183, 126, 0.1);
    border: 1px solid rgba(86, 183, 126, 0.2);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    transition: background-color var(--transition-base);
}

/* Hover */
.hover-lift {
    transition: transform var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Buttons */
.q-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    font-family: inherit;
}

.q-btn-primary {
    background-color: var(--coral);
    color: white;
}

.q-btn-primary:hover {
    background-color: var(--coral-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(242, 115, 91, 0.3);
}

.q-btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
}

/* CTA */
.cta-heading {
    font-size: 1.875rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

/* Text Decoration */
.text-decoration-none {
    text-decoration: none;
}

/* Border */
.border-t {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ========================================
   Mobile Responsive Styles
   ======================================== */

/* Large screens - up to 1200px */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .why-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .process-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

/* Tablets - up to 992px */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-heading {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .q-section {
        padding: 3.5rem 0;
    }

    .q-heading-2 {
        font-size: 2rem;
    }

    .glass-card {
        min-height: 240px;
    }
    .service-card {
        min-height: 240px;
    }
    .project-card {
        min-height: 340px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Small tablets & large phones - up to 768px */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 3rem;
        padding-bottom: 4rem;
    }

    .hero-heading {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .process-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .q-section {
        padding: 3rem 0;
    }

    .q-heading-2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .glass-card {
        min-height: 220px;
        padding: 1.25rem;
    }
    .service-card {
        min-height: 220px;
        padding: 1.25rem;
    }
    .project-card {
        min-height: 320px;
        padding: 1.25rem;
    }

    .service-card-title {
        font-size: 1rem;
    }
    .project-card-title {
        font-size: 1.125rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .q-btn,
    .hero-buttons .glass-btn {
        width: 100%;
        justify-content: center;
    }

    .glass-btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .q-btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .cta-heading {
        font-size: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}

/* Phones - up to 576px */
@media (max-width: 576px) {
    .hero-section {
        padding-top: 2rem;
        padding-bottom: 3rem;
    }

    .hero-heading {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-grid {
        gap: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .stat-item .glass-dark {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .why-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .industries-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .q-section {
        padding: 2.5rem 0;
    }

    .q-container {
        padding: 0 1rem;
    }

    .q-heading-2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .q-heading-2::after {
        width: 3rem;
        height: 2px;
    }

    .glass-card {
        min-height: 200px;
        padding: 1rem;
    }
    .service-card {
        min-height: 200px;
        padding: 1rem;
    }
    .project-card {
        min-height: 300px;
        padding: 1rem;
    }
    .project-card-media {
        height: 10rem;
        margin: -1rem -1rem 0.75rem -1rem;
    }

    .service-card-title {
        font-size: 0.95rem;
    }
    .project-card-title {
        font-size: 1rem;
    }

    .icon-tile {
        width: 2.5rem;
        height: 2.5rem;
    }

    .fs-4 {
        font-size: 1.25rem;
    }

    .fs-5 {
        font-size: 1.1rem;
    }

    .fs-sm {
        font-size: 0.8rem;
    }

    .pill-soft-green {
        font-size: 0.75rem;
        padding: 0.2rem 0.75rem;
    }

    .cta-heading {
        font-size: 1.25rem;
    }

    .q-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }

    .q-btn-lg {
        padding: 0.625rem 1.25rem;
        font-size: 0.95rem;
    }

    .glass-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }

    .glass-btn-lg {
        padding: 0.625rem 1.25rem;
        font-size: 0.95rem;
    }

    .process-grid .glass-dark {
        min-height: 160px;
        padding: 1rem;
    }

    .process-grid .rounded-circle {
        width: 3rem !important;
        height: 3rem !important;
        font-size: 1.25rem !important;
    }

    .process-grid .fs-5 {
        font-size: 0.95rem !important;
    }

    /* Footer Mobile */
    .footer-container {
        padding: 0 1rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-bottom-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    .footer-heading {
        font-size: 1rem;
    }
    .footer-newsletter-form {
        flex-direction: column;
    }
    .footer-social {
        justify-content: center;
    }
}

/* Extra small phones - up to 400px */
@media (max-width: 400px) {
    .hero-heading {
        font-size: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .stat-item .glass-dark {
        padding: 0.75rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-item .text-white-80 {
        font-size: 0.75rem;
    }

    .glass-card {
        min-height: 180px;
        padding: 0.875rem;
    }
    .service-card {
        min-height: 180px;
        padding: 0.875rem;
    }
    .project-card {
        min-height: 280px;
        padding: 0.875rem;
    }
    .project-card-media {
        height: 8rem;
        margin: -0.875rem -0.875rem 0.75rem -0.875rem;
    }

    .q-heading-2 {
        font-size: 1.25rem;
    }

    .cta-heading {
        font-size: 1.1rem;
    }

    .q-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .glass-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .process-grid .glass-dark {
        min-height: 140px;
        padding: 0.75rem;
    }

    .process-grid .rounded-circle {
        width: 2.5rem !important;
        height: 2.5rem !important;
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .process-grid .fs-5 {
        font-size: 0.85rem !important;
    }

    .process-grid .fs-sm {
        font-size: 0.7rem !important;
    }

    .process-grid .text-white-70 {
        max-width: 8rem !important;
    }

    /* Footer Extra Small */
    .footer-grid {
        gap: 1.25rem;
    }
    .footer-nav a {
        font-size: 0.8rem;
    }
    .footer-description {
        font-size: 0.8rem;
    }
    .footer-bottom {
        font-size: 0.75rem;
    }
    .footer-bottom-links a {
        font-size: 0.75rem;
    }
}

/* ========================================
   Dark Theme Support
   ======================================== */

@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0A0A0F;
        --bg-surface: #151520;
        --bg-secondary: #1A1A2E;
        --text-primary: #E0E5EC;
        --text-secondary: #A0A5B5;
        --border-color: #2A2A3A;
        --shadow-color: rgba(0, 0, 0, 0.3);
        --shadow-hover: rgba(0, 0, 0, 0.5);

        --glass-bg: rgba(21, 21, 32, 0.55);
        --glass-bg-strong: rgba(21, 21, 32, 0.75);
        --glass-border: rgba(255, 255, 255, 0.1);
        --glass-highlight: rgba(255, 255, 255, 0.08);
        --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    }

    .bg-cream {
        background-color: #0A0A0F;
    }

    .bg-white {
        background-color: #151520;
    }

    .glass-card {
        background: rgba(21, 21, 32, 0.55);
    }

    .service-card {
        background: rgba(21, 21, 32, 0.55);
    }

    .project-card {
        background: rgba(21, 21, 32, 0.55);
    }

    .footer-newsletter-input {
        background: rgba(255, 255, 255, 0.05);
    }
}

/* ========================================
   Landing Page — Motion System
   Added for the Home page redesign: ambient floating orbs, a load-time
   text reveal for the hero, an animated gradient text accent, an infinite
   tech marquee, and hover-triggered image motion on card media. Nothing
   here touches the .animate-on-scroll contract that ServiceCard,
   ProcessStep, and the "why" grid already rely on — it's a separate,
   purely load-/hover-driven layer on top of it.
   ======================================== */

/* Ambient floating motion for every decorative glass orb sitewide */
.glass-orb {
    animation: floatOrb 9s ease-in-out infinite alternate;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(0.75rem, -1.25rem) scale(1.04);
    }
    100% {
        transform: translate(-0.75rem, 1rem) scale(0.97);
    }
}

/* Animated gradient accent text, e.g. a highlighted word in a heading */
.gradient-text {
    display: inline-block;
    background: linear-gradient(90deg, var(--soft-green-light), var(--coral-light), var(--soft-green-light));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Load-time staggered reveal for hero content (no scroll/JS dependency —
   runs automatically on paint, with each element's own animation-delay
   set inline where it's used) */
.hero-reveal {
    opacity: 0;
    transform: translateY(22px);
    animation: heroReveal 0.8s ease forwards;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Gentle vertical float for small standalone icons/emoji accents */
.float-icon {
    display: inline-block;
    animation: floatIcon 4s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Hero background photo layer — sits between the section's gradient and
   its content/orbs, with a slow continuous Ken Burns zoom */
.hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.32;
    animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.12);
    }
}

/* Image zoom-on-hover for service card media */
.service-card-media {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
}

.service-card-media img {
    transition: transform var(--transition-slow);
}

.service-card:hover .service-card-media img {
    transform: scale(1.08);
}

/* Image zoom-on-hover for "Why Fizzbiz" card media — same inset treatment
   as .service-card-media, triggered off .glass-card's existing :hover
   (the "why" wrapper has no bespoke hover class of its own) */
.why-card-media {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
}

.why-card-media img {
    transition: transform var(--transition-slow);
}

.glass-card:hover .why-card-media img {
    transform: scale(1.08);
}

/* Image zoom-on-hover for Industries card media — same pattern again */
.industry-card-media {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
}

.industry-card-media img {
    transition: transform var(--transition-slow);
}

.glass-card:hover .industry-card-media img {
    transform: scale(1.08);
}

/* Lets the arrow on any "Learn more"-style link nested in a .glass-card
   (not just .service-card) slide right on hover, so Industries' CTA link
   gets the same micro-interaction ServiceCard already has. */
.glass-card:hover .service-card-arrow {
    transform: translateX(4px);
}

/* Subtle animated gradient drift + hover zoom for project card media */
.project-card-media {
    background-size: 200% 200%;
    animation: gradientDrift 9s ease infinite;
    transition: transform var(--transition-slow);
}

@keyframes gradientDrift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.project-card:hover .project-card-media {
    transform: scale(1.03);
}

.project-card-media span {
    transition: transform var(--transition-base);
}

.project-card:hover .project-card-media span {
    transform: scale(1.15);
}

/* Infinite tech marquee strip */
.tech-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.tech-marquee-track {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: max-content;
    animation: marqueeScroll 32s linear infinite;
}

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

@keyframes marqueeScroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.tech-pill {
    white-space: nowrap;
    padding: 0.5rem 1.25rem;
    border-radius: 50rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Respect users who've asked for less motion: keep everything visible,
   just remove the animation itself rather than freezing mid-transform */
@media (prefers-reduced-motion: reduce) {
    .glass-orb,
    .gradient-text,
    .hero-reveal,
    .float-icon,
    .hero-bg-image,
    .project-card-media,
    .tech-marquee-track,
    .service-card-media img,
    .why-card-media img,
    .industry-card-media img,
    .value-card-media img,
    .quote-step-panel.is-active,
    .quote-step-line::after,
    .quote-estimate-progress-fill,
    .quote-toast {
        animation: none !important;
        transition: none !important;
    }

    .hero-reveal {
        opacity: 1;
        transform: none;
    }

    .gradient-text {
        background: none;
        -webkit-text-fill-color: currentColor;
        color: inherit;
    }
}

/* ========================================
   Site Navigation
   Rebuilt from scratch for components/Navigation.lua, which previously
   used Tailwind-style classes (max-w-7xl, md:flex, group-hover:*,
   text-white/90) that don't exist anywhere else in this stylesheet. Every
   rule below uses the same variables/utilities the rest of the site does.
   ======================================== */

/* Generic show/hide utility — the mobile menu button already toggles this
   exact class name via inline onclick JS; this just gives it real CSS. */
.hidden {
    display: none;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.site-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    gap: 1rem;
}

.site-nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.site-nav-logo-mark {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.site-nav-logo:hover .site-nav-logo-mark {
    transform: scale(1.08) rotate(-4deg);
}

.site-nav-logo-sub {
    display: none;
}

.site-nav-desktop {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Nav links */
.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-base), background-color var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.3rem;
    height: 2px;
    background: var(--soft-green);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* Services mega-menu — hover AND focus-within, so keyboard users tabbing
   into the panel's links keep it open instead of it vanishing */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-chevron {
    transition: transform var(--transition-base);
}

.nav-dropdown:hover .nav-dropdown-chevron,
.nav-dropdown:focus-within .nav-dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-panel {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
    z-index: 50;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-mega-panel {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 48px -12px var(--shadow-hover);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    width: 60rem;
    max-width: 92vw;
}

.nav-mega-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) 14rem;
    gap: 1.75rem;
}

.nav-mega-heading {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.nav-mega-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.nav-mega-link {
    display: block;
    padding: 0.25rem 0.5rem;
    margin: 0 -0.5rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-mega-link:hover {
    color: var(--teal);
    background-color: rgba(86, 183, 126, 0.1);
}

.nav-mega-promo {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.nav-mega-promo-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.nav-mega-promo:hover .nav-mega-promo-img {
    transform: scale(1.06);
}

.nav-mega-promo-body {
    padding: 0.85rem;
}

.nav-mega-promo-body h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--teal);
    margin: 0 0 0.35rem;
}

.nav-mega-promo-body p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.nav-mega-promo-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--soft-green-dark);
    text-decoration: none;
}

.nav-mega-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Mobile menu */
.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast);
}

.nav-mobile-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-mobile-toggle svg {
    display: block;
    transition: transform var(--transition-base);
}

.nav-mobile-toggle.is-open svg {
    transform: rotate(90deg);
}

.nav-mobile-menu {
    background: var(--teal-dark);
    border-radius: var(--radius-lg);
    margin: 0.5rem 0 1rem;
    padding: 1rem;
}

@keyframes navMobileMenuOpen {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Because the toggle sets display:none on close, the element is removed
   from rendering entirely — so this animation reliably replays from
   scratch every time it's opened again, with no JS beyond the existing
   classList.toggle. */
#mobile-menu:not(.hidden) {
    animation: navMobileMenuOpen 0.25s ease;
}

.nav-mobile-link {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-mobile-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-mobile-link.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-mobile-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Collapse to the mobile menu below tablet width, matching the same
   992px breakpoint the rest of the site's grids switch at */
@media (max-width: 992px) {
    .site-nav-desktop {
        display: none;
    }

    .nav-mobile-toggle {
        display: inline-flex;
    }
}

@media (min-width: 576px) {
    .site-nav-logo-sub {
        display: inline;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-nav-logo-mark,
    .nav-link::after,
    .nav-dropdown-chevron,
    .nav-dropdown-panel,
    .nav-mega-promo-img,
    .nav-mobile-toggle svg,
    #mobile-menu,
    .footer-social-link {
        animation: none !important;
        transition: none !important;
    }
}

/* ========================================
   About Page
   Three new layouts specific to pages/About.lua: an image+text "Our
   Story" split, a dedicated Core Values grid, and a 2-column Engineering
   Culture layout. Kept as their own classes rather than joining the
   shared .services-grid/.projects-grid/.why-grid/.industries-grid group
   — that group defaults to 3 columns, which doesn't fit a 4-item values
   grid or a 2-column story/culture split. Replaces this page's previous
   inline `style="display: grid; grid-template-columns: ..."` attributes,
   which had no mobile breakpoint at all.
   ======================================== */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.story-media {
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.story-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Image zoom-on-hover for Core Values card media — same inset treatment
   as .service-card-media/.why-card-media/.industry-card-media, triggered
   off .glass-card's existing :hover */
.value-card-media {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
}

.value-card-media img {
    transition: transform var(--transition-slow);
}

.glass-card:hover .value-card-media img {
    transform: scale(1.08);
}

.culture-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
}

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

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

    .culture-grid {
        grid-template-columns: 1fr;
        max-width: 32rem;
    }
}

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

/* ========================================
   Quote Page — Advanced Wizard
   Multi-step form styling for pages/Quote.lua. All step-switching,
   validation, live estimate math, and draft autosave logic lives in
   static/assets/js/quote-form.js — every class below is a pure visual
   state driven by that script toggling classes/attributes.
   ======================================== */

/* Screen-reader-only utility (used for the live step announcer) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* General secondary button variant — first needed here, added alongside
   .q-btn/.q-btn-primary rather than as a one-off quote-specific class so
   any future page can reuse it. */
.q-btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.q-btn-outline:hover {
    border-color: var(--teal);
    background-color: var(--bg-secondary);
}

/* Layout: form + sticky live-estimate sidebar */
.quote-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}

.quote-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem 2.5rem;
}

.quote-noscript-notice {
    background: rgba(242, 115, 91, 0.12);
    border: 1px solid rgba(242, 115, 91, 0.35);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* Draft resume banner */
.quote-draft-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(86, 183, 126, 0.1);
    border: 1px solid rgba(86, 183, 126, 0.3);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.quote-draft-banner-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.quote-draft-banner-actions .q-btn {
    padding: 0.5rem 1.125rem;
    font-size: 0.875rem;
}

/* Stepper */
.quote-stepper {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.quote-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.quote-step-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: inherit;
}

.quote-step-circle.is-active {
    background: var(--teal);
    color: #ffffff;
    border-color: var(--teal);
}

.quote-step-circle.is-complete {
    background: var(--soft-green);
    color: #ffffff;
    border-color: var(--soft-green);
}

.quote-step-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.quote-step-label.is-active {
    color: var(--teal);
    font-weight: 700;
}

.quote-step-line {
    flex: 1;
    min-width: 1.5rem;
    height: 2px;
    background: var(--border-color);
    margin: 0 0.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.quote-step-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--soft-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.quote-step-line.is-filled::after {
    transform: scaleX(1);
}

/* Step panels */
.quote-step-panel {
    display: none;
}

.quote-step-panel.is-active {
    display: block;
    animation: quoteStepIn 0.4s ease;
}

@keyframes quoteStepIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quote-step-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--soft-green-dark);
    margin-bottom: 0.375rem;
}

.quote-step-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 0.375rem;
    outline: none;
}

.quote-step-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Step 1: search + filter toolbar */
.quote-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.quote-toolbar .quote-input {
    flex: 1;
    min-width: 200px;
}

.quote-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quote-chip {
    padding: 0.4rem 0.875rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    white-space: nowrap;
}

.quote-chip:hover {
    border-color: var(--soft-green);
}

.quote-chip.is-active {
    background: var(--teal);
    border-color: var(--teal);
    color: #ffffff;
}

/* Service selection cards */
.quote-service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.quote-service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 1rem 1.125rem 1rem 2.5rem;
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quote-service-card:hover {
    border-color: var(--soft-green);
}

.quote-service-card-input {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}

.quote-service-card-check {
    position: absolute;
    top: 1rem;
    left: 0.875rem;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 4px;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    background: var(--bg-surface);
    transition: all var(--transition-fast);
}

.quote-service-card.is-selected,
.quote-service-card:has(.quote-service-card-input:checked) {
    border-color: var(--teal);
    background: rgba(86, 183, 126, 0.08);
}

.quote-service-card.is-selected .quote-service-card-check,
.quote-service-card-input:checked + .quote-service-card-check {
    background: var(--teal);
    border-color: var(--teal);
    color: #ffffff;
}

.quote-service-card-icon {
    font-size: 1.25rem;
}

.quote-service-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.quote-service-card-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.quote-service-card.is-hidden-by-filter {
    display: none;
}

.quote-empty-state {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    padding: 1.5rem 0;
}

/* Fields (textarea/input) */
.quote-field {
    margin-bottom: 1.5rem;
}

.quote-field:last-child {
    margin-bottom: 0;
}

.quote-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Groups Industry / Company Stage / Country together and explains why
   they're being asked — these three drive the weighted pricing
   adjustment, so calling that out here keeps it transparent rather than
   looking like an unexplained regional price change later. */
.quote-business-profile {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg, 1rem);
    padding: 1.25rem 1.25rem 0.25rem;
    margin-bottom: 1.5rem;
}

.quote-business-profile-heading {
    margin-bottom: 0.25rem;
}

.quote-business-profile-note {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.quote-business-profile .quote-field-grid {
    grid-template-columns: repeat(3, 1fr);
}

.quote-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.quote-input,
.quote-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    font-size: 0.9375rem;
    font-family: inherit;
    background: var(--bg-surface);
    color: var(--text-primary);
}

.quote-input:focus,
.quote-textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(86, 183, 126, 0.15);
}

.quote-textarea {
    resize: vertical;
    min-height: 110px;
}

.quote-field.has-error .quote-input,
.quote-field.has-error .quote-textarea {
    border-color: var(--coral);
}

