:root {
    --primary-dark: #0f172a; /* Deep corporate navy */
    --accent-blue: #0284c7;  /* Rich professional blue */
    --accent-green: #10b981; /* Fresh emerald green accent */
    --accent-hover: #0369a1;
    --accent-glow: rgba(2, 132, 199, 0.25);
    --text-light: #f8fafc;
    --text-muted: #475569;
    --bg-light: #f0f9ff;     /* Soft ice-blue background */
    --white: #ffffff;
    --card-border: #e0f2fe;
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    background-color: var(--white);
    color: var(--primary-dark);
    line-height: 1.7;
    overflow-x: clip; /* stops sideways scrolling without breaking the sticky header */
}

img {
    max-width: 100%;
}

/* Header & Navigation */
header {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.2);
    border-bottom: 2px solid var(--accent-blue);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Header logo: fixed height, width follows the image's own proportions.
   max-height + flex-shrink keep Safari on iPhone/iPad from showing it at full size. */
.logo-img {
    height: 52px;
    max-height: 52px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    object-position: left center;
    display: block;
    flex-shrink: 0;
    align-self: center;
}

.logo {
    min-width: 0;
}

/* Right side of header: phone button + mobile menu button */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    font-size: 1.3rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle:hover, .menu-toggle[aria-expanded="true"] {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

/* Hero logo above the main headline */
.hero-logo {
    height: 140px;
    max-height: 140px;
    width: auto;
    max-width: 80%;
    object-fit: contain;
    margin: 0 auto 1.5rem auto;
    display: block;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

/* Footer logo */
.footer-logo {
    height: 80px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    margin: 0 auto 1.2rem auto;
    display: block;
    cursor: pointer;
}

.logo span {
    color: var(--accent-green);
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

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

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--accent-green);
}

/* Dual-accent phone button (Blue to Green gradient) */
.phone-btn {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    color: var(--white);
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.phone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}

/* Promo Banner */
.promo-banner {
    background: linear-gradient(90deg, #e0f2fe, #d1fae5);
    color: #065f46;
    text-align: center;
    padding: 0.8rem;
    font-weight: 700;
    font-size: 0.95rem;
    border-bottom: 1px solid #a7f3d0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

/* View Layout System */
.page-view {
    display: none;
    padding: 4rem 10%;
    min-height: 70vh;
}

.page-view.active {
    display: block;
}

/* Home Specific Styles */
.hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.85)), url('https://images.unsplash.com/photo-1581578731548-c64695cc6952?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    color: var(--text-light);
    text-align: center;
    padding: 10rem 1rem;
    box-shadow: inset 0 -20px 30px rgba(0,0,0,0.2);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    font-style: italic;
    color: #a7f3d0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Dual-accent CTA button */
.cta-button {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-green));
    color: var(--white);
    padding: 1rem 2.8rem;
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
}

.cta-button:hover {
    background: linear-gradient(135deg, #0369a1, #059669);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* General Section Headings */
.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.8rem;
    font-weight: 800;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
    border: 1px solid var(--card-border);
    border-top: 5px solid var(--accent-blue);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(2, 132, 199, 0.12);
    border-top-color: var(--accent-green);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
    font-size: 1.3rem;
    font-weight: 700;
}

.service-card ul {
    list-style-type: none;
    color: var(--text-muted);
}

.service-card ul li {
    padding: 0.35rem 0;
    position: relative;
    padding-left: 1.2rem;
}

.service-card ul li::before {
    content: "•";
    color: var(--accent-green);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
}

/* FAQ Accordion Style */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 1.2rem;
    padding: 1.8rem;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.02);
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: var(--accent-green);
}

.faq-item h4 {
    color: var(--primary-dark);
    margin-bottom: 0.6rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.faq-item p {
    color: var(--text-muted);
}

/* Contact View Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.2rem;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background-color: #f8fafc;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-green);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

/* Validation & status messages */
.contact-form input.input-error,
.contact-form textarea.input-error {
    border-color: #dc2626;
    background-color: #fef2f2;
}

.form-status {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    min-height: 0;
}

.form-status:empty {
    display: none;
}

.form-status.error {
    color: #b91c1c;
}

.form-status.success {
    color: #047857;
    font-weight: 600;
}

.contact-form .cta-button:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

@media(max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    /* Header: logo on the left, phone + menu button on the right */
    header {
        padding: 0.6rem 1rem;
        flex-wrap: nowrap;
    }
    .menu-toggle {
        display: inline-flex;
    }
    /* Drop-down menu, opened with the menu button */
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-dark);
        border-bottom: 2px solid var(--accent-blue);
        box-shadow: 0 12px 20px rgba(15, 23, 42, 0.3);
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        transition: max-height 0.3s ease, visibility 0.3s;
    }
    nav.open {
        max-height: 420px;
        visibility: visible;
    }
    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
    }
    nav ul li a {
        display: block;
        padding: 0.9rem 1.5rem;
        font-size: 1.05rem;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }
    .hero {
        padding: 5rem 1rem;
    }
    .hero h1 {
        font-size: 2.3rem;
    }
    .page-view {
        padding: 3rem 1.25rem;
    }
    .areas-grid {
        grid-template-columns: 1fr !important;
    }
    .contact-info {
        padding: 2rem 1.5rem !important;
    }
    .contact-info p {
        flex-wrap: wrap;
        word-break: break-word;
    }
    /* Smaller logos on phones; drop header text so logo + phone button fit */
    .logo-img {
        height: 40px;
        max-height: 40px;
        max-width: 140px;
    }
    .logo-text {
        display: none;
    }
    .hero-logo {
        height: 100px;
    }
    .footer-logo {
        height: 64px;
        max-height: 64px;
    }
}

/* Small phones: phone button becomes a round icon so everything fits on one line */
@media(max-width: 480px) {
    .phone-text {
        display: none;
    }
    .phone-btn {
        width: 44px;
        height: 44px;
        padding: 0;
        justify-content: center;
    }
    .hero h1 {
        font-size: 1.9rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .section-title h2 {
        font-size: 1.9rem;
    }
}

/* Footer */
footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    text-align: center;
    padding: 4rem 1rem 3rem 1rem;
    border-top: 4px solid var(--accent-blue);
}

footer p {
    margin-bottom: 0.6rem;
    color: #94a3b8;
}

.footer-tagline {
    font-style: italic;
    color: var(--accent-green) !important;
    margin-bottom: 1.5rem !important;
    font-weight: 600;
    font-size: 1.1rem;
}