/* ------------------------------------------ */
/* Global Reset and Variables (Modernized)    */
/* ------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Outfit:wght@400;600;800&display=swap');

:root {
    --color-primary: #025B4B; /* Deep Teal */
    --color-primary-dark: #014237;
    --color-primary-light: #037a65;
    --color-secondary: #6a9d8c; /* Mint Green */
    --color-accent: #e8a598; /* Soft Coral */
    --color-text: #2c3e50;
    --color-text-light: #546e7a;
    --color-bg: #fdfdfd;
    --color-light-bg: #f0f7f4;
    --color-white: #ffffff;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
    
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
}

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

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 0.5em;
    font-weight: 800;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: 0; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-top: 1.5em; position: relative; display: inline-block; }
h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--color-secondary);
    border-radius: 2px;
}
h3 { font-size: 1.5rem; color: var(--color-primary-light); margin-top: 1.5rem; font-weight: 600; }

p { margin-bottom: 1.2em; font-size: 1.1rem; color: var(--color-text-light); }

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

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    border-radius: 24px;
    padding: 40px;
}

/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    background: rgba(253, 253, 253, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-brand {
    flex: 0 0 auto;
    margin: 0;
    font-size: 0;
}

.site-brand a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--color-primary);
    font-family: var(--font-heading);
    max-width: 100%;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.site-brand a:hover {
    opacity: 0.85;
}

.brand-logo {
    display: inline-flex;
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-name {
    display: block;
    line-height: 1;
    text-transform: none;
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.site-header nav {
    display: flex;
    align-items: center;
}

.site-header .nav-list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.site-header .nav-item {
    position: relative;
}

.site-header .nav-link {
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0.25rem;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header .nav-link:hover::after,
.site-header .nav-link.active::after {
    width: 100%;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
    color: var(--color-primary);
}

/* Dropdown Menu CSS */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 200px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

.dropdown-item {
    width: 100%;
}

.dropdown-link {
    color: var(--color-text);
    padding: 0.6rem 1.25rem;
    display: block;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-link:hover,
.dropdown-link.active {
    background-color: var(--color-light-bg);
    color: var(--color-primary);
}

/* Dropdown Chevron */
.arrow {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: -3px;
    flex-shrink: 0;
}

@media (min-width: 992px) {
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
    
    .dropdown:hover .arrow {
        transform: rotate(225deg);
        margin-top: 3px;
    }
}

/* Hamburger Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1010;
}

.hamburger-box {
    width: 24px;
    height: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mobile Overlay and Drawer Styles */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    cursor: pointer;
    text-align: center;
    gap: 8px;
}

/* Shared content modules */
.page-intro {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 60px;
}

.content-card {
    background: var(--color-white);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    padding: 32px;
}

.content-card--full {
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
}

.article-narrow {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 5%;
}

.article-medium {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 5%;
}

.page-intro--padded {
    padding: 0 5%;
}

.page-intro--narrow {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 5%;
}

.page-intro--medium {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 5%;
}

.page-medium {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 5%;
}

@media (max-width: 768px) {
    .article-medium,
    .page-intro--medium,
    .page-medium {
        padding: 0 24px;
    }
}

.content-card h2,
.content-card h3 {
    display: block;
    line-height: 1.5;
    margin-top: 0;
    overflow: visible;
}

.resource-list {
    display: grid;
    gap: 18px;
    margin-top: 30px;
}

.resource-link {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid rgba(2, 91, 75, 0.14);
    border-radius: 8px;
    background: var(--color-light-bg);
    font-weight: 700;
}


.map-frame {
    width: 100%;
    min-height: 360px;
    border: 0;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.media-caption {
    margin-top: 12px;
    font-weight: 700;
    color: var(--color-primary);
}

.video-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.media-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4 / 3;
    background: var(--color-light-bg);
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-list {
    list-style: none;
    display: grid;
    gap: 12px;
}

.service-list li {
    padding-left: 18px;
    border-left: 4px solid var(--color-secondary);
    color: var(--color-text-light);
}

.timeline-list {
    display: grid;
    gap: 14px;
    list-style: none;
}

.timeline-list li {
    padding-left: 20px;
    border-left: 4px solid var(--color-secondary);
}

.button.primary-cta {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--color-white);
    box-shadow: 0 10px 20px rgba(2, 91, 75, 0.2);
}

.button.primary-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(2, 91, 75, 0.3);
    color: var(--color-white);
}

.button.secondary-cta {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.button.secondary-cta:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 5%;
    overflow: hidden;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(253,253,253,0.95) 0%, rgba(253,253,253,0.7) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    text-align: left;
    margin-right: auto;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.hero-content h1 {
    margin-bottom: 24px;
}

.hero-content .lead-text {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 600px;
}

.cta-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Page Containers */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 5%;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

/* Feature Cards */
.feature-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--color-light-bg);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    color: var(--color-primary);
}

/* Split Section */
.split-section {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: center;
    margin: 100px 0;
}

.split-image {
    flex: 1;
    min-width: 300px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.split-image:hover img {
    transform: scale(1.05);
}

.split-content {
    flex: 1;
    min-width: 300px;
}

/* Accordion (FAQ) */
.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background-color: var(--color-white);
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: var(--shadow-md);
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 24px 30px;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
}

.accordion-icon {
    width: 30px;
    height: 30px;
    background: var(--color-light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
    background: var(--color-primary);
    color: white;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    transition: max-height 0.8s ease-in-out;
}

.accordion-inner {
    padding: 0 30px 30px;
}

/* Footer */
.site-footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 48px 5% 0;
    margin-top: 80px;
    border-radius: 24px 24px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--color-white);
    font-size: 1rem;
    margin-bottom: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-top: 12px;
}

