/* ===========================
   Nichole for Nederland
   Campaign Website Styles
   Mountain Town Theme
   =========================== */

/* CSS Variables - Mountain Color Palette */
:root {
    --pine-dark: #1a3a2f;
    --pine: #2d5a4a;
    --pine-light: #3d7a64;
    --forest: #4a7c59;
    --sage: #87a96b;
    --sky-light: #e8f4f8;
    --sky: #a8d5e5;
    --snow: #fafbfc;
    --stone: #6b7280;
    --stone-light: #9ca3af;
    --bark: #5d4e37;
    --cream: #f5f1eb;
    --warm-white: #fffef9;
    --shadow: rgba(26, 58, 47, 0.1);
    --shadow-dark: rgba(26, 58, 47, 0.2);

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Cabin', -apple-system, BlinkMacSystemFont, sans-serif;

    --transition: 0.3s ease;
    --radius: 8px;
    --radius-lg: 16px;
}

/* ===========================
   Accessibility
   =========================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--pine-dark);
    color: white;
    padding: 12px 24px;
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 var(--radius) 0;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--sage);
    outline-offset: 2px;
}

/* Screen reader only text */
.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;
}

/* Focus visible styles for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--pine);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--pine);
    outline-offset: 2px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--pine-dark);
    background-color: var(--warm-white);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

/* Prevent text overflow */
p, h1, h2, h3, h4, h5, h6, li, span {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--pine);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--forest);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--pine-dark);
    margin-bottom: 16px;
}

.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--pine-light), var(--sage));
    margin: 0 auto 16px;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--stone);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--pine-dark);
    border-color: var(--pine-dark);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--pine-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--pine);
    border-color: var(--pine);
}

.btn-outline:hover {
    background-color: var(--pine);
    color: white;
}

/* ===========================
   Navigation
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 254, 249, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--shadow);
    transition: all var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pine-dark);
}

.logo span {
    color: var(--forest);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--pine-dark);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--forest);
    transition: width var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--pine-dark);
    transition: all var(--transition);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 80px;
    background: linear-gradient(135deg, var(--pine-dark) 0%, var(--pine) 50%, var(--pine-light) 100%);
    overflow: hidden;
}

/* Mountain Range */
.mountain-range {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 250px;
    pointer-events: none;
}

.mountain {
    position: absolute;
    bottom: 0;
    background: rgba(30, 70, 50, 0.9);
}

.m1 {
    left: 0;
    width: 20%;
    height: 120px;
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

.m2 {
    left: 12%;
    width: 25%;
    height: 160px;
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

.m3 {
    left: 35%;
    width: 30%;
    height: 200px;
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
    background: rgba(25, 60, 45, 0.95);
}

.m4 {
    left: 58%;
    width: 25%;
    height: 150px;
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

.m5 {
    left: 78%;
    width: 24%;
    height: 130px;
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

/* Ski runs on center mountain - subtle curvy SVG paths */
.m3 .ski-runs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.m3 .ski-runs path {
    fill: none;
    stroke: rgba(50, 90, 70, 0.5);
    stroke-width: 1.5;
    stroke-linecap: round;
}


.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 24px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.tagline {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.scroll-indicator .arrow {
    width: 24px;
    height: 24px;
    margin: 12px auto 0;
    border-left: 2px solid rgba(255, 255, 255, 0.7);
    border-bottom: 2px solid rgba(255, 255, 255, 0.7);
    transform: rotate(-45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(-45deg); }
    40% { transform: translateY(10px) rotate(-45deg); }
    60% { transform: translateY(5px) rotate(-45deg); }
}

/* ===========================
   About Section
   =========================== */
.about {
    padding: 100px 0;
    background-color: var(--warm-white);
    overflow: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-placeholder {
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--cream) 0%, var(--sky-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--stone-light);
    font-size: 1.25rem;
    border: 3px dashed var(--stone-light);
}

/* Photo Gallery */
.photo-gallery {
    width: 100%;
    max-width: 550px;
    overflow: hidden;
}

.main-photo {
    position: relative;
    margin-bottom: 16px;
    overflow: hidden;
}

.photo-frame {
    overflow: hidden;
    border-radius: var(--radius-lg);
    max-width: 100%;
}

.main-photo img {
    width: 100%;
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    background: var(--cream);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px var(--shadow-dark);
}

.photo-caption {
    margin-top: 12px;
    padding: 12px 16px;
    background: var(--cream);
    border-radius: var(--radius);
    color: var(--stone);
    font-size: 0.9375rem;
    font-style: italic;
    text-align: center;
    min-height: 48px;
}

.thumbnail-strip {
    display: flex;
    gap: 8px;
    overflow-x: scroll;
    padding: 8px 0 12px;
    scrollbar-width: auto;
    scrollbar-color: var(--pine-light) var(--cream);
}

.thumbnail-strip::-webkit-scrollbar {
    height: 10px;
    display: block;
}

.thumbnail-strip::-webkit-scrollbar-track {
    background: var(--cream);
    border-radius: 5px;
}

.thumbnail-strip::-webkit-scrollbar-thumb {
    background: var(--pine-light);
    border-radius: 5px;
    border: 2px solid var(--cream);
}

.thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    opacity: 0.7;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--pine);
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text h3 {
    font-size: 1.75rem;
    color: var(--pine-dark);
    margin-bottom: 24px;
}

.about-text p {
    color: var(--stone);
    margin-bottom: 16px;
    font-size: 1.0625rem;
}

.about-highlights {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--cream);
}

.highlight {
    text-align: center;
}

.highlight-number {
    display: block;
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--pine);
}

.highlight-text {
    font-size: 0.875rem;
    color: var(--stone);
}

/* ===========================
   Accomplishments Section
   =========================== */
.accomplishments {
    padding: 100px 0;
    background-color: var(--sky-light);
}

.accomplishments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Flip Cards */
.flip-card {
    background-color: transparent;
    height: 380px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 32px;
    text-align: center;
}

.flip-card-front {
    background: white;
}

.flip-card-front h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--pine-dark);
    margin: 0;
    line-height: 1.4;
}

