/* ==========================================================================
   1. COLOR VARIABLES & BASE RESETS
   ========================================================================== */
:root {
    --primary-blue: #004d7c;    /* Deep professional navy from logo cat */
    --accent-teal: #14a2cc;     /* Vibrant teal from logo dog & text */
    --light-bg: #ffffff;        /* Crisp, clean white */
    --dark-text: #1d2331;       /* Deep charcoal blue/black details */
    --white: #ffffff;
    --alert-yellow: #fef5e7;    /* Warm cream for announcements */
    --alert-border: #e6d7bb;    /* Subtle border for alert */
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--dark-text);
    background-color: var(--light-bg);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ==========================================================================
   2. GLOBAL UI COMPONENTS (Buttons, Modals, Announcements)
   ========================================================================== */

/* Buttons */
.btn-primary {
    background-color: var(--accent-teal);
    color: var(--white);
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-primary:hover {
    background-color: #0f86a8; /* Slightly darker teal */
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    display: block;
    text-align: center;
    font-size: 1.1rem;
    padding: 14px;
    border: none;
    cursor: pointer;
}

/* Persistent Announcement Box (Top of page) */
.announcement-box {
    background-color: var(--alert-yellow);
    border-bottom: 2px solid var(--alert-border);
    color: var(--dark-text);
    padding: 12px 40px 12px 20px;
    position: relative;
    text-align: center;
    font-size: 0.95rem;
}

.announcement-close-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-text);
    cursor: pointer;
}

/* Pop-up Alert Banner (Modal overlay) */
.alert-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out forwards;
}

.alert-container {
    background-color: var(--alert-yellow);
    border: 2px solid var(--alert-border);
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-start;
    padding: 2rem;
    position: relative;
    animation: scaleUp 0.3s ease-out forwards;
}

.alert-icon {
    color: var(--accent-teal);
    font-size: 1.8rem;
    margin-right: 1.2rem;
    margin-top: 2px;
}

.alert-text {
    flex-grow: 1;
    color: var(--dark-text);
    font-size: 1.1rem;
    padding-right: 1.5rem;
}

.alert-text strong {
    color: var(--primary-blue);
    font-size: 1.25rem;
    display: inline-block;
    margin-bottom: 0.4rem;
}

.close-popup-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.8rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0;
    line-height: 1;
}

.close-popup-btn:hover {
    color: var(--dark-text);
}

/* General Modal Window Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background-color: var(--light-bg);
    margin: 10% auto;
    padding: 2.5rem;
    border-radius: 8px;
    max-width: 600px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-content h3 {
    color: var(--primary-blue);
    font-family: Georgia, serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.close-btn {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: var(--dark-text);
}

.alert-box {
    background-color: var(--alert-yellow);
    border-left: 4px solid var(--alert-border);
    padding: 1rem;
    margin-top: 1.5rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 1.5rem 2rem;
    position: relative; /* Establishes a new layer for the header */
    z-index: 9999; /* Forces the entire header and its children to the very front */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    max-height: 65px;
    width: auto;
    display: block;
    transition: transform 0.2s ease;
}

.logo:hover .nav-logo {
    transform: scale(1.02);
}

/* Desktop Navigation */
.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--accent-teal);
}

/* Mobile Nav Toggle Button (Hidden on Desktop) */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.mobile-nav-toggle:hover {
    color: var(--accent-teal);
}

/* Mobile Accordion Navigation */
@media (max-width: 768px) {
    .header-container {
        position: relative; /* Anchors the absolute positioning of the dropdown */
    }

    .mobile-nav-toggle {
        display: block; /* Reveals the hamburger menu */
    }

    .nav-list {
        position: absolute;
        top: 100%;
        left: -2rem; 
        width: calc(100% + 4rem); 
        background-color: var(--primary-blue);
        flex-direction: column;
        gap: 0;
        max-height: 0; 
        overflow: hidden; 
        transition: max-height 0.3s ease-in-out; 
        z-index: 99999 !important; /* Forces the dropdown list itself to the front */
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    }

    /* JavaScript will toggle this class on click */
    .nav-list.open {
        max-height: 800px; /* Expands the menu to reveal links */
    }

    .nav-list li {
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.1); /* Subtle divider */
    }

    .nav-list a {
        display: block;
        padding: 1.25rem 2rem;
        text-align: center;
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   4. LAYOUT WRAPPER & FOOTER
   ========================================================================== */
.content-wrapper {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

.site-footer {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 3rem 2rem 1.5rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    border-bottom: 1px solid var(--accent-teal);
    padding-bottom: 2rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--accent-teal);
}

.footer-contact a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--accent-teal);
}

/* ==========================================================================
   5. HOME PAGE STYLES
   ========================================================================== */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 4rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: relative; /* Restores normal document flow so text can stretch the box */
    z-index: 2; /* Keeps the text layered above the image */
    width: 100%;
    background: rgba(0, 77, 124, 0.65);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 4rem 2rem; /* Gives the text room to breathe on mobile */
    flex-grow: 1; /* Ensures it fills the 400px minimum on desktop */
}

