:root {
    --primary-color: #F97316;
    /* Orange from logo */
    --primary-hover: #EA580C;
    --secondary-color: #374151;
    /* Dark Grey */
    --text-color: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
    --error-color: #EF4444;
    --success-color: #10B981;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--secondary-color);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-size: 1.25rem;
    color: var(--secondary-color);
}

.logo-sub {
    font-size: 1.25rem;
    /* Make it same size as main for consistent look per logo */
    color: var(--primary-color);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.875rem;
}

.trust-badge i {
    color: var(--success-color);
}

/* Hero Section with Background */
.hero {
    background-color: #1F2937;
    /* Fallback */
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-bg {
    background-image: url('assets/hero-kitchen.png');
    background-size: cover;
    background-position: center;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Default desktop split */
    gap: 4rem;
    align-items: center;
}

.text-white,
.hero-text {
    color: var(--white);
}

.headline {
    font-size: 3rem;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.subheadline {
    font-size: 1.125rem;
    color: #E5E7EB;
    margin-bottom: 2rem;
}

.benefits-list {
    list-style: none;
    margin-top: 1.5rem;
}

.benefits-list li {
    color: #F3F4F6;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.benefits-list i {
    color: var(--primary-color);
}

/* Hero Form Card */
.hero-form-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 450px;
    margin-left: auto;
    /* Push to the right/center in grid cell */
}

.form-header {
    margin-bottom: 1.5rem;
}

.form-header h2 {
    color: var(--secondary-color);
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.form-header p {
    color: var(--text-light);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.select-wrapper,
.input-wrapper {
    position: relative;
    width: 100%;
}

.select-icon,
.input-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}

.select-icon {
    right: 1rem;
}

.input-icon {
    left: 1rem;
}

select,
input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 1rem;
    font-size: 1rem;
    color: var(--text-color);
    background-color: #F3F4F6;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    appearance: none;
    /* Remove default styling */
    transition: all 0.2s;
    font-family: inherit;
}

.input-wrapper input {
    padding-left: 2.5rem;
    /* Space for icon */
}

select:focus,
input:focus {
    outline: none;
    background-color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.error-message {
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: none;
}

.input-error {
    border-color: var(--error-color);
    background-color: #FEF2F2;
}

.form-disclaimer {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #9CA3AF;
    text-align: center;
}

/* Fix for sticky header overlap */
#hvacForm {
    scroll-margin-top: 120px;
}

.cta-button {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    font-size: 1.125rem;
    padding: 1rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    box-shadow: var(--shadow-md);
}

.cta-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.cta-button:active {
    transform: translateY(0);
}

/* Trust Bar */
.trust-bar {
    background: var(--white);
    padding: 2rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.trust-bar .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-align: center;
}

.trust-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Feature Split Sections */
.feature-split {
    padding: 5rem 0;
    background: var(--white);
}

.feature-split.bg-light {
    background: var(--bg-light);
}

.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-content.reverse {
    direction: rtl;
    /* Quick way to swap order visually */
}

.split-content.reverse>* {
    direction: ltr;
    /* Reset text direction */
}

.split-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.split-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.6;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.text-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

.split-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Verified Pro Section */
.verified-pro {
    padding: 3rem 0;
    background-color: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    border-bottom: 1px solid #E2E8F0;
    /* Added separation line */
    margin-bottom: 0;
    /* Ensuring no extra margin */
}

.pro-card-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-sub {
    margin-bottom: 2rem;
    color: var(--text-light);
}

.check-list {
    list-style: none;
    margin-top: 2rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.check-list i {
    color: var(--success-color);
}

/* Mock Card */
.mock-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 400px;
    margin: 0 auto;
    border: 1px solid #E5E7EB;
}

.stars {
    color: rgb(250, 204, 21);
    /* Updated star color */
    margin-bottom: 1rem;
    font-weight: 700;
}

.review-count {
    color: var(--text-light);
    font-weight: 400;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.mock-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.mock-avatar {
    width: 60px;
    height: 60px;
    background: #E5E7EB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #9CA3AF;
}

.verified-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #DCFCE7;
    color: #166534;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-weight: 700;
    margin-top: 0.25rem;
}

/* Updated Mock Button Styles */
.mock-btn {
    display: block;
    /* Forces the link to behave like a full-width box */
    width: 100%;
    /* Ensures it fills the card width */
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    margin-top: 1.5rem;
    cursor: pointer;
    /* Makes the mouse turn into a hand */
    text-decoration: none;
    /* Removes the underline */
    transition: background-color 0.2s ease, transform 0.1s ease;
    border: none;
}

.mock-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    /* Adds a subtle lift effect */
}

