/* --- Global Variables & Theme Ecosystem --- */
:root {
    --primary-deep-blue: #0f172a;
    --accent-coral: #ef4444;
    --accent-coral-hover: #dc2626;
    --text-dark: #334155;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --light-gray: #f1f5f9;
    --border-gray: #cbd5e1;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

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

.section-padding {
    padding: 80px 0;
}

/* --- Navigation Typography and Layout Header --- */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--light-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 12px;
}

.logo-image {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-deep-blue);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.logo-text p {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent-coral);
    letter-spacing: 2px;
    line-height: 1;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    gap: 8px;
    background: var(--light-gray);
    padding: 4px;
    border-radius: 30px;
}

.nav-link {
    background: transparent;
    border: none;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--primary-deep-blue);
}

.nav-link.active {
    background: var(--white);
    color: var(--primary-deep-blue);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-link {
    color: var(--primary-deep-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition-smooth);
}

.phone-link:hover {
    color: var(--accent-coral);
}

/* --- Buttons Framework --- */
.btn {
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--accent-coral-hover);
    transform: translateY(-1px);
}

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

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-deep-blue);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

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

/* --- Page View Toggles Architecture --- */
.page-section {
    display: none;
}

.page-section.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Home Layout Dashboard --- */
.hero-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    position: relative;
    padding: 120px 0 100px 0;
    color: var(--white);
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    padding: 0 24px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-title .highlight {
    color: var(--accent-coral);
}

.hero-subtitle {
    font-size: 18px;
    color: #94a3b8;
    margin-bottom: 40px;
    max-width: 650px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-stats-badge {
    position: absolute;
    bottom: -20px;
    right: 10%;
    background: var(--white);
    color: var(--primary-deep-blue);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    z-index: 3;
    width: 200px;
    text-align: center;
}

.hero-stats-badge h3 { font-size: 32px; font-weight: 800; color: var(--accent-coral); }
.hero-stats-badge p { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.est-text { font-size: 10px; font-weight: 800; background: var(--light-gray); padding: 2px 8px; border-radius: 10px; }

/* --- Services Portfolio Elements --- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    font-size: 12px;
    font-weight: 800;
    color: var(--accent-coral);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-deep-blue);
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(15,23,42,0.05);
}

.dark-card {
    background: var(--primary-deep-blue);
    color: var(--white);
    border: none;
}

.card-icon-header {
    font-size: 36px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.dark-card p { color: #94a3b8; }

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
    margin-top: auto;
}

.dark-card .card-footer { border-top-color: #334155; }

.card-footer strong { font-size: 16px; display: block; }
.card-footer small { color: var(--text-muted); font-size: 11px; }

.card-action {
    background: transparent;
    border: none;
    color: var(--accent-coral);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

/* --- Technical Advantage banner Layout --- */
.dark-banner-section {
    background: #0f172a;
    color: var(--white);
}

.split-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.left-col h2 { font-size: 36px; font-weight: 800; margin-top: 12px; margin-bottom: 20px; line-height: 1.2; }
.left-col p { color: #94a3b8; margin-bottom: 30px; }

.features-list { list-style: none; }
.features-list li { margin-bottom: 16px; font-size: 15px; color: #cbd5e1; }
.text-coral { color: var(--accent-coral) !important; }

.grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: center;
}

.stat-box h4 { font-size: 32px; font-weight: 800; color: var(--white); margin-bottom: 6px; }
.stat-box p { font-size: 13px; color: #94a3b8; font-weight: 500; }

/* --- About View Elements & Timelines --- */
.card-premium {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
}

.promise-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 16px;
}

.timeline-title { font-size: 18px; font-weight: 800; margin-bottom: 24px; }
.milestones-timeline {
    border-left: 2px solid var(--border-gray);
    padding-left: 24px;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -31px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-coral);
    border: 2px solid var(--bg-light);
}

.timeline-item .year { font-weight: 800; color: var(--primary-deep-blue); font-size: 16px; }
.timeline-item p { font-size: 14px; color: var(--text-muted); }

/* --- Transactional Estimate Quote Views Forms --- */
.quote-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.02);
}