.footer-nap {
    font-style: normal;
}

.footer-nap p {
    margin-bottom: 12px;
}

.footer-nap strong {
    color: var(--color-white);
}

.footer-nap a {
    color: var(--color-white);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.3s ease;
}

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

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

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.footer-credit a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Footer Mobile Responsive */
@media (max-width: 768px) {
    .site-footer {
        padding: 32px 5% 0;
        margin-top: 48px;
        border-radius: 16px 16px 0 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
        margin-bottom: 24px;
    }

    .footer-col h4 {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .footer-col p,
    .footer-links a {
        font-size: 0.9rem;
    }

    .footer-links li {
        margin-bottom: 0;
    }

    .footer-links a {
        display: inline-block;
        padding: 8px 0;
        min-height: 44px;
        line-height: 28px;
    }

    .footer-nap a {
        display: inline-block;
        padding: 8px 0;
        min-height: 44px;
        line-height: 28px;
    }

    .footer-bottom {
        padding: 16px 0;
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .menu-toggle {
        display: block;
    }
    
    /* Animate Hamburger lines to X */
    .menu-toggle.open .hamburger-line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .menu-toggle.open .hamburger-line:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }
    .menu-toggle.open .hamburger-line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .site-header .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background: rgba(253, 253, 253, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: var(--shadow-lg);
        z-index: 999;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        padding: 90px 24px 40px;
        display: block;
        overflow-y: auto;
    }
    
    .site-header .nav-menu.active {
        transform: translateX(0);
    }
    
    .site-header .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        width: 100%;
    }
    
    .site-header .nav-item {
        width: 100%;
    }
    
    .site-header .nav-link {
        width: 100%;
        padding: 0.75rem 0.5rem;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        justify-content: space-between;
    }
    
    .site-header .nav-link::after {
        display: none; /* Hide under-line on mobile */
    }
    
    .site-header .nav-link.active {
        color: var(--color-primary);
        font-weight: 700;
        border-bottom-color: var(--color-primary);
    }
    
    /* Mobile Dropdown styles */
    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0 0 0 1.5rem;
        width: 100%;
        opacity: 1;
        visibility: visible;
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    
    .dropdown.open .dropdown-menu {
        max-height: 500px;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    .dropdown.open .arrow {
        transform: rotate(225deg);
        margin-top: 2px;
    }
    
    .dropdown-link {
        padding: 0.6rem 0.5rem;
        font-size: 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.02);
    }
    
    body.menu-open {
        overflow: hidden; /* Lock scroll when menu is open */
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .cta-group {
        justify-content: center;
    }
}

/* ========================================= */
/* Breadcrumbs                               */
/* ========================================= */

.breadcrumbs {
    padding: 0;
    margin: 0 0 2rem;
    list-style: none;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.breadcrumbs li {
    display: inline;
}

.breadcrumbs li + li::before {
    content: "›";
    margin: 0 0.5rem;
    color: var(--color-text-light);
}

.breadcrumbs a {
    color: var(--color-primary);
    text-decoration: none;
}

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

/* ========================================= */
/* Contact Form Styles                       */
/* ========================================= */

.form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--color-text);
    font-size: 0.95rem;
}

.form-req {
    color: #c0392b;
    margin-left: 2px;
}

.form-value {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-value:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(2, 91, 75, 0.15);
}

.form-value::placeholder {
    color: #aaa;
}

textarea.form-value {
    resize: vertical;
    min-height: 120px;
}

.opt-in-label {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.form-message {
    margin-top: 1rem;
    padding: 0.9rem 1.1rem;
    border-radius: 6px;
    background: #eaf7ed;
    color: #2c7a4b;
    border: 1px solid #b2dfca;
    font-size: 0.97rem;
}

.form-message--error {
    background: #fdecea;
    color: #c0392b;
    border-color: #f5c6c6;
}

/* ========================================= */
/* Specialty Card Grid (Services Page)       */
/* ========================================= */

.specialty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

@media (max-width: 600px) {
    .specialty-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.specialty-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
    cursor: pointer;
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.specialty-card:hover,
.specialty-card:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(2, 91, 75, 0.18);
}

.specialty-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

@media (max-width: 600px) {
    .specialty-card img { height: 120px; }
}

.specialty-card:hover img { transform: scale(1.06); }

.specialty-title {
    padding: 12px 14px;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--color-primary);
    background: #fff;
}