.hero-overlay h1 {
    font-family: Georgia, serif;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

.hero-overlay p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 650px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

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

.intro-content h2 {
    color: var(--primary-blue);
    font-family: Georgia, serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.intro-content p {
    font-size: 1.1rem;
    color: var(--dark-text);
}

.quick-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card {
    background-color: #f8f9fa;
    border-left: 4px solid var(--accent-teal);
    padding: 1.5rem;
    border-radius: 0 4px 4px 0;
}

.card h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.card p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.card a {
    color: var(--accent-teal);
    text-decoration: none;
    font-weight: 600;
}

.card a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .intro-section {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   6. ABOUT / TEAM PAGE STYLES
   ========================================================================== */
.about-blurb {
    text-align: center;
    margin: 0 auto 4rem auto;
    max-width: 800px;
}

.about-blurb h2 {
    color: var(--primary-blue);
    font-family: Georgia, serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-blurb p {
    font-size: 1.15rem;
    color: var(--dark-text);
    line-height: 1.8;
}

.team-section {
    margin-bottom: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    color: var(--primary-blue);
    font-family: Georgia, serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-header .divider {
    height: 3px;
    width: 60px;
    background-color: var(--accent-teal);
    margin: 0 auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.team-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #eaedf0;
    display: flex;
    flex-direction: column;
}

.team-card .image-wrapper {
    width: 100%;
    height: 300px;
    background-color: var(--primary-blue); 
    overflow: hidden;
}

.team-card .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.member-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.member-info h3 {
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
    font-size: 1.3rem;
}

.member-info .role {
    display: inline-block;
    color: var(--accent-teal);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.member-info p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

/* ==========================================================================
   7. EMERGENCY PAGE STYLES
   ========================================================================== */
.emergency-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 3rem;
}

.emergency-content h2 {
    color: var(--primary-blue);
    font-family: Georgia, serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.emergency-content .mt-4 {
    margin-top: 2.5rem;
}

.emergency-content p {
    font-size: 1.1rem;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.emergency-content a {
    color: var(--accent-teal);
    font-weight: 600;
}

.hospital-card {
    background-color: #f8f9fa;
    border-left: 4px solid var(--accent-teal);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0 4px 4px 0;
}

.hospital-card h3 {
    margin-bottom: 0.25rem;
}

.hospital-card h3 a {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 1.3rem;
}

.hospital-card h3 a:hover {
    color: var(--accent-teal);
}

.hospital-card p {
    margin-bottom: 0;
    font-size: 1rem;
}

.emergency-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: block;
}

@media (max-width: 768px) {
    .emergency-section {
        grid-template-columns: 1fr;
    }
    
    .emergency-image-wrapper {
        display: none;
    }
}

/* ==========================================================================
   8. SERVICES PAGE STYLES
   ========================================================================== */
.services-list-section, .specialist-section {
    margin-bottom: 4rem;
}

.services-list-section h2, .specialist-section h2 {
    color: var(--primary-blue);
    font-family: Georgia, serif;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    text-align: center;
}

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

.service-item h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--accent-teal);
    padding-bottom: 0.5rem;
}

.service-item h3 i {
    color: var(--accent-teal);
    margin-right: 8px;
}

.service-item ul {
    list-style: none;
    padding-left: 0;
}

.service-item li {
    margin-bottom: 0.75rem;
    color: var(--dark-text);
}

.specialist-card {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-blue);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0 4px 4px 0;
}

.specialist-card h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.info-trigger {
    background: none;
    border: none;
    color: var(--dark-text);
    font: inherit;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.info-trigger:hover {
    color: var(--accent-teal);
}

.info-icon {
    background-color: var(--accent-teal);
    color: var(--white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    margin-left: 6px;
    font-style: normal;
    font-weight: bold;
}

/* ==========================================================================
   9. UPDATES / BLOG PAGE STYLES
   ========================================================================== */
.updates-section {
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

.updates-feed {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.update-card {
    background-color: var(--white);
    border: 1px solid #eaedf0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.update-image img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    display: block;
}

.update-content {
    padding: 2.5rem;
}

.update-content h3 {
    color: var(--primary-blue);
    font-family: Georgia, serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.update-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-weight: 500;
    border-bottom: 1px solid #eaedf0;
    padding-bottom: 1rem;
}

.update-meta .author {
    color: var(--accent-teal);
}

.update-body {
    color: var(--dark-text);
    font-size: 1.05rem;
    line-height: 1.8;
}

.empty-feed-message {
    text-align: center;
    padding: 3rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #666;
    font-size: 1.1rem;
}

/* ==========================================================================
   10. CONTACT PAGE STYLES
   ========================================================================== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.contact-info-panel h2, .contact-form-panel h2 {
    color: var(--primary-blue);
    font-family: Georgia, serif;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.contact-intro {
    font-size: 1.1rem;
    color: var(--dark-text);
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.info-item .icon-teal {
    color: var(--accent-teal);
    font-size: 1.5rem;
    margin-right: 1rem;
    margin-top: 4px;
    width: 25px;
    text-align: center;
}

.info-item a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.info-item a:hover {
    color: var(--accent-teal);
}

.map-container-small {
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.map-container-small iframe {
    width: 100%;
    height: 250px;
    border: 0;
    display: block;
}

.contact-form-panel {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #eaedf0;
    position: relative; /* Useful if recaptcha needs anchoring */
}

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

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

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 2px rgba(20, 162, 204, 0.2);
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}