﻿/* ===================================
   POPZ Landing Page - Design System
   Adoptuj Psiaka - Polska Organizacja Pomocy Zwierzętom
   =================================== */

/* --- CSS Variables (Design Tokens) --- */
:root {
    /* Colors - Warm, Hopeful Palette */
    --primary: #E67E22;
    --primary-dark: #D35400;
    --primary-light: #F39C12;
    --secondary: #2C3E50;
    --secondary-light: #34495E;
    --accent: #27AE60;
    --accent-light: #2ECC71;

    /* Backgrounds */
    --bg-warm: #FDF6E3;
    --bg-white: #FFFFFF;
    --bg-cream: #FEF9F3;
    --bg-light: #F8F5F0;

    /* Text */
    --text-dark: #2C3E50;
    --text-body: #4A4A4A;
    --text-muted: #7F8C8D;
    --text-light: #FFFFFF;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #E67E22 0%, #F39C12 100%);
    --gradient-warm: linear-gradient(135deg, #FDF6E3 0%, #FEF9F3 100%);
    --gradient-hero: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 30px rgba(230, 126, 34, 0.3);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 50%;

    /* Typography */
    --font-primary: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-body);
    background-color: var(--bg-warm);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    color: var(--text-dark);
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h4 {
    font-size: 1.125rem;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* --- Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.875rem 1.75rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: var(--text-light);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--text-light);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-light);
}

.btn-facebook {
    background: #1877F2;
    color: var(--text-light);
}

.btn-facebook:hover {
    background: #166FE5;
    color: var(--text-light);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

.btn-nav {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn-nav-wesprzyj {
    color: var(--primary) !important;
    font-weight: 700;
    position: relative;
}

.btn-nav-wesprzyj::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.btn-nav-wesprzyj:hover::after {
    transform: scaleX(1);
}

.btn-nav-wesprzyj:hover {
    color: var(--primary-dark) !important;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 120px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-img {
    height: 100px;
    width: auto;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9375rem;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-base);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* --- Hero Section --- */
/* Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: var(--primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    z-index: 9999;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 1rem;
    color: #fff;
}

/* Screen-reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Cookie Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: var(--secondary);
    color: var(--text-light);
    padding: var(--space-md) var(--space-lg);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.cookie-text p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.cookie-text a {
    color: var(--primary-light);
}

.cookie-actions {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100svh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('images/13.webp') center/cover no-repeat;
    color: var(--text-light);
    text-align: center;
    overflow: hidden;
}

/* Page Hero used on subpages (like Survey) */
.hero-page {
    position: relative;
    padding-top: 160px;
    padding-bottom: 100px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.65)), url('/images/ankieta-hero.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-light);
    text-align: center;
}

.hero-page-content {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: var(--space-lg);
}

.hero-title {
    color: var(--text-light);
    margin-bottom: var(--space-md);
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-title .highlight {
    color: var(--primary-light);
    display: block;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--space-xl);
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-light);
    font-size: 0.875rem;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

.scroll-indicator {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-light);
    border-radius: 15px;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 10px;
    background: var(--text-light);
    border-radius: 3px;
    animation: scroll 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 8px;
    }

    100% {
        opacity: 0;
        top: 25px;
    }
}