.flip-card-back {
    background: linear-gradient(135deg, var(--pine) 0%, var(--pine-dark) 100%);
    color: white;
    transform: rotateY(180deg);
    overflow-y: auto;
    justify-content: flex-start;
    padding-top: 24px;
}

.flip-card-back p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
}

.flip-card-back a {
    color: var(--sky);
    text-decoration: underline;
}

.flip-card-back a:hover {
    color: white;
}

.flip-hint {
    font-size: 0.8rem;
    color: var(--stone-light);
    margin-top: 16px;
    opacity: 0.7;
}

.flip-card-back .flip-hint {
    color: rgba(255, 255, 255, 0.6);
}

.flip-card:hover .flip-card-inner {
    box-shadow: 0 8px 30px var(--shadow-dark);
}

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

@media (max-width: 600px) {
    .accomplishments-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   Priorities Section
   =========================== */
.priorities {
    padding: 100px 0;
    background-color: var(--cream);
}

.priorities-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.priority-tile {
    background: white;
    padding: 32px 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.priority-tile:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 30px var(--shadow-dark);
}

.priority-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.priority-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--pine-light), var(--sage));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.priority-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.priority-tile h3 {
    font-size: 1.35rem;
    color: var(--pine-dark);
    margin: 0;
}

.priority-tile p {
    color: var(--stone);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* ===========================
   Events Section
   =========================== */
.events {
    padding: 100px 0;
    background-color: var(--warm-white);
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.event-card {
    display: flex;
    gap: 32px;
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform var(--transition);
}

.event-card:hover {
    transform: translateX(8px);
}

.event-date {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--pine), var(--pine-light));
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.event-date .month {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.event-date .day {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.event-details h3 {
    font-size: 1.25rem;
    color: var(--pine-dark);
    margin-bottom: 8px;
}

.event-location {
    font-weight: 600;
    color: var(--forest);
    margin-bottom: 4px;
}

.event-time {
    color: var(--stone);
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.event-description {
    color: var(--stone);
    font-size: 0.9375rem;
}

/* ===========================
   FAQ Section
   =========================== */
.faq {
    padding: 100px 0;
    background-color: var(--sky-light);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow);
}

.faq-question {
    width: 100%;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--pine-dark);
    transition: background-color var(--transition);
}

.faq-question:hover {
    background-color: var(--cream);
}

.faq-icon {
    width: 24px;
    height: 24px;
    color: var(--pine);
    transition: transform var(--transition);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 32px 24px;
    color: var(--stone);
    line-height: 1.7;
}

/* ===========================
   Endorsements Section
   =========================== */
.endorsements {
    padding: 100px 0;
    background-color: var(--pine-dark);
}

.endorsements .section-header h2 {
    color: white;
}

.endorsements .divider {
    background: linear-gradient(90deg, var(--sage), var(--sky));
}

.endorsements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.endorsement-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.endorsement-quote {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.0625rem;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 24px;
}

.endorsement-author {
    color: var(--sage);
    font-weight: 600;
}

/* ===========================
   Get Involved Section
   =========================== */
.involved {
    padding: 100px 0;
    background-color: var(--warm-white);
}

.involved-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.involved-card {
    background: white;
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform var(--transition);
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.involved-card .btn,
.involved-card button.btn {
    margin-top: auto;
    width: 140px;
    height: 46px;
    padding: 0 16px;
    align-self: center;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.involved-card:hover {
    transform: translateY(-8px);
}

.involved-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--sky-light), var(--sky));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.involved-icon svg {
    width: 28px;
    height: 28px;
    color: var(--pine);
}

.involved-card h3 {
    font-size: 1.1rem;
    color: var(--pine-dark);
    margin-bottom: 10px;
}

.involved-card p {
    color: var(--stone);
    font-size: 0.875rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Quote Flip Card */
.quote-card {
    padding: 0;
    perspective: 1000px;
    background: transparent;
    box-shadow: none;
}

.quote-card:hover {
    transform: none;
}

.quote-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.quote-card.flipped .quote-card-inner {
    transform: rotateY(180deg);
}

.quote-card-front,
.quote-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    text-align: center;
}

.quote-card-front {
    background: white;
}

.quote-card-front .btn {
    width: 140px;
    height: 46px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.quote-card-back {
    background: linear-gradient(135deg, var(--pine) 0%, var(--pine-dark) 100%);
    transform: rotateY(180deg);
    justify-content: space-between;
    padding: 24px 16px;
}

.quote-text {
    color: white !important;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.quote-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
}

.quote-nav {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
}

.quote-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.quote-nav svg {
    width: 20px;
    height: 20px;
    color: white;
}

.quote-copy {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: var(--radius);
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background var(--transition);
    color: white;
    font-size: 0.85rem;
    font-family: var(--font-body);
}

.quote-copy:hover {
    background: rgba(255, 255, 255, 0.3);
}

.quote-copy svg {
    width: 16px;
    height: 16px;
}

.quote-back-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 8px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    transition: all var(--transition);
}

.quote-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

/* ===========================
   Contact Section
   =========================== */
.contact {
    padding: 100px 0;
    background-color: var(--cream);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: var(--pine-dark);
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--stone);
    margin-bottom: 32px;
}

.contact-details {
    margin-bottom: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    color: var(--pine-dark);
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--pine);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 48px;
    height: 48px;
    background: var(--pine);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition), transform var(--transition);
}

