:root {
 --primary-color: #2d8f5e;
 --primary-dark: #24724b;
 --secondary-color: #0d9488;
 --bg-light: #f0fdf4;
 --bg-white: #ffffff;
 --text-dark: #1f2937;
 --text-light: #4b5563;
 --text-muted: #6b7280;
 --border-color: #e5e7eb;
 --radius-md: 8px;
 --radius-lg: 16px;
 --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
 --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
 --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
 --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
 --transition: all 0.3s ease-in-out;
}

*, *::before, *::after {
 box-sizing: border-box;
 margin: 0;
 padding: 0;
}

html {
 scroll-behavior: smooth;
 -webkit-font-smoothing: antialiased;
}

body {
 font-family: var(--font-main);
 font-size: 16px;
 line-height: 1.6;
 color: var(--text-dark);
 background-color: var(--bg-white);
}

h1, h2, h3, h4, h5, h6 {
 font-weight: 700;
 line-height: 1.2;
 color: var(--text-dark);
 margin-bottom: 1rem;
}

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

p { margin-bottom: 1rem; color: var(--text-light); }
a { color: var(--primary-color); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style-position: inside; }

.container {
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 24px;
}
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }

/* === Header === */
.header {
 background-color: rgba(255, 255, 255, 0.9);
 backdrop-filter: blur(10px);
 border-bottom: 1px solid var(--border-color);
 position: fixed;
 top: 0;
 left: 0;
 right: 0;
 z-index: 1000;
 height: 70px;
 transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }
.nav-container { display: flex; align-items: center; justify-content: space-between; height: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px;}
.nav-logo { font-size: 1.5rem; font-weight: 700; color: var(--text-dark); }
.nav-links-wrapper { display: flex; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--text-light); font-weight: 500; padding: 8px 0; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--primary-color); transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--text-dark); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-contact-btn { display: inline-block; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 25px; height: 2px; background: var(--text-dark); margin: 5px 0; transition: var(--transition); }

/* === Buttons === */
.btn { display: inline-block; padding: 12px 24px; border-radius: var(--radius-md); font-weight: 600; text-align: center; cursor: pointer; transition: var(--transition); border: 2px solid transparent; }
.btn-primary { background-color: var(--primary-color); color: var(--bg-white); }
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background-color: transparent; color: var(--primary-color); border-color: var(--primary-color); }
.btn-secondary:hover { background-color: var(--primary-color); color: var(--bg-white); }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }

/* === Sections === */
.section { padding: 80px 0; }
.page-hero { padding-top: 150px; padding-bottom: 80px; background-color: var(--bg-light); text-align: center; }
.section-header { text-align: center; margin: 0 auto 48px; max-width: 700px; }
.bg-light { background-color: var(--bg-light); }
.section-subtitle { font-size: 1.125rem; color: var(--text-light); max-width: 600px; margin: 0 auto; }
.badge { display: inline-block; background-color: var(--secondary-color); color: white; padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }

