/* ============================================
   Scotland County Ambulance District
   Modern Emergency Medical Services Website
   ============================================ */

/* --- Custom Properties --- */
:root {
    --terracotta: #C05A3A;
    --terracotta-dark: #A0482E;
    --terracotta-light: #D4785A;
    --sand: #D4B896;
    --sand-light: #E8D5BE;
    --sand-lighter: #F5EDE3;
    --sand-dark: #8A7060;
    --navy: #1C2D3A;
    --navy-light: #2A3F50;
    --charcoal: #2C2C2C;
    --warm-gray: #6B6560;
    --warm-gray-light: #9E9790;
    --cream: #FAF6F1;
    --white: #FFFFFF;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', 'Segoe UI', system-ui, sans-serif;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(28,45,58,0.06), 0 1px 2px rgba(28,45,58,0.04);
    --shadow-md: 0 4px 16px rgba(28,45,58,0.08), 0 2px 4px rgba(28,45,58,0.04);
    --shadow-lg: 0 12px 40px rgba(28,45,58,0.10), 0 4px 12px rgba(28,45,58,0.06);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--charcoal);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* --- Focus --- */
:focus-visible {
    outline: 2px solid var(--terracotta);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-sm);
    background: var(--terracotta);
    color: var(--white);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 600;
}
.skip-link:focus {
    top: var(--space-sm);
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--navy);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: var(--space-md);
}
.section-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--terracotta);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--navy);
}

.section-dek {
    font-size: 1.1rem;
    color: var(--warm-gray);
    max-width: 600px;
    line-height: 1.7;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.8rem 1.6rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--terracotta);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--terracotta-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    color: var(--navy);
    border-color: var(--sand-dark);
}
.btn-ghost:hover {
    background: var(--sand-light);
    border-color: var(--sand-dark);
}

.btn-emergency {
    background: var(--terracotta);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
}
.btn-emergency:hover {
    background: var(--terracotta-dark);
}

.btn-white {
    background: var(--white);
    color: var(--terracotta);
}
.btn-white:hover {
    background: var(--sand-lighter);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 246, 241, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 184, 150, 0.3);
    transition: var(--transition);
}
.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--navy);
}

.logo-mark {
    color: var(--terracotta);
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.logo-name {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--navy);
}

.logo-sub {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--warm-gray);
}

/* --- Nav --- */
.nav-toggle {
    display: none;
    color: var(--navy);
    padding: var(--space-xs);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-menu li a:not(.btn) {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--warm-gray);
    transition: color var(--transition);
    position: relative;
}
.nav-menu li a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--terracotta);
    transition: width var(--transition);
}
.nav-menu li a:not(.btn):hover {
    color: var(--navy);
}
.nav-menu li a:not(.btn):hover::after {
    width: 100%;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding-top: 72px;
    background: var(--cream);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    min-height: calc(100vh - 72px);
    padding: var(--space-3xl) 0;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sand-dark);
    margin-bottom: var(--space-lg);
}

.eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--terracotta);
    flex-shrink: 0;
}

.hero-headline {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--navy);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.01em;
}

.hero-dek {
    font-size: 1.125rem;
    color: var(--warm-gray);
    line-height: 1.75;
    margin-bottom: var(--space-xl);
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--sand-light);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--terracotta);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--warm-gray-light);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--sand-light);
}

/* --- Hero Image --- */
.hero-image {
    position: relative;
}

.hero-img-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-img-wrapper img {
    width: 100%;
    height: auto;
    aspect-ratio: 600/760;
    object-fit: cover;
    display: block;
}

.hero-accent {
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    background: var(--sand-light);
    border-radius: var(--radius-md);
    z-index: -1;
}

/* --- Sand Strip --- */
.hero-sand-strip {
    height: 8px;
    background: linear-gradient(90deg, var(--sand-light) 0%, var(--sand) 50%, var(--sand-light) 100%);
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    padding: var(--space-4xl) 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header .section-dek {
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.service-card {
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    transition: var(--transition);
    border: 1px solid transparent;
}
.service-card:hover {
    border-color: var(--sand-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.service-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sand-lighter);
    border-radius: var(--radius-sm);
    color: var(--terracotta);
    margin-bottom: var(--space-lg);
}

.service-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--navy);
}

.service-desc {
    font-size: 0.925rem;
    color: var(--warm-gray);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.service-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--terracotta);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap var(--transition);
}
.service-link:hover {
    gap: 8px;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    padding: var(--space-4xl) 0;
    background: var(--cream);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-3xl);
    align-items: start;
}

.about-image-col {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-img-main img {
    width: 100%;
    height: auto;
    aspect-ratio: 560/420;
    object-fit: cover;
    display: block;
}

.about-img-secondary {
    position: absolute;
    bottom: -30px;
    right: -20px;
    width: 55%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--cream);
}
.about-img-secondary img {
    width: 100%;
    height: auto;
    aspect-ratio: 320/220;
    object-fit: cover;
    display: block;
}

.about-content {
    padding-top: var(--space-xl);
}

.about-text {
    font-size: 1rem;
    color: var(--warm-gray);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.about-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.pillar {
    padding: var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--sand-light);
}

.pillar-number {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--terracotta);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: var(--space-xs);
}

.pillar-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--space-xs);
}

.pillar-desc {
    font-size: 0.85rem;
    color: var(--warm-gray);
    line-height: 1.65;
}

