/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Insider.Aero Color Scheme */
    --background: hsl(215, 25%, 8%);
    --foreground: hsl(0, 0%, 95%);
    --card: hsl(215, 25%, 10%);
    --card-foreground: hsl(0, 0%, 95%);
    --primary: rgb(158, 198, 91);
    --primary-foreground: hsl(215, 25%, 8%);
    --primary-glow: rgb(175, 215, 110);
    --secondary: hsl(215, 25%, 15%);
    --secondary-foreground: hsl(0, 0%, 95%);
    --muted: hsl(215, 25%, 12%);
    --muted-foreground: hsl(0, 0%, 65%);
    --accent: rgb(158, 198, 91);
    --accent-foreground: hsl(215, 25%, 8%);
    --border: hsl(215, 25%, 20%);
    --ring: hsl(88, 47%, 57%);
    
    /* Legacy color variables for compatibility */
    --color-black: hsl(215, 25%, 8%);
    --color-green: hsl(88, 47%, 57%);
    --color-dark-green: hsl(88, 47%, 50%);
    --color-light-green: hsl(88, 47%, 65%);
    --color-gold: rgb(158, 198, 91);
    --color-gold-bright: rgb(175, 215, 110);
    --color-white: hsl(0, 0%, 95%);
    --color-gray: hsl(215, 25%, 10%);
    --color-light-gray: hsl(215, 25%, 15%);
    
    /* Font sizes */
    --font-size-base: 16px;
    --font-size-large: 22px;
    --font-size-xl: 24px;
    --font-size-xxl: 52px;
    --font-size-hero: 72px;
    --line-height: 1.4;
    --spacing: 50px;
    --container-width: 1200px;
    
    /* Gradients */
    --gradient-hero: linear-gradient(180deg, hsl(215, 25%, 8% / 0.95), hsl(215, 25%, 5% / 0.9));
    --gradient-card: linear-gradient(145deg, hsl(215, 25%, 10%), hsl(215, 25%, 12%));
    --gradient-aviation: linear-gradient(135deg, rgb(158, 198, 91), rgb(175, 215, 110));
    
    /* Shadows */
    --shadow-elegant: 0 4px 20px -4px hsl(215, 25%, 15% / 0.1);
    --shadow-hero: 0 20px 60px -20px hsl(214, 84%, 21% / 0.3);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Animation */
    --animate-duration: 0.6s;
    --animate-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Scrollbar (site-styled) */
    --scrollbar-track: hsl(0, 0%, 95%);
    --scrollbar-thumb: hsl(215, 25%, 45%);
    --scrollbar-thumb-hover: hsl(215, 25%, 55%);
    --scrollbar-button: hsl(215, 25%, 22%);
    --scrollbar-width: 14px;
}

/* Professional scroll animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInFromRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Elements start hidden, animate when in view */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
}

.animate-on-scroll.animated {
    animation: fadeInUp var(--animate-duration) var(--animate-ease) forwards;
}

.animate-on-scroll.animate-fade {
    transform: none;
}

.animate-on-scroll.animate-fade.animated {
    animation: fadeIn var(--animate-duration) var(--animate-ease) forwards;
}

.animate-on-scroll.animate-scale {
    transform: scale(0.96);
}

.animate-on-scroll.animate-scale.animated {
    animation: scaleIn var(--animate-duration) var(--animate-ease) forwards;
}

/* Service blocks: content and image fade from opposite sides based on layout */
.services-list .service-block.animate-on-scroll {
    opacity: 1;
    transform: none;
}

.services-list .service-block.animate-on-scroll.animated {
    animation: none;
}

.services-list .service-block.animate-on-scroll .service-content,
.services-list .service-block.animate-on-scroll .service-image {
    opacity: 0;
}

/* Image right: content fades from left, image from right */
.services-list .service-block.animate-on-scroll .service-content {
    transform: translateX(-40px);
}

.services-list .service-block.animate-on-scroll .service-image {
    transform: translateX(40px);
}

.services-list .service-block.animate-on-scroll.animated .service-content {
    animation: fadeInFromLeft var(--animate-duration) var(--animate-ease) forwards;
}