.mock-btn:active {
    transform: translateY(0);
    /* Buttons presses down when clicked */
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 0;
    background-color: var(--white);
    text-align: center;
}

.how-it-works h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
    text-align: left;
}

.step-card {
    position: relative;
}

.step-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: var(--white);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 2px solid var(--primary-color);
    /* Alternative style based on common patterns: just text number */
    border: none;
    background: transparent;
    font-size: 3rem;
    width: auto;
    height: auto;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
}

.step-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Updated Footer */
.footer {
    background-color: #F8FAFC;
    padding: 2rem 0 1rem 0;
    /* Reduced top padding further */
    font-size: 0.9rem;
    color: var(--text-light);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* Align links to bottom */
    margin-bottom: 20px;
    /* Reduced from 3rem */
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand .logo {
    margin-bottom: 5px;
    /* Reduced from 1rem (16px) */
}

/* Force specific logo size in footer or generally if applicable, 
   but specific request was "logo size in the footer 160x40" */
.footer-brand .logo svg {
    width: 160px;
    height: 40px;
}

.brand-desc {
    line-height: 1.6;
    color: #64748B;
}

.footer-links {
    display: flex;
    gap: 2rem;
    /* Bring footer links to the bottom or div footer-top - handled by align-items: flex-end on parent */
}

.footer-links a {
    color: #64748B;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid #E2E8F0;
    padding-top: 1rem;
    /* Decreased padding */
    font-size: 12px;
    /* Reduced font size */
    color: #94A3B8;
}

.footer-bottom {
    border-top: 1px solid #E2E8F0;
    padding-top: 2rem;
    font-size: 0.8rem;
    color: #94A3B8;
}

/* Mobile Responsive */
@media (max-width: 768px) {

    /* Optimizing Header Height */
    .header {
        padding: 0.5rem 0;
    }

    .logo-main,
    .logo-sub {
        font-size: 1rem;
    }

    .logo svg {
        width: 30px;
        height: 30px;
    }

    /* Above the fold optimization */
    .hero {
        padding: 1.5rem 0 3rem 0;
        /* Reduced top padding */
        min-height: auto;
        display: block;
        /* Stack */
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-text {
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .headline {
        font-size: 1.75rem;
        /* Smaller headline */
        margin-bottom: 0.5rem;
    }

    .subheadline {
        display: none;
        /* Hide subheadline on mobile to save space */
    }

    .benefits-list {
        display: none;
        /* Hide benefits list in Hero on mobile, move to trust bar */
    }

    /* Compact Form on Mobile */
    .hero-form-card {
        padding: 1.25rem;
        margin-top: 0.5rem;
    }

    .form-header h2 {
        font-size: 1.25rem;
    }

    .form-header {
        margin-bottom: 1rem;
    }

    .form-group {
        margin-bottom: 0.75rem;
    }

    input,
    select {
        padding: 0.75rem;
    }

    .cta-button {
        padding: 0.75rem;
        /* Slightly reduced padding */
    }

    /* Content Optimizations */
    .split-content,
    .split-content.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        /* Stack normally on mobile */
        gap: 2rem;
    }

    .pro-card-container {
        grid-template-columns: 1fr;
    }

    .trust-bar .container {
        gap: 1rem;
    }

    .trust-item {
        font-size: 0.75rem;
        width: 45%;
        /* 2 per row */
    }

    /* New Responsive Styles */
    .steps-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

    .footer-links {
        justify-content: center;
        width: 100%;
    }
}