/* === Import Fonts (Optional - Choose fonts that match logo vibe) === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap'); /* Example: Poppins is clean */

/* === CSS Variables for Brand Colors === */
:root {
    --primary-blue: #193869; /* Deep blue from logo text */
    --accent-blue: #5cacee;  /* Lighter blue from window panes */
    --dark-text: #333333;     /* Dark grey for text */
    --light-background: #f8f9fa; /* Very light grey page background */
    --white: #ffffff;
    --black: #000000; /* Keep for borders or specific elements if needed */

    /* Action/CTA Colors - Using brand blue */
    --cta-color: var(--primary-blue);
    --cta-color-hover: #112747; /* Darker shade of primary blue */

    /* Optional: Keep green for specific alerts/success messages if needed */
    --success-green: #28a745;
    --success-green-darker: #218838;
}

/* === Basic Reset & Global Styles === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
    font-family: 'Poppins', 'Arial', sans-serif; /* Use imported font */
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-background);
    font-size: 16px; /* Base font size */
}

.container {
    max-width: 1140px; /* Slightly wider container */
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-blue); /* Use primary blue for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    /* color: var(--accent-blue); Slightly lighter on hover */
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--primary-blue); /* Make headings use primary blue */
    font-weight: 600; /* Slightly bolder */
}
h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1rem;
}
p.lead {
    font-size: 1.1rem;
    color: #555;
}


img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevents bottom space under images */
}

ul {
    list-style: none;
}

/* === Header & Navigation === */
.navbar {
    background-color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08); /* Softer shadow */
    position: sticky; /* Make navbar sticky */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid #eee; /* Subtle bottom border */
    /* Calculate actual height - often around 65-75px */
    /* height: 70px; /* You might need to set an explicit height */
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%; /* Ensure container takes full navbar height */
}

.navbar .logo {
    font-size: 1.6rem; /* Adjust as needed */
    font-weight: 700; /* Bold logo text */
    color: var(--primary-blue); /* Logo text in brand blue */
    text-decoration: none;
    display: flex; /* Align image and text if using both */
    align-items: center;
}
.navbar .logo img {
    max-height: 45px; /* Adjust logo image size */
    margin-right: 10px; /* Space between image and text */
    vertical-align: middle;
}

/* Default DESKTOP nav links */
.navbar .nav-links {
    display: flex; /* Displayed by default on desktop */
    align-items: center; /* Vertically align items */
}

.navbar .nav-links li {
    margin-left: 25px; /* Slightly more space */
}

.navbar .nav-links a {
    color: var(--dark-text); /* Default link color in nav */
    padding: 5px 0; /* Padding top/bottom only */
    font-weight: 600;
    position: relative; /* For underline effect */
    text-decoration: none; /* Remove default underline */
    transition: color 0.3s ease;
}

/* Underline hover effect for non-button links */
.navbar .nav-links a:not(.cta-button)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}
.navbar .nav-links a:not(.cta-button):hover::after,
.navbar .nav-links a:not(.cta-button).active::after { /* Add .active class manually or via JS */
    width: 100%;
}

.navbar .nav-links a:not(.cta-button):hover,
.navbar .nav-links a:not(.cta-button).active {
    color: var(--primary-blue); /* Brand color on hover/active */
}
/* Specific active style if needed beyond underline */
.navbar .nav-links a.active {
     color: var(--primary-blue);
     font-weight: 700; /* Example: make active link bolder */
}


/* === Call-to-Action Button Styles === */
.cta-button {
    background-color: var(--cta-color);
    color: var(--white); /* White text on buttons */
    padding: 10px 25px; /* Slightly more padding */
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600; /* Bolder CTA text */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease, border-color 0.3s ease;
    display: inline-block; /* Ensure it behaves well */
    text-align: center;
}

.cta-button:hover {
    background-color: var(--cta-color-hover);
    color: var(--white); /* Keep text white on hover */
    text-decoration: none;
    transform: translateY(-2px); /* Slight lift on hover */
}

.cta-button.large {
    padding: 15px 35px;
    font-size: 1.15rem;
}

/* === Specific Navbar CTA Button Styles === */
/* Ensure the Navbar CTA button text is white by default */
.navbar .nav-links .cta-button {
    color: var(--white); /* *** FIX: Explicitly set white text *** */
    margin-left: 15px; /* Space before button in nav */
}