.form-section { margin-bottom: 30px; }
.form-section h3 { font-size: 16px; font-weight: 800; color: var(--primary-deep-blue); margin-bottom: 16px; border-bottom: 1px solid #e2e8f0; padding-bottom: 8px; }

.form-group { margin-bottom: 16px; }
.form-group.row { display: flex; gap: 16px; }
.form-group .col { flex: 1; }

label { font-size: 12px; font-weight: 700; color: var(--text-dark); display: block; margin-bottom: 6px; }
input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-sm);
    outline: none;
    transition: var(--transition-smooth);
}

input:focus, select:focus, textarea:focus { border-color: var(--accent-coral); }

/* --- Contact Page Grid --- */
.main-contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

.direct-contact-item {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.icon-box {
    background: rgba(255,255,255,0.05);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-coral);
}

.direct-contact-item .label { font-size: 11px; color: #94a3b8; display: block; }
.direct-contact-item .value { font-size: 16px; font-weight: 700; color: var(--white); text-decoration: none; }
.direct-contact-item .subtext { font-size: 12px; color: var(--text-muted); }

.process-steps { list-style: none; margin-bottom: 20px; }
.process-steps li { padding: 8px 0; border-bottom: 1px solid #e2e8f0; font-size: 14px; }

/* --- Map UI Component Layout Styling --- */
.map-section-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.01);
}

.map-info-overlay {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.map-info-overlay h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-deep-blue);
    margin-bottom: 12px;
}

.map-address {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.5;
}

.map-divider {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 20px 0;
}

.map-hours p {
    font-size: 14px;
    margin-bottom: 8px;
}

.map-embed-container {
    line-height: 0;
}

.map-embed-container iframe {
    height: 100% !important;
    min-height: 450px;
}

.pt-0 {
    padding-top: 0 !important;
}

/* --- Footer Elements --- */
.site-footer {
    background: var(--primary-deep-blue);
    color: #64748b;
    padding: 40px 0;
    border-top: 1px solid #1e293b;
    margin-top: 60px;
}

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

.footer-left h3 { color: var(--white); font-size: 16px; margin-bottom: 4px; }
.footer-left p { font-size: 12px; }

.footer-links button {
    background: transparent;
    border: none;
    color: #94a3b8;
    margin-left: 16px;
    font-size: 13px;
    cursor: pointer;
}

.footer-links button:hover { color: var(--white); }

/* --- Responsive Layout Optimization Matrix --- */
@media (min-width: 1400px) {
    .header-container {
        max-width: 1400px;
    }
}

@media (max-width: 1024px) {
    .hero-title { font-size: 46px; }
    .hero-stats-badge { right: 4%; padding: 16px; width: 180px; }
    .split-layout { gap: 40px; }
    .services-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
}

@media (max-width: 992px) {
    .section-padding { padding: 60px 0; }
    .split-layout, .main-contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-section { padding: 100px 0 80px 0; }
    .hero-title { font-size: 42px; }
    .hero-stats-badge { display: none; }
    .map-section-wrapper { grid-template-columns: 1fr; }
    .map-embed-container iframe { min-height: 380px; width: 100%; }
    .right-col .grid-2x2 { margin-top: 12px; }
}

@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 16px; padding: 16px 24px; }
    .logo { justify-content: center; text-align: center; }
    .logo-image { height: 80px; }
    .nav-menu { width: 100%; justify-content: center; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
    .nav-link { padding: 8px 16px; font-size: 13px; }
    .header-cta { width: 100%; justify-content: center; gap: 24px; border-top: 1px solid var(--light-gray); padding-top: 12px; }
    .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 16px; }
    .hero-actions { flex-direction: column; width: 100%; gap: 12px; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .form-group.row { flex-direction: column; gap: 16px; }
    .footer-content { flex-direction: column; gap: 24px; text-align: center; }
    .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
    .footer-links button { margin-left: 0; padding: 6px 12px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .section-padding { padding: 48px 0; }
    .hero-title { font-size: 30px; }
    .badge { font-size: 11px; line-height: 1.4; text-align: center; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card { padding: 24px; }
    .card-premium, .quote-form-card { padding: 24px 16px; }
    .grid-2x2 { grid-template-columns: 1fr; gap: 12px; }
    .stat-box { padding: 20px; }
    .map-info-overlay { padding: 24px 16px; }
    .map-embed-container iframe { min-height: 300px; }
}