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

:root {
 --primary-color: #2d8f5e;
 --secondary-color: #0d9488;
 --primary-dark: #226e49;
 --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 3px 0 rgb(0 0 0 / 0.05), 0 1px 2px -1px 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);
 --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
 --font-main: 'Inter', sans-serif;
}

/* --- Base & Typography --- */
*, *::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-light);
 background-color: var(--bg-white);
}

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

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

p { margin-bottom: 1rem; }
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 { list-style: none; }

/* --- Layout --- */
.container {
 width: 100%;
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 24px;
}
.container-sm { max-width: 800px; }
.section { padding: 80px 0; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }

.section-header {
 text-align: center;
 max-width: 700px;
 margin: 0 auto 48px;
}

.section-label {
 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;
}

.section-title { margin-bottom: 16px; }
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); }

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

/* --- Header & Navigation --- */
.header {
 background: 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;
 transition: box-shadow 0.3s;
}
.header.scrolled { box-shadow: var(--shadow-md); }

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

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

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

.nav-links a {
 color: var(--text-dark);
 font-weight: 500;
 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-cta { display: 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: 6px 0; transition: var(--transition); }

/* --- Hero --- */
.hero-split {
 padding: 120px 0 80px;
 background-color: var(--bg-white);
}

.hero-split-container {
 display: grid;
 grid-template-columns: 1fr 1fr;
 align-items: center;
 gap: 60px;
}

.hero-title { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.15rem; color: var(--text-light); margin-bottom: 2rem; max-width: 550px; }
.hero-actions { display: flex; gap: 16px; margin-top: 2rem; }
.hero-split-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

.page-header-section {
 padding: 140px 0 80px;
 background-color: var(--bg-light);
 text-align: center;
}
.page-header-section .container { max-width: 800px; }
.page-header-section h1 { margin-bottom: 1rem; }
.page-header-subtitle { font-size: 1.2rem; color: var(--text-muted); }

/* --- Buttons --- */
.btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 font-weight: 600;
 padding: 12px 28px;
 border-radius: var(--radius-md);
 border: 2px solid transparent;
 cursor: pointer;
 transition: var(--transition);
 font-size: 1rem;
}

.btn-primary {
 background-color: var(--primary-color);
 color: white;
}
.btn-primary:hover {
 background-color: var(--primary-dark);
 transform: translateY(-2px);
}

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

.btn-white {
 background-color: white;
 color: var(--primary-color);
}
.btn-white:hover {
 background-color: rgba(255,255,255,0.9);
 transform: translateY(-2px);
}
.btn-full { width: 100%; }