/* Ensure Navbar CTA button hover DOES NOT change text color from link hover */
.navbar .nav-links .cta-button:hover {
    color: var(--white) !important; /* *** FIX: Force white text on hover *** */
    background-color: var(--cta-color-hover); /* Ensure background hover applies */
    /* The transform effect from .cta-button:hover will also apply */
}

/* Remove underline effect specifically for the button in nav */
.navbar .nav-links .cta-button::after {
    display: none;
}


/* === Mobile Menu Toggle === */
/* Hidden by default, shown in media query */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-blue); /* Use brand blue for hamburger */
    padding: 5px; /* Easier to tap */
}

/* === Hero Section === */
.hero {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}
.hero h1 {
    color: var(--white);
}
.hero p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* === Services Overview Section === */
.services-overview {
    padding: 4rem 0;
    text-align: center;
}
.services-overview h2 {
    margin-bottom: 3rem;
}
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
}
.card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--accent-blue);
    display: flex;
    flex-direction: column;
}
.card > *:last-child {
    margin-top: auto;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.card p {
    flex-grow: 1;
}
.card a {
    font-weight: 600;
    color: var(--primary-blue);
    display: inline-block;
    margin-top: 1rem;
}
.card a:hover {
    color: var(--accent-blue);
}

/* === Why Choose Us Section === */
.why-choose-us {
    padding: 4rem 0;
    background-color: var(--white);
}
.why-choose-us h2 {
    text-align: center;
    margin-bottom: 3rem;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}
.feature-item {
    padding: 20px;
}
.feature-item .icon-placeholder { /* Style your icons */
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    display: inline-block;
}
.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* === Testimonials Section === */
.testimonials {
    padding: 4rem 0;
    background-color: var(--light-background);
}
.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
}
.testimonial-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    border-top: 4px solid var(--accent-blue);
    font-style: italic;
}
.testimonial-card p {
    margin-bottom: 1rem;
    color: #555;
}
.testimonial-card cite {
    font-style: normal;
    font-weight: 600;
    color: var(--primary-blue);
    display: block;
    text-align: right;
}
.testimonial-card { margin: 0; display: flex; flex-direction: column; }
.testimonial-card blockquote { margin: 0 0 1rem; flex: 1; }
.testimonial-stars { color: #f5a623; font-style: normal; letter-spacing: 2px; margin-bottom: 0.6rem; }
.testimonial-stars span { color: #d9dee5; }
.testimonial-meta { display: block; text-align: right; font-style: normal; font-size: 0.85rem; color: #718096; margin-top: 2px; }
.testimonial-links { text-align: center; margin-top: 2rem; display: flex; gap: 1rem 1.5rem; justify-content: center; align-items: center; flex-wrap: wrap; }
.testimonial-leave { font-weight: 600; color: var(--primary-blue); }

/* === Secondary Button Style === */
.cta-button.secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}
.cta-button.secondary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

/* === Final CTA Section === */
.final-cta {
    padding: 4rem 0;
    background-color: var(--accent-blue);
    text-align: center;
}
.final-cta h2 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}
.final-cta p {
     color: var(--dark-text);
     opacity: 0.9;
     max-width: 600px;
     margin: 1rem auto 2rem auto;
}
.final-cta .cta-button { /* Specific overrides if needed */
     background-color: var(--primary-blue);
     color: var(--white);
     margin: 5px;
}
.final-cta .cta-button:hover {
     background-color: var(--cta-color-hover);
}
.final-cta .cta-button.secondary {
     background-color: var(--white);
     color: var(--primary-blue);
     border: 2px solid var(--primary-blue);
}
.final-cta .cta-button.secondary:hover {
     background-color: var(--primary-blue);
     color: var(--white);
}

/* === Service Detail Page Styles === */
.page-header {
    padding: 2rem 0;
    text-align: center;
    background-color: var(--light-background);
}
.page-header h1 {
    margin-bottom: 0.5rem;
}

.service-detail {
    padding: 4rem 0;
}
.service-detail:nth-child(even) { /* Target 2nd, 4th, etc. service-detail section */
     background-color: var(--white);
}
/* Or use class: .service-detail.alt-layout { background-color: var(--white); } */

.service-layout {
    display: flex;
    align-items: center;
    gap: 40px;
}
.service-image {
    flex-basis: 40%;
    flex-shrink: 0;
}
.service-image img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.service-content {
    flex-basis: 60%;
}
.service-detail.alt-layout .service-layout {
    flex-direction: row-reverse;
}
.service-content h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}
.service-content h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.service-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 1.5rem;
}
.service-content ul li {
    margin-bottom: 0.5rem;
    color: #444;
}
.service-content .cta-button {
    margin-top: 1.5rem;
}

