:root {
    --bg-color: #ffffff;
    --text-main: #1e293b;
    --text-muted: #475569;
    --primary-color: #2d8668;
    --secondary-color: #007cba;
    --accent-color: #f39c12;
    --footer-bg: #0f172a;
    --footer-text: #f8fafc;
    --light-section: #f8f9fa;
    --border-color: #e2e8f0;
    --card-bg: #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-main);
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.gradient-text {
    color: var(--primary-color); /* Fallback if no gradient */
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

nav a:hover, nav a.nav-active {
    color: var(--primary-color);
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.cta-button.primary {
    background: var(--primary-color);
    color: #fff;
}

.cta-button.primary:hover {
    background: #236c53;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 134, 104, 0.3);
    color: #fff;
}

.cta-button.secondary {
    background: #fff;
    border: 2px solid var(--text-main);
    color: var(--text-main);
}

.cta-button.secondary:hover {
    background: var(--text-main);
    color: #fff;
}

.full-width {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 60px 5%;
    position: relative;
    background: linear-gradient(rgba(45, 134, 104, 0.8), rgba(0, 124, 186, 0.6)), url('assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
}

.hero-content {
    flex: 1;
    max-width: 800px;
    z-index: 2;
    text-align: center;
    margin: 0 auto;
}

.hero-content h1 {
    color: #fff;
}

.hero-content .gradient-text {
    color: var(--accent-color);
}

.hero-content p {
    color: #f1f5f9;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

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

.hero-stat-badge {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Sections */
.section {
    padding: 80px 5%;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

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

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.card, .glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card {
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 56px;
    left: 16%;
    right: 16%;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

@media (max-width: 900px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
    .process-grid::before {
        display: none;
    }
}

.process-step-card {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.step-circle {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 10px rgba(45, 134, 104, 0.3);
}

/* Split Layout */
.light-section {
    background: var(--light-section);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.split-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.split-content {
    flex: 1;
}

.split-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.split-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.highlight {
    padding-left: 1.5rem;
    border-left: 4px solid var(--primary-color);
    font-weight: 600;
    color: var(--text-main);
}

/* Features / Benefits */
.benefit-card {
    display: flex;
    gap: 1.5rem;
    background: #fff;
    padding: 1.8rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    align-items: flex-start;
    transition: transform 0.2s ease;
}

.benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.05);
}

.benefit-icon {
    font-size: 2.2rem;
    line-height: 1;
}

.benefit-text h4 {
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-size: 1.2rem;
}

.benefit-text p {
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--text-muted);
}

/* FAQ Accordion */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.faq-item summary {
    padding: 1.5rem 3.5rem 1.5rem 1.5rem; /* Increased right padding */
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-main);
    list-style: none;
    position: relative;
    outline: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item .faq-content {
    padding: 0 1.5rem 1.5rem;
}

.faq-item .faq-content p {
    margin-bottom: 0;
}

/* Forms */
.cta-section {
    display: flex;
    justify-content: center;
    background: var(--light-section);
}

.cta-box {
    max-width: 600px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
}

.contact-form {
    margin-top: 2rem;
    text-align: left;
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

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

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

input, textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 4px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
}

.contact-form .cta-button.primary {
    background: var(--primary-color);
    margin-top: 1rem;
}

.contact-form .cta-button.primary:hover {
    background: #236c53;
}

.trust-line {
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Footer */
footer {
    background: var(--footer-bg);
    padding: 60px 5% 20px;
    color: var(--footer-text);
}

footer p, footer a {
    color: #94a3b8;
}

footer a:hover {
    color: #fff;
}

footer h4 {
    color: #fff;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand .logo-text {
    color: #fff;
}

.made-with {
    color: var(--primary-color);
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

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

/* Responsive */
@media (max-width: 768px) {
    .split-layout {
        flex-direction: column;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .hero {
        padding-top: 120px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    nav {
        display: none;
    }
}

/* Inline CTA */
.inline-cta-section {
    text-align: center;
}
.inline-cta-box {
    max-width: 600px;
    margin: 0 auto;
}
.inline-cta-box h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* Planning Section Specifics */
.mobile-image-top {
    display: none;
}
.desktop-only-image {
    display: flex;
}
.text-chunk {
    margin-bottom: 1.5rem;
}
.text-chunk h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}
.highlight-box {
    background: rgba(45, 134, 104, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
        overflow-x: hidden;
        width: 100%;
    }

    .section {
        padding: 50px 30px !important; /* Massive safety gutters */
        width: 100%;
        box-sizing: border-box;
    }

    .section-title {
        font-size: 1.2rem !important; /* Small enough to never overflow */
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-word;
        hyphens: auto;
        padding: 0;
        margin-bottom: 2rem;
        text-align: center;
        max-width: 100%;
    }

    .grid-3, .grid-2, .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    nav.nav-links {
        display: none !important;
    }
    
    .nav-brand {
        font-size: 1.1rem;
    }

    .header-cta {
        display: none !important;
    }
    
    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 1.8rem !important;
    }

    /* FAQ Mobile Fix */
    .faq-item summary {
        padding: 1.2rem 3.5rem 1.2rem 1.2rem !important;
        font-size: 1rem !important;
    }

    /* Balanced Vertical Timeline */
    .process-grid {
        margin: 0 auto !important;
        padding: 0 0 0 45px !important; /* Deeper gutter for the line */
        border-left: 3px solid var(--primary-color);
        width: 85% !important; /* Centered and balanced */
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
    }

    .process-step-card {
        padding: 0;
        width: 100%;
        background: transparent;
        box-shadow: none;
    }

    .step-circle {
        left: -62px; /* Perfectly aligned with the 45px padding + border */
        top: -2px;
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .inline-cta-box h2 {
        font-size: 1.3rem !important;
    }

    .mobile-image-top {
        display: block;
        margin-bottom: 2rem;
    }
    .mobile-image-top img {
        width: 100%;
        border-radius: 12px;
    }
    .desktop-only-image {
        display: none;
    }

    .benefit-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .header-cta {
        display: none;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
}

/* Subpage Utilities */
nav a.nav-active {
    color: var(--primary-color) !important;
}

.hero.hero-subpage {
    min-height: 60vh;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Mobile Menu Overlay Fix */
div.mobile-menu {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background-color: #ffffff !important;
    z-index: 9999 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    visibility: hidden;
}

div.mobile-menu.active {
    transform: translateX(0);
    visibility: visible;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    line-height: 1;
    padding: 10px;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.mobile-menu ul li a {
    font-size: 24px !important;
    font-weight: 700;
    color: #2d7a6e !important;
    text-decoration: none;
    display: block;
}

/* Force White Text on the Button */
.mobile-menu ul li a.cta-button.primary {
    background-color: #2d7a6e !important;
    color: #ffffff !important;
    padding: 15px 30px !important;
    margin-top: 10px;
    border-radius: 8px;
    text-align: center;
}

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