:root {
    /* Core colors */
    --bg-dark: #1a1a1a;
    --bg-darker: #111111;
    --bg-light: #2a2a2a;
    --text: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.7);
    --accent: #FF7F00;
    --accent-dim: rgba(255, 127, 0, 0.1);
    --accent-bright: #FFA347;
    --surface: #202020;
    
    /* Functional colors */
    --success: #4CAF50;
    --warning: #FFC107;
    
    /* Shadows */
    --shadow-neon: 0 0 20px rgba(255, 127, 0, 0.2);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-sharp: 0 0 0 1px rgba(255, 255, 255, 0.1);

    --primary: #4c8c9d;
    --secondary: #85b9c8;
    --bg: #111111;
    --gray-light: #f5f5f5;
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-hover: linear-gradient(135deg, var(--secondary), var(--primary));
    --gradient-dark: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0,0,0,0.95));
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
}

.container {
    width: 90%;
    margin: 0 auto;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-top {
    background: var(--accent);
    padding: 8px 24px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
}

.logo {
    text-decoration: none;
    display: block;
    transform: scale(1.2);
    transform-origin: left center;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
    margin: -5px 0;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
    position: relative;
    z-index: 1001;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    min-height: unset;
    padding: 100px 24px 15px;
    display: flex;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/close-up-architectural-shingle-roof.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--accent-dim), transparent 70%);
    pointer-events: none;
}

.hero-content {
    width: 90%;
    margin: 0 auto;
    padding-top: 0;
}

.hero h1 {
    font-size: 22px;
    color: var(--text-dim);
    margin-bottom: 24px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

.hero h3 {
    font-size: 64px;
    margin-bottom: 24px;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h3 span {
    color: var(--accent);
    text-shadow: 0 2px 8px rgba(255, 127, 0, 0.3);
}

.benefit-text {
    color: var(--text);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 20px;
    color: var(--text-dim);
    margin-bottom: 40px;
    max-width: 600px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Benefits List */
.benefits-list {
    margin: 20px 0;
}

.benefits-list .benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    background: none;
    border: none;
    padding: 0;
    font-size: 16px;
}

.benefits-list .benefit-item:hover {
    transform: none;
    border: none;
    box-shadow: none;
}

.checkmark {
    color: var(--accent);
    font-size: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .hero {
        min-height: unset;
        padding: 40px 0 15px;
    }

    .hero-content {
        width: 90%;
        margin: 0 auto;
        padding: 0;
    }

    .hero h3 {
        font-size: 34px;
        line-height: 1.1;
        margin-bottom: 16px;
    }

    .hero h1 {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 16px;
    }

    .hero p {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .hero .btn-container, .hero-cta {
        margin: 20px 0 0 0;
        padding: 0;
    }

    .hero .btn-container .btn, .hero-cta .btn {
        width: 90%;
    }

    .benefit-text {
        font-size: 16px;
    }

    .benefits-list .benefit-item {
        font-size: 16px;
        margin-bottom: 8px;
    }
}

/* Services Section */
.services {
    padding: 120px 0;
    background: var(--bg-darker);
    position: relative;
}

.section-header {
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 48px;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-dim);
    font-size: 18px;
    line-height: 1.3;
}

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

.service-card {
    background: var(--surface);
    padding: 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-neon);
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: 32px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--accent);
}

.service-card p {
    color: var(--text-dim);
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .services {
        display: none;
    }
}

