:root {
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #2dd4bf 100%);
    --primary-color: #6366f1;
    --secondary-color: #2dd4bf;
    --dark-bg: #1e293b;
    /* Lighter dark blue (Slate 800) */
    --card-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --font-main: 'Outfit', sans-serif;
    --card-glass: rgba(30, 41, 59, 0.7);
    /* Slightly lighter glass */
    /* Darker glass for better text contrast */
    --light-glass: rgba(255, 255, 255, 0.9);
    /* Light glass for the form specifically */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

html {
    overflow-y: scroll;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
}

.app-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

/* Backgrounds */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('assets/hero.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.1) 60%, rgba(15, 23, 42, 0.5) 100%);
    z-index: -1;
}

/* Header */
/* Header */
.top-bar {
    background: rgba(15, 23, 42, 1);
    /* Solid formatting for better readability */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    /* Larger font */
    font-weight: 600;
    /* Bolder */
    color: #ffffff;
    /* Brighter white */
    position: relative;
    z-index: 101;
    letter-spacing: 0.5px;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4rem;
    /* Reduced padding slightly to accommodate top bar */
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(5px);
    background: rgba(15, 23, 42, 0.6);
    /* Increased transparency for layering */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    color: white;
}

    .navbar-toggler:focus {
        box-shadow: none;
    }

/* Custom Hamburger Icon */
.navbar-toggler-icon-custom {
    display: inline-block;
    width: 24px;
    height: 2px;
    background-color: white;
    position: relative;
    vertical-align: middle;
    transition: all 0.3s;
}

    .navbar-toggler-icon-custom::before,
    .navbar-toggler-icon-custom::after {
        content: '';
        position: absolute;
        width: 24px;
        height: 2px;
        background-color: white;
        left: 0;
        transition: all 0.3s;
        transform-origin: center;
    }

    .navbar-toggler-icon-custom::before {
        top: -8px;
    }

    .navbar-toggler-icon-custom::after {
        top: 8px;
    }

/* Animate toggler when open (optional enhancement) */
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-custom {
    background-color: transparent;
}

    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-custom::before {
        transform: rotate(45deg);
        top: 0;
    }

    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-custom::after {
        transform: rotate(-45deg);
        top: 0;
    }

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
}

.logo-text {
    display: flex;
    flex-direction: column;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
}

    .logo-text .subtitle {
        font-size: 0.7rem;
        font-weight: 400;
        color: var(--text-muted);
        letter-spacing: 2px;
    }

/* Bootstrap Navbar Overrides */
.navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    transition: color 0.3s;
    opacity: 0.9;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active,
    .navbar-nav .show > .nav-link {
        color: #ffffff !important;
        opacity: 1;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    }

/* Glassmorphism Dropdown */
.glass-dropdown {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 1rem;
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
    font-weight: 400;
}

    .dropdown-item:hover,
    .dropdown-item:focus {
        background: rgba(255, 255, 255, 0.1);
        color: white;
        transform: translateX(5px);
    }

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
    }

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: white;
}

    .btn-outline:hover {
        background: rgba(255, 255, 255, 0.1);
    }

