@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;700&family=Lato:wght@400;700&family=Fira+Code&display=swap');

:root {
 --primary-color: #1976D2; /* Hopeful Blue */
 --secondary-color: #E65100; /* Welcoming Amber */
 --accent-color: #43A047; /* Belonging Green */
 --neutral-color: #BCAAA4;
 --bg-light: #FFF9F5;
 --bg-white: #ffffff;
 --text-dark: #212121;
 --text-light: #616161;
 --border-color: #e0e0e0;
 --gradient: linear-gradient(135deg, var(--secondary-color), var(--primary-color));

 --font-title: 'Poppins', sans-serif;
 --font-body: 'Lato', sans-serif;
 --font-code: 'Fira Code', monospace;
 
 --radius-md: 8px;
 --radius-lg: 16px;
 --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
 --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
 --transition: all 0.3s ease-in-out;
}

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

html {
 scroll-behavior: smooth;
 font-size: 100%;
}

body {
 font-family: var(--font-body);
 font-size: 18px;
 line-height: 1.88;
 color: var(--text-dark);
 background-color: var(--bg-white);
 -webkit-font-smoothing: antialiased;
 overflow-x: hidden;
}

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

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

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

/* Layout */
.container {
 max-width: 1200px;
 margin-left: auto;
 margin-right: auto;
 padding-left: 1rem;
 padding-right: 1rem;
}

.section {
 padding: clamp(3rem, 8vw, 6rem) 0;
}

.bg-light { background-color: var(--bg-light); }

.text-center { text-align: center; }

.grid-3 {
 display: grid;
 gap: 2rem;
}
@media (min-width: 768px) {
 .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Header & Navigation */
.header {
 position: fixed;
 top: 0;
 left: 0;
 right: 0;
 z-index: 1000;
 background-color: rgba(255, 255, 255, 0.9);
 backdrop-filter: blur(10px);
 border-bottom: 1px solid var(--border-color);
 transition: var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); }

.nav {
 display: flex;
 justify-content: space-between;
 align-items: center;
 height: 70px;
}

.nav-logo {
 font-family: var(--font-title);
 font-size: 1.25rem;
 font-weight: 700;
 color: var(--text-dark);
}

.nav-links {
 display: flex;
 align-items: center;
 gap: 2.5rem;
 list-style: none;
}

