/* ============================================
   Central Adams Fire Department — Stylesheet
   Palette: Terracotta + Sand | Serif Elegant
   ============================================ */

/* --- Custom Properties --- */
:root {
    /* Terracotta family */
    --color-terracotta-50: #fdf0ec;
    --color-terracotta-100: #fce4db;
    --color-terracotta-200: #f8c4b4;
    --color-terracotta-300: #f3a088;
    --color-terracotta-400: #ec7556;
    --color-terracotta-500: #B8543A;
    --color-terracotta-600: #a34832;
    --color-terracotta-700: #853a29;
    --color-terracotta-800: #6b3022;
    --color-terracotta-900: #57271c;
    --color-terracotta-950: #2d120c;

    /* Sand family */
    --color-sand-50: #fdfcfa;
    --color-sand-100: #faf6f0;
    --color-sand-200: #f3ebe0;
    --color-sand-300: #e8d9c5;
    --color-sand-400: #d9c3a5;
    --color-sand-500: #c4a77d;
    --color-sand-600: #b08f62;
    --color-sand-700: #91734e;
    --color-sand-800: #765d41;
    --color-sand-900: #624d37;

    /* Neutrals */
    --color-charcoal: #2a2420;
    --color-dark: #3d322c;
    --color-text: #4a3f38;
    --color-text-muted: #7a6e66;
    --color-text-light: #a89890;
    --color-border: #e8ddd4;
    --color-border-light: #f0e8df;
    --color-white: #ffffff;
    --color-bg-warm: #faf6f0;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Lora', 'Georgia', serif;
    --font-ui: 'Inter', system-ui, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Layout */
    --container-max: 1200px;
    --container-narrow: 800px;
    --header-height: 72px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(42, 36, 32, 0.06), 0 1px 2px rgba(42, 36, 32, 0.04);
    --shadow-md: 0 4px 16px rgba(42, 36, 32, 0.08), 0 2px 4px rgba(42, 36, 32, 0.04);
    --shadow-lg: 0 12px 40px rgba(42, 36, 32, 0.12), 0 4px 12px rgba(42, 36, 32, 0.06);
    --shadow-xl: 0 24px 60px rgba(42, 36, 32, 0.16);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-sand-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

input, select, textarea, button {
    font: inherit;
    color: inherit;
}

ul, ol {
    list-style: none;
}

a {
    color: var(--color-terracotta-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-terracotta-700);
}

/* --- Skip Link --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-md);
    background: var(--color-terracotta-700);
    color: var(--color-white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    z-index: 9999;
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 500;
}

.skip-link:focus {
    top: var(--space-md);
    color: var(--color-white);
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
}

@media (max-width: 480px) {
    .container {
        padding-left: var(--space-lg);
        padding-right: var(--space-lg);
    }
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-charcoal);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; font-family: var(--font-ui); font-weight: 600; }

p {
    margin-bottom: var(--space-lg);
}

/* --- Eyebrow --- */
.section-eyebrow {
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-terracotta-500);
    margin-bottom: var(--space-md);
    display: block;
}

/* --- Section Heading --- */
.section-heading {
    margin-bottom: var(--space-lg);
}

/* --- Section Subtitle --- */
.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.text-center { text-align: center; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-ui);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.8125rem 1.75rem;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-terracotta-500);
    color: var(--color-white);
    border-color: var(--color-terracotta-500);
}

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

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

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn-outline-dark {
    background: transparent;
    color: var(--color-terracotta-500);
    border-color: var(--color-terracotta-500);
}

.btn-outline-dark:hover {
    background: var(--color-terracotta-50);
    color: var(--color-terracotta-700);
}

.btn-full {
    width: 100%;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 246, 240, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-light);
    height: var(--header-height);
    transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

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

/* --- Logo --- */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    text-decoration: none;
    color: var(--color-charcoal);
}

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

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

.logo-main {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.logo-sub {
    font-family: var(--font-ui);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.logo-light { color: var(--color-white); }
.logo-light .logo-sub { color: rgba(255, 255, 255, 0.65); }
.logo-light .logo-icon { color: var(--color-terracotta-200); }

/* --- Navigation --- */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.main-nav a {
    font-family: var(--font-ui);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.main-nav a:hover {
    color: var(--color-terracotta-600);
    background: var(--color-terracotta-50);
}

.nav-cta {
    background: var(--color-terracotta-500) !important;
    color: var(--color-white) !important;
    font-weight: 600 !important;
    margin-left: var(--space-sm);
}

.nav-cta:hover {
    background: var(--color-terracotta-600) !important;
    color: var(--color-white) !important;
}

/* --- Nav Toggle --- */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-charcoal);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.hamburger {
    position: relative;
    margin: 0 auto;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
    background: var(--color-terracotta-950);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(45, 18, 12, 0.92) 0%,
        rgba(74, 63, 56, 0.85) 50%,
        rgba(45, 18, 12, 0.88) 100%
    );
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    width: 100%;
}

.hero-card {
    max-width: 640px;
    padding: var(--space-2xl) var(--space-2xl) var(--space-xl);
}

.hero-eyebrow {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-terracotta-300);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.hero-eyebrow::before {
    content: '';
    width: 40px;
    height: 1.5px;
    background: var(--color-terracotta-400);
}

.hero-card h1 {
    color: var(--color-white);
    margin-bottom: var(--space-lg);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-desc {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.75;
    margin-bottom: var(--space-2xl);
    max-width: 520px;
}

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

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-3xl);
}

