
:root {
    --bg-main: #000000;
    --bg-card: rgba(18, 18, 18, 0.7);
    --bg-card-hover: rgba(28, 28, 28, 0.9);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(220, 20, 60, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --accent-primary: #dc143c;
    --accent-secondary: #900c27;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    --accent-shadow: rgba(220, 20, 60, 0.35);
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

html, body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: clip;
    position: relative;
    width: 100%;
}

/* Background Glowing Accents */
body::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.06) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Navbar (Desktop) */
.navbar {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 100%;
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 70px;
    transition: all 0.3s ease;
}

.navbar span {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.navbar-nav {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Mobile Bottom Navigation Bar (Hidden by default) */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(60px + env(safe-area-inset-bottom, 0px));
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    justify-content: space-around;
    align-items: center;
    z-index: 100;
    padding: 0 0.5rem env(safe-area-inset-bottom, 0px);
}

.mobile-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.03);
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 120px 1.5rem 4rem;
}

/* Typography & Headers */
h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 14px var(--accent-shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.55);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

/* Standard HTML buttons */
button {
    padding: 0.75rem 1.5rem;
    background: var(--accent-gradient);
    color: white;
    border-radius: 8px;
    font-weight: 700;
    outline: none;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 14px var(--accent-shadow);
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.55);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 1rem 5rem;
    max-width: 850px;
    margin: 0 auto;
}

.hero p.lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Grid layout for Services */
.services-section {
    padding: 3rem 0;
    content-visibility: auto;
    contain-intrinsic-size: auto 400px;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(220, 20, 60, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 48px;
    height: 48px;
    background: rgba(220, 20, 60, 0.1);
    color: var(--accent-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(220, 20, 60, 0.2);
}

.service-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* About Us Layout */
.about-lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 16px;
    margin-top: 2rem;
}

.info-card h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.info-card .section-subheading {
    margin-top: 2rem;
}

.about-text {
    color: var(--text-secondary);
}

.about-text:not(:last-child) {
    margin-bottom: 1.5rem;
}

/* Contact Page Layout */
.contact-container {
    text-align: center;
    max-width: 600px;
}

.contact-lead {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    border-radius: 16px;
    display: inline-block;
    width: 100%;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-btn {
    font-size: 1.1rem;
    padding: 1rem 2rem;
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Scale down background glowing accents on mobile to prevent overflow */
    body::before {
        width: 300px;
        height: 300px;
        left: 10%;
    }
    body::after {
        width: 250px;
        height: 250px;
        right: 5%;
    }

    /* Hide top navbar */
    .navbar {
        display: none !important;
    }

    /* Show bottom mobile nav */
    .mobile-nav {
        display: flex;
    }

    /* Base Container (added bottom padding for footer nav bar clearance) */
    .container {
        padding: 3rem 1.25rem calc(80px + env(safe-area-inset-bottom, 0px));
    }

    /* Typography */
    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    /* Hero section */
    .hero {
        padding: 2rem 0.5rem;
    }

    .hero p.lead {
        font-size: 1.1rem;
        margin-bottom: 1.75rem;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
    }

    /* Info card mobile spacing */
    .info-card {
        padding: 1.75rem 1.25rem;
    }

    .info-card h2 {
        font-size: 1.45rem;
    }

    /* Contact Card mobile spacing */
    .contact-card {
        padding: 2.5rem 1.25rem;
    }

    .contact-btn {
        font-size: 0.95rem;
        padding: 0.75rem 1.25rem;
        white-space: normal;
        word-break: break-all;
        width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.85rem;
    }

    h2 {
        font-size: 1.45rem;
    }
}

/* ==========================================================================
   Estimator Page Styles
   ========================================================================== */

/* Active link style in navbars */
.nav-link.active {
    color: var(--text-primary);
    background-color: rgba(220, 20, 60, 0.12);
    border: 1px solid rgba(220, 20, 60, 0.25);
}

.mobile-nav-link.active {
    color: var(--accent-primary);
    background-color: rgba(220, 20, 60, 0.05);
}

/* Container & Header layout */
.coming-soon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 180px); /* Fill the vertical space between header & mobile nav */
    padding: 2rem 1.5rem;
}

.coming-soon-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3.5rem 3rem;
    max-width: 680px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 40px rgba(220, 20, 60, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.coming-soon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(220, 20, 60, 0.04) 0%, transparent 100%);
    pointer-events: none;
}

.coming-soon-card:hover {
    border-color: rgba(220, 20, 60, 0.25);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 50px rgba(220, 20, 60, 0.15);
}

.coming-soon-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-primary);
    background: rgba(220, 20, 60, 0.12);
    border: 1px solid rgba(220, 20, 60, 0.25);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    margin-bottom: 1.75rem;
}

.coming-soon-card h1 {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.coming-soon-card p.lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.coming-soon-card p.subtext {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.8;
}

.coming-soon-ctas {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

@media (max-width: 768px) {
    .coming-soon-container {
        min-height: calc(100vh - 120px);
    }
    
    .coming-soon-card {
        padding: 2.5rem 1.5rem;
    }
    
    .coming-soon-card h1 {
        font-size: 2rem;
    }
    
    .coming-soon-card p.lead {
        font-size: 1.05rem;
    }
    
    .coming-soon-ctas {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
}