.nav-link {
 font-family: var(--font-body);
 font-weight: 700;
 color: var(--text-dark);
 position: relative;
 padding: 0.5rem 0;
}
.nav-link::after {
 content: '';
 position: absolute;
 bottom: 0;
 left: 0;
 width: 0;
 height: 2px;
 background: var(--gradient);
 transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after {
 width: 100%;
}
.nav-link svg { transition: transform 0.2s; }

/* Dropdown Menu */
.dropdown { position: relative; }
.dropdown-menu {
 display: none;
 position: absolute;
 top: 100%;
 left: 0;
 background-color: var(--bg-white);
 list-style: none;
 padding: 0.5rem 0;
 margin-top: 0.5rem;
 border-radius: var(--radius-md);
 box-shadow: var(--shadow-md);
 min-width: 220px;
 opacity: 0;
 transform: translateY(10px);
 transition: opacity 0.2s, transform 0.2s;
}
.dropdown:hover .dropdown-menu { display: block; opacity: 1; transform: translateY(0); }
.dropdown:hover .nav-link svg { transform: rotate(180deg); }
.dropdown-menu a {
 display: block;
 padding: 0.75rem 1.5rem;
 color: var(--text-dark);
 white-space: nowrap;
}
.dropdown-menu a:hover { background-color: var(--bg-light); color: var(--primary-color); }

.nav-toggle { display: none; cursor: pointer; }
.nav-toggle span {
 display: block;
 width: 25px;
 height: 3px;
 margin: 5px;
 background-color: var(--text-dark);
 transition: var(--transition);
}
@media (max-width: 768px) {
 .nav-toggle { display: block; z-index: 1001; }
 .nav-menu {
 position: fixed;
 top: 0;
 right: -100%;
 width: 70%;
 height: 100vh;
 background-color: var(--bg-light);
 flex-direction: column;
 justify-content: center;
 transition: right 0.4s ease-in-out;
 }
 .nav-menu.active { right: 0; }
 .nav-links { flex-direction: column; }
 .dropdown:hover .dropdown-menu { display: none; }
 .dropdown.active .dropdown-menu { display: block; position: static; box-shadow: none; background: transparent; }
}

/* Hero Section */
.hero {
 position: relative;
 min-height: 80vh;
 display: flex;
 align-items: center;
 background-size: cover;
 background-position: center;
 color: var(--bg-white);
}
.hero::before {
 content: '';
 position: absolute;
 inset: 0;
 background: rgba(29, 29, 29, 0.6);
}
.hero-content { position: relative; text-align: center; }
.hero-title { font-size: clamp(2rem, 6vw, 3.5rem); animation: fadeIn 1s ease-in-out; }
.hero-subtitle { font-size: clamp(1.1rem, 3vw, 1.25rem); max-width: 700px; margin: 1rem auto 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; }

/* Buttons */
.btn {
 display: inline-block;
 font-family: var(--font-body);
 font-weight: 700;
 font-size: 1rem;
 padding: 0.8rem 1.8rem;
 border-radius: 50px;
 border: 2px solid transparent;
 cursor: pointer;
 transition: var(--transition);
}
.btn-primary { background: var(--gradient); color: white; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.btn-secondary { border-color: var(--accent-color); color: var(--accent-color); }
.btn-secondary:hover { background-color: var(--accent-color); color: white; }

/* Section Header */
.section-header { text-align: center; max-width: 800px; margin: 0 auto 4rem; }
.section-label {
 font-family: var(--font-code);
 color: var(--secondary-color);
 font-weight: 700;
 margin-bottom: 0.5rem;
 display: block;
}
.section-title { font-size: clamp(2rem, 5vw, 2.75rem); }
.section-subtitle { font-size: 1.1rem; color: var(--text-light); }

/* Stats Grid */
.stats-grid { display: grid; gap: 2rem; text-align: center; }
@media(min-width: 768px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } }
.stat-item .stat-icon { color: var(--primary-color); margin-bottom: 1rem; }
.stat-item .stat-title { font-size: 1.3rem; }
.stat-item .stat-text { color: var(--text-light); font-size: 0.95rem; }

/* Timeline */
.timeline {
 position: relative;
 max-width: 800px;
 margin: 0 auto;
}
.timeline::after {
 content: '';
 position: absolute;
 width: 3px;
 background: var(--border-color);
 top: 0;
 bottom: 0;
 left: 50%;
 margin-left: -1.5px;
}
.timeline-item {
 padding: 1rem 3rem;
 position: relative;
 width: 50%;
}
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item:nth-child(odd)::before { left: auto; right: 20px; }
.timeline-item:nth-child(even)::before { right: auto; left: 20px; }
.timeline-item::after {
 content: '';
 position: absolute;
 width: 16px;
 height: 16px;
 right: -8px;
 top: 1.5rem;
 background-color: var(--bg-white);
 border: 3px solid var(--primary-color);
 border-radius: 50%;
 z-index: 1;
}
.timeline-item:nth-child(even)::after { left: -8px; }
.timeline-item .timeline-step {
 position: absolute;
 width: 40px;
 height: 40px;
 top: 0.75rem;
 background: var(--gradient);
 color: white;
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
 font-weight: 700;
 z-index: 2;
}
.timeline-item:nth-child(odd) .timeline-step { right: -20px; }
.timeline-item:nth-child(even) .timeline-step { left: -20px; }
.timeline-content {
 padding: 1.5rem;
 background-color: var(--bg-white);
 border-radius: var(--radius-md);
 box-shadow: var(--shadow-sm);
 position: relative;
}
.timeline-item:nth-child(odd) .timeline-content { text-align: right; }
@media (max-width: 768px) {
 .timeline::after { left: 20px; }
 .timeline-item { width: 100%; padding-left: 60px; padding-right: 15px; }
 .timeline-item:nth-child(odd), .timeline-item:nth-child(even) { left: 0; text-align: left; }
 .timeline-item::after { left: 12px; }
 .timeline-item .timeline-step { left: 0px; }
}

/* Card */
.card {
 background-color: var(--bg-white);
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-md);
 overflow: hidden;
 transition: var(--transition);
 display: flex;
 flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.card-title { margin-top: 0; }
.card-text { flex-grow: 1; }
.card .btn { align-self: flex-start; }

/* Media Object */
.media-object {
 display: grid;
 align-items: center;
 gap: 3rem;
}
@media (min-width: 768px) {
 .media-object { grid-template-columns: 1fr 1fr; }
 .media-object.reversed .media-visual { order: 2; }
}
.media-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.media-copy ul { list-style: none; padding: 0; }
.media-copy li { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.media-copy li svg { color: var(--accent-color); flex-shrink: 0; }

/* CTA Section */
.cta-section { background: var(--gradient); color: white; padding: 4rem 1rem; text-align: center; }
.cta-section .section-title, .cta-section .section-subtitle { color: white; }
.cta-section .btn-primary { background: white; color: var(--primary-color); }

/* Page Specific Header */
.page-header-section {
 padding: 6rem 0 4rem;
 background: var(--bg-light);
 text-align: center;
}
.page-title { font-size: clamp(2.5rem, 6vw, 3.5rem); }
.page-subtitle { max-width: 700px; margin: 1rem auto 0; font-size: 1.1rem; }
.content-body { max-width: 800px; margin: 0 auto; }
.content-body h2 { margin-top: 3rem; margin-bottom: 1.5rem; }
.styled-list { list-style-type: ' '; padding-left: 1rem; }
.styled-list li { padding-left: 0.5rem; margin-bottom: 0.75rem; }

/* Testimonial Card */
.testimonial-card {
 background-color: var(--bg-light);
 border-left: 5px solid var(--accent-color);
 padding: 2rem;
 border-radius: var(--radius-md);
 margin: 3rem 0;
 display: flex;
 gap: 1.5rem;
 align-items: flex-start;
}
.testimonial-avatar {
 width: 80px;
 height: 80px;
 border-radius: 50%;
 object-fit: cover;
 flex-shrink: 0;
}
.testimonial-card blockquote p { font-style: italic; font-size: 1.1rem; margin-bottom: 1rem; }
.testimonial-card blockquote footer { font-weight: 700; color: var(--text-dark); }
@media (max-width: 576px) { .testimonial-card { flex-direction: column; align-items: center; text-align: center; } }

/* Contact Page */
.contact-grid {
 display: grid;
 gap: 3rem;
}
@media (min-width: 992px) { .contact-grid { grid-template-columns: 1fr 1.5fr; } }
.contact-details { list-style: none; padding: 0; }
.contact-details li { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-details svg { color: var(--primary-color); width: 24px; height: 24px; margin-top: 5px; flex-shrink: 0; }
.contact-details p { margin-bottom: 0; }
.contact-form .form-group { margin-bottom: 1.5rem; }
.contact-form label { display: block; font-weight: 700; margin-bottom: 0.5rem; }
.contact-form input, .contact-form textarea, .contact-form select {
 width: 100%;
 padding: 0.8rem 1rem;
 border-radius: var(--radius-md);
 border: 1px solid var(--border-color);
 font-family: var(--font-body);
 font-size: 1rem;
 transition: var(--transition);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
 outline: none;
 border-color: var(--primary-color);
 box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.2);
}
.checkbox-group { display: flex; align-items: flex-start; gap: 0.75rem; }
.checkbox-group input { width: auto; margin-top: 5px; }
.checkbox-group label { font-weight: 400; font-size: 0.9rem; }
.contact-form button { width: 100%; }
.map-container {
 width: 100%;
 height: 450px;
 border-radius: 12px;
 overflow: hidden;
 box-shadow: var(--shadow-md);
 margin-top: 2rem;
}
.map-container iframe { width: 100%; height: 100%; border: none; }

/* Thank You Page */
.thank-you-content { display: flex; flex-direction: column; align-items: center; }
.thank-you-icon { color: var(--accent-color); margin-bottom: 2rem; }

/* Table */
.table-container { overflow-x: auto; margin: 2rem 0; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border-color); }
th { background-color: var(--bg-light); font-family: var(--font-title); }

/* Footer */
.footer {
 background-color: var(--text-dark);
 color: #e0e0e0;
 padding: 4rem 0 2rem;
 margin-top: 3rem;
}
.footer-grid {
 display: grid;
 gap: 2rem;
 padding-bottom: 3rem;
 border-bottom: 1px solid #424242;
}
@media (min-width: 576px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-logo { font-size: 1.25rem; font-weight: 700; display: block; margin-bottom: 1rem; color: var(--bg-white); }
.footer-text { font-size: 0.9rem; color: #bdbdbd; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: #e0e0e0; transition: var(--transition); }
.footer-social a:hover { color: var(--secondary-color); transform: translateY(-3px); }
.footer-heading {
 font-family: var(--font-title);
 font-size: 1rem;
 color: var(--bg-white);
 text-transform: uppercase;
 letter-spacing: 1px;
 margin-bottom: 1.5rem;
}
.footer-links, .footer-contact { list-style: none; padding: 0; }
.footer-links li, .footer-contact li { margin-bottom: 1rem; }
.footer-links a, .footer-contact a { color: #bdbdbd; font-size: 0.9rem; }
.footer-links a:hover, .footer-contact a:hover { color: white; }
.footer-contact li { color: #bdbdbd; font-size: 0.9rem; line-height: 1.5; }
.footer-bottom {
 display: flex;
 justify-content: space-between;
 align-items: center;
 padding-top: 2rem;
 flex-wrap: wrap;
 gap: 1rem;
}
.footer-bottom p { font-size: 0.85rem; color: #757575; margin: 0; }
.footer-legal { list-style: none; display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.85rem; color: #757575; }
.footer-legal a:hover { color: white; }
@media (max-width: 576px) { .footer-bottom { flex-direction: column; } }

/* Cookie Banner */
.cookie-banner {
 position: fixed;
 bottom: 0;
 left: 0;
 right: 0;
 background-color: var(--text-dark);
 color: var(--bg-white);
 padding: 1rem 1.5rem;
 display: none;
 align-items: center;
 justify-content: space-between;
 gap: 1rem;
 z-index: 2000;
 flex-wrap: wrap;
}
.cookie-banner p { margin-bottom: 0; font-size: 0.9rem; }
.cookie-banner a { color: var(--secondary-color); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 0.75rem; }
.cookie-banner .btn { padding: 0.6rem 1.2rem; }

/* Form Validation & Animations */
.input-error {
 border-color: #dc2626 !important;
 box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}
.field-error { animation: fadeIn 0.3s ease; }

.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;
}
button:disabled { cursor: not-allowed; opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/* Scroll animations */
[data-aos] { opacity: 0; transform: translateY(20px); transition-property: transform, opacity; }
[data-aos="fade-up"] { transform: translateY(40px); }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }