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

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

html {
 scroll-behavior: smooth;
}

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

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

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

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;
}

.container {
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 20px;
}

/* Header & Nav */
.header {
 position: fixed;
 top: 0;
 left: 0;
 right: 0;
 z-index: 1000;
 background: rgba(255,255,255,0.8);
 backdrop-filter: blur(10px);
 -webkit-backdrop-filter: blur(10px);
 border-bottom: 1px solid var(--border-color);
 transition: var(--transition);
}
.header.scrolled {
 background: rgba(255,255,255,0.98);
 box-shadow: var(--shadow-md);
}
.nav {
 height: 70px;
 display: flex;
 align-items: center;
 justify-content: space-between;
}
.nav-logo {
 font-size: 1.5rem;
 font-weight: 700;
 color: var(--text-dark);
}
.nav-links {
 display: flex;
 gap: 32px;
 list-style: none;
}
.nav-links a {
 font-weight: 500;
 color: var(--text-dark);
 padding: 8px 0;
 position: relative;
}
.nav-links a::after {
 content: '';
 position: absolute;
 bottom: -2px;
 left: 0;
 width: 0;
 height: 2px;
 background: var(--primary-color);
 transition: var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after {
 width: 100%;
}
.nav-toggle {
 display: none;
 background: none;
 border: none;
 cursor: pointer;
 padding: 8px;
 z-index: 1001;
}
.nav-toggle span {
 display: block;
 width: 24px;
 height: 2px;
 background: var(--text-dark);
 margin: 6px 0;
 transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Buttons */
.btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 8px;
 padding: 12px 24px;
 font-size: 1rem;
 font-weight: 600;
 border-radius: var(--radius-md);
 cursor: pointer;
 transition: var(--transition);
 border: none;
 text-decoration: none;
 white-space: nowrap;
}
.btn-primary {
 background: var(--primary-color);
 color: white;
}
.btn-primary:hover {
 background: var(--primary-dark);
 color: white;
 transform: translateY(-2px);
 box-shadow: var(--shadow-md);
}
.btn-secondary {
 background: transparent;
 color: var(--primary-color);
 border: 2px solid var(--primary-color);
}
.btn-secondary:hover {
 background: var(--primary-color);
 color: white;
}
.read-more {
 display: inline-block;
 color: var(--primary-color);
 font-weight: 600;
 margin-top: auto;
 padding-top: 1rem;
}
.read-more:hover {
 color: var(--primary-dark);
}

/* Hero Section */
.page-hero {
 padding: 140px 0 80px;
 background: var(--bg-light);
}
.page-hero.homepage-hero {
 background: var(--bg-white);
}
.hero-inner {
 display: grid;
 grid-template-columns: 1fr;
 gap: 40px;
 align-items: center;
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 20px;
}
.hero-inner.text-center { display: block; text-align: center; }
.hero-inner.text-center .hero-copy { max-width: 800px; margin: 0 auto; }
.hero-copy .badge {
 display: inline-block;
 background: var(--primary-color);
 color: white;
 padding: 6px 16px;
 border-radius: 20px;
 font-size: 0.85rem;
 font-weight: 600;
 margin-bottom: 16px;
 letter-spacing: 0.5px;
}
.hero-copy h1 { color: var(--text-dark); }
.hero-copy p { font-size: 1.1rem; color: var(--text-light); margin-bottom: 24px; max-width: 600px; }
.hero-inner.text-center .hero-copy p { margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* General Section Styling */
.section { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.section-label {
 display: inline-block;
 color: var(--primary-color);
 font-weight: 600;
 font-size: .9rem;
 margin-bottom: .5rem;
 text-transform: uppercase;
 letter-spacing: 1px;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); }

/* Cards */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
 background: white;
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-md);
 transition: var(--transition);
 display: flex;
 flex-direction: column;
 overflow: hidden;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card-image { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.card-title { font-size: 1.25rem; }
.card-text { color: var(--text-light); flex-grow: 1; margin-bottom: 1rem; }
.card-meta { font-size: 0.85rem; color: var(--secondary-color); margin-bottom: 1rem; }

/* Media Object */
.media-object { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.media-object.reverse .media-copy { grid-row: 1; grid-column: 2; }
.media-object.reverse .media-visual { grid-row: 1; grid-column: 1; }
.media-copy ul { list-style: none; padding-left: 0; margin-top: 1.5rem; }
.media-copy li { position: relative; padding-left: 28px; margin-bottom: 12px; }
.media-copy li::before {
 content: '';
 position: absolute;
 left: 0;
 top: 0;
 color: var(--primary-color);
 font-weight: bold;
}
.media-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.cta-buttons { margin-top: 2rem; }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.timeline-step { background: white; padding: 24px; border-radius: var(--radius-md); border-left: 4px solid var(--primary-color); }
.timeline-step h3 { font-size: 1.2rem; }
.timeline-step p { color: var(--text-muted); font-size: .95rem; }

/* Testimonials */
.testimonial-card {
 background: var(--bg-light); border-radius: var(--radius-md); padding: 24px;
 display: flex; flex-direction: column;
}
.testimonial-card p {
 font-style: italic; color: var(--text-dark); flex-grow: 1;
 margin-bottom: 1.5rem; font-size: 1.05rem;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.testimonial-author strong { color: var(--text-dark); }
.testimonial-author span { font-size: 0.9rem; color: var(--text-muted); }

/* CTA Section */
.cta-section { padding: 60px 0; }
.newsletter-form { display: flex; gap: 12px; max-width: 500px; margin: 24px auto 0; }
.newsletter-form input {
 flex: 1;
 padding: 14px 20px;
 border: 1px solid var(--border-color);
 border-radius: var(--radius-md);
 font-size: 1rem;
}
.newsletter-form button { flex-shrink: 0; }
.text-center { text-align: center; }

/* Footer */
.footer {
 background: var(--text-dark);
 color: #a0aec0;
 padding: 60px 0 30px;
 margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-size: 1.5rem; font-weight: 700; color: white; margin-bottom: 16px; display: block; }
.footer-description { font-size: 0.9rem; line-height: 1.6; margin-bottom: 20px; }
.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; font-size: 0.9rem; }
.footer-links a:hover { color: white; }
.footer-contact-item { margin-bottom: 16px; font-size: 0.9rem; }
.footer-contact-item a { color: #a0aec0; }
.footer-contact-item a:hover { color: white; }
.footer-contact-item strong { color: #e2e8f0; display: block; margin-bottom: 4px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
 width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex;
 align-items: center; justify-content: center; color: white; transition: var(--transition);
}
.footer-social a:hover { background: var(--primary-color); }
.footer-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 30px 0; }
.footer-bottom { text-align: center; }
.footer-copyright { font-size: 0.85rem; }

/* About Page Styles */
.team-section { background-color: var(--bg-light); }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.team-member { text-align: center; }
.team-photo { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; box-shadow: var(--shadow-lg); }
.team-member h3 { font-size: 1.25rem; }
.team-role { font-weight: 500; color: var(--primary-color); margin-bottom: 0.5rem; }
.team-bio { font-size: 0.9rem; max-width: 250px; margin: 0 auto; }
.value-card { text-align: center; background: var(--bg-light); padding: 24px; border-radius: var(--radius-md); }
.value-card h4 { font-size: 1.25rem; }
.partners-section { padding: 60px 0; }
.partners-title { margin-bottom: 40px; color: var(--text-muted); font-weight: 500; }
.partners-logos { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; }
.partner-logo { height: 40px; max-width: 120px; object-fit: contain; filter: grayscale(100%); opacity: 0.7; transition: var(--transition); }
.partner-logo:hover { filter: grayscale(0%); opacity: 1; }

/* Services Page Styles */
.services-detailed { border-bottom: 1px solid var(--border-color); }
.services-detailed:last-of-type { border-bottom: none; }
.services-detailed .media-copy ul { margin-top: 1rem; }

/* Resources Page Styles */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-question {
 display: block; width: 100%; padding: 20px; font-size: 1.1rem; font-weight: 600;
 cursor: pointer; position: relative; background: none; border: none; text-align: left;
}
.faq-question::after {
 content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
 font-size: 1.5rem; font-weight: 300; transition: var(--transition);
}
details[open] .faq-question::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer { padding: 0 20px 20px; font-size: 1rem; }
.faq-answer p { margin-bottom: 0; }

/* Contact Page Styles */
.contact-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; }
.contact-form-wrapper h3 { font-size: 1.75rem; }
.contact-form-wrapper p { margin-bottom: 2rem; font-size: 1.1rem; }
.contact-details h3 { font-size: 1.75rem; }
.contact-details p { margin-bottom: 2rem; font-size: 1.1rem; }
.contact-info-block { background: var(--bg-light); border-radius: var(--radius-md); padding: 24px; }
.contact-info-item { margin-bottom: 1.5rem; }
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-item strong { display: block; color: var(--text-dark); margin-bottom: 4px; }
.contact-info-item a { color: var(--text-light); }
.contact-info-item a:hover { color: var(--primary-color); }
.map-section { padding-bottom: 0; }
.map-container { width: 100%; height: 450px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); margin-top: 2rem;}
.map-container iframe { width: 100%; height: 100%; border: none; }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 8px; color: var(--text-dark); }
.form-group input, .form-group textarea {
 width: 100%; padding: 14px 18px; font-size: 1rem; border: 1px solid var(--border-color);
 border-radius: var(--radius-md); transition: var(--transition); background: white; font-family: var(--font-main);
}
.form-group input:focus, .form-group textarea:focus {
 outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
textarea.form-control { resize: vertical; min-height: 140px; }
.checkbox-group { display: flex; align-items: center; gap: 10px; }
.checkbox-group input { width: auto; }
.checkbox-group label { margin-bottom: 0; font-weight: normal; }
.submit-button { width: 100%; padding: 16px; font-size: 1.1rem; }
.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; }
.form-success { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } 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; }