/* Reviews Section */
.reviews {
    padding: 60px 0;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.review-card {
    background: var(--surface);
    padding: 24px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stars {
    color: var(--warning);
    margin-bottom: 12px;
    font-size: 18px;
}

.review-text {
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 16px;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-info h4 {
    font-size: 16px;
    margin-bottom: 2px;
}

.reviewer-info p {
    color: var(--text-dim);
    font-size: 14px;
}

@media (max-width: 768px) {
    .reviews {
        padding: 40px 0;
    }

    .review-grid {
        gap: 16px;
    }

    .review-card {
        padding: 16px;
    }

    .stars {
        margin-bottom: 10px;
        font-size: 16px;
    }

    .review-text {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    .reviewer {
        gap: 10px;
    }

    .reviewer-info h4 {
        font-size: 14px;
        margin-bottom: 2px;
    }

    .reviewer-info p {
        font-size: 12px;
    }
}

/* Contact Form */
.contact {
    padding: 120px 0;
    background: var(--bg-darker);
}

.form-container {
    width: 90%;
    margin: 0 auto;
    background: var(--surface);
    padding: 48px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    margin-bottom: 4px;
    color: var(--text-dim);
}

.form-input {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text);
    font-size: 16px;
    transition: all 0.3s ease;
}

/* Calendar Input Styling */
input[type="date"] {
    position: relative;
    color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 8px;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FF7F00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* For Firefox */
input[type="date"]::-moz-calendar-picker-indicator {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FF7F00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    cursor: pointer;
}

/* Remove default calendar icon for other browsers */
input[type="date"]::-ms-clear,
input[type="date"]::-ms-reveal {
    display: none;
}

.form-input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-dim);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: var(--accent);
    color: var(--text);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    background: var(--accent-bright);
    transform: translateY(-2px);
    box-shadow: var(--shadow-neon);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
}

/* Footer */
footer {
    padding: 80px 0 40px;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.brand-col {
    padding-right: 40px;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
}

.footer-tagline {
    color: var(--text-dim);
    font-size: 16px;
    margin-bottom: 24px;
}

.footer-cta {
    margin-bottom: 32px;
}

.footer-cta .btn {
    padding: 12px 24px;
}

.footer-license {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-license p {
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-license .license-number {
    color: var(--accent);
    font-weight: 500;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 24px;
    color: var(--text);
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

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

.hours-list p {
    color: var(--text-dim);
    margin-bottom: 12px;
    font-size: 16px;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-dim);
    font-size: 14px;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 40px;
    }

    .brand-col {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 60px 0 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

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

    .footer-nav a:hover {
        transform: translateX(0) scale(1.05);
    }

    .footer-bottom {
        margin-top: 40px;
    }

    .section-header h2 {
        font-size: 36px;
        margin-bottom: 4px;
    }
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeUp {
    animation: fadeUp 0.6s ease forwards;
}

/* Residential Focus Section */
.residential-focus {
    padding: 40px 0 50px;
    background: var(--bg-darker);
    position: relative;
    overflow: hidden;
}

.residential-focus::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom left, var(--accent-dim), transparent 70%);
    pointer-events: none;
}

.residential-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.residential-text {
    padding-right: 20px;
}

.residential-text .section-header {
    margin-bottom: 40px;
}

.residential-text .section-header h2 {
    font-size: 48px;
    margin-bottom: 4px;
    background: linear-gradient(45deg, var(--text), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.residential-text .section-header p {
    font-size: 20px;
    color: var(--accent);
    line-height: 1.2;
}

.residential-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.residential-image::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    bottom: -20px;
    left: -20px;
    background: var(--accent);
    opacity: 0.1;
    border-radius: 8px;
    z-index: 0;
}

.residential-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    z-index: 1;
    box-shadow: var(--shadow-soft);
}

.focus-text {
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1.6;
}

.focus-text p {
    margin-bottom: 24px;
}

.focus-text ul {
    list-style: none;
    margin: 32px 0;
}

.focus-text li {
    margin: 16px 0;
    padding-left: 32px;
    position: relative;
    color: var(--text);
    font-size: 18px;
    font-weight: 500;
}

.focus-text li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

@media (max-width: 1024px) {
    .residential-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .residential-text {
        padding-right: 0;
    }

    .residential-image {
        height: 400px;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .residential-focus {
        padding: 20px 0 30px;
    }

    .residential-text .section-header h2 {
        font-size: 36px;
        margin-bottom: 2px;
    }

    .residential-text .section-header p {
        font-size: 18px;
    }

    .focus-text li {
        font-size: 16px;
    }

    .residential-image {
        margin-bottom: 10px;
    }
}

/* Calculator CTA Section */
.calculator-cta {
    padding: 80px 0;
    background: linear-gradient(45deg, var(--accent-dim), transparent);
    position: relative;
    overflow: hidden;
}

.calculator-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/pattern.svg');
    opacity: 0.05;
    pointer-events: none;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-text h2 {
    font-size: 48px;
    margin-bottom: 24px;
    background: linear-gradient(45deg, var(--text), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-text p {
    font-size: 20px;
    color: var(--text);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-benefits {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.cta-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 500;
    color: var(--text);
}

.btn-large {
    padding: 20px 40px;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.arrow {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.btn-large:hover .arrow {
    transform: translateX(8px);
}

@media (max-width: 768px) {
    .calculator-cta {
        padding: 60px 0;
    }

    .cta-text h2 {
        font-size: 36px;
    }

    .cta-text p {
        font-size: 18px;
    }

    .cta-benefits {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .cta-benefits li {
        font-size: 16px;
    }
}

/* Calculator Hero Section */
.calculator-hero {
    padding: 1rem 0;
    position: relative;
    color: white;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('images/close-up-architectural-shingle-roof.webp');
    background-size: cover;
    background-position: center;
    margin-top: 0; /* Remove the gap to make it touch the header */
}

.calculator-intro {
    text-align: center;
}

.calculator-intro h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--text), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.calculator-intro p {
    font-size: 1.25rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .calculator-hero {
        padding: 0.75rem 0;
    }

    .calculator-intro h1 {
        font-size: 2rem;
    }

    .calculator-intro p {
        font-size: 1rem;
    }
}

/* Calculator Section */
.calculator-section {
    padding: 60px 0;
    background: var(--bg-darker);
}

.calculator-content {
    width: 90%;
    margin: 0 auto;
}

.calculator-form, .schedule-form {
    background: var(--surface);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.calculator-form h2, .schedule-form h2 {
    font-size: 24px;
    margin-bottom: 2px;
}

.calculator-form p, .schedule-form p {
    color: var(--text-dim);
    margin-bottom: 12px;
}

.form-help {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 2px;
}

/* Estimate Result Styling */
.estimate-result {
    background: var(--surface);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.estimate-header h2 {
    font-size: 24px;
    margin-bottom: 24px;
}

.estimate-details {
    margin-bottom: 32px;
}

.estimate-amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    margin: 16px 0;
    text-shadow: var(--shadow-neon);
}

.estimate-note {
    font-size: 14px;
    color: var(--text-dim);
}

.estimate-breakdown {
    background: var(--bg-darker);
    padding: 24px;
    border-radius: 8px;
    margin: 32px 0;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-item span:first-child {
    color: var(--text-dim);
}

.breakdown-item span:last-child {
    color: var(--text);
    font-weight: 500;
}

#scheduleButton {
    margin-top: 16px;
    width: 100%;
    justify-content: center;
}

/* Schedule Form Specific Styles */
.schedule-form textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

@media (max-width: 768px) {
    .calculator-form, .schedule-form, .estimate-result {
        padding: 16px;
    }

    .estimate-amount {
        font-size: 36px;
    }

    .estimate-breakdown {
        padding: 16px;
    }

    .schedule-form {
        padding: 16px;
    }

    .schedule-form .form-grid {
        gap: 8px;
    }

    .schedule-form .form-group {
        gap: 2px;
        margin-bottom: 0;
    }

    .schedule-form .form-label {
        margin-bottom: 2px;
    }

    .schedule-form .form-input {
        margin-top: 0;
    }

    .schedule-form textarea.form-input {
        min-height: 80px;
    }

    .schedule-form .btn {
        margin-top: 8px;
    }
}

/* Calculator Features */
.calculator-features {
    padding: 80px 0;
    background: var(--bg-dark);
}

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

.feature-card {
    background: var(--surface);
    padding: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--accent);
}

.feature-card p {
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .calculator-form, .lead-form {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .calculator-hero {
        margin-top: 0;
        padding: 2rem 0;
    }

    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .form-group {
        margin-bottom: 0;
    }

    .form-group.full-width {
        grid-column: 1;
    }

    .calculator-content {
        width: 90%;
        max-width: 400px;
        margin: 0 auto;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .comparison-item {
        padding: 20px;
    }

    .comparison-features {
        list-style: none;
        margin: 15px 0;
    }

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

    .comparison-features li::before {
        content: "•";
        position: absolute;
        left: 0;
        color: var(--accent);
    }

    .btn-select {
        width: 100%;
        margin-top: 15px;
        background: var(--accent);
        color: white;
        padding: 12px;
        border-radius: 4px;
        border: none;
        cursor: pointer;
        font-weight: 500;
    }

    .btn-select:hover {
        background: var(--accent-bright);
    }
}

/* Two Column Form Layout */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100%;
    }

    .form-group {
        margin-bottom: 0;
    }

    .form-group.full-width {
        grid-column: auto;
    }

    .calculator-form {
        padding: 20px;
    }

    .calculator-content {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
}

#calculatorStep, #estimateStep, #scheduleStep {
    transition: opacity 0.3s ease;
}

/* Ensure initial state for estimate and schedule steps */
#estimateStep, #scheduleStep {
    opacity: 0;
}

/* When visible, ensure full opacity */
#estimateStep[style*="display: block"],
#scheduleStep[style*="display: block"] {
    opacity: 1;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 109px; /* Header height (73px) + header-top (36px) */
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 106px; /* Mobile header height (70px) + header-top (36px) */
    }
}

/* Articles Section */
.articles-section {
    padding: 30px 0;
    background: var(--bg-dark);
}

.articles-header {
    text-align: center;
    margin-bottom: 40px;
}

.articles-header h1 {
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 15px;
    font-weight: 800;
}

.articles-header p {
    color: var(--text-dim);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.article-card {
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.article-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    gap: 20px;
}

.article-content h2 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin: 0;
}

.article-content h2 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-content h2 a:hover {
    color: var(--accent);
}

.article-content .btn {
    align-self: center;
    margin-top: auto;
}

.article-meta {
    font-size: 0.875rem;
    color: var(--text-dim);
    margin-bottom: 15px;
}

.article-excerpt {
    color: var(--text-dim);
    margin-bottom: 20px;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .articles-section {
        padding: 20px 0;
    }

    .articles-header h1 {
        font-size: 2rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-image {
        height: 180px;
    }
}

/* Article Layout Styles */
.page-content {
    padding: 80px 0;
    background: var(--bg-dark);
}

.page-content .container {
    width: 95%;
    margin: 0 auto;
}

.article {
    width: 90%;
    margin: 0 auto;
    background: var(--surface);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    padding: 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.article-header:after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 30px auto 0;
    border-radius: 2px;
    box-shadow: var(--shadow-neon);
}

.article-header h1 {
    font-size: 2.75rem;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 20px;
    font-weight: 800;
}

.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dim);
}

.article-intro {
    font-size: 1.375rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 40px;
    padding: 30px;
    background: var(--bg-darker);
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
}

.article-section {
    margin: 60px 0;
    position: relative;
}

.article-section h2 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 30px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.article-section h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    box-shadow: var(--shadow-neon);
}

.article-section p {
    margin-bottom: 25px;
    color: var(--text-dim);
}

/* Info Boxes */
.info-box {
    background: var(--bg-darker);
    border-radius: 12px;
    padding: 35px;
    margin: 30px 0;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-box.warning {
    background: rgba(252, 129, 129, 0.1);
    border-left: 4px solid #fc8181;
}

.info-box.tips {
    background: rgba(104, 211, 145, 0.1);
    border-left: 4px solid #68d391;
}

/* Feature Lists */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    position: relative;
    padding: 20px 0;
    padding-left: 35px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    color: var(--text-dim);
}

.feature-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.feature-list li:first-child {
    padding-top: 0;
}

.feature-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    text-shadow: var(--shadow-neon);
}

.feature-list li strong {
    color: var(--text);
    font-weight: 600;
    margin-right: 8px;
}

/* Article Content Highlights */
.article-content strong {
    color: var(--accent);
    font-weight: 600;
    background: var(--accent-dim);
    padding: 2px 4px;
    border-radius: 3px;
}

/* Responsive Article Styles */
@media (max-width: 768px) {
    .article {
        padding: 30px;
        margin: 0 15px;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .article-intro {
        font-size: 1.125rem;
        padding: 20px;
    }

    .article-section h2 {
        font-size: 1.5rem;
    }

    .info-box {
        padding: 25px;
    }
}

/* Article Header with Image */
.article-header-with-image {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: center;
    text-align: left;
    margin-bottom: 50px;
}

.article-header-with-image:after {
    display: none;
}

.header-content h1 {
    margin: 0;
    font-size: 2.75rem;
    line-height: 1.2;
    color: var(--text);
    font-weight: 800;
}

.header-image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

@media (max-width: 768px) {
    .article-header-with-image {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .header-image {
        padding-bottom: 56.25%; /* 16:9 aspect ratio for mobile */
    }
}

/* Contact Page */
.contact-hero {
    padding: 80px 0 40px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('images/close-up-architectural-shingle-roof.webp');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.contact-intro h1 {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--text);
}

.contact-intro p {
    font-size: 20px;
    color: var(--text-dim);
}

.contact-section {
    padding: 40px 0;
    background: var(--bg-dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.form-card {
    background: var(--surface);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.form-card h2 {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--text);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 14px;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--text);
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-dim);
    outline: none;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M8 10.5l4-4H4l4 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.info-card {
    background: var(--surface);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
}

.info-section {
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-section:first-child {
    padding-top: 0;
}

.info-section:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.info-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text);
}

.info-section p {
    color: var(--text-dim);
    margin-bottom: 8px;
}

.credentials {
    color: var(--accent) !important;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 100px 0 50px;
    }

    .contact-intro h1 {
        font-size: 36px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-card,
    .info-card {
        padding: 24px;
    }

    .contact {
        padding: 40px 0;
    }

    .form-container {
        width: 95%;
        padding: 20px;
    }

    .form-grid {
        width: 95%;
        margin: 0 auto;
        gap: 12px;
    }

    .form-group {
        margin-bottom: 8px;
    }

    .form-group.full-width {
        margin-bottom: 8px;
    }

    .schedule-button {
        margin-top: 20px;
        padding-top: 10px;
    }

    .contact-intro {
        margin-bottom: 20px;
    }

    .contact-intro h2 {
        margin-bottom: 8px;
    }
}

/* Dropdown Menu Styles */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-light);
    min-width: 220px;
    box-shadow: var(--shadow-soft);
    border-radius: 4px;
    padding: 8px 0;
    z-index: 1002;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    display: block;
    margin: 0;
}

.dropdown-menu a {
    color: var(--text-dim);
    padding: 8px 16px;
    display: block;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: var(--bg-darker);
    color: var(--accent);
}

/* Service Page Styles */
.service-page-hero {
    min-height: auto;
    padding: 80px 0 40px;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('images/close-up-architectural-shingle-roof.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.service-page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, var(--accent-dim), transparent 70%);
    pointer-events: none;
}

.service-category {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-page-nav {
    background: var(--surface);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 0;
    margin-bottom: 20px;
}

.section-nav {
    display: flex;
    gap: 32px;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.section-nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.section-nav a:hover {
    color: var(--accent);
}

.service-page-content {
    padding: 40px 0;
    background: var(--bg-dark);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: start;
}

.content-section {
    margin-bottom: 80px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    font-size: 32px;
    margin-bottom: 32px;
    color: var(--text);
}

.section-intro {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-dim);
    margin-bottom: 40px;
}

.feature-image {
    border-radius: 12px;
    overflow: hidden;
    margin: 40px 0;
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
}

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

.benefit-card {
    background: var(--surface);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-dim);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.benefit-icon svg {
    color: var(--accent);
}

.benefit-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text);
}

.benefit-card p {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.6;
}

.process-timeline {
    position: relative;
    padding-left: 32px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-dim);
}

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

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-number {
    position: absolute;
    left: -32px;
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text);
    box-shadow: 0 0 0 6px var(--accent-dim);
}

.timeline-content {
    flex: 1;
    margin-left: 24px;
}

.timeline-number {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    flex-shrink: 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
    position: relative;
}

.materials-showcase {
    display: grid;
    gap: 24px;
}

.material-card {
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.material-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.material-info {
    padding: 24px;
}

.material-info h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--text);
}

.material-features {
    list-style: none;
    padding: 0;
}

.material-features li {
    color: var(--text-dim);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.material-features li:last-child {
    border-bottom: none;
}

.faq-list {
    display: grid;
    gap: 24px;
}

.faq-item {
    background: var(--surface);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text);
}

.faq-item p {
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1.6;
}

.sidebar {
    position: sticky;
    top: 180px;
}

.sidebar-card {
    background: var(--surface);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.quote-card {
    text-align: center;
}

.quote-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text);
}