/* --- Cards --- */
.card {
 background: white;
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-md);
 overflow: hidden;
 display: flex;
 flex-direction: column;
 transition: var(--transition);
}
.card:hover { 
 transform: translateY(-8px);
 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-meta {
 font-size: 0.8rem;
 color: var(--secondary-color);
 font-weight: 600;
 margin-bottom: 8px;
 text-transform: uppercase;
}
.card-title { font-size: 1.3rem; margin-bottom: 12px; }
.card-text { margin-bottom: 16px; flex-grow: 1; }
.card-button {
 align-self: flex-start;
 display: inline-block;
 font-weight: 600;
 color: var(--primary-color);
 border: 2px solid var(--primary-color);
 padding: 8px 20px;
 border-radius: var(--radius-md);
}
.card-button:hover { background: var(--primary-color); color: white; }

/* --- Specific Sections --- */
.logos-section { padding: 40px 0; background: var(--bg-white); }
.logos-title { text-align: center; color: var(--text-muted); font-size: 1rem; margin-bottom: 24px; font-weight: 500; }
.logos-grid { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 30px; }
.client-logo { height: 40px; max-width: 140px; object-fit: contain; filter: grayscale(100%); opacity: 0.6; transition: var(--transition); }
.client-logo:hover { filter: grayscale(0); opacity: 1; }

.media-object-alt {
 display: flex;
 flex-direction: column;
 background: white;
 border-radius: var(--radius-lg);
 overflow: hidden;
 box-shadow: var(--shadow-md);
 height: 100%;
}
.media-object-alt-img { width: 100%; height: 220px; object-fit: cover; }
.media-object-alt-content { padding: 24px; }
.media-object-alt h3 { margin-bottom: 8px; font-size: 1.4rem; }
.read-more-link { font-weight: 600; color: var(--primary-color); }

.icon-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.icon-card { text-align: center; padding: 20px; }
.icon-card-icon {
 width: 60px;
 height: 60px;
 background: var(--bg-light);
 border-radius: 50%;
 margin: 0 auto 16px;
 display: flex;
 align-items: center;
 justify-content: center;
 color: var(--primary-color);
}
.icon-card-icon svg { width: 32px; height: 32px; }
.icon-card-title { font-size: 1.25rem; margin-bottom: 8px; }

.cta-section {
 padding: 60px 0;
 background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
 color: white;
 text-align: center;
}
.cta-title { color: white; margin-bottom: 1rem; font-size: 2rem; }
.cta-text { margin-bottom: 2rem; opacity: 0.9; max-width: 600px; margin-left: auto; margin-right: auto;}

.accordion { max-width: 700px; margin: 0 auto; }
.accordion-item { border-bottom: 1px solid var(--border-color); }
.accordion-header {
 width: 100%;
 background: none;
 border: none;
 padding: 20px 0;
 text-align: left;
 font-size: 1.15rem;
 font-weight: 600;
 color: var(--text-dark);
 display: flex;
 justify-content: space-between;
 align-items: center;
 cursor: pointer;
}
.accordion-icon { width: 20px; height: 20px; transition: var(--transition); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.accordion-content p { padding: 0 0 20px; color: var(--text-light); }
.accordion-item.active .accordion-content { max-height: 200px; }
.accordion-item.active .accordion-icon { transform: rotate(45deg); }

.media-object { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
.media-visual img { border-radius: var(--radius-lg); }
.media-content ul { list-style: disc; padding-left: 20px; margin-top: 1rem; }
.media-content ul li { margin-bottom: 0.5rem; }
.media-content li::marker { color: var(--primary-color); }
.timeline {
 position: relative;
 max-width: 800px;
 margin: 0 auto;
}
.timeline::after {
 content: '';
 position: absolute;
 width: 2px;
 background-color: 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: 0; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item::after {
 content: '';
 position: absolute;
 width: 20px;
 height: 20px;
 right: -10px;
 background-color: white;
 border: 4px solid var(--primary-color);
 top: 20px;
 border-radius: 50%;
 z-index: 1;
}
.timeline-item:nth-child(even)::after { left: -10px; }
.timeline-content { padding: 20px; background: var(--bg-light); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.timeline-date {
 position: absolute;
 top: 18px;
 font-weight: 700;
 color: var(--primary-color);
 z-index: 2;
}
.timeline-item:nth-child(odd) .timeline-date { right: -90px; }
.timeline-item:nth-child(even) .timeline-date { left: -90px; }

.team-card { text-align: center; }
.team-photo {
 width: 120px;
 height: 120px;
 border-radius: 50%;
 margin: 0 auto 16px;
 object-fit: cover;
 border: 4px solid white;
 box-shadow: var(--shadow-lg);
}
.team-name { font-size: 1.25rem; margin-bottom: 4px; }
.team-title { font-weight: 500; color: var(--secondary-color); margin-bottom: 8px; }
.team-bio { font-size: 0.9rem; max-width: 250px; margin: 0 auto; }

.category-card {
 background: white;
 padding: 24px;
 border-radius: var(--radius-md);
 box-shadow: var(--shadow-sm);
 border-left: 4px solid var(--primary-color);
 transition: var(--transition);
}
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.category-card h3 { margin-bottom: 8px; }

.archive-search { display: flex; max-width: 600px; margin: 0 auto; gap: 10px; }
.archive-search input { flex-grow: 1; }

.search-filter-bar {
 display: flex;
 flex-wrap: wrap;
 gap: 16px;
 margin-bottom: 40px;
}
.search-input, .filter-dropdown select {
 padding: 12px 16px;
 border: 1px solid var(--border-color);
 border-radius: var(--radius-md);
 font-size: 1rem;
 font-family: var(--font-main);
}
.search-input { flex-grow: 1; }
.filter-dropdown select { background-color: white; }

.pagination {
 display: flex;
 justify-content: center;
 gap: 8px;
 margin-top: 40px;
}
.pagination a, .pagination span {
 padding: 10px 15px;
 border: 1px solid var(--border-color);
 border-radius: var(--radius-md);
 color: var(--text-dark);
}
.pagination a:hover { background-color: var(--bg-light); }
.pagination a.active { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }

.contact-layout { display: grid; grid-template-columns: 2fr 1.5fr; gap: 60px; }
.contact-form-container label { display: block; font-weight: 600; margin-bottom: 8px; }
.form-group { margin-bottom: 20px; }
.contact-form input, .contact-form textarea {
 width: 100%;
 padding: 12px;
 border: 1px solid var(--border-color);
 border-radius: var(--radius-md);
 font-size: 1rem;
}
.contact-form textarea { min-height: 120px; resize: vertical; }

.contact-info-list { display: flex; flex-direction: column; gap: 24px; margin-top: 24px; }
.contact-info-list li { display: flex; align-items: flex-start; gap: 16px; }
.contact-info-list svg {
 width: 24px;
 height: 24px;
 color: var(--primary-color);
 flex-shrink: 0;
 margin-top: 4px;
}
.contact-info-list strong { display: block; color: var(--text-dark); }
.map-container {
 width: 100%;
 height: 450px;
 border-radius: var(--radius-lg);
 overflow: hidden;
 box-shadow: var(--shadow-md);
}

/* --- 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 1fr 1.5fr;
 gap: 40px;
 margin-bottom: 40px;
}
.footer-logo {
 display: block;
 font-size: 1.5rem;
 font-weight: 700;
 color: white;
 margin-bottom: 16px;
}
.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 li { margin-bottom: 12px; }
.footer-links a { color: #a0aec0; font-size: 0.9rem; }
.footer-links a:hover { color: white; }
.footer-contact li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--secondary-color); }
.footer-contact a { color: #a0aec0; }
.footer-contact a:hover { color: white; }
.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;
}
.footer-social a:hover { background: var(--primary-color); }
.footer-bottom {
 text-align: center;
 border-top: 1px solid rgba(255, 255, 255, 0.1);
 padding-top: 30px;
 font-size: 0.85rem;
}

/* --- Form Validation --- */
.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; }
.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] { opacity: 0.7; cursor: not-allowed; }

/* --- Cookie Banner --- */
#cookie-banner {
 position: fixed;
 bottom: 0;
 left: 0;
 right: 0;
 background: #1f2937;
 color: #e5e7eb;
 padding: 20px;
 display: none;
 align-items: center;
 justify-content: space-between;
 z-index: 2000;
 gap: 20px;
}
#cookie-banner p { margin: 0; font-size: 0.9rem; }
#cookie-banner a { color: var(--secondary-color); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }
#accept-cookies { background: var(--primary-color); color: white; border: none; padding: 10px 20px; }
#decline-cookies { background: #4b5563; color: white; border: none; padding: 10px 20px; }

/* --- Responsive --- */
@media (max-width: 992px) {
 .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
 .hero-split-container, .media-object { grid-template-columns: 1fr; }
 .hero-split-visual { order: -1; }
 .footer-grid { grid-template-columns: 1fr 1fr; }
 .contact-layout { grid-template-columns: 1fr; }
 .timeline::after { left: 30px; }
 .timeline-item { width: 100%; padding-left: 70px; padding-right: 10px; }
 .timeline-item:nth-child(even) { left: 0; }
 .timeline-item::after { left: 20px; }
 .timeline-date { position: static; margin-bottom: 10px; }
}

@media (max-width: 768px) {
 .nav-toggle { display: block; z-index: 1001; }
 .nav-links {
 position: fixed;
 top: 0;
 right: -100%;
 width: 70%;
 height: 100vh;
 background: white;
 flex-direction: column;
 padding: 100px 30px 30px;
 gap: 20px;
 transition: right 0.4s ease;
 box-shadow: -5px 0 15px rgba(0,0,0,0.1);
 }
 .nav-links.active { right: 0; }
 .nav-cta { display: none; }
 #cookie-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 576px) {
 .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
 .footer-grid { grid-template-columns: 1fr; }
 .search-filter-bar { flex-direction: column; }
}