/* /styles.css */
:root {
    --primary-color: #005f9e; /* Water blue */
    --primary-hover: #004b7d;
    --accent-color: #e63946; /* Bright accent for phone CTA */
    --accent-hover: #c12b37;
    --text-main: #333333;
    --text-muted: #555555;
    --bg-main: #ffffff;
    --bg-light: #f4f7f9;
    --bg-gray: #eaeff2;
    --border-color: #dddddd;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-speed: 0.3s;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-main);
    padding-bottom: 60px; /* Space for mobile call bar */
}

@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 1rem;
    color: #1a1a1a;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-color);
    color: white;
    padding: 8px;
    z-index: 1000;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* Utilities */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1.5rem; }
.bg-light { background-color: var(--bg-light); }
.bg-gray { background-color: var(--bg-gray); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

.btn:hover {
    text-decoration: none;
}

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

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

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Header & Navigation */
.site-header {
    background: var(--bg-main);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
}

.primary-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
}

.primary-nav a {
    color: var(--text-main);
    font-weight: 500;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
    color: var(--primary-color);
    text-decoration: none;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: var(--shadow-md);
    min-width: 250px;
    z-index: 10;
    padding: 10px 0;
    border-radius: 4px;
}

.dropdown.is-open .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
}

.caret {
    display: inline-block;
    width: 0;
    height: 0;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    margin-left: 5px;
}

.header-cta .btn {
    padding: 10px 20px;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    left: 0;
}

.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }

@media (max-width: 991px) {
    .header-cta {
        display: none; /* Hide top CTA on smaller screens, rely on mobile bar */
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .primary-nav {
        display: none;
        width: 100%;
        margin-top: 15px;
    }
    
    .primary-nav.is-open {
        display: block;
    }
    
    .primary-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .primary-nav li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .primary-nav a {
        display: block;
        padding: 12px 0;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        display: none;
        padding-left: 20px;
        background: var(--bg-light);
    }
    
    .dropdown.is-open .dropdown-menu {
        display: block;
    }
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section.bg-light, .section.bg-gray {
    padding: 5rem 0;
}

/* Hero */
.hero {
    position: relative;
    padding: 6rem 0;
    color: white;
    text-align: center;
    background-color: var(--primary-hover);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,95,158,0.9) 0%, rgba(0,75,125,0.95) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.9);
}

@media (max-width: 767px) {
    .hero { padding: 4rem 0; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1.1rem; }
}

/* Cards & Elements */
.card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid var(--primary-color);
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-speed);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    font-size: 1.25rem;
}

.service-card h3 a {
    color: var(--text-main);
}

.service-card h3 a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.service-card p {
    flex-grow: 1;
    color: var(--text-muted);
}

.read-more {
    font-weight: 600;
    text-decoration: none;
}

/* CTA Box */
.cta-box-section {
    padding: 4rem 0;
}

.cta-box {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(0,95,158,0.1);
}

.cta-box h2 { margin-bottom: 1rem; }
.cta-box p { font-size: 1.125rem; margin-bottom: 2rem; color: var(--text-muted); }

/* Breadcrumbs */
.breadcrumbs {
    padding: 1.5rem 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--text-muted);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs span {
    margin: 0 5px;
    color: #999;
}

/* Page Headers */
.page-header {
    background: var(--primary-color);
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
}

.page-header h1 {
    color: white;
    margin-bottom: 0;
}

/* Images */
.rounded-img {
    border-radius: 8px;
}
.shadow {
    box-shadow: var(--shadow-md);
}

/* FAQs */
.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Footer */
.site-footer {
    background: #1a252f;
    color: #ecf0f1;
    padding: 4rem 0 2rem;
    margin-top: 2rem;
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-phone a {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

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

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

.footer-links a {
    color: #bdc3c7;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: #95a5a6;
}

.privacy-notice {
    font-size: 0.8rem;
    margin: 1rem 0;
}

/* Mobile Sticky Call */
.mobile-sticky-call {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: env(safe-area-inset-bottom, 10px) 10px 10px; /* Respect iOS safe area */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.sticky-call-btn {
    background-color: var(--accent-color);
    color: white;
    width: 100%;
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    display: block;
}

@media (min-width: 768px) {
    .mobile-sticky-call {
        display: none;
    }
}

/* Accessibility */
:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