/* === Gallery Page Styles === */
.gallery-section {
    padding: 4rem 0;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.gallery-item {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}
.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.gallery-item a {
    display: block;
    position: relative;
}
.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.gallery-item .overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(25, 56, 105, 0.7);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}
.gallery-item .overlay span {
     font-weight: 600;
     font-size: 1.1rem;
}
.gallery-item a:hover .overlay {
    opacity: 1;
}
.gallery-item .caption {
    padding: 10px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-text);
    background-color: var(--white);
    margin-bottom: 0;
}

/* === Iframe Container (Booking Page) === */
.booking-section {
    padding: 3rem 0;
}
.iframe-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 900px; /* Start with a generous min-height - ADJUST */
    margin: 2rem auto;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: var(--white);
}
.iframe-container iframe {
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    width: 100%; height: 100%;
    border: none;
}
.booking-section h2 {
    text-align: center;
    margin-bottom: 1rem;
}
.booking-section .intro-text {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2rem;
}
.booking-section .trouble-text {
     margin-top: 1.5rem;
     text-align: center;
     font-size: 0.9rem;
}

/* === Footer === */
footer {
    background-color: var(--primary-blue);
    color: var(--light-background);
    padding: 3rem 0;
    text-align: center;
    margin-top: 4rem;
    font-size: 0.9rem;
}
footer p {
    margin-bottom: 0.75rem;
    color: #e0e0e0;
}
footer a {
    color: var(--accent-blue);
}
footer a:hover {
    color: var(--white);
}
footer ul {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 1.5rem;
    display: inline-block;
}
footer ul li {
    display: inline-block;
    margin: 0 15px;
}
footer ul li a {
    font-weight: 600;
}


/* === Responsive Design === */
@media (max-width: 992px) {
    .container { max-width: 960px; }
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    .service-layout { gap: 30px; }
    .service-content h2 { font-size: 1.8rem; }
    .service-content h3 { font-size: 1.2rem; }
}

/* === START MOBILE STYLES (Viewport <= 768px) === */
@media (max-width: 768px) {
    .container { max-width: 720px; }
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.3rem; }

    .navbar { /* Potentially adjust navbar height if needed */ }
    .navbar .container { flex-wrap: wrap; position: relative; }

    /* Show the toggle button */
    .menu-toggle {
        display: block;
        order: 3;
        margin-left: auto;
    }

    /* --- Mobile Menu Hiding/Showing with INCREASED SPECIFICITY --- */
    /* Default state: Hidden */
    .navbar .nav-links { /* Added .navbar parent selector */
        display: none !important; /* Hide by default - Using !important temporarily for testing */
        /* --- Basic Layout (Keep these) --- */
        flex-direction: column;
        width: 100%;
        background-color: var(--white);
        position: absolute;
        top: 100%; /* Position below the navbar */
        left: 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
        padding-bottom: 1rem;
        max-height: calc(100vh - 70px); /* Adjust 70px if navbar height changes */
        overflow-y: auto;
        z-index: 999; /* Ensure menu is on top */
        /* Remove transition/opacity/visibility styles */
    }

    /* Active state: Shown */
    .navbar .nav-links.active { /* Added .navbar parent selector */
        display: flex !important; /* Show when active - Using !important temporarily for testing */
        /* Remove transition/opacity/visibility styles */
    }
    /* --- End Mobile Menu Hiding/Showing --- */


    /* Styling for items within the mobile dropdown */
    .navbar .nav-links li { margin: 0; text-align: center; }
    .navbar .nav-links a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        width: 100%;
    }
    .navbar .nav-links li:last-child a { border-bottom: none; }
    .navbar .nav-links a:not(.cta-button)::after { display: none; } /* Remove desktop hover underline */
    .navbar .nav-links .cta-button {
        margin: 15px auto;
        display: inline-block;
        width: auto;
        padding: 12px 28px;
    }

    /* === FIX for Mobile Menu Overlap (Keep this) === */
    body.mobile-menu-open main {
        padding-top: 250px; /* --- ADJUST THIS VALUE based on your open menu height --- */
        transition: padding-top 0.3s ease-out;
    }
     main {
        transition: padding-top 0.3s ease-out;
    }
    /* body.mobile-menu-open { overflow: hidden; } */
    /* === End FIX === */

    /* --- Other Mobile Styles --- */
    .hero { padding: 4rem 0; }
    .hero p { font-size: 1.1rem; }
    .service-cards { grid-template-columns: 1fr; }
    .card { padding: 25px; }
    .features-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
    .testimonial-cards { grid-template-columns: 1fr; gap: 20px; }
    .final-cta .cta-button { margin-bottom: 10px; }
    .final-cta .cta-button + .cta-button { margin-left: 0; }
    .service-layout,
    .service-detail.alt-layout .service-layout {
        flex-direction: column; text-align: center;
    }
    .service-image { flex-basis: auto; width: 80%; margin: 0 auto 2rem auto; }
    .service-content { flex-basis: auto; text-align: left; }
    .service-content ul { margin-left: 25px; text-align: left; }
    .service-content .cta-button { display: block; margin-left: auto; margin-right: auto; max-width: 300px; }
    .iframe-container { min-height: 700px; }
    footer { padding: 2.5rem 0; }
    footer ul { margin-top: 1rem; padding-top: 0.75rem; }
    footer ul li { margin: 0 10px; }
    main section { padding: 3rem 0; }
    main section.hero { padding: 4rem 0; }
    main section.hero + section { padding-top: 3rem; }

}
/* === END MOBILE STYLES === */