/* Legal Pages */
.legal-page { padding: 120px 0 80px; }
.legal-page .container { max-width: 800px; }
.legal-page h1 { margin-bottom: 1rem; }
.legal-page h2 { margin-top: 2rem; margin-bottom: 1rem; }
.legal-page p, .legal-page ul { margin-bottom: 1rem; }
.legal-page ul { padding-left: 20px; }
.cookie-table { width: 100%; border-collapse: collapse; margin: 2rem 0; }
.cookie-table th, .cookie-table td { border: 1px solid var(--border-color); padding: 12px; text-align: left; }
.cookie-table th { background: var(--bg-light); }

/* Thank You Page */
.vertical-center { min-height: calc(100vh - 230px); display: flex; align-items: center; }
.thank-you-content { max-width: 600px; margin: 0 auto; }

/* Cookie Banner */
#cookie-banner {
 position: fixed;
 bottom: 20px;
 left: 20px;
 right: 20px;
 background: var(--text-dark);
 color: var(--bg-light);
 padding: 20px;
 border-radius: var(--radius-md);
 box-shadow: var(--shadow-lg);
 display: none;
 align-items: center;
 justify-content: space-between;
 gap: 20px;
 z-index: 2000;
 max-width: 600px;
 margin: 0 auto;
}
#cookie-banner p { margin: 0; }
#cookie-banner a { color: var(--primary-color); text-decoration: underline; }
#cookie-banner div { display: flex; gap: 10px; }