.stat-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: center;
    transition: all var(--transition-base);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-terracotta-200);
    margin-bottom: var(--space-sm);
    line-height: 1;
}

.stat-label {
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* --- Section Base --- */
.section {
    padding: var(--space-4xl) 0;
}

/* --- About --- */
.about {
    background: var(--color-sand-50);
}

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

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

.about-image-wrap img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60%;
    height: 40%;
    background: var(--color-terracotta-100);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.6;
}

.about-content .section-heading {
    margin-bottom: var(--space-xl);
}

.about-intro {
    font-size: 1.0625rem;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.about-content > p:last-of-type {
    margin-bottom: var(--space-2xl);
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.feature-item {
    display: flex;
    gap: var(--space-lg);
}

.feature-icon {
    color: var(--color-terracotta-500);
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-item dt {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: var(--space-xs);
}

.feature-item dd {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.65;
}

/* --- Services --- */
.services {
    background: var(--color-white);
}

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

.service-card {
    background: var(--color-sand-50);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-terracotta-400);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.service-card:hover {
    border-color: var(--color-terracotta-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    color: var(--color-terracotta-500);
    margin-bottom: var(--space-lg);
}

.service-title {
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--color-charcoal);
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 0;
}

/* --- Community --- */
.community {
    background: var(--color-terracotta-950);
    color: var(--color-white);
}

.community-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.community-content .section-eyebrow {
    color: var(--color-terracotta-300);
}

.community-content .section-heading {
    color: var(--color-white);
    margin-bottom: var(--space-xl);
}

.community-intro {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.0625rem;
    margin-bottom: var(--space-2xl);
}

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

.community-list-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.6;
}

.list-marker {
    color: var(--color-terracotta-400);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.community-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.community-image-wrap img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Contact --- */
.contact {
    background: var(--color-sand-100);
}

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

.contact-info .section-heading {
    margin-bottom: var(--space-lg);
}

.contact-intro {
    color: var(--color-text-muted);
    margin-bottom: var(--space-2xl);
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

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

.contact-icon {
    color: var(--color-terracotta-500);
    margin-bottom: var(--space-xs);
}

.contact-detail dt {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

.contact-detail dd {
    font-size: 1rem;
    color: var(--color-charcoal);
    line-height: 1.6;
}

.contact-detail a {
    color: var(--color-terracotta-600);
    text-decoration: none;
}

.contact-detail a:hover {
    color: var(--color-terracotta-700);
    text-decoration: underline;
}

/* --- Contact Form --- */
.contact-form-wrap {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border-light);
}

.form-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-charcoal);
    margin-bottom: var(--space-xl);
}

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

.form-group label {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-sand-50);
    color: var(--color-charcoal);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-terracotta-400);
    box-shadow: 0 0 0 3px rgba(184, 84, 58, 0.1);
    background: var(--color-white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-light);
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%237a6e66' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group-full { grid-column: 1 / -1; }

.form-note {
    font-size: 0.8125rem;
    color: var(--color-text-light);
    margin-top: var(--space-md);
    margin-bottom: 0;
}

.form-success {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--color-terracotta-700);
}

.form-success h4 {
    font-size: 1.25rem;
    margin: var(--space-md) 0 var(--space-sm);
    color: var(--color-terracotta-700);
}

.form-success p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

/* --- Footer --- */
.site-footer {
    background: var(--color-charcoal);
    color: rgba(255, 255, 255, 0.7);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand p {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: var(--space-lg);
    margin-bottom: 0;
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--color-white);
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.footer-contact p {
    font-size: 0.9375rem;
    margin-bottom: var(--space-sm);
    line-height: 1.65;
}

.footer-contact a {
    color: var(--color-terracotta-300);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--color-terracotta-200);
    text-decoration: underline;
}

.footer-emergency {
    margin-top: var(--space-md) !important;
    font-weight: 600;
    color: var(--color-terracotta-400) !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    font-family: var(--font-ui);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0;
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 44px;
    height: 44px;
    background: var(--color-terracotta-500);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition-base);
    z-index: 900;
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-terracotta-600);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* --- Scroll Reveal (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(250, 246, 240, 0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--color-border);
        padding: var(--space-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        gap: var(--space-xs);
    }

    .main-nav a {
        display: block;
        padding: var(--space-md);
        width: 100%;
    }

    .nav-cta {
        margin-left: 0 !important;
        text-align: center;
        margin-top: var(--space-sm);
    }

    /* Hero mobile */
    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + var(--space-xl));
        padding-bottom: var(--space-2xl);
    }

    .hero-content {
        display: flex;
        flex-direction: column;
    }

    .hero-card {
        padding: 0;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        margin-top: var(--space-2xl);
    }

    .stat-card {
        display: flex;
        align-items: center;
        gap: var(--space-lg);
        text-align: left;
        padding: var(--space-lg);
    }

    .stat-number {
        font-size: 1.5rem;
        margin-bottom: 0;
    }

    /* About mobile */
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .about-image-wrap {
        order: -1;
    }

    .about-image-accent {
        display: none;
    }

    /* Services mobile */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Community mobile */
    .community-split {
        grid-template-columns: 1fr;
    }

    .community-image-wrap {
        order: -1;
    }

    /* Contact mobile */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-details {
        grid-template-columns: 1fr;
    }

    /* Footer mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .community-cta {
        flex-direction: column;
    }

    .community-cta .btn {
        width: 100%;
    }
}