@media (max-width: 576px) {
    /* --- Styles for smaller screens --- */
    body { font-size: 15px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .container { padding: 0 15px; }
    .navbar .logo { font-size: 1.4rem; }
    .navbar .logo img { max-height: 35px; }
    .hero { padding: 3rem 0; }
    .hero h1 { font-size: 2.1rem; }
    .hero p { font-size: 1rem; }
    .card { padding: 20px; }
    .services-overview { padding: 3rem 0; }
    .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
    .gallery-item .caption { font-size: 0.8rem; padding: 8px 10px; }
    .gallery-item img { aspect-ratio: 1 / 1; } /* Optional square ratio */
    .iframe-container { min-height: 600px; }
    main section { padding: 2.5rem 0; }
    main section.hero { padding: 3rem 0; }
}

/* === General Section Padding Fallback === */
main section { padding: 4rem 0; }
main section.hero { padding: 6rem 0; }
main section.hero + section { padding-top: 4rem; }

/* === About Page Specific Styles === */

/* Layout for Story Section (similar to Service Detail) */
.about-story {
    padding: 4rem 0;
    background-color: var(--light-background); /* Or keep default */
}

.about-layout {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-image {
    flex-basis: 35%; /* Adjust image width */
    flex-shrink: 0;
}
.about-image img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-content {
    flex-basis: 65%; /* Adjust text width */
}
.about-content h2 {
    margin-bottom: 1.5rem;
}

/* Values Section Grid */
.about-values {
    padding: 4rem 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center; /* Center items in grid cells */
}

.value-item {
    background-color: #f0f4f8; /* Slightly different background for items */
    padding: 30px 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-blue);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.value-item .icon-placeholder { /* Style icons */
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    display: inline-block;
}
.value-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--primary-blue);
}
.value-item p {
    font-size: 0.95rem;
    color: #444;
}


/* Team Section Grid (If you uncomment the HTML) */
.about-team {
     padding: 4rem 0;
     background-color: var(--light-background); /* Alternate background */
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    justify-content: center; /* Center grid items if they don't fill row */
    text-align: center;
}

.team-member {
    /* background-color: var(--white); */ /* Optional background */
    /* padding: 15px; */
    /* border-radius: 8px; */
}

.team-member img {
    width: 150px; /* Adjust size */
    height: 150px;
    border-radius: 50%; /* Circular images */
    object-fit: cover;
    margin: 0 auto 1rem auto; /* Center image */
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 3px solid var(--white); /* Optional white border */
}

.team-member h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.team-member p {
    font-size: 0.9rem;
    color: #555; /* Title color */
    margin-bottom: 0;
}