.quote-card p {
    color: var(--text-dim);
    margin-bottom: 24px;
    font-size: 16px;
}

.quote-card .btn {
    width: 100%;
    justify-content: center;
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sidebar {
        position: static;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .service-page-hero {
        padding: 60px 0 30px;
    }

    .service-page-nav {
        top: 106px;
    }

    .section-nav {
        padding: 12px 0;
        gap: 24px;
    }

    .content-section h2 {
        font-size: 28px;
    }

    .section-intro {
        font-size: 16px;
    }

    .sidebar-card {
        padding: 24px;
    }
}

.hero .btn-container, .hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin: 40px 0 0 0;
    padding: 0;
}

.hero .btn-container .btn, .hero-cta .btn {
    width: 90%;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .hero .btn-container, .hero-cta {
        margin: 20px 0 0 0;
        padding: 0;
    }

    .hero .btn-container .btn, .hero-cta .btn {
        width: 90%;
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 200;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: left center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    width: 32px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    width: 32px;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 106px;
        left: 0;
        right: 0;
        background: var(--bg-darker);
        padding: 20px;
        gap: 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1001;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: 16px;
        padding: 8px 0;
        display: block;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 10px 0 10px 20px;
        display: none;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    .has-dropdown.active .dropdown-menu {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

    .dropdown-menu a {
        padding: 8px 0;
        font-size: 14px;
        color: var(--text-dim);
    }

    .dropdown-menu a:hover {
        color: var(--accent);
        background: transparent;
    }
}

/* Comparison Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #ffffff;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.modal-content.comparison-content {
    background: var(--bg-darker);
    width: 90%;
    max-width: 1400px;
    margin: 2% auto;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
    width: 100%;
}

.comparison-item {
    background: var(--surface);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.comparison-item h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: #ffffff;
}

.comparison-price {
    font-size: 28px;
    font-weight: 600;
    color: #FF7F00;
    margin-bottom: 16px;
}

.comparison-features {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    text-align: left;
}

.comparison-features li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: #cccccc;
    text-align: left;
    font-size: 16px;
    line-height: 1.4;
}

.comparison-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #FF7F00;
}

.btn-select {
    width: 100%;
    margin-top: 16px;
    background: #FF7F00;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
}

.btn-select:hover {
    background: var(--accent-bright);
}

/* Mobile Comparison Modal Styles */
@media (max-width: 768px) {
    .modal-content.comparison-content {
        margin: 15% auto;
        max-height: 95vh;
        overflow-y: auto;
        padding: 4px;
        width: 100%;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 4px;
        margin: 4px 0;
        width: 100%;
    }

    .comparison-item {
        padding: 10px;
        margin: 0;
    }

    .comparison-item h3 {
        font-size: 15px;
        margin-bottom: 0;
    }

    .comparison-price {
        font-size: 18px;
        margin: 2px 0;
    }

    .comparison-features {
        margin: 2px 0 6px 0;
    }

    .comparison-features li {
        margin-bottom: 1px;
        font-size: 13px;
        line-height: 1.1;
        padding-left: 12px;
    }

    .btn-select {
        margin-top: 4px;
        padding: 6px 12px;
        font-size: 14px;
    }

    .modal-content {
        padding: 4px;
        margin: 1% auto;
        width: 100%;
    }
}

.modal-content.comparison-content h2 {
    color: var(--text);
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
}

.modal-content p {
    color: #666666;
    font-size: 16px;
    line-height: 1.5;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #999;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: #333;
}

.estimate-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.btn-secondary {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 12px 24px;
    font-size: 16px;
    width: 100%;
}

.btn-secondary:hover {
    background-color: #e5e5e5;
}

.btn-large {
    width: 100%;
}

@media (min-width: 768px) {
    .estimate-actions {
        flex-direction: row;
    }
    
    .btn-secondary {
        width: auto;
    }
    
    .btn-large {
        width: auto;
    }
}

.price-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-small:hover {
    background-color: #e5e5e5;
}

.calculator-title {
    margin-bottom: 3.5rem;
    font-size: 2rem;
}

@media (max-width: 768px) {
    .calculator-title {
        margin-bottom: 1rem;
        font-size: 1.75rem;
    }

    .estimate-amount {
        font-size: 2.5rem;
        margin: 0.5rem 0;
    }

    .estimate-note {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
        opacity: 0.7;
    }

    .estimate-breakdown {
        margin: 1rem 0;
    }

    .breakdown-item {
        font-size: 0.9375rem;
        padding: 8px 0;
    }

    .breakdown-item span:last-child {
        text-align: right;
    }

    #materialSummary {
        text-align: right;
    }

    .breakdown-item.compare-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .breakdown-item.compare-row span:first-child {
        text-align: left;
    }

    .btn-text {
        white-space: nowrap;
        padding: 4px 8px;
        margin-left: 4px;
        font-size: 0.9375rem;
    }

    .estimate-header h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .estimate-details {
        margin-bottom: 1rem;
    }

    #roofCalculator {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    #roofCalculator .form-group {
        margin: 0;
        padding: 0;
    }

    #roofCalculator .form-input {
        margin-top: 4px;
        padding: 12px;
        height: 45px;
    }

    #roofCalculator .form-label {
        margin-bottom: 4px;
        display: block;
    }

    #roofCalculator .form-help {
        margin-top: 4px;
    }
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 2px solid #eee;
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-item.compare-row {
    margin-top: 0;
    padding-top: 12px;
}

.btn-text {
    background: transparent;
    border: none;
    color: #FF7F00;
    padding: 8px 16px;
    margin-left: 8px;
    font-size: 16px;
    cursor: pointer;
    text-align: right;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.btn-text:hover {
    background-color: #FF7F00;
    color: #ffffff;
}

.calculator-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 1rem;
}

.calculator-form .form-group {
    margin-bottom: 8px;
}

/* Desktop Styles */
.calculator-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 1rem;
}

/* Mobile Styles */
@media (max-width: 768px) {
    #roofCalculator {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    #roofCalculator .form-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    #roofCalculator .form-group {
        margin: 0;
        padding: 0;
    }

    #roofCalculator .form-input {
        margin-top: 2px;
        padding: 12px;
        height: 45px;
    }

    #roofCalculator .form-label {
        margin-bottom: 2px;
        display: block;
    }

    #roofCalculator .form-help {
        margin-top: 2px;
    }
}