.btn-gradient {
    background: linear-gradient(90deg, #3730a3 0%, #2dd4bf 100%);
    color: white;
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.why-choose-section {
    background-color: #f8fafc;
}

    .why-choose-section h2,
    .why-choose-section h3 {
        color: #0f172a;
    }

    .why-choose-section p {
        color: #475569;
    }



/* Desktop-only full height */
.min-vh-lg-100 {
    min-height: auto;
}

@media (min-width: 992px) {
    .min-vh-lg-100 {
        min-height: 100vh;
    }
}

/* Mobile typography: smaller + tighter */
.hero-title {
    font-size: clamp(1.6rem, 5vw, 3rem);
    line-height: 1.1;
}

.hero-sub {
    font-size: 1rem;
    max-width: 34rem;
}

/* Hero Section */
.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8rem 4rem 4rem;
    min-height: 100vh;
}

.hero-content {
    max-width: 600px;
    margin-top:20px!important;
}

    .hero-content h1 {
        font-size: 4.5rem;
        line-height: 1.1;
        margin-bottom: 1.5rem;
        font-weight: 700;
    }

    .hero-content p {
        font-size: 1.2rem;
        color: var(--text-muted)!important;
        margin-bottom: 2.5rem;
        max-width: 450px;
        line-height: 1.6;
    }

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Estimator Card Form */
.estimator-card {
    background: var(--light-glass);
    padding: 2.5rem;
    border-radius: 20px;
    width: 450px;
    color: #1e293b;
    /* Dark text for light card */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

    .estimator-card h3 {
        margin-bottom: 1rem;
        font-size: 1.1rem;
        color: #334155;
    }

.input-group {
    margin-bottom: 1.5rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    font-size: 1rem;
    outline: none;
}

.toggle-group {
    display: flex;
    background: #e2e8f0;
    border-radius: 10px;
    padding: 0.3rem;
    margin-bottom: 1.5rem;
}

.toggle-btn {
    flex: 1;
    padding: 0.8rem;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

    .toggle-btn.active {
        background: #3b82f6;
        /* Blue active state */
        color: white;
        box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
    }

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.form-group {
    flex: 1;
}

    .form-group label {
        display: block;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        color: #64748b;
        font-weight: 600;
    }

.pagination-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}

    .dot.active {
        background: #3b82f6;
    }

/* Features Bar */
.features-bar {
    display: flex;
    justify-content: space-around;
    padding: 4rem;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
}


/* Features Bar */
.features-bar {
    display: flex;
    justify-content: space-around;
    padding: 3rem 4rem;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: -4rem;
    /* Overlap hero slightly or just pull up */
    z-index: 10;
    position: relative;
}

.feature-item {
    text-align: center;
    color: white;
}

.feature-icon-circle {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border: 2px solid #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.feature-item h4 {
    margin-bottom: 0.2rem;
    font-size: 1rem;
}

.feature-item p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* CSS Icons (Fallback) */
.css-icon {
    width: 24px;
    height: 24px;
    border: 2px solid #2dd4bf;
    display: block;
}

    .css-icon.shield {
        border-radius: 0 0 50% 50%;
        border-top: none;
        border-width: 3px;
        width: 20px;
        height: 24px;
    }

    .css-icon.quality {
        border-radius: 3px;
        border: 3px solid #2dd4bf;
        transform: rotate(45deg);
    }

    .css-icon.pricing {
        border: none;
        font-size: 1.5rem;
        color: #2dd4bf;
        font-weight: bold;
    }

    .css-icon.search {
        border-radius: 50%;
        border: 2px solid #2dd4bf;
        position: relative;
        width: 20px;
        height: 20px;
    }

        .css-icon.search::after {
            content: '';
            position: absolute;
            bottom: -4px;
            right: -4px;
            width: 8px;
            height: 2px;
            background: #2dd4bf;
            transform: rotate(45deg);
        }

/* Services */
.services-section {
    padding: 6rem 4rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 4rem;
    max-width: 600px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s;
    cursor: pointer;
    min-height: 120px;
}

    .service-card:hover {
        transform: translateY(-5px);
    }

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .service-icon-wrapper img {
        width: 100%;
        height: auto;
        object-fit: contain;
        filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    }

.service-info {
    flex: 1;
}

    .service-info h3 {
        color: #0f172a;
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 0.2rem;
    }

.service-desc {
    color: #64748b;
    font-size: 0.9rem;
}

.css-icon-lg {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border-radius: 12px;
}

    .css-icon-lg.gutter {
        background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
        mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M4 4h16v16H4z"/></svg>');
        /* Simplified */
        -webkit-mask: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M3 10v11h18V10H3zm2 2h14v7H5v-7z"/></svg>');
    }

/* Footer Section */
.footer-section {
    padding: 6rem 4rem 4rem;
    position: relative;
    overflow: hidden;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-images {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.footer-img-placeholder {
    background: #1e293b;
    border-radius: 12px;
    height: 250px;
    width: 250px;
    /* fixed fallback */
}

    .footer-img-placeholder.main {
        background: url('assets/hero.png') center/cover;
        /* Reuse hero for demo */
        width: 400px;
        filter: brightness(0.7);
    }

    .footer-img-placeholder.secondary {
        background: #334155;
        flex: 1;
        max-width: 300px;
    }

.reviews-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stars {
    color: #fbbf24;
    letter-spacing: 2px;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 4px;
    background: #334155;
    border-radius: 2px;
    margin-bottom: 1.5rem;
    width: 100px;
}

    .progress-bar .fill {
        height: 100%;
        width: 80%;
        background: #fbbf24;
        border-radius: 2px;
    }

.reviews-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: white;
}

.reviews-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.partners {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.7;
}

.partner-logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: #94a3b8;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Responsive Design */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .main-header {
        padding: 1.5rem 2rem;
    }

    .hero-section {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 8rem;
        gap: 3rem;
    }

    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

        .hero-content h1 {
            font-size: 3.5rem;
        }

    .estimator-card {
        width: 100%;
        max-width: 500px;
    }

    .features-bar {
        margin-top: 0;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .feature-item {
        flex: 1 1 40%;
        /* 2 items per row */
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .main-header {
        padding: 1rem;
        flex-wrap: wrap;
        background: rgba(15, 23, 42, 0.95);
        /* Solid background */
    }

    .mobile-menu-btn {
        display: flex;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        animation: slideDown 0.3s ease-out;
    }

        .main-nav.active {
            display: flex;
        }

        .main-nav a {
            padding: 1rem 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            text-align: center;
            width: 100%;
        }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Hero Adjustments */
    .hero-section {
        padding: 10rem 1.5rem 4rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .estimator-card {
        padding: 1.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 1rem;
    }

    .features-bar {
        padding: 2rem 1.5rem;
    }

    .feature-item {
        flex: 1 1 100%;
        /* 1 item per row */
    }

    .services-section {
        padding: 4rem 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .footer-images {
        display: none;
    }

    .reviews-card {
        width: 100%;
    }
}

/* Main Footer */
.main-footer {
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0 2rem;
    color: var(--text-muted);
    position: relative;
    z-index: 10;
}

.footer-logo-text {
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 300px;
}

.footer-heading {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 0.75rem;
    }

    .footer-links a {
        color: var(--text-muted);
        text-decoration: none;
        transition: all 0.3s;
    }

        .footer-links a:hover {
            color: var(--secondary-color);
            padding-left: 5px;
        }

.contact-info li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-icon {
    width: 20px;
    text-align: center;
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: bold;
}

    .social-btn:hover {
        background: var(--primary-gradient);
        transform: translateY(-3px);
    }

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.85rem;
}

/*Custom*/
.form-control,
.form-select {
    height: 42px;
    padding:5px!important;
}



.roofshape-card {
    border: 1px solid rgba(0,0,0,.15);
    background: #fff;
    border-radius: 12px;
    padding: 5px;
    text-align: center;
    transition: transform .05s ease, box-shadow .15s ease, border-color .15s ease;
}

    .roofshape-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(0,0,0,.08);
    }

    .roofshape-card.selected {
        border-color: #0d6efd;
        box-shadow: 0 0 0 3px rgba(13,110,253,.20);
    }

.roofshape-img {
    width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.roofshape-label {
    margin-top: 8px;
    font-weight: 600;
    color: #334155;
}


.validation-summary {
    color: #842029;
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    list-style-type:none;
    margin: 3px;
}

h1:focus,
h1:focus-visible {
    outline: none;
    box-shadow: none;
}

.service-card {
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .service-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(0,0,0,.08);
    }