/* --- Responsive Adjustments for About Page --- */
@media (max-width: 768px) {
    .about-layout {
        flex-direction: column; /* Stack image and text */
    }
    .about-image {
        flex-basis: auto;
        width: 60%; /* Control image width */
        max-width: 300px; /* Max width for image */
        margin: 0 auto 2rem auto;
    }
    .about-content {
        flex-basis: auto;
        text-align: center; /* Center text when stacked */
    }
    .about-content p {
        text-align: left; /* Re-align paragraphs */
    }

    .values-grid {
         grid-template-columns: 1fr; /* Stack value items */
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
     .team-member img {
        width: 120px;
        height: 120px;
    }
}

/* === Contact Page Specific Styles === */

.contact-section {
    padding: 4rem 0;
    background-color: var(--white); /* Or keep default */
}

.contact-layout {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 40px; /* Space between columns */
}

.contact-details {
    flex: 1; /* Take up available space */
    min-width: 300px; /* Minimum width before wrapping */
    background-color: #f0f4f8; /* Light background for details column */
    padding: 30px;
    border-radius: 8px;
}

.contact-details h2 {
    margin-bottom: 1.5rem;
}

.contact-details .info-item {
    display: flex;
    align-items: flex-start; /* Align icon with top of text */
    margin-bottom: 1.5rem;
    gap: 15px; /* Space between icon and text */
}

.contact-details .info-item .icon-placeholder { /* Style your icons */
    font-size: 1.8rem; /* Adjust icon size */
    color: var(--primary-blue);
    margin-top: 5px; /* Align icon slightly */
    flex-shrink: 0; /* Prevent icon shrinking */
}
.contact-details .info-item div {
    line-height: 1.5;
}
.contact-details .info-item strong {
    color: var(--primary-blue);
}
.contact-details .info-item a {
    color: var(--dark-text);
    text-decoration: underline;
}
.contact-details .info-item a:hover {
    color: var(--primary-blue);
}


.contact-form-container {
    flex: 1.5; /* Make form slightly wider if space allows */
    min-width: 320px; /* Minimum width before wrapping */
}

.contact-form-container h2 {
     margin-bottom: 1.5rem;
}

/* Contact Form Styles */
#contact-form .form-group {
    margin-bottom: 1.5rem;
}

#contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-blue);
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form input[type="tel"],
#contact-form select,
#contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit; /* Use body font */
    background-color: var(--white);
    transition: border-color 0.3s ease;
}

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 5px rgba(25, 56, 105, 0.3); /* Subtle focus shadow */
}

#contact-form textarea {
    resize: vertical; /* Allow vertical resizing */
    min-height: 120px;
}

#contact-form select {
    /* Appearance for dropdown arrow */
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007bff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px auto;
    padding-right: 30px; /* Make space for arrow */
}
/* Remove arrow in IE */
#contact-form select::-ms-expand {
    display: none;
}


#contact-form button[type="submit"] {
    padding: 12px 30px; /* Slightly larger button */
    font-size: 1.1rem;
    width: 100%; /* Full width button */
    max-width: 250px; /* Max width */
    display: block; /* To allow margin auto */
    margin: 1rem auto 0 auto; /* Center button */
}

#form-status { /* Style for messages like "Sending..." or "Message Sent!" */
    font-weight: bold;
    font-size: 1rem;
    min-height: 1.5em; /* Reserve space */
}

/* --- Responsive Adjustments for Contact Page --- */
@media (max-width: 768px) {
    .contact-layout {
        flex-direction: column; /* Stack columns */
        gap: 30px;
    }
    .contact-details,
    .contact-form-container {
        min-width: unset; /* Remove min-width when stacked */
    }
     #contact-form button[type="submit"] {
        max-width: 100%; /* Allow button full width */
    }
}

/* === Booking Hub Page Styles === */

.booking-options {
    padding: 4rem 0;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center; /* Center text within cards */
}

.option-card {
    background-color: var(--white);
    padding: 30px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-top: 5px solid var(--primary-blue); /* Accent border */
    display: flex;
    flex-direction: column; /* Stack content vertically */
    align-items: center; /* Center items horizontally */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.option-card:hover {
     transform: translateY(-5px);
     box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}


.option-card .icon-placeholder { /* Style icons */
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    display: inline-block;
}

.option-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.option-card p {
    margin-bottom: 1.5rem;
    color: #555;
    flex-grow: 1; /* Allow paragraph to push button down */
    max-width: 90%; /* Prevent text getting too wide */
}

.option-card .cta-button {
    margin-top: auto; /* Push button to bottom */
    padding: 10px 30px;
}

.alert {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  text-align: center;
}
.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}
.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