/* ============================================
   COVERAGE
   ============================================ */
.coverage {
    padding: var(--space-4xl) 0;
    background: var(--white);
}

.coverage-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.coverage-dek {
    font-size: 1.05rem;
    color: var(--warm-gray);
    line-height: 1.75;
    margin-bottom: var(--space-xl);
}

.coverage-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.coverage-list li {
    display: flex;
    align-items: baseline;
    gap: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--sand-lighter);
}
.coverage-list li:last-child {
    border-bottom: none;
}

.coverage-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--terracotta);
    flex-shrink: 0;
    margin-top: 8px;
}

.coverage-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    min-width: 140px;
}

.coverage-detail {
    font-size: 0.9rem;
    color: var(--warm-gray);
}

.coverage-map {
    margin-top: var(--space-xl);
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--terracotta);
    padding: var(--space-sm) var(--space-lg);
    border: 2px solid var(--terracotta);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.map-link:hover {
    background: var(--terracotta);
    color: var(--white);
}

.coverage-map-visual {
    background: var(--sand-lighter);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    width: 100%;
}

.map-grid {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--sand-light);
}

.map-caption {
    text-align: center;
    font-size: 0.8rem;
    color: var(--sand-dark);
    margin-top: var(--space-sm);
    font-style: italic;
}

/* ============================================
   COMMUNITY
   ============================================ */
.community {
    padding: var(--space-4xl) 0;
    background: var(--cream);
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.community-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.community-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

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

.community-card-content {
    padding: var(--space-lg);
}

.community-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--space-sm);
}

.community-card-content p {
    font-size: 0.9rem;
    color: var(--warm-gray);
    line-height: 1.7;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
    padding: var(--space-4xl) 0;
    background: var(--navy);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.cta-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.cta-dek {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    max-width: 480px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: var(--space-md);
    flex-shrink: 0;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    padding: var(--space-4xl) 0;
    background: var(--white);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-dek {
    font-size: 1.05rem;
    color: var(--warm-gray);
    line-height: 1.75;
    margin-bottom: var(--space-xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    text-decoration: none;
    transition: var(--transition);
}
.contact-item:hover .contact-value {
    color: var(--terracotta);
}

.contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sand-lighter);
    border-radius: var(--radius-sm);
    color: var(--terracotta);
    flex-shrink: 0;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--warm-gray-light);
    margin-bottom: 2px;
}

.contact-value {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--navy);
    line-height: 1.5;
}

/* --- Form --- */
.contact-form-wrap {
    background: var(--cream);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    border: 1px solid var(--sand-light);
}

.form-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: var(--space-xl);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.required {
    color: var(--terracotta);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.925rem;
    color: var(--charcoal);
    background: var(--white);
    border: 1.5px solid var(--sand-light);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition);
    appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--terracotta);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--warm-gray-light);
}

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

.form-disclaimer {
    font-size: 0.8rem;
    color: var(--warm-gray);
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}
.form-disclaimer a {
    color: var(--terracotta);
    font-weight: 600;
}

.form-success {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: #E8F5E9;
    border-radius: var(--radius-sm);
    color: #2E7D32;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: var(--space-md);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    color: var(--white);
}

.footer-logo .logo-mark {
    color: var(--sand);
}

.footer-name {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.footer-desc {
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.55);
}

.footer-heading {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sand);
    margin-bottom: var(--space-lg);
}

.footer-links ul,
.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a,
.footer-contact a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}
.footer-links a:hover,
.footer-contact a:hover {
    color: var(--white);
}

.footer-contact li {
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding-top: var(--space-xl);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

.footer-disclaimer {
    font-size: 0.75rem;
}

/* ============================================
   SCROLL REVEAL (progressive enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    .hero-image {
        max-width: 480px;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    .about-img-secondary {
        position: relative;
        bottom: auto;
        right: auto;
        width: 40%;
        margin-top: var(--space-md);
    }
    .coverage-layout {
        grid-template-columns: 1fr;
    }
    .coverage-map-visual {
        min-height: 350px;
    }
    .community-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250,246,241,0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: var(--space-xl);
        gap: var(--space-md);
        border-bottom: 1px solid var(--sand-light);
        transform: translateY(-120%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-md);
    }
    .nav-menu.open {
        transform: translateY(0);
    }
    .nav-menu li a:not(.btn) {
        font-size: 1rem;
    }
    .nav-menu li:last-child {
        width: 100%;
    }
    .nav-menu li:last-child a {
        justify-content: center;
        width: 100%;
    }
    .hero-grid {
        padding: var(--space-xl) 0;
        min-height: auto;
    }
    .hero-headline {
        font-size: clamp(1.6rem, 6vw, 2.25rem);
    }
    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-md);
    }
    .stat-divider {
        display: none;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .about-pillars {
        grid-template-columns: 1fr;
    }
    .about-img-secondary {
        width: 55%;
    }
    .community-grid {
        grid-template-columns: 1fr;
    }
    .cta-inner {
        flex-direction: column;
        text-align: center;
    }
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    .cta-actions .btn {
        justify-content: center;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        justify-content: center;
        width: 100%;
    }
    .hero-img-wrapper {
        border-radius: var(--radius-md);
    }
    .hero-accent {
        display: none;
    }
    .contact-form-wrap {
        padding: var(--space-lg);
    }
}