.social-link:hover {
    background: var(--pine-dark);
    transform: translateY(-4px);
}

.social-link svg {
    width: 24px;
    height: 24px;
    color: white;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px var(--shadow);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--pine-dark);
    margin-bottom: 8px;
}

.form-group label .required {
    color: #c53030;
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--cream);
    border-radius: var(--radius);
    background: var(--warm-white);
    color: var(--pine-dark);
    transition: border-color var(--transition);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%232d5a4a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 44px;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--pine);
}

.form-group textarea {
    resize: vertical;
}

.checkbox-group {
    margin-bottom: 24px;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--pine);
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
    vertical-align: middle;
}

.checkbox-label span {
    color: var(--stone);
    font-size: 0.9375rem;
    line-height: 1;
    vertical-align: middle;
}

.contact-form .btn {
    width: 100%;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background-color: var(--pine-dark);
    color: white;
    padding: 60px 0 24px;
}

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

.footer-logo .logo {
    color: white;
    font-size: 1.75rem;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer-bottom p {
    margin-bottom: 4px;
}

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

    .involved-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--warm-white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: 0 4px 20px var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }

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

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1.125rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 8px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        max-width: 100%;
        margin: 0 auto;
        overflow: hidden;
    }

    .photo-gallery {
        max-width: 100%;
        overflow: hidden;
    }

    .main-photo {
        overflow: hidden;
    }

    .photo-frame {
        overflow: hidden;
    }

    .main-photo img {
        max-height: 350px;
        max-width: 100%;
        transform: none !important; /* Disable zoom on mobile to prevent overflow */
    }

    .thumbnail {
        width: 50px;
        height: 50px;
    }

    .about-highlights {
        justify-content: center;
        flex-wrap: wrap;
    }

    .highlight {
        min-width: 100px;
    }

    /* Flip cards mobile */
    .flip-card {
        height: auto;
        min-height: 320px;
    }

    .flip-card-front,
    .flip-card-back {
        position: relative;
        padding: 24px 20px;
    }

    .flip-card-back {
        position: absolute;
    }

    .flip-card-front h3 {
        font-size: 1.1rem;
    }

    .flip-card-back p {
        font-size: 0.9rem;
    }

    /* Quote cards mobile */
    .quote-card-inner {
        min-height: 280px;
    }

    .quote-card-front,
    .quote-card-back {
        padding: 20px 16px;
    }

    .quote-text {
        font-size: 0.9rem;
    }

    .priority-tile {
        padding: 24px;
    }

    .priority-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .priority-tile h3 {
        font-size: 1.2rem;
    }

    .event-card {
        flex-direction: column;
        gap: 16px;
    }

    .event-date {
        width: 100%;
        height: auto;
        flex-direction: row;
        gap: 8px;
        padding: 12px;
    }

    .event-date .day {
        font-size: 1.5rem;
    }

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

    .involved-options {
        grid-template-columns: 1fr;
    }

    .involved-card {
        padding: 24px 20px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 100px 16px 60px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

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

    .section-header {
        margin-bottom: 32px;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .about,
    .accomplishments,
    .priorities,
    .events,
    .faq,
    .endorsements,
    .involved,
    .contact {
        padding: 60px 0;
    }

    .about-text h3 {
        font-size: 1.4rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .about-highlights {
        flex-direction: column;
        gap: 24px;
    }

    .highlight-number {
        font-size: 2rem;
    }

    /* Flip cards small mobile */
    .flip-card {
        min-height: 280px;
    }

    .flip-card-front h3 {
        font-size: 1rem;
    }

    .flip-card-back p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .flip-hint {
        font-size: 0.75rem;
    }

    /* Quote cards small mobile */
    .quote-card-inner {
        min-height: 260px;
    }

    .quote-text {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .quote-controls {
        gap: 8px;
    }

    .quote-nav {
        width: 40px;
        height: 40px;
    }

    /* Priority tiles small mobile */
    .priority-tile {
        padding: 20px 16px;
    }

    .priority-icon {
        width: 40px;
        height: 40px;
    }

    .priority-icon svg {
        width: 20px;
        height: 20px;
    }

    .priority-tile h3 {
        font-size: 1.1rem;
    }

    .priority-tile p {
        font-size: 0.9rem;
    }

    /* FAQ small mobile */
    .faq-question {
        padding: 20px 16px;
        font-size: 1rem;
    }

    .faq-answer p {
        padding: 0 16px 20px;
        font-size: 0.9rem;
    }

    /* Endorsements small mobile */
    .endorsement-card {
        padding: 24px 20px;
    }

    .endorsement-quote {
        font-size: 0.95rem;
    }

    /* Involved cards small mobile */
    .involved-card {
        padding: 20px 16px;
    }

    .involved-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 16px;
    }

    .involved-card h3 {
        font-size: 1rem;
    }

    .involved-card p {
        font-size: 0.85rem;
    }

    .involved-card .btn,
    .involved-card button.btn {
        width: 130px;
        height: 44px;
        font-size: 0.9rem;
    }

    .quote-card-front .btn {
        width: 130px;
        height: 44px;
        font-size: 0.9rem;
    }

    /* Contact form small mobile */
    .contact-form {
        padding: 20px 16px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    /* Footer small mobile */
    .footer {
        padding: 40px 0 20px;
    }

    .footer-logo .logo {
        font-size: 1.5rem;
    }

    .footer-links {
        gap: 12px;
    }

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

/* Touch-friendly targets - ensure minimum 44px */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        padding: 12px 24px;
    }

    .nav-links a {
        padding: 12px 0;
    }

    .faq-question {
        min-height: 56px;
    }

    .thumbnail {
        min-width: 48px;
        min-height: 48px;
    }

    .quote-nav {
        min-width: 44px;
        min-height: 44px;
    }

    .checkbox-label {
        padding: 8px 0;
    }

    .checkbox-label input[type="checkbox"] {
        width: 22px;
        height: 22px;
    }
}