/* --- Sections --- */
.section {
    padding: var(--space-2xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-label {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-sm);
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-desc {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
}

/* --- About Section --- */
.section-about {
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
    margin-bottom: var(--space-xl);
}

.about-text p {
    margin-bottom: var(--space-md);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.stat-card {
    background: var(--bg-cream);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
}

.locations {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.location-card {
    background: var(--gradient-warm);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 2px solid rgba(230, 126, 34, 0.2);
}

.location-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.location-card h3 {
    margin-bottom: var(--space-xs);
}

.location-card p {
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.location-phone {
    font-weight: 700;
    color: var(--primary);
}

/* --- Gallery Section --- */
.section-gallery {
    background: var(--bg-cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.gallery-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item-wide {
    grid-column: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item img.img-crop-top {
    object-position: center top;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: var(--space-md);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9375rem;
}

.gallery-cta {
    text-align: center;
}

/* --- Impact Section --- */
.section-impact {
    background: var(--bg-white);
}

.impact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.impact-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.impact-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.impact-content p {
    margin-bottom: var(--space-md);
}

.impact-quote {
    margin-top: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg-cream);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-sm);
}

.impact-quote blockquote {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-dark);
}

/* --- News / Facebook Section --- */
.section-news {
    background: var(--bg-cream);
}

.facebook-feed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.fb-page-container {
    background: var(--bg-white);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    justify-content: center;
    min-height: 700px;
}

.fb-page-container iframe {
    border-radius: var(--radius-md);
}

.fb-cta {
    background: var(--bg-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.fb-cta h3 {
    margin-bottom: var(--space-sm);
}

.fb-cta p {
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

/* --- Help Section --- */
.section-help {
    background: var(--bg-white);
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.help-card {
    background: var(--bg-cream);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.help-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.help-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.help-card h3 {
    margin-bottom: var(--space-sm);
}

.help-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: var(--space-md);
}

.help-link {
    font-weight: 700;
    font-size: 0.9375rem;
}

/* --- Volunteer Section --- */
.section-volunteer {
    background: var(--gradient-primary);
    color: var(--text-light);
}

.volunteer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.volunteer-content .section-label {
    color: rgba(255, 255, 255, 0.8);
}

.volunteer-content .section-title {
    color: var(--text-light);
}

.volunteer-content p {
    margin-bottom: var(--space-md);
    opacity: 0.9;
}

.volunteer-content .btn-primary {
    background: var(--bg-white);
    color: var(--primary);
}

.volunteer-content .btn-primary:hover {
    background: var(--bg-cream);
}

.volunteer-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.volunteer-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* --- Adoption Form Section --- */
.section-adopt {
    background: var(--bg-cream);
}

.adopt-form-container {
    max-width: 700px;
    margin: 0 auto;
}

/* adopt-form within survey page - no card, wrapper is the card */
.section-survey .adopt-form {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

/* adopt-form on standalone contact section - keep card */
.adopt-form {
    background: var(--bg-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem var(--space-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    border: 2px solid #E0E0E0;
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.form-checkbox input {
    width: auto;
    margin-top: 4px;
}

.form-checkbox label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.form-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: var(--space-md);
}

/* --- Report Section --- */
.section-report {
    background: var(--bg-white);
    padding: var(--space-xl) 0;
}

.report-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.report-card {
    background: linear-gradient(135deg, #FEF1E6 0%, #FDE8D8 100%);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 2px solid rgba(230, 126, 34, 0.3);
}

.report-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.report-card h3 {
    margin-bottom: var(--space-sm);
}

.report-card p {
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

/* --- Contact Section --- */
.section-contact {
    background: var(--bg-cream);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-xl);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-item h4 {
    margin-bottom: var(--space-xs);
}

.contact-item a,
.contact-item p {
    color: var(--text-body);
}

.contact-social h4 {
    margin-bottom: var(--space-sm);
}

.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--bg-white);
    border-radius: var(--radius-full);
    color: var(--text-dark);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.social-link:hover {
    background: var(--primary);
    color: var(--text-light);
    transform: translateY(-3px);
}

.contact-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    align-self: start;
}

/* --- Contact Form in Contact Section --- */
.contact-form-wrapper {
    margin-top: var(--space-sm);
}

.contact-form-wrapper h3 {
    margin-bottom: var(--space-md);
}

.contact-form .form-group {
    margin-bottom: var(--space-sm);
}

/* --- Newsletter Section --- */
.section-newsletter {
    background: var(--gradient-primary);
    color: var(--text-light);
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-xl);
    align-items: center;
}

.newsletter-text .section-label {
    color: rgba(255, 255, 255, 0.8);
}

.newsletter-text .section-title {
    color: var(--text-light);
}

.newsletter-text p {
    opacity: 0.9;
    margin-top: var(--space-sm);
}

.newsletter-form {
    background: rgba(255, 255, 255, 0.12);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.newsletter-inputs {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.newsletter-inputs .form-group {
    flex: 1;
    margin-bottom: 0;
}

.newsletter-inputs input {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
}

.newsletter-form .form-checkbox label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
}

.newsletter-form .form-checkbox a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
}

/* --- FAQ Section --- */
.section-faq {
    background: var(--bg-white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 2px solid #F0EBE4;
    margin-bottom: 0;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: left;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform var(--transition-base);
    color: var(--primary);
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
}

.faq-item.open .faq-question {
    color: var(--primary);
}

.faq-answer {
    display: none;
    padding-bottom: var(--space-md);
    color: var(--text-body);
    line-height: 1.8;
}

.faq-answer p {
    margin-bottom: var(--space-sm);
}

.faq-answer ul {
    padding-left: var(--space-md);
    margin-top: var(--space-xs);
}

.faq-answer li {
    margin-bottom: var(--space-xs);
}

.faq-item.open .faq-answer {
    display: block;
}


/* btn-link (looks like a link, semantic button) */
.btn-link {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: inherit;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.btn-link:hover {
    color: var(--primary-light);
}

/* form-honeypot (hidden from humans) */
.form-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* form-status message */
.form-status {
    text-align: center;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    min-height: 1.4em;
}

.form-status.success {
    color: var(--accent);
}

.form-status.error {
    color: #c0392b;
}

/* --- Footer --- */
.footer {
    background: var(--secondary);
    color: var(--text-light);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-logo {
    height: 100px;
    width: auto;
    margin-bottom: var(--space-sm);
}

.footer-tagline {
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.footer-mission {
    opacity: 0.8;
    font-size: 0.9375rem;
}

.footer-links h4,
.footer-legal h4,
.footer-contact h4 {
    color: var(--text-light);
    margin-bottom: var(--space-md);
}

.footer-links ul,
.footer-legal ul {
    list-style: none;
}

.footer-links li,
.footer-legal li {
    margin-bottom: var(--space-sm);
}

.footer-links a,
.footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.footer-legal-inline {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.footer-legal-inline a {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.footer-legal-inline a:hover {
    color: var(--primary-light);
}

.footer-contact p,
.footer-contact address {
    opacity: 0.8;
    margin-bottom: var(--space-xs);
    font-size: 0.9375rem;
    font-style: normal;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.7;
}

.footer-hearts {
    margin-top: var(--space-xs);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {

    .about-content,
    .impact-grid,
    .facebook-feed,
    .volunteer-grid,
    .contact-grid,
    .newsletter-content {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .help-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .newsletter-inputs {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    /* Navbar shrinks on mobile */
    .nav-container {
        height: 70px;
    }

    .logo-img {
        height: 50px;
        width: auto;
    }

    .logo-text {
        font-size: 1rem;
    }

    /* Hamburger menu opens just below the 70px navbar */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-sm);
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 0.6rem 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .btn-nav {
        margin-top: 0.5rem;
        display: inline-flex;
        width: auto;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Scroll padding adjusted to match smaller mobile nav */
    html {
        scroll-padding-top: 70px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .locations {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .gallery-item-wide {
        grid-column: span 2;
    }

    .help-grid {
        grid-template-columns: 1fr;
    }

    .report-cards {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-contact {
        align-items: center;
    }

    .footer-legal-inline {
        justify-content: center;
    }

    .fb-page-container {
        min-height: 0;
    }

    .fb-page-container iframe {
        width: 100%;
        max-width: 350px;
        height: 500px;
    }

    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-actions {
        justify-content: center;
    }

    .faq-question {
        font-size: 1rem;
    }

    /* Section padding reduction */
    .section {
        padding: var(--space-2xl) 0;
    }

    /* Hero adjustments */
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .nav-container {
        height: 60px;
    }

    .logo-img {
        height: 40px;
    }

    .logo-text {
        display: none;
    }

    /* Hamburger menu now just below 60px navbar */
    .nav-menu {
        top: 60px;
        max-height: calc(100vh - 60px);
    }

    .hero-scroll {
        display: none;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item-large,
    .gallery-item-wide {
        grid-column: span 1;
    }

    /* Subpage hero padding */
    .hero-page {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    /* Support page images stacked */
    .support-images {
        grid-template-columns: 1fr;
    }

    /* Buttons stacked on small screens */
    .support-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons {
        gap: var(--space-sm);
    }

    .btn-large {
        width: 100%;
    }

    /* Form adjustments */
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* --- JS-driven Scroll Animations (no inline styles) --- */
.will-animate {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.will-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar scrolled state */
.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Keyboard focus outline for accessibility */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* --- Print Styles --- */
@media print {

    .navbar,
    .cookie-banner,
    .hero-scroll,
    .btn,
    .footer {
        display: none;
    }

    body {
        font-size: 12pt;
        color: #000;
    }
}

/* --- Adoption Survey Specific Styles --- */
.survey-intro-text {
    max-width: 800px;
    margin: var(--space-lg) auto 0;
    text-align: left;
    background: rgba(0, 0, 0, 0.4);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
}

.survey-intro-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    color: white;
}

.survey-intro-item {
    margin-bottom: var(--space-xs);
}

.survey-form-wrapper {
    max-width: 860px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: var(--space-xl) var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: translateY(-40px);
}

/* section-survey has cream background so single white card stands out */
.section-survey {
    background: var(--bg-warm);
}

.survey-section-title {
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: var(--space-xs);
    margin-bottom: var(--space-md);
    color: var(--text-heading);
}

.survey-form-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: -5px;
    margin-bottom: 5px;
}

.radio-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: var(--space-xs);
    align-items: flex-start;
}

.radio-label-normal {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
    line-height: 1.4;
    text-align: left;
    width: 100%;
}

.radio-label-normal input[type="radio"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary);
}

.conditional-field {
    display: none;
    background: var(--bg-cream);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
}

.survey-consent-section {
    margin-top: var(--space-xl);
    background: var(--bg-cream);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
}

.survey-mt-sm {
    margin-top: var(--space-sm);
}

.survey-mt-md {
    margin-top: var(--space-md);
}

.survey-mt-xl {
    margin-top: var(--space-xl);
}

.survey-text-center {
    text-align: center;
}

/* Mobile: single card, full-width, cream section background */
@media (max-width: 768px) {
    .section-survey {
        background: var(--bg-warm);
        padding-top: 0;
        padding-bottom: var(--space-lg);
    }

    .survey-form-wrapper {
        transform: none;
        border-radius: var(--radius-md);
        padding: var(--space-lg) var(--space-md);
        max-width: 100%;
        margin: 0 var(--space-sm);
    }

    .survey-section-title {
        font-size: 1.2rem;
    }

    .form-group label {
        font-size: 0.95rem;
    }

    .radio-label-normal {
        font-size: 0.95rem;
    }
}

/* --- Directions Section (under contact map) --- */
.directions-section {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-cream);
    border-radius: var(--radius-md);
    box-shadow: none;
    border: 1px solid var(--border-color);
}

.directions-section h3 {
    color: var(--text-dark);
    margin-bottom: var(--space-sm);
    font-size: 1.15rem;
}

.directions-section p {
    margin-bottom: var(--space-xs);
    color: var(--text-body);
    font-size: 0.9rem;
    line-height: 1.4;
}

.directions-list {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--text-body);
    font-size: 0.9rem;
}

.directions-list li {
    margin-bottom: 2px;
}

.directions-gallery {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.directions-gallery img {
    width: 50%;
    height: 270px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    object-fit: cover;
    cursor: pointer;
    transition: transform var(--transition-bounce), box-shadow var(--transition-fast);
}

.directions-gallery img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

/* --- Lightbox Modal --- */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius-sm);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1001;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--accent);
    text-decoration: none;
}

/* --- Footer Creator Logo --- */
.footer-creator-logo {
    height: 28px;
    vertical-align: middle;
    margin-left: 6px;
    margin-right: 4px;
    position: relative;
    top: -2px;
    transition: transform var(--transition-bounce), opacity var(--transition-fast);
    display: inline-block;
    opacity: 0.9;
}

.footer-creator-logo:hover {
    transform: scale(1.1);
    opacity: 1;
}