/* ==========================================
   Mobile sticky call / estimate bar
   ========================================== */
.mobile-cta-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-cta-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--white);
  }

  .mobile-cta-bar a {
    flex: 1;
    text-align: center;
    padding: 14px 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
  }

  .mobile-cta-call {
    background: var(--white);
    color: var(--primary-blue);
  }

  .mobile-cta-estimate {
    background: var(--primary-blue);
    color: var(--white);
  }

  /* Keep the footer from hiding behind the bar */
  body {
    padding-bottom: calc(52px + env(safe-area-inset-bottom));
  }

  /* Don't cover the open mobile menu */
  body.mobile-menu-open .mobile-cta-bar {
    display: none;
  }
}

/* Hero call-to-action: the default brand-blue button was invisible on the
   brand-blue hero background, so invert it there. */
.hero .cta-button {
  background-color: var(--white);
  color: var(--primary-blue);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.hero .cta-button:hover {
  background-color: var(--accent-blue);
  color: var(--white);
}

/* ==========================================
   No-login invoice / pay page (/pay/:token)
   ========================================== */
.pay-page { padding: 2rem 0 3rem; background: var(--light-background); }
.pay-page__inner { max-width: 760px; }
.pay-notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-weight: 600; }
.pay-notice--success { background: #f0fff4; color: #276749; border: 1px solid #c6f6d5; }
.pay-card { background: var(--white); border-radius: 12px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); padding: 24px; }
.pay-card__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pay-card__eyebrow { margin: 0; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; color: #718096; }
.pay-card__title { margin: 0; color: var(--primary-blue); font-size: 1.8rem; }
.pay-card__meta { margin: 4px 0 0; color: #4a5568; }
.pay-status { padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; background: #ebf4ff; color: var(--primary-blue); white-space: nowrap; }
.pay-status--paid { background: #f0fff4; color: #276749; }
.pay-status--overdue { background: #fff5f5; color: #c53030; }
.pay-card__summary { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.pay-card__summary > div { flex: 1 1 140px; background: var(--light-background); border-radius: 8px; padding: 10px 14px; }
.pay-card__summary span { display: block; font-size: 0.8rem; color: #718096; }
.pay-card__balance { color: var(--primary-blue); font-size: 1.3rem; }
.pay-card form { margin: 0; }
.pay-card__pay { width: 100%; border: none; cursor: pointer; font-size: 1.1rem; }
.pay-card__secure { text-align: center; color: #718096; font-size: 0.85rem; margin: 8px 0 20px; }
.pay-items { width: 100%; border-collapse: collapse; margin-top: 8px; }
.pay-items th, .pay-items td { padding: 10px 8px; border-bottom: 1px solid #edf2f7; text-align: left; }
.pay-items th { font-size: 0.8rem; text-transform: uppercase; color: #718096; }
.pay-items .num { text-align: right; white-space: nowrap; }
.pay-totals { margin: 16px 0 0 auto; max-width: 320px; }
.pay-totals > div { display: flex; justify-content: space-between; padding: 4px 0; }
.pay-totals dt, .pay-totals dd { margin: 0; }
.pay-totals__total { border-top: 1px solid #cbd5e0; font-weight: 700; padding-top: 8px !important; }
.pay-card__instructions { margin-top: 24px; padding: 14px 16px; background: var(--light-background); border-radius: 8px; }
.pay-card__instructions h2 { font-size: 1rem; margin: 0 0 6px; color: var(--primary-blue); }
.pay-card__footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 24px; padding-top: 16px; border-top: 1px solid #edf2f7; font-size: 0.9rem; }

@media (max-width: 600px) {
  .pay-card { padding: 18px 16px; }
  .pay-items thead { display: none; }
  .pay-items tr { display: block; padding: 10px 0; border-bottom: 1px solid #edf2f7; }
  .pay-items td { display: flex; justify-content: space-between; border: none; padding: 2px 0; text-align: right; }
  .pay-items td::before { content: attr(data-label); color: #718096; font-size: 0.85rem; text-align: left; }
  .pay-items td:first-child { font-weight: 600; }
  .pay-totals { max-width: none; }
}

/* ==========================================
   Estimate review & sign page (/sign/:token)
   ========================================== */
.sign-terms { margin-top: 20px; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 14px; }
.sign-terms summary { cursor: pointer; font-weight: 600; color: var(--primary-blue); }
.sign-terms__body { max-height: 260px; overflow-y: auto; font-size: 0.9rem; margin-top: 8px; }
.sign-form { margin-top: 24px; padding-top: 20px; border-top: 1px solid #edf2f7; }
.sign-form__title { margin: 0 0 12px; font-size: 1.25rem; color: var(--primary-blue); }
.sign-form__label { display: block; font-weight: 600; margin-bottom: 4px; }
.sign-form__input { width: 100%; box-sizing: border-box; padding: 12px; font-size: 16px; border: 1px solid #cbd5e0; border-radius: 6px; margin-bottom: 16px; }
.sign-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.sign-tab { flex: 1; padding: 10px; font-size: 1rem; font-weight: 600; border: 1px solid #cbd5e0; background: #fff; color: #4a5568; border-radius: 6px; cursor: pointer; }
.sign-tab.is-active { background: var(--primary-blue); border-color: var(--primary-blue); color: #fff; }
.sign-pad__canvas { display: block; width: 100%; height: 170px; border: 2px dashed #cbd5e0; border-radius: 8px; background: #fff; touch-action: none; }
.sign-pad__row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.sign-pad__hint { font-size: 0.85rem; color: #718096; }
.sign-pad__clear { background: none; border: none; color: #c53030; font-weight: 600; cursor: pointer; padding: 6px; }
.sign-typed { height: 170px; display: flex; align-items: center; padding: 0 16px; border: 2px dashed #cbd5e0; border-radius: 8px; background: #fff; font-family: 'Dancing Script', cursive; font-weight: 600; font-size: 2.6rem; color: #1a202c; overflow: hidden; white-space: nowrap; }
.sign-consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; font-size: 0.92rem; line-height: 1.45; }
.sign-consent input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; }
.sign-done { margin-top: 24px; padding: 16px; border: 1px solid #c6f6d5; background: #f0fff4; border-radius: 8px; text-align: center; }
.sign-done__image { max-width: 100%; max-height: 110px; }
.sign-done__meta { margin: 6px 0 0; color: #276749; }
.sign-next { margin-top: 20px; text-align: center; }
.sign-next h2 { font-size: 1.15rem; color: var(--primary-blue); }
.sign-next .pay-card__pay { display: block; text-decoration: none; }

/* ==========================================
   SEO landing pages (services, areas, FAQ)
   ========================================== */
.breadcrumbs { font-size: 0.85rem; padding: 10px 0; background: var(--white); border-bottom: 1px solid #edf2f7; color: #718096; }
.breadcrumbs a { color: var(--primary-blue); }
.seo-hero { background-color: var(--light-background); padding: 2.5rem 0; text-align: center; }
.seo-hero h1 { max-width: 820px; margin: 0 auto 0.75rem; }
.seo-hero .lead { max-width: 720px; margin: 0 auto 1.5rem; }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 1.6rem; margin-bottom: 0.5rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--primary-blue); font-weight: 700; }
.seo-trust { padding: 2rem 0; background: var(--white); }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; text-align: center; }
.trust-grid div { padding: 1rem; border-radius: 10px; background: var(--light-background); }
.trust-grid strong { display: block; color: var(--primary-blue); margin-bottom: 4px; }
.trust-grid span { font-size: 0.9rem; color: #4a5568; }
.area-links-section, .area-local { padding: 2rem 0; }
.area-links, .other-services { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.neighborhood-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.neighborhood-list li { padding: 4px 12px; border-radius: 999px; background: var(--light-background); border: 1px solid #e2e8f0; font-size: 0.9rem; }
.faq-section { padding: 2rem 0; }
.faq-list { max-width: 800px; }
.faq-item { border: 1px solid #e2e8f0; border-radius: 8px; padding: 0 16px; margin-bottom: 10px; background: var(--white); }
.faq-item summary { cursor: pointer; padding: 14px 0; font-weight: 600; color: var(--primary-blue); }
.faq-item p { margin: 0 0 14px; }
.card-title { font-size: 1.25rem; }
.gallery-empty { text-align: center; padding: 2rem 1rem; }
.gallery-empty__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.footer-links-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 6px 0; font-size: 0.9rem; }

/* === Refer a friend (client dashboard) === */
.referral-card { border: 2px solid var(--accent-blue); border-radius: 8px; padding: 15px; background: #f5faff; }
.referral-card h2 { margin-top: 0; }
.referral-link { display: flex; gap: 8px; margin: 0.75rem 0; }
.referral-link input { flex: 1; min-width: 0; padding: 0.55rem; border: 1px solid #cbd5e0; border-radius: 6px; font-size: 0.95rem; background: #fff; }
.referral-share, .referral-stats { font-size: 0.92rem; margin: 0.5rem 0 0; }

/* Instant estimate: quantity hint next to each service */
.service-item-hint { font-weight: normal; color: #718096; font-size: 0.9em; }

/* === Winter special === */
.promo-banner { background: #fff4d6; border-bottom: 1px solid #f3dfa2; text-align: center; font-size: 0.95rem; }
.promo-banner a { display: block; padding: 0.55rem 1rem; color: var(--primary-blue); text-decoration: none; }
.promo-banner a:hover .promo-banner__more { text-decoration: underline; }
.promo-banner__more { white-space: nowrap; margin-left: 0.4rem; opacity: 0.9; }
.winter-hero { background: linear-gradient(180deg, #eaf4fd 0%, var(--light-background) 100%); }
.winter-kicker { font-weight: 700; color: var(--primary-blue); letter-spacing: 0.02em; margin-bottom: 0.5rem; }
.winter-code { background: #fff; border: 2px dashed var(--primary-blue); padding: 0.05rem 0.45rem; border-radius: 6px; white-space: nowrap; }
.winter-ctas { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.25rem; }
.winter-ctas .cta-button { margin: 0; }
.winter-fine { font-size: 0.85rem; color: #4a5568; margin-top: 0.9rem; }
.winter-reasons { padding: 3rem 0; }
.winter-reasons h2 { text-align: center; margin-bottom: 2rem; }
.winter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.winter-card { background: #fff; border-radius: 10px; padding: 1.4rem; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.winter-card h3 { margin: 0.4rem 0 0.5rem; font-size: 1.1rem; color: var(--primary-blue); }
.winter-card p { margin: 0; color: #555; }
.winter-icon { font-size: 1.8rem; }
.winter-steps { padding-left: 1.25rem; }
.winter-steps li { margin-bottom: 0.6rem; }

/* === Tip choice on the pay page === */
.tip-form { margin: 0; }
.tip-options { border: 0; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 0.5rem; }
.tip-options legend { font-weight: 600; margin-bottom: 0.5rem; padding: 0; color: var(--primary-blue); }
.tip-options legend span { font-weight: normal; color: #718096; font-size: 0.85rem; }
.tip-option { display: block; cursor: pointer; margin: 0; }
.tip-option input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.tip-option > span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; padding: 0.4rem; border: 1.5px solid #cbd5e0; border-radius: 8px; background: #fff; font-weight: 600; text-align: center; }
.tip-option small { font-weight: normal; color: #718096; font-size: 0.8rem; }
.tip-option input[type=radio]:checked + span { border-color: var(--primary-blue); background: #eaf2fd; box-shadow: 0 0 0 1px var(--primary-blue) inset; }
.tip-option input[type=radio]:focus-visible + span { outline: 2px solid var(--primary-blue); outline-offset: 2px; }
.tip-option--custom { grid-column: span 2; }
.tip-option--custom > span { flex-direction: row; gap: 0.25rem; }
.tip-option--custom input[type=number] { width: 80px; padding: 0.3rem; border: 1px solid #cbd5e0; border-radius: 6px; }

/* === Job photos on the client's invoice page === */
.invoice-photos { margin: 1.5rem 0; }
.invoice-photos h2 { font-size: 1.1rem; margin: 0 0 0.75rem; }
.invoice-photos__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.6rem; }
.invoice-photos figure { margin: 0; }
.invoice-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }
.invoice-photos figcaption { font-size: 0.8rem; color: #4a5568; margin-top: 0.25rem; text-align: center; }
.gallery-item img { object-fit: cover; }

/* Interior window cleaning callout (services page) */
.service-interior-callout { padding: 2.5rem 0; background: #eef6ff; text-align: center; }
.service-interior-callout p { max-width: 640px; margin: 0.5rem auto 1rem; color: #4a5568; }
