:root {
    --navy: #0a192f;
    --navy-light: #112240;
    --orange: #f97316;
    --orange-hover: #ea580c;
    --white: #ffffff;
    --slate: #64748b;
    --slate-light: #f8fafc;
    --border: #e2e8f0;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--navy);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    scroll-margin-top: 96px;
}

/* Navbar */
nav {
    background-color: var(--navy);
    color: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--orange);
    margin-right: 5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--orange);
}

.btn-cta-nav {
    background-color: var(--orange);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
}

.btn-cta-nav:hover {
    background-color: var(--orange-hover);
}

/* Hero */
.hero {
    background:
        linear-gradient(90deg, rgba(10, 25, 47, 0.96) 0%, rgba(10, 25, 47, 0.86) 35%, rgba(10, 25, 47, 0.36) 68%, rgba(10, 25, 47, 0.1) 100%),
        url('/assets/hero-construction.webp') center / cover no-repeat;
    color: var(--white);
    padding: 120px 0 160px;
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--white);
    transform: skewY(-2deg);
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    max-width: 800px;
    margin-bottom: 24px;
}

.hero p {
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    border: none;
}

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

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--orange);
    color: var(--white);
}

/* Tools Section (Calculator & Quiz) */
.tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: -100px;
    position: relative;
    z-index: 10;
}

.card {
    background: var(--white);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--orange);
}

.card h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

input, select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    resize: vertical;
}

.result-box {
    margin-top: 20px;
    padding: 20px;
    background-color: var(--slate-light);
    border-radius: 4px;
    display: none;
}

.result-box.active {
    display: block;
}

.result-box h4 {
    margin-bottom: 10px;
    color: var(--orange);
}

/* Pricing/Services */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pricing-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--orange);
}

.pricing-card.popular {
    background-color: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.pricing-card.popular h3, .pricing-card.popular .price {
    color: var(--white);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--navy);
    margin: 20px 0;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--slate);
}

.features-list {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.features-list li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--orange);
    font-weight: bold;
}

/* Timeline */
.process-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 58px;
    align-items: start;
}

.process-image {
    position: sticky;
    top: 110px;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 22px 50px rgba(10, 25, 47, 0.16);
    background: var(--slate-light);
}

.process-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.timeline {
    max-width: 680px;
    margin: 0;
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: -40px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--orange);
    border: 4px solid var(--white);
}

/* FAQ and intake */
.faq-section {
    background: var(--slate-light);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px;
}

.faq-item h4 {
    margin-bottom: 12px;
}

.faq-item p {
    color: var(--text-light);
}

.intake-section {
    background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
}

.intake-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    align-items: start;
}

.eyebrow {
    color: var(--orange);
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.intake-grid h2 {
    font-size: 2.4rem;
    margin-bottom: 18px;
}

.intake-grid > div p:not(.eyebrow) {
    color: var(--text-light);
    font-size: 1.05rem;
}

.intake-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 18px 45px rgba(10, 25, 47, 0.12);
}

.intake-form label {
    margin-top: 14px;
}

.intake-form label:first-child {
    margin-top: 0;
}

.intake-form .btn {
    width: 100%;
    margin-top: 20px;
}

.website-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.consent-row {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
    color: var(--text-light);
    font-size: 0.86rem;
    line-height: 1.4;
}

.consent-row input {
    width: auto;
    margin-top: 2px;
}

.form-status {
    min-height: 24px;
    margin-top: 14px;
    font-weight: 700;
}

.form-status.success {
    color: #15803d;
}

.form-status.error {
    color: #b91c1c;
}

.legal-main {
    padding: 70px 0;
    background: var(--slate-light);
}

.legal-shell {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 48px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 12px 35px rgba(10, 25, 47, 0.08);
}

.legal-shell h1 {
    margin-bottom: 18px;
}

.legal-shell h2 {
    margin-top: 32px;
    margin-bottom: 12px;
    font-size: 1.35rem;
}

.legal-shell p,
.legal-shell li {
    color: var(--text-light);
    margin-bottom: 12px;
}

.legal-shell ul {
    padding-left: 22px;
    margin-bottom: 18px;
}

.legal-updated {
    color: var(--orange);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.78rem;
}

/* Footer */
footer {
    background-color: var(--navy);
    color: var(--slate);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 24px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--slate);
}

.footer-col a:hover {
    color: var(--white);
}

.disclaimer {
    border-top: 1px solid var(--navy-light);
    padding-top: 40px;
    font-size: 0.8rem;
    line-height: 1.8;
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .tools-grid {
        grid-template-columns: 1fr;
    }
    .faq-grid,
    .intake-grid {
        grid-template-columns: 1fr;
    }
    .process-layout {
        grid-template-columns: 1fr;
    }
    .process-image {
        position: static;
        max-width: 760px;
        margin: 0 auto;
    }
    .timeline {
        max-width: 760px;
        margin: 0 auto;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    nav .container {
        gap: 14px;
    }
    .logo {
        font-size: 1.15rem;
        min-width: 0;
    }
    .btn-cta-nav {
        flex: 0 0 auto;
        max-width: 100px;
        padding: 10px 12px;
        text-align: center;
        line-height: 1.2;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-btns {
        flex-direction: column;
    }
    .hero {
        min-height: 620px;
        background:
            linear-gradient(180deg, rgba(10, 25, 47, 0.96) 0%, rgba(10, 25, 47, 0.82) 58%, rgba(10, 25, 47, 0.6) 100%),
            url('/assets/hero-construction.webp') 58% center / cover no-repeat;
    }
    .legal-shell {
        padding: 28px;
    }
}