.specialty-hint {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(2, 91, 75, 0.92) 0%, rgba(1, 66, 55, 0.96) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 14px;
    text-align: center;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.28s ease, transform 0.28s ease;
    pointer-events: none;
    border-radius: 12px;
}

.specialty-hint .hint-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.specialty-hint .hint-body {
    font-size: 0.82rem;
    line-height: 1.55;
    opacity: 0.92;
}

.specialty-card:hover .specialty-hint { opacity: 1; transform: translateY(0); }

.specialty-card.hint-open .specialty-hint {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.tap-badge {
    display: none;
    position: absolute;
    bottom: 46px;
    right: 10px;
    background: rgba(2, 91, 75, 0.80);
    color: #fff;
    font-size: 10px;
    padding: 3px 7px;
    border-radius: 20px;
    pointer-events: none;
}

@media (hover: none) {
    .tap-badge { display: block; }
}

/* ========================================= */
/* Media Grid & YouTube Thumbnails           */
/* ========================================= */

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.media-grid--video {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.yt-thumb {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
    text-decoration: none;
}

.yt-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
}

.yt-thumb:hover img {
    transform: scale(1.04);
    opacity: 1;
}

.yt-thumb .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background: #ff0000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.yt-thumb:hover .play-btn {
    background: #cc0000;
    transform: translate(-50%, -50%) scale(1.1);
}

.yt-thumb .play-btn svg {
    width: 24px;
    height: 24px;
    fill: #fff;
    margin-left: 4px;
}

.yt-thumb .yt-label {
    position: absolute;
    bottom: 10px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 11px;
    font-family: sans-serif;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Testimony grid */
.testimony-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.testimony-author {
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-top: 20px;
}

/* ========================================= */
/* Homepage-specific Classes                 */
/* ========================================= */

/* Section spacing */
.section-block {
    text-align: center;
    margin-bottom: 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-subtitle {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 40px;
}

.section-desc {
    max-width: 600px;
    margin: 12px auto 0;
}

.section-cta {
    text-align: center;
    margin-top: 36px;
}

.section-cta-top {
    text-align: center;
    margin-top: 32px;
}

/* Two-column layout with top alignment */
.grid-2-start {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: start;
}

/* Service cards grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

/* Individual service card */
.service-card-link-wrap {
    text-decoration: none;
    color: inherit;
}

.service-card {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 36px rgba(2, 91, 75, 0.18);
}

.service-card-link-wrap:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 14px;
}

.service-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.service-card-body {
    padding: 22px;
}

.service-card-body h3 {
    margin-top: 0;
    font-size: 1.15rem;
    color: var(--color-primary);
}

.service-card-body p {
    font-size: 0.92rem;
    color: var(--color-text-light);
    margin-bottom: 14px;
}

.service-card-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* News & Activities section */
.news-section {
    text-align: center;
    background: var(--color-light-bg);
    padding: 60px;
    border-radius: 8px;
    margin-bottom: 80px;
}

/* Directions section */
.directions-section {
    margin-bottom: 80px;
}

/* Map link */
.map-link {
    margin-top: 10px;
}

/* Animation delay variants */
.glass-panel-delayed {
    animation-delay: 0.2s;
}

.card-delayed {
    animation-delay: 0.15s;
}

/* Image gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

/* ========================================= */
/* Responsive Adjustments                    */
/* ========================================= */

@media (max-width: 768px) {
    .hero-section {
        padding: 120px 5% 60px;
    }
    .brand-name {
        font-size: 0.82rem;
    }
    .button {
        width: 100%;
    }
    .content-card {
        padding: 24px;
    }
    .resource-link {
        align-items: flex-start;
        flex-direction: column;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .news-section {
        padding: 30px 20px;
    }
    .page-container {
        padding: 40px 24px 60px;
    }
}

/* ========================================= */
/* Utility Classes                           */
/* ========================================= */

/* Page layout */
.page-main {
    padding-top: 40px;
    padding-bottom: 80px;
}

/* Spacing */
.mt-60 { margin-top: 60px; border: 0; border-top: 1px solid rgba(0,0,0,0.1); }
.mt-0 { margin-top: 0; }
.mt-80 { margin-top: 80px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* Text */
.text-center { text-align: center; }
.text-balance { text-wrap: balance; }

/* Article content */
.article-body {
    line-height: 1.9;
}

.article-title {
    margin-top: 0;
    display: block;
}

/* Section titles */
.section-title--center {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--color-primary);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.section-title--left {
    text-align: left;
    margin-bottom: 20px;
}

.section-subtitle--center {
    text-align: center;
    margin-bottom: 60px;
}

/* Images in cards */
.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Links with underline */
.link-underline {
    font-weight: bold;
    text-decoration: underline;
}

/* Ordered lists in cards */
.card-list {
    margin-left: 20px;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Section CTA */
.section-cta--mt {
    margin-top: 40px;
}

/* Intro text */
.intro-text {
    margin-top: 15px;
    font-weight: 500;
    color: var(--color-primary-dark);
}

/* Max width */
.max-w-700 {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
