/* styles.css */

/* === CSS VARIABLES (define once, use everywhere) === */
:root {
    --primary: #2c3e50;
    --accent: #2980b9;
    --cta: #e74c3c;
    --urgent: #c0392b;
    --light: #f9f9f9;
    --text: #333333;
    --white: #ffffff;
}

/* === GLOBAL RESETS & BASE STYLES === */
* { box-sizing: border-box; }
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    margin: 0;
    padding: 0;
}
a {
    text-decoration: none;
    color: var(--accent);
    transition: color 0.3s;
}
a:hover {
    color: #1c5980;
}

/* === SKIP LINK (accessibility) === */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    z-index: 2000;
    transition: top 0.3s;
}
.skip-link:focus {
    top: 0;
}

/* === HEADER & NAVIGATION === */
.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: white;
}
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 70px;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    z-index: 1001;
}
.logo span { color: var(--accent); }
.nav-list {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}
.nav-list a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
}
.nav-list a:hover { color: var(--accent); }
.nav-cta {
    background-color: var(--cta);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
}
.nav-cta:hover { background-color: #c0392b; }

/* Dropdowns */
.dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 0 0 4px 4px;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    list-style: none;
    padding: 10px 0;
}
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
}
.dropdown-menu li:last-child a { border-bottom: none; }
.dropdown-menu li a:hover {
    background-color: var(--light);
    color: var(--accent);
}

/* Urgent bar */
.urgent-bar {
    background: var(--urgent);
    color: var(--white);
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
}
.urgent-bar a {
    color: var(--white);
    text-decoration: underline;
    margin-left: 5px;
}

/* === MAIN CONTENT / HERO & SECTIONS === */
#page-title {
    scroll-margin-top: 150px;
    outline: none;
}
#page-title:focus {
    outline: 3px dashed #ffffff;
    outline-offset: 5px;
}
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.8), rgba(44, 62, 80, 0.8)),
                url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 100px 20px;
}
.hero h1 {
    font-size: clamp(2.2rem, 6vw, 3.5rem);  /* min 2.2rem, scales to ~3.5rem max */
    margin-bottom: 20px;
}
.hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);  /* subtle scaling for body text */
    max-width: 600px;
    margin: 0 auto 30px;
}
.hero-cta {
    background: var(--cta);
    color: white;
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
}
section {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
}
h2 {
    text-align: center;
    color: var(--primary);
    margin-bottom: 40px;
    font-size: clamp(1.8rem, 5vw, 2.4rem);
}
#specialty {
    background-color: #f4f6f7;
}
.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.card {
    background: var(--light);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: transform 0.2s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.section-intro p,
.card p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);  /* subtle scaling for body text */
}
.card h3 {
    color: var(--accent);
    margin-top: 0;
}
.card-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: bold;
}

/* === FOOTER === */
.site-footer {
    background-color: var(--primary);
    color: #ecf0f1;
    padding: 50px 20px;
    margin-top: 50px;
}
.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}
.footer-col {
    flex: 1;
    min-width: 250px;
}
.footer-col h3 {
    color: #3498db;
    font-size: 1.2rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #34495e;
    padding-bottom: 10px;
    display: inline-block;
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col li {
    margin-bottom: 10px;
}
.footer-col a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-col a:hover {
    color: var(--white);
    text-decoration: underline;
}
.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #95a5a6;
    margin-top: 40px;
}
.nap-address {
    font-style: normal;
    line-height: 1.6;
}
.call-btn {
    display: inline-block;
    background: var(--cta);
    color: white !important;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 10px;
}

/* === MOBILE RESPONSIVENESS === */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}
.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin: 5px 0;
    transition: 0.4s;
}
@media (max-width: 900px) {
    .mobile-menu-btn { display: block; }
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: 0.3s;
        display: block;
        padding-top: 80px;
        overflow-y: auto;
    }
    .main-nav.active { right: 0; }
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .nav-list li { width: 100%; }
    .nav-list a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1.1rem;
    }
    .dropdown { display: block; height: auto; }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: #f9f9f9;
        padding-left: 20px;
    }
    .dropdown.active .dropdown-menu { display: block; }
    .nav-cta {
        text-align: center;
        margin: 20px;
        width: auto;
        display: inline-block;
    }
    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .mobile-menu-btn.active .bar:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}