.services-list .service-block.animate-on-scroll.animated .service-image {
    animation: fadeInFromRight var(--animate-duration) var(--animate-ease) 0.12s forwards;
}

/* Image left (reverse): content fades from right, image from left */
.services-list .service-block--reverse.animate-on-scroll .service-content {
    transform: translateX(40px);
}

.services-list .service-block--reverse.animate-on-scroll .service-image {
    transform: translateX(-40px);
}

.services-list .service-block--reverse.animate-on-scroll.animated .service-content {
    animation: fadeInFromRight var(--animate-duration) var(--animate-ease) forwards;
}

.services-list .service-block--reverse.animate-on-scroll.animated .service-image {
    animation: fadeInFromLeft var(--animate-duration) var(--animate-ease) 0.12s forwards;
}

/* Stagger delays for service blocks (per-block delay) */
.services-list .service-block.animate-on-scroll.animated:nth-child(1) .service-content { animation-delay: 0s; }
.services-list .service-block.animate-on-scroll.animated:nth-child(1) .service-image { animation-delay: 0.12s; }
.services-list .service-block.animate-on-scroll.animated:nth-child(2) .service-content { animation-delay: 0s; }
.services-list .service-block.animate-on-scroll.animated:nth-child(2) .service-image { animation-delay: 0.12s; }
.services-list .service-block.animate-on-scroll.animated:nth-child(3) .service-content { animation-delay: 0s; }
.services-list .service-block.animate-on-scroll.animated:nth-child(3) .service-image { animation-delay: 0.12s; }
.services-list .service-block.animate-on-scroll.animated:nth-child(4) .service-content { animation-delay: 0s; }
.services-list .service-block.animate-on-scroll.animated:nth-child(4) .service-image { animation-delay: 0.12s; }

/* List items animate when parent gets .animated */
.intelligence-features ul {
    overflow: hidden;
}

.intelligence-features.animate-on-scroll:not(.animated) li {
    opacity: 0;
    transform: translateY(20px);
}

.intelligence-features.animate-on-scroll.animated {
    opacity: 1;
    transform: none;
    animation: none;
}

.intelligence-features.animated li {
    opacity: 0;
    animation: fadeInUp 0.5s var(--animate-ease) forwards;
}

.intelligence-features.animated li:nth-child(1) { animation-delay: 0.1s; }
.intelligence-features.animated li:nth-child(2) { animation-delay: 0.15s; }
.intelligence-features.animated li:nth-child(3) { animation-delay: 0.2s; }
.intelligence-features.animated li:nth-child(4) { animation-delay: 0.25s; }

.work-features.animate-on-scroll:not(.animated) li {
    opacity: 0;
    transform: translateY(20px);
}

.work-features.animate-on-scroll.animated {
    opacity: 1;
    transform: none;
    animation: none;
}

.work-features.animated li {
    opacity: 0;
    animation: fadeInUp 0.5s var(--animate-ease) forwards;
}

.work-features.animated li:nth-child(1) { animation-delay: 0.1s; }
.work-features.animated li:nth-child(2) { animation-delay: 0.15s; }
.work-features.animated li:nth-child(3) { animation-delay: 0.2s; }
.work-features.animated li:nth-child(4) { animation-delay: 0.25s; }
.work-features.animated li:nth-child(5) { animation-delay: 0.3s; }

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--foreground);
    background-color: var(--background);
    overflow-x: hidden;
    width: 100%;
    min-width: 0;
    margin: 0;
}

/* Site-styled scrollbars (modal and any overflow area) */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

*::-webkit-scrollbar {
    width: var(--scrollbar-width);
    height: var(--scrollbar-width);
}

*::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 0;
}

*::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 999px;
    border: 3px solid var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

*::-webkit-scrollbar-button {
    height: var(--scrollbar-width);
    width: var(--scrollbar-width);
    background: var(--scrollbar-button);
}

*::-webkit-scrollbar-button:vertical:decrement {
    background: var(--scrollbar-button) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M4 2L2 5h4z'/%3E%3C/svg%3E") center/8px no-repeat;
}