/* Animations */
.animate-on-scroll {
 opacity: 0;
 transform: translateY(30px);
 transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
 opacity: 1;
 transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
 .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
 .media-object, .media-object.reverse { grid-template-columns: 1fr; }
 .media-object.reverse .media-copy { grid-row: 2; grid-column: 1; }
 .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
 .contact-layout { grid-template-columns: 1fr; }
 .hero-inner { grid-template-columns: 1fr; text-align: center; }
 .hero-copy p { margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
 .nav-toggle { display: block; }
 .nav-links {
 position: fixed;
 top: 0; right: 0; bottom: 0;
 width: 100%;
 max-width: 300px;
 background: white;
 flex-direction: column;
 padding: 100px 30px 30px;
 gap: 24px;
 box-shadow: -5px 0 15px rgba(0,0,0,0.1);
 transform: translateX(100%);
 transition: transform 0.3s ease-in-out;
 }
 .nav-links.active { transform: translateX(0); }
 .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
 .footer-grid { grid-template-columns: 1fr; text-align: center; }
 .footer-brand, .footer-social { margin: 0 auto; justify-content: center; }
 .hero-actions { justify-content: center; }
 #cookie-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
 .newsletter-form { flex-direction: column; }
 .hero-actions { flex-direction: column; }
 .btn { width: 100%; }
 .form-group-grid { grid-template-columns: 1fr; }
}