@import url('https://fonts.googleapis.com/css2?family=Indie+Flower&family=Libre+Baskerville:wght@400;700&family=Source+Serif+4:opsz,wght@8..60,400;600;700&display=swap');

:root {
 --color-forest-dark: #1A2E05;
 --color-trail-green: #84CC16;
 --color-sunset-amber: #F59E0B;
 --color-aged-paper: #FDF8F3;
 --color-river-blue: #0369A1;
 --color-text-dark: #2c2c2c;
 --color-text-light: #5a5a5a;
 --color-border: #e0d9cf;
 --font-heading: 'Libre Baskerville', serif;
 --font-body: 'Source Serif 4', serif;
 --font-handwritten: 'Indie Flower', cursive;
 --radius: 8px;
 --shadow: 0 4px 12px rgba(0,0,0,0.08);
 --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
 scroll-behavior: smooth;
 font-size: 16px;
}

body {
 font-family: var(--font-body);
 color: var(--color-text-dark);
 background-color: var(--color-aged-paper);
 line-height: 1.7;
 -webkit-font-smoothing: antialiased;
 overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
 font-family: var(--font-heading);
 font-weight: 700;
 line-height: 1.2;
 color: var(--color-forest-dark);
 text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p { margin-bottom: 1rem; color: var(--color-text-light); }
a { color: var(--color-river-blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-sunset-amber); }
ul, ol { list-style-position: inside; padding-left: 1rem; }
ul li, ol li { margin-bottom: 0.5rem; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- HEADER & NAVIGATION --- */
.header {
 position: fixed;
 top: 0;
 left: 0;
 width: 100%;
 z-index: 1000;
 transition: background-color 0.4s ease, box-shadow 0.4s ease;
 background-color: transparent;
}
.header.scrolled {
 background-color: rgba(253, 248, 243, 0.9);
 backdrop-filter: blur(8px);
 box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.nav-logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--color-forest-dark); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-family: var(--font-body); font-weight: 600; color: var(--color-text-dark); position: relative; padding: 8px 0; }
.nav-links a::after {
 content: '';
 position: absolute;
 bottom: 0;
 left: 50%;
 transform: translateX(-50%);
 width: 0;
 height: 2px;
 background-color: var(--color-trail-green);
 transition: var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.progress-bar {
 height: 3px;
 background-color: var(--color-trail-green);
 width: 0%;
 position: absolute;
 top: 0;
 left: 0;
}

/* --- MOBILE NAVIGATION --- */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; z-index: 1100; }
.nav-toggle span { display: block; width: 25px; height: 2px; background-color: var(--color-forest-dark); margin: 6px 0; transition: var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
@media (max-width: 768px) {
 .nav-toggle { display: block; }
 .nav-links {
 position: fixed;
 top: 0;
 right: -100%;
 width: 70%;
 height: 100vh;
 background-color: var(--color-aged-paper);
 flex-direction: column;
 justify-content: center;
 gap: 2rem;
 box-shadow: -5px 0 15px rgba(0,0,0,0.1);
 transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
 }
 .nav-links.open { right: 0; }
}

/* --- BUTTONS --- */
.btn {
 display: inline-block;
 padding: 12px 28px;
 border-radius: 50px;
 font-family: var(--font-body);
 font-weight: 700;
 text-align: center;
 border: 2px solid transparent;
 cursor: pointer;
 transition: var(--transition);
}
.btn-primary { background-color: var(--color-sunset-amber); color: white; border-color: var(--color-sunset-amber); }
.btn-primary:hover { background-color: #d97706; border-color: #d97706; transform: translateY(-2px); }
.btn-secondary { background-color: transparent; color: var(--color-forest-dark); border-color: var(--color-forest-dark); }
.btn-secondary:hover { background-color: var(--color-forest-dark); color: var(--color-aged-paper); transform: translateY(-2px); }
.btn-outline {
 background-color: transparent;
 color: var(--color-aged-paper);
 border: 2px solid var(--color-aged-paper);
}
.btn-outline:hover {
 background-color: var(--color-aged-paper);
 color: var(--color-forest-dark);
}
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }

/* --- PARALLAX & LAYERS --- */
.parallax-section { position: relative; overflow: hidden; }
.layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; will-change: transform; }
.parallax-bg { background-size: cover; background-position: center; z-index: 1; }
.parallax-mid { background-repeat: repeat; z-index: 2; }

/* --- HERO SECTION --- */
.hero { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-content { position: relative; z-index: 3; color: white; max-width: 800px; padding: 20px; }
.hero-title { font-size: clamp(2.5rem, 6vw, 5rem); text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }
.hero-subtitle { font-family: var(--font-body); font-size: 1.25rem; margin: 1rem 0 2rem; text-shadow: 1px 1px 5px rgba(0,0,0,0.5); }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero .btn-secondary { color: white; border-color: white; }
.hero .btn-secondary:hover { background-color: white; color: var(--color-forest-dark); }
.compass-decoration {
 width: 15vw;
 height: 15vw;
 min-width: 100px;
 min-height: 100px;
 max-width: 200px;
 max-height: 200px;
 background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='rgba(253, 248, 243, 0.4)'%3E%3Cpath d='M50 0 L60 40 L50 100 L40 40 Z' /%3E%3Cpath d='M100 50 L60 60 L0 50 L40 40 Z' /%3E%3Ccircle cx='50' cy='50' r='10' /%3E%3C/svg%3E");
 background-size: contain;
 background-repeat: no-repeat;
 bottom: 5%;
 right: 5%;
 top: auto;
 left: auto;
}

/* --- SECTIONS --- */
.section { padding: 80px 0; }
.bg-paper { background: var(--color-aged-paper) url('assets/topo-lines.svg'); background-blend-mode: multiply; background-size: cover; }
.section-header { text-align: center; margin: 0 auto 50px; max-width: 700px; }
.section-label {
 font-family: var(--font-handwritten);
 color: var(--color-sunset-amber);
 font-size: 1.5rem;
 display: block;
}
.section-title { margin-bottom: 1rem; }
.section-subtitle { max-width: 600px; margin: 0 auto; }
.pt-0 { padding-top: 0; }

/* --- STATS SECTION --- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 50px; text-align: center; }
.stat-item { padding: 20px; border-left: 3px solid var(--color-trail-green); }
.stat-number { font-family: var(--font-heading); font-size: 4rem; color: var(--color-forest-dark); }
.stat-caption { font-family: var(--font-body); font-weight: 700; font-size: 1.2rem; margin: 0.5rem 0; }
.stat-desc { font-size: 0.9rem; }

/* --- LAYERS SECTION --- */
.section-layers { padding: 0; }
.fixed-bg {
 position: sticky;
 top: 0;
 height: 100vh;
 background-size: cover;
 background-position: center;
 background-attachment: fixed; /* Parallax effect */
}
.content-layer {
 position: relative;
 background-color: rgba(26, 46, 5, 0.85);
 color: var(--color-aged-paper);
 padding: 100px 20px;
 min-height: 50vh;
 display: flex;
 align-items: center;
}
.content-layer .text-box { max-width: 600px; }
.content-layer h3 { color: var(--color-aged-paper); font-size: 2.5rem; }
.content-layer p { color: #f0e9e1; }

/* --- FEATURES & CARDS --- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.parallax-cards-container .card { transition: transform 0.1s linear, box-shadow var(--transition); }
.card {
 background-color: white;
 box-shadow: var(--shadow);
 border-radius: var(--radius);
 overflow: hidden;
 display: flex;
 flex-direction: column;
}
.postcard-frame {
 border: 10px solid white;
 box-shadow: 0 10px 25px rgba(0,0,0,0.1);
 transform: rotate(-1deg);
 transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.cards-grid > article:nth-child(2) .postcard-frame { transform: rotate(1deg); }
.postcard-frame:hover { transform: translateY(-10px) rotate(0deg) scale(1.02); box-shadow: 0 15px 35px rgba(0,0,0,0.15); }
.card-image { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }
.card-title { margin-bottom: 10px; }
.card-text { margin-bottom: 20px; flex-grow: 1; font-size: 0.95rem; }
.card-button {
 align-self: flex-start;
 font-size: 0.9rem;
 font-weight: 700;
 color: var(--color-river-blue);
 border: none;
 background: transparent;
 padding: 0;
}
.card-button:hover { text-decoration: underline; color: var(--color-sunset-amber); }
.card-tag { font-family: var(--font-handwritten); font-size: 1rem; color: var(--color-sunset-amber); margin-bottom: 8px; display: block; }
.filter-controls { display: flex; justify-content: center; gap: 1rem; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn { background-color: transparent; border: 1px solid var(--color-border); padding: 8px 16px; border-radius: 20px; cursor: pointer; transition: var(--transition); }
.filter-btn:hover, .filter-btn.active { background-color: var(--color-forest-dark); color: white; border-color: var(--color-forest-dark); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 40px; }
.pagination a, .pagination span { padding: 8px 12px; border-radius: 4px; color: var(--color-text-dark); }
.pagination a:hover { background-color: #f0e9e1; }
.pagination a.active { background-color: var(--color-forest-dark); color: white; }

/* --- TIMELINE SECTION --- */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::after {
 content: '';
 position: absolute;
 width: 3px;
 background-color: var(--color-border);
 top: 0;
 bottom: 0;
 left: 50%;
 margin-left: -1.5px;
 z-index: 1;
}
.timeline-item { padding: 10px 40px; position: relative; width: 50%; }
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; text-align: right; }
.timeline-item:nth-child(odd)::after, .timeline-item:nth-child(even)::after {
 content: '';
 position: absolute;
 width: 20px;
 height: 20px;
 right: -10px;
 background-color: white;
 border: 4px solid var(--color-trail-green);
 top: 25px;
 border-radius: 50%;
 z-index: 2;
}
.timeline-item:nth-child(even)::after { left: -10px; }
.timeline-step { display: none; }
.timeline-content { padding: 20px; background-color: white; border-radius: var(--radius); box-shadow: var(--shadow); position: relative; }
.timeline-content h3 { margin-bottom: 10px; }
.timeline-connector { display: none; }
@media (max-width: 768px) {
 .timeline::after { left: 20px; }
 .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
 .timeline-item:nth-child(odd), .timeline-item:nth-child(even) { left: 0; text-align: left; }
 .timeline-item::after, .timeline-item:nth-child(even)::after, .timeline-item:nth-child(odd)::after { left: 10px; }
}

/* --- TESTIMONIALS SECTION --- */
.section-testimonials { height: 70vh; min-height: 500px; display: flex; align-items: center; justify-content: center; }
.section-testimonials .parallax-bg::before {
 content: '';
 position: absolute;
 inset: 0;
 background: rgba(26, 46, 5, 0.7);
 z-index: 2;
}
.testimonial-content { color: white; text-align: center; max-width: 700px; position: relative; z-index: 3; }
.testimonial-content blockquote { font-family: var(--font-heading); font-size: 1.75rem; line-height: 1.4; margin-bottom: 2rem; font-style: italic;}
.testimonial-content cite { display: flex; flex-direction: column; align-items: center; font-style: normal; }
.testimonial-content cite img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; margin-bottom: 1rem; border: 3px solid var(--color-aged-paper); }
.testimonial-content cite span { font-weight: 700; font-size: 1.1rem; }
.testimonial-role { font-family: var(--font-handwritten); color: var(--color-trail-green); font-size: 1rem; font-weight: 400 !important; }

/* --- CONTACT FORM --- */
.contact-form-wrapper { max-width: 700px; margin: 0 auto; background: white; padding: 40px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-row { display: flex; gap: 20px; }
.form-row .form-group { flex: 1; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; }
.form-group input, .form-group textarea {
 width: 100%;
 padding: 12px;
 border: 1px solid var(--color-border);
 border-radius: var(--radius);
 font-family: var(--font-body);
 font-size: 1rem;
 transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
 outline: none;
 border-color: var(--color-sunset-amber);
 box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}
textarea { resize: vertical; min-height: 120px; }

/* --- FOOTER --- */
.footer {
 background-color: var(--color-forest-dark);
 color: #c7c6c4;
 padding: 80px 0 40px;
 position: relative;
 overflow: hidden;
}
.footer-content { position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 50px; }
.footer-logo { font-size: 1.5rem; color: white; font-family: var(--font-heading); margin-bottom: 1rem; display: block; }
.footer-description { font-size: 0.9rem; line-height: 1.6; }
.social-links { display: flex; gap: 1rem; margin-top: 1.5rem; }
.social-links a { color: var(--color-aged-paper); }
.social-links a:hover { color: var(--color-trail-green); }
.footer-heading { font-family: var(--font-heading); font-size: 1.1rem; color: white; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a, .footer-contact a { color: #c7c6c4; }
.footer-links a:hover, .footer-contact a:hover { color: white; text-decoration: underline; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 1rem; list-style-type: none; }
.footer-contact svg { flex-shrink: 0; margin-top: 5px; color: var(--color-trail-green); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; margin-top: 30px; text-align: center; font-size: 0.85rem; }
.footer-legal a { color: inherit; }
.footer-legal a:hover { text-decoration: underline; }
@media (max-width: 768px) {
 .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
 .footer-grid { grid-template-columns: 1fr; text-align: center; }
 .social-links { justify-content: center; }
 .footer-contact li { justify-content: center; text-align: left; }
}

/* --- PAGE-SPECIFIC STYLES --- */
.page-header-section { padding: 140px 0 40px; text-align: center; }
.page-title { margin-bottom: 1rem; }
.page-subtitle { max-width: 650px; margin: 0 auto; color: var(--color-text-light); font-size: 1.1rem; }

/* Contact Page */
.contact-page-grid { display: grid; grid-template-columns: 2fr 1.5fr; gap: 40px; }
.contact-heading { margin-bottom: 2rem; }
.contact-info-card { background: white; padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-info-card .footer-contact { padding-left: 0; }

@media (max-width: 992px) {
 .contact-page-grid { grid-template-columns: 1fr; }
}

.map-container { width: 100%; height: 450px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 40px; }
.map-container iframe { width: 100%; height: 100%; border: none; }

/* About Page */
.media-object { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.media-object.reverse { grid-template-columns: 1fr 1fr; }
.media-object.reverse .media-visual { grid-column: 2; grid-row: 1; }
.media-object.reverse .media-content { grid-column: 1; grid-row: 1; }
.media-visual img { width: 100%; height: auto; border-radius: var(--radius); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.team-member-card { text-align: center; background: white; padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); }
.team-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 20px; border: 4px solid var(--color-aged-paper); box-shadow: 0 0 10px rgba(0,0,0,0.1); }
.team-member-name { margin-bottom: 5px; }
.team-member-role { font-family: var(--font-handwritten); color: var(--color-sunset-amber); font-size: 1.2rem; margin-bottom: 10px; }
.team-member-bio { font-size: 0.9rem; }
.section-cta { text-align: center; }
.cta-content { max-width: 600px; margin: 0 auto; }
.cta-text { margin: 1rem 0 2rem; }

/* Legal Pages */
.legal-page { padding-bottom: 80px; }
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { margin: 2rem 0 1rem; }
.cookie-table { width: 100%; border-collapse: collapse; margin: 2rem 0; }
.cookie-table th, .cookie-table td { border: 1px solid var(--color-border); padding: 12px; text-align: left; }
.cookie-table th { background-color: #f7f3ed; font-weight: 700; }

/* Thank You Page */
.thank-you-section { min-height: 70vh; display: flex; align-items: center; justify-content: center; }
.thank-you-content { max-width: 600px; }

/* Cookie Banner */
#cookie-banner {
 position: fixed;
 bottom: 0;
 left: 0;
 right: 0;
 background-color: var(--color-forest-dark);
 color: white;
 padding: 20px;
 display: none;
 align-items: center;
 justify-content: space-between;
 gap: 20px;
 z-index: 2000;
 box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
}
#cookie-banner p { margin: 0; font-size: 0.9rem; }
#cookie-banner a { color: var(--color-trail-green); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-buttons .btn-primary { background-color: var(--color-trail-green); border-color: var(--color-trail-green); color: var(--color-forest-dark); }
.cookie-buttons .btn-secondary { border-color: white; color: white; }

@media (max-width: 768px) {
 #cookie-banner { flex-direction: column; text-align: center; }
 .media-object, .media-object.reverse { grid-template-columns: 1fr; }
 .media-object.reverse .media-visual,
 .media-object.reverse .media-content { grid-column: 1; grid-row: auto; }
}

/* Animations */
[data-animate] {
 opacity: 0;
 transform: translateY(30px);
 transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

[data-animate].visible {
 opacity: 1;
 transform: translateY(0);
}