*::-webkit-scrollbar-button:vertical:increment {
    background: var(--scrollbar-button) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M4 6l2-3H2z'/%3E%3C/svg%3E") center/8px no-repeat;
}

*::-webkit-scrollbar-button:horizontal:decrement {
    background: var(--scrollbar-button) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M2 4l3-2v4z'/%3E%3C/svg%3E") center/8px no-repeat;
}

*::-webkit-scrollbar-button:horizontal:increment {
    background: var(--scrollbar-button) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M6 4L3 2v4z'/%3E%3C/svg%3E") center/8px no-repeat;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    min-width: 0;
    box-sizing: border-box;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background-color: hsl(215, 25%, 8% / 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    box-sizing: border-box;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: var(--font-size-xl);
    font-weight: bold;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.navbar a.logo:hover,
.navbar a.logo:focus {
    text-decoration: none;
}

.navbar a.logo::after {
    display: none !important;
}

.logo-text {
    color: var(--foreground);
}

.logo-accent {
    color: var(--primary);
}

.logo-img {
    display: block;
    height: 52px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-menu a {
    color: var(--foreground);
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition-smooth);
    position: relative;
    padding: 6px 0;
    display: inline-block;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-phone-cta {
    color: var(--primary) !important;
    font-weight: 600;
    white-space: nowrap;
}

.nav-phone-cta::after {
    display: none;
}

.nav-phone-cta:hover {
    color: var(--primary-glow) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--foreground);
    transition: var(--transition-smooth);
}

/* Hero Section - entrance animation */
.hero-title {
    animation: fadeInUp 0.75s var(--animate-ease) 0.15s both;
}

.hero-subtitle {
    animation: fadeInUp 0.7s var(--animate-ease) 0.25s both;
}

.hero-description {
    animation: fadeInUp 0.7s var(--animate-ease) 0.35s both;
}

.hero-description-secondary {
    animation: fadeInUp 0.7s var(--animate-ease) 0.45s both;
}

.hero-cta {
    animation: fadeInUp 0.7s var(--animate-ease) 0.55s both;
}

/* Sections: full width, no overflow */
section {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    box-sizing: border-box;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    width: 100%;
    background-image: linear-gradient(180deg, hsla(215, 25%, 8%, 0.82) 0%, hsla(215, 25%, 5%, 0.78) 100%),
        url("../images/hero-section.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(158, 198, 91, 0.04) 0%, transparent 65%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: var(--font-size-hero);
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgb(158, 198, 91 / 0.3);
}

.hero-subtitle {
    font-size: var(--font-size-xxl);
    color: var(--foreground);
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-description {
    font-size: var(--font-size-large);
    color: var(--foreground);
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.hero-description-secondary {
    font-size: var(--font-size-base);
    color: var(--muted-foreground);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: var(--font-size-base);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition-smooth);
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-aviation);
    color: var(--primary-foreground);
    border: 2px solid var(--primary);
    box-shadow: 0 4px 15px rgb(158, 198, 91 / 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-glow), var(--primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgb(158, 198, 91 / 0.4);
    border-color: var(--primary-glow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgb(158, 198, 91 / 0.3);
}

.btn-modern {
    border-radius: 12px;
    padding: 16px 36px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.btn-modern:hover {
    transform: translateY(-3px);
}

.btn-outline {
    background: var(--primary);
    color: var(--primary-foreground);
    border: 2px solid var(--primary);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgb(158, 198, 91 / 0.3);
    display: inline-block;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary-glow);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-outline:hover {
    color: var(--primary-foreground);
    border-color: var(--primary-glow);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgb(158, 198, 91 / 0.4);
}

.btn-outline:hover::before {
    width: 100%;
}

.btn-link {
    color: var(--primary);
    text-decoration: none;
    font-size: var(--font-size-base);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 4px;
    transition: var(--transition-smooth);
    font-weight: 600;
}

.btn-link:hover {
    color: var(--primary-glow);
    border-bottom-color: var(--primary-glow);
    padding-bottom: 6px;
    box-shadow: 0 6px 20px rgb(158, 198, 91 / 0.4);
}

/* Services Section */
.services {
    padding: var(--spacing) 0;
    background-color: var(--background);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-title {
    font-size: var(--font-size-xxl);
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: bold;
}

.section-header .section-description {
    font-size: var(--font-size-large);
    color: var(--muted-foreground);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.container--narrow {
    max-width: 880px;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.service-block {
    padding: 48px 0 56px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition-smooth);
    position: relative;
}

.service-block:last-child {
    border-bottom: none;
    padding-bottom: 32px;
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.service-block--reverse .service-row {
    direction: rtl;
}

.service-block--reverse .service-row > * {
    direction: ltr;
}

.service-content {
    min-width: 0;
    width: 100%;
}

.service-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-elegant);
    border: 1px solid var(--border);
}

.service-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.service-block:hover .service-image img {
    transform: scale(1.02);
}

.service-block .btn-outline {
    margin-top: 24px;
}

@media (max-width: 992px) {
    .service-row {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .service-block--reverse .service-row {
        direction: ltr;
    }

    .service-image {
        order: -1;
    }

    .service-block--reverse .service-image {
        order: -1;
    }

    .service-image img {
        height: 260px;
    }

    .intelligence-features li,
    .work-features li {
        min-width: 200px;
        flex: 0 1 200px;
    }

    .quote-tool .iframe-container {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        height: 550px;
    }

    .section-title {
        font-size: var(--font-size-xxl);
    }

    .section-subtitle {
        font-size: var(--font-size-xl);
    }
}

.service-title {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: bold;
    line-height: 1.2;
}

.service-subtitle {
    font-size: 22px;
    color: var(--foreground);
    margin-bottom: 16px;
    font-weight: 400;
    line-height: 1.3;
}

.service-description {
    font-size: 18px;
    color: var(--foreground);
    margin-bottom: 16px;
    line-height: 1.5;
}

.service-description strong {
    color: var(--primary);
    font-weight: 600;
}

.service-features {
    margin: 20px 0;
    flex-grow: 1;
    width: 100%;
}

.service-features h4 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 600;
    text-align: left;
}

.service-features ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    width: 100%;
}

.service-features li {
    font-size: 17px;
    color: var(--foreground);
    margin-bottom: 10px;
    padding-left: 22px;
    position: relative;
    line-height: 1.4;
    width: 100%;
}

.service-features li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
}

.service-quote {
    font-size: 19px;
    color: var(--primary);
    font-style: italic;
    margin-top: 20px;
    margin-bottom: 0;
    padding: 20px;
    border-left: 4px solid var(--primary);
    background: linear-gradient(90deg, rgb(158, 198, 91 / 0.08), transparent);
    border-radius: 8px;
    position: relative;
    font-weight: 500;
    line-height: 1.4;
}

.service-quote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 48px;
    color: var(--primary);
    opacity: 0.3;
    font-family: Georgia, serif;
}

.service-quote-callout::before {
    content: none;
}

.service-quote-callout {
    font-style: normal;
}

/* Market Intelligence Section */
.market-intelligence {
    padding: var(--spacing) 0;
    background: linear-gradient(180deg, var(--background), var(--card));
    text-align: center;
    position: relative;
}

.market-intelligence::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.section-title {
    font-size: var(--font-size-xxl);
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: bold;
}

.section-subtitle {
    font-size: var(--font-size-xl);
    color: var(--foreground);
    margin-bottom: 30px;
    font-weight: 300;
}

.section-description {
    font-size: var(--font-size-base);
    color: var(--foreground);
    margin-bottom: 16px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.intelligence-features ul,
.work-features ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 900px;
    margin: 30px auto;
}

.intelligence-features li,
.work-features li {
    font-size: var(--font-size-base);
    color: var(--foreground);
    padding: 16px 20px 16px 45px;
    position: relative;
    background: var(--card);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: var(--transition-smooth);
    line-height: 1.4;
    flex: 0 1 250px;
    min-width: 220px;
}

.intelligence-features li:hover,
.work-features li:hover {
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgb(158, 198, 91 / 0.1);
}

.intelligence-features li:before,
.work-features li:before {
    content: "✓";
    color: var(--primary);
    position: absolute;
    left: 16px;
    font-size: 18px;
    font-weight: bold;
    background: rgb(158, 198, 91 / 0.1);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* How We Work Section */
.how-we-work {
    padding: var(--spacing) 0;
    background: linear-gradient(180deg, var(--card), var(--background));
    text-align: center;
    position: relative;
}

.how-we-work::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.work-description {
    font-size: var(--font-size-large);
    color: var(--foreground);
    margin-top: 30px;
    font-style: italic;
    line-height: 1.5;
}

/* Quote Tool Section */
.quote-tool {
    padding: var(--spacing) 0;
    background: var(--gradient-card);
    text-align: center;
    position: relative;
}

.quote-tool::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.quote-tool .container {
    position: relative;
    z-index: 1;
}

.quote-tool .iframe-container {
    margin-top: 30px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px hsl(215, 25%, 5% / 0.4);
    border: 1px solid var(--border);
    height: 630px;
}

/* Contact Section */
.contact {
    padding: var(--spacing) 0;
    background: var(--background);
    text-align: center;
    position: relative;
}

.contact .section-title {
    margin-bottom: 8px;
}

.contact .section-description {
    margin-bottom: 10px;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.contact-phone-cta {
    display: inline-block;
    margin-top: 6px;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

.contact-phone-cta:hover {
    color: var(--primary-glow);
    text-decoration: underline;
}

.contact-phone-label {
    margin-top: 2px;
    font-size: var(--font-size-base);
    color: var(--muted-foreground);
}

.contact-options {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Footer */
.footer {
    padding: 40px 0;
    background-color: var(--card);
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer p {
    font-size: var(--font-size-base);
    color: var(--muted-foreground);
}

.footer a {
    color: var(--primary);
    text-decoration: none;
    margin-left: 8px;
}

.footer a:hover {
    text-decoration: underline;
}

/* Privacy Policy Page */
.privacy-page {
    padding: 120px 0 80px;
    background-color: var(--background);
    min-height: 100vh;
    text-align: justify;
}

.privacy-title {
    font-size: var(--font-size-xxl);
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: bold;
    text-align: left;
}

.privacy-updated {
    font-size: var(--font-size-base);
    color: var(--muted-foreground);
    margin-bottom: 40px;
    text-align: left;
}

.privacy-page h2 {
    font-size: var(--font-size-xl);
    color: var(--primary);
    margin-top: 36px;
    margin-bottom: 16px;
    font-weight: 600;
    text-align: left;
}

.privacy-page p {
    font-size: var(--font-size-base);
    color: var(--foreground);
    line-height: 1.5;
    margin-bottom: 20px;
    text-align: justify;
}

.privacy-page a {
    color: var(--primary);
    text-decoration: none;
}

.privacy-page a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media only screen and (max-width: 992px) {
    :root {
        --font-size-hero: 54px;
        --font-size-xxl: 40px;
        --font-size-xl: 22px;
        --font-size-large: 16px;
        --font-size-base: 15px;
        --spacing: 40px;
    }

    .hero {
        padding: 110px 0 70px;
        min-height: auto;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: var(--background);
        width: 100%;
        text-align: center;
        transition: var(--transition-smooth);
        padding: 40px 0;
        border-top: 1px solid var(--border);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        font-size: var(--font-size-base);
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .market-intelligence,
    .how-we-work,
    .quote-tool,
    .contact {
        padding: var(--spacing) 0;
    }

    .intelligence-features ul,
    .work-features ul {
        margin: 24px auto;
        gap: 12px;
    }

    .section-description {
        padding: 0 10px;
    }

    .service-block {
        padding: 36px 0 44px;
    }
    
    .service-title {
        font-size: 28px;
    }
    
    .service-subtitle {
        font-size: 20px;
    }
    
    .service-description {
        font-size: 16px;
    }
    
    .service-features h4 {
        font-size: 18px;
    }
    
    .service-features li {
        font-size: 15px;
    }
    
    .service-quote {
        font-size: 17px;
        padding: 24px;
    }
    
    .service-block:last-child {
        padding-bottom: 24px;
    }
    
    .section-header {
        margin-bottom: 30px;
    }

    .container {
        padding: 0 20px;
    }

    .quote-tool .section-title,
    .contact .section-title {
        font-size: var(--font-size-xxl);
    }

    .footer {
        padding: 32px 0;
    }

    .footer p {
        font-size: 14px;
    }
}

@media only screen and (max-width: 768px) {
    .hero {
        padding: 100px 0 60px;
    }

    .intelligence-features li,
    .work-features li {
        min-width: 100%;
        flex: 0 1 100%;
    }

    .logo {
        font-size: var(--font-size-large);
    }

    .logo-img {
        height: 48px;
        max-width: 240px;
    }
}

@media only screen and (max-width: 600px) {
    :root {
        --font-size-hero: 42px;
        --font-size-xxl: 32px;
        --font-size-xl: 20px;
        --font-size-large: 15px;
        --font-size-base: 14px;
        --spacing: 30px;
    }

    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    .container {
        width: 100%;
        padding: 0 16px;
        max-width: 100%;
    }

    .hero {
        padding: 90px 0 50px;
        min-height: auto;
    }

    .hero-title {
        margin-bottom: 14px;
    }

    .hero-subtitle {
        margin-bottom: 20px;
    }

    .hero-description,
    .hero-description-secondary {
        margin-bottom: 16px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .service-block {
        padding: 28px 0 36px;
    }

    .service-title {
        font-size: 24px;
    }

    .service-subtitle {
        font-size: 18px;
    }

    .service-description {
        font-size: 15px;
    }

    .service-features h4 {
        font-size: 17px;
    }

    .service-features li {
        font-size: 14px;
        padding-left: 20px;
    }

    .service-features li:before {
        width: 6px;
        height: 6px;
        top: 0.4em;
    }

    .service-quote {
        font-size: 16px;
        padding: 20px;
    }

    .service-block:last-child {
        padding-bottom: 20px;
    }

    .section-header {
        margin-bottom: 25px;
    }

    .section-title {
        font-size: var(--font-size-xxl);
        margin-bottom: 12px;
    }

    .section-subtitle {
        font-size: var(--font-size-xl);
        margin-bottom: 20px;
    }

    .section-description {
        font-size: var(--font-size-base);
        margin-bottom: 14px;
    }

    .market-intelligence,
    .how-we-work,
    .quote-tool,
    .contact {
        padding: var(--spacing) 0;
    }

    .intelligence-features ul,
    .work-features ul {
        margin: 20px auto;
        gap: 10px;
    }

    .intelligence-features li,
    .work-features li {
        min-width: 100%;
        flex: 0 1 100%;
        font-size: var(--font-size-base);
    }

    .quote-tool .iframe-container {
        height: 650px;
        border-radius: 12px;
    }

    .contact-phone-cta {
        font-size: 22px;
    }

    .contact-options {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        margin-top: 18px;
    }

    .footer {
        padding: 24px 16px;
    }

    .footer p {
        font-size: 13px;
    }

    .privacy-page {
        padding: 100px 0 60px;
    }

    .privacy-page .container {
        padding: 0 16px;
    }

    .logo {
        font-size: var(--font-size-base);
    }

    .logo-img {
        height: 44px;
        max-width: 200px;
    }
}

/* ========== CTA Modal ========== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: hsl(215, 25%, 5% / 0.85);
    backdrop-filter: blur(6px);
    cursor: pointer;
}

.modal-box {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    padding: 40px 36px 36px;
    color: var(--foreground);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
    color: var(--muted-foreground);
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.modal-close:hover {
    color: var(--foreground);
    background: var(--muted);
}

.modal-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: -24px;
    margin-bottom: 8px;
    min-height: 40px;
}

.modal-close-spacer {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.modal-back {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 15px;
    cursor: pointer;
    padding: 0;
    margin: 0;
    font-weight: 600;
    transition: color 0.2s;
}

.modal-back:hover {
    color: var(--primary-glow);
}

.modal-step {
    display: block;
}

.modal-step[hidden] {
    display: none !important;
}

.modal-step-title {
    font-size: var(--font-size-xl);
    color: var(--foreground);
    margin-bottom: 8px;
    font-weight: 700;
}

.modal-step-desc {
    color: var(--muted-foreground);
    margin-bottom: 24px;
    font-size: var(--font-size-base);
}

/* Advisor 3 choices */
.advisor-choices {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.advisor-choice-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 20px 22px;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--foreground);
    text-decoration: none;
    text-align: left;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.advisor-choice-card:hover {
    border-color: var(--primary);
    background: hsl(215, 25%, 18%);
    transform: translateY(-2px);
}

.advisor-choice-card--form {
    cursor: pointer;
    font: inherit;
    width: 100%;
}

.advisor-choice-label {
    font-weight: 600;
    color: var(--foreground);
}

.advisor-choice-value {
    font-size: 14px;
    color: var(--muted-foreground);
}

.advisor-choice-card--value-hidden .advisor-choice-value {
    display: none;
}

/* Modal forms */
.modal-form {
    margin-top: 8px;
}

.form-row {
    margin-bottom: 20px;
}

.form-row-group {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.form-row-group .form-row--half {
    flex: 1 1 0;
    min-width: 0;
    margin-bottom: 0;
}

.form-row-group .form-row label {
    min-height: 1.4em;
    white-space: nowrap;
}

.form-row--half {
    display: inline-block;
    width: calc(50% - 10px);
    vertical-align: top;
}

.form-row--half:first-of-type {
    margin-right: 16px;
}

.form-row label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 8px;
}

.form-row .required {
    color: var(--primary);
}

.form-row .optional {
    font-weight: 400;
    color: var(--muted-foreground);
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    font-family: inherit;
    color: var(--foreground);
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.2s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px hsl(88, 47%, 57% / 0.2);
}

.form-row textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row--checkbox {
    margin-bottom: 16px;
}

.form-row--checkbox .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 400;
    cursor: pointer;
    font-size: 14px;
    color: var(--muted-foreground);
}

.form-row--checkbox .checkbox-label input {
    width: auto;
    margin-top: 4px;
    flex-shrink: 0;
}

.form-row--checkbox .checkbox-label a {
    color: var(--primary);
    text-decoration: underline;
}

.form-privacy {
    font-size: 13px;
    color: var(--muted-foreground);
    margin-bottom: 20px;
}

.form-actions {
    margin-top: 24px;
}

.form-actions .btn {
    min-width: 140px;
}

.form-message {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 15px;
}

.form-message.success {
    background: hsl(88, 47%, 57% / 0.15);
    border: 1px solid var(--primary);
    color: var(--foreground);
}

.form-message.error {
    background: hsl(0, 60%, 50% / 0.15);
    border: 1px solid hsl(0, 60%, 50%);
    color: var(--foreground);
}

/* Form result: hide form and show only message (site-styled) */
.form-result-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 32px;
    min-height: 200px;
    font-size: var(--font-size-large);
    line-height: 1.5;
    color: var(--foreground);
    border-radius: 12px;
}

.form-result-message[hidden] {
    display: none !important;
}

.form-result-message--success {
    background: var(--secondary);
    border: 1px solid var(--primary);
    color: var(--foreground);
}

.form-result-message--success::before {
    content: '';
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    background: var(--primary);
    border-radius: 50%;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/24px no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/24px no-repeat;
}

.form-result-message--error {
    background: var(--secondary);
    border: 1px solid hsl(0, 50%, 45%);
    color: var(--foreground);
}

.form-result-message--error::before {
    content: '';
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    background: hsl(0, 55%, 55%);
    border-radius: 50%;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M15 9l-6 6M9 9l6 6'/%3E%3C/svg%3E") center/24px no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M15 9l-6 6M9 9l6 6'/%3E%3C/svg%3E") center/24px no-repeat;
}

@media (max-width: 600px) {
    .modal-box {
        padding: 32px 20px 24px;
    }
    .form-row--half {
        width: 100%;
        margin-right: 0;
    }

    .form-row-group {
        flex-direction: column;
        gap: 0;
    }

    .form-row-group .form-row--half {
        width: 100%;
        margin-bottom: 20px;
    }

    .form-row-group .form-row--half:last-child {
        margin-bottom: 0;
    }
}