/* === Hero Split === */
.hero-split { padding-top: 150px; padding-bottom: 80px; }
.hero-split-container { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.hero-text h1 { margin-bottom: 1.5rem; }
.hero-text p { font-size: 1.125rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 16px; }
.hero-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* === Trusted By === */
.trusted-by { padding: 40px 0; }
.trusted-by-title { text-align: center; color: var(--text-muted); font-size: 1rem; font-weight: 500; margin-bottom: 24px; text-transform: uppercase; letter-spacing: 1px; }
.logo-grid { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 32px; }
.logo-item { font-size: 1.2rem; font-weight: 600; color: var(--text-muted); opacity: 0.7; transition: var(--transition); }
.logo-item:hover { opacity: 1; color: var(--text-dark); }

/* === Features === */
.grid-2-col-features { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.feature-item-large { background-color: var(--bg-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; transition: var(--transition); }
.feature-item-large:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature-item-large img { width: 100%; height: 250px; object-fit: cover; }
.feature-item-large-content { padding: 24px; }
.read-more-link { font-weight: 600; }

/* === Icon Grid === */
.icon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px; }
.icon-card { text-align: center; padding: 24px; border-radius: var(--radius-md); transition: var(--transition); }
.icon-card:hover { background-color: white; box-shadow: var(--shadow-md); transform: translateY(-5px); }
.icon-wrapper { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background-color: var(--bg-light); margin-bottom: 1.5rem; }
.icon-wrapper svg { width: 32px; height: 32px; color: var(--primary-color); }
.icon-card h3 { font-size: 1.25rem; }

/* === Case Studies === */
.case-study-alternating { display: flex; flex-direction: column; gap: 80px; }
.case-study-item { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.case-study-item:nth-child(even) .case-study-image { order: 2; }
.case-study-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; height: 350px; object-fit: cover;}
.case-study-tag { display: inline-block; background-color: var(--bg-light); color: var(--primary-color); padding: 4px 12px; border-radius: 12px; font-weight: 600; font-size: 0.8rem; margin-top: 1rem; }

/* === FAQ === */
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: 20px 0; font-size: 1.125rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '+'; font-size: 1.5rem; font-weight: 300; transition: transform 0.3s; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.faq-answer p { padding: 0 0 20px; }

/* === CTA === */
.cta-section { padding: 60px 0; }
.cta-section p { margin-bottom: 2rem; }

/* === Footer === */
.footer { background-color: var(--text-dark); color: #a0aec0; padding: 60px 0 30px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-size: 1.5rem; font-weight: 700; color: white; margin-bottom: 1rem; display: block; }
.footer-description { color: #a0aec0; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { color: white; background-color: rgba(255,255,255,0.1); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background-color: var(--primary-color); }
.footer-heading { font-size: 1rem; font-weight: 600; color: white; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #a0aec0; }
.footer-links a:hover { color: white; }
.footer-contact-item { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.footer-contact-item svg { flex-shrink: 0; margin-top: 3px; color: var(--secondary-color); }
.footer-contact-item p, .footer-contact-item a { margin: 0; color: #a0aec0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; color: #718096; }
.footer-legal-links { display: flex; gap: 24px; }
.footer-legal-links a { color: #718096; }
.footer-legal-links a:hover { color: white; }

/* === Cookie Banner === */
#cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: #2d3748; color: white; padding: 20px; display: none; align-items: center; justify-content: space-between; gap: 20px; z-index: 2000; }
#cookie-banner p { margin: 0; font-size: 0.9rem; }
#cookie-banner p a { color: var(--secondary-color); text-decoration: underline; }
#cookie-banner div { display: flex; gap: 12px; }

/* === Services Page === */
.services-grid, .resources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.service-card, .resource-card { background: white; border: 1px solid var(--border-color); border-radius: var(--radius-lg); display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-md); transition: var(--transition); }
.service-card:hover, .resource-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-image { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; }
.card-body h3, .card-body h4 { margin-top: 0; }
.card-body p { flex-grow: 1; }
.card-category { font-size: 0.8rem; font-weight: 600; color: var(--primary-color); margin-bottom: 8px; text-transform: uppercase; }

/* === Timeline === */
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::after { content: ''; position: absolute; width: 2px; background: var(--border-color); top: 0; bottom: 0; left: 50%; margin-left: -1px; }
.timeline-item { padding: 10px 40px; position: relative; width: 50%; }
.timeline-item:nth-child(odd) { left: 50%; }
.timeline-item:nth-child(even) { left: 0; text-align: right; }
.timeline-item::after { content: ''; position: absolute; width: 20px; height: 20px; right: -10px; background-color: var(--primary-color); border: 4px solid var(--bg-light); top: 15px; border-radius: 50%; z-index: 1; }
.timeline-item:nth-child(even)::after { left: -10px; }
.timeline-content { padding: 20px 30px; background: white; position: relative; border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.timeline-step { position: absolute; top: -15px; background: var(--secondary-color); color: white; padding: 5px 15px; border-radius: 20px; font-weight: 700; }
.timeline-item:nth-child(even) .timeline-step { right: 20px; }
.timeline-item:nth-child(odd) .timeline-step { left: 20px; }

/* === About Page === */
.about-content-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.about-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.team-card { background-color: white; border-radius: var(--radius-lg); padding: 32px 24px; text-align: center; box-shadow: var(--shadow-md); transition: var(--transition); }
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.team-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 1.5rem; border: 4px solid var(--bg-light); }
.team-title { color: var(--primary-color); font-weight: 500; font-size: 0.9rem; margin-bottom: 0.5rem; }
.team-bio { font-size: 0.9rem; }

/* === Resources Page === */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a { padding: 10px 16px; border: 1px solid var(--border-color); border-radius: var(--radius-md); font-weight: 500; }
.pagination a:hover { background-color: var(--bg-light); }
.pagination a.active { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }

/* === Contact Page === */
.contact-page-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; }
.contact-form-container { background-color: white; padding: 32px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.contact-info-block { display: flex; flex-direction: column; gap: 24px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.icon-wrapper-sm { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background-color: var(--bg-light); border-radius: 50%; flex-shrink: 0;}
.icon-wrapper-sm svg { color: var(--primary-color); width: 22px; height: 22px; }
.contact-info-item strong { display: block; margin-bottom: 4px; }
.map-section { padding-top: 0; }
.map-container { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); height: 450px; }

/* === Forms === */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 8px; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: var(--radius-md); font-family: var(--font-main); font-size: 1rem; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(45, 143, 94, 0.2); }
.checkbox-group { display: flex; align-items: center; gap: 10px; }
.checkbox-group input { width: auto; }
.checkbox-group label { margin: 0; }

/* === Legal Pages === */
.legal-content ul, .legal-content ol { margin-bottom: 1rem; padding-left: 20px; }
.legal-content li { margin-bottom: 0.5rem; }
.cookie-table { width: 100%; border-collapse: collapse; margin-top: 2rem; }
.cookie-table th, .cookie-table td { border: 1px solid var(--border-color); padding: 12px; text-align: left; }
.cookie-table th { background-color: var(--bg-light); }

/* === Validation Styles === */
.input-error { border-color: #dc2626 !important; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important; }
.field-error { color: #dc2626; font-size: 0.85rem; margin-top: 4px; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-radius: 50%; border-top-color: #fff; animation: spin 0.8s linear infinite; margin-right: 8px; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
button[disabled], input[type="submit"][disabled] { opacity: 0.7; cursor: not-allowed; }

/* === Responsive === */
@media (max-width: 992px) {
 h1 { font-size: 2.5rem; } h2 { font-size: 2rem; }
 .nav-toggle { display: block; z-index: 10; }
 .nav-links-wrapper { position: fixed; top: 0; right: 0; bottom: 0; background-color: white; width: 80%; max-width: 300px; transform: translateX(100%); transition: transform 0.3s ease-in-out; }
 .nav-links-wrapper.active { transform: translateX(0); }
 .nav-links { flex-direction: column; padding: 100px 30px 30px; height: 100%; }
 .nav-contact-btn { display: none; }
 .hero-split-container { grid-template-columns: 1fr; }
 .hero-visual { order: -1; }
 .grid-2-col-features { grid-template-columns: 1fr; }
 .services-grid, .resources-grid { grid-template-columns: repeat(2, 1fr); }
 .footer-grid { grid-template-columns: 1fr 1fr; }
 .contact-page-layout { grid-template-columns: 1fr; }
 .case-study-item { grid-template-columns: 1fr; }
 .case-study-item:nth-child(even) .case-study-image { order: 0; }
 .timeline::after { left: 20px; margin-left: 0; }
 .timeline-item { width: 100%; padding-left: 60px; padding-right: 0; left: 0 !important; text-align: left !important; }
 .timeline-item::after { left: 11px; }
}

@media (max-width: 576px) {
 .services-grid, .resources-grid { grid-template-columns: 1fr; }
 .footer-grid { grid-template-columns: 1fr; }
 .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
 #cookie-banner { flex-direction: column; text-align: center; }
}