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

:root {
    --primary-color: #0d47a1; /* Deep Blue */
    --secondary-color: #1b5e20; /* Dark Green */
    --accent-color: #29b6f6; /* Light Blue */
    --background-color: #ffffff;
    --background-alt: #f7f9fc;
    --text-color: #333;
    --text-muted: #667085;
    --heading-color: #101828;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.05);

    --font-primary: 'Inter', sans-serif;
    --font-headings: 'Roboto Slab', serif;

    --container-width: 1200px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

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

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

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--heading-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; color: var(--text-muted); }
ul, ol { list-style: none; }

.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.section {
    padding: clamp(60px, 8vw, 100px) 0;
}

.section-alt {
    background-color: var(--background-alt);
}

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

.section-header h2 { margin-bottom: 0.5rem; }

/* --- HEADER & NAVIGATION --- */
.main-header {
    background-color: var(--background-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    text-decoration: none;
}
.logo:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
    text-decoration: none;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--heading-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--heading-color);
    transition: all 0.3s ease-in-out;
}

.cta-button {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    border: 2px solid transparent;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.cta-button:hover {
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
}
.cta-button.secondary {
    background-color: var(--background-color);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}
.cta-button.secondary:hover {
    background-color: var(--background-alt);
    color: var(--heading-color);
}

/* --- HERO --- */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(13, 71, 161, 0.7), rgba(0, 0, 0, 0.5));
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}
.hero-title {
    color: var(--white);
    margin-bottom: 1rem;
}
.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.page-hero {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 60px 0;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: var(--white); opacity: 0.8; margin-bottom: 0; }

/* --- CARDS & GRIDS --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px var(--shadow-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-content h3 {
    margin-bottom: 0.5rem;
}
.card-content p {
    flex-grow: 1;
}
.text-link {
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 1rem;
}

.feature-card {
    background: var(--background-alt);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
}
.feature-card.text-card { background: var(--white); }
.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}
.feature-icon svg {
    width: 30px;
    height: 30px;
}

/* --- CONTENT SPLIT --- */
.content-image-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.content-image img {
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- TESTIMONIALS --- */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow-color);
}
.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--primary-color);
}
.testimonial-card blockquote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    border: none;
}
.testimonial-card cite {
    font-style: normal;
}
.testimonial-card cite strong {
    display: block;
    color: var(--heading-color);
}
.testimonial-card cite span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- CTA SECTION --- */
.cta-section {
    background-image: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}
.cta-section h2 { color: var(--white); }
.cta-section p { color: var(--white); opacity: 0.9; max-width: 600px; margin: 0 auto 2rem; }
.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}
.newsletter-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 1rem;
}
.newsletter-form .cta-button {
    flex-shrink: 0;
}

/* --- FOOTER --- */
.main-footer {
    background-color: var(--heading-color);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 40px;
}
.footer-column h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}
.footer-column ul li {
    margin-bottom: 0.75rem;
}
.footer-column a, .footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}
.footer-column a:hover, .footer-link:hover {
    color: var(--white);
    text-decoration: underline;
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Disclaimer Section --- */
.disclaimer-section {
    background-color: rgba(0,0,0,0.2);
    color: rgba(255,255,255,0.6);
    padding: 20px 30px;
    margin: 30px 0;
    border-radius: 8px;
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid rgba(255,255,255,0.1);
}
.disclaimer-section strong {
    display: block;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.8);
}

/* --- CONTACT PAGE --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}
.contact-details .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.contact-details svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    margin-top: 4px;
    flex-shrink: 0;
}
.contact-details strong {
    display: block;
    color: var(--heading-color);
}
a.phone-link, a[href^="tel:"] {
    color: inherit; text-decoration: none; cursor: pointer; transition: color 0.2s ease;
}
a.phone-link:hover, a[href^="tel:"]:hover {
    color: var(--primary-color); text-decoration: underline;
}
.contact-form-container {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 20px var(--shadow-color);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(13, 71, 161, 0.2);
}
.map-container {
    width: 100%; height: 450px; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); margin: 0;
}
.map-container iframe { width: 100%; height: 100%; border: none; }

/* --- ARTICLES PAGE --- */
.filter-bar { display: flex; gap: 1rem; margin-bottom: 3rem; }
.filter-bar input, .filter-bar select {
    padding: 0.75rem 1rem; border: 1px solid var(--border-color);
    border-radius: var(--radius-sm); font-size: 1rem;
}
.filter-bar input { flex-grow: 1; }
.pagination {
    display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 3rem;
}
.pagination a, .pagination span {
    padding: 0.5rem 1rem; border-radius: var(--radius-sm);
}
.pagination a { border: 1px solid var(--border-color); }
.pagination a:hover { background: var(--background-alt); text-decoration: none; }
.pagination a.active {
    background: var(--primary-color); color: var(--white); border-color: var(--primary-color);
}

/* --- ABOUT PAGE --- */
.team-card { text-align: center; }
.team-img {
    width: 120px; height: 120px; object-fit: cover; border-radius: 50%;
    margin: 0 auto 1rem; border: 4px solid var(--background-color);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.team-card h4 { margin-bottom: 0.25rem; }

/* --- LEGAL & THANK YOU PAGES --- */
.legal-content h2 { margin-top: 2rem; }
.legal-content ul { list-style: disc; padding-left: 20px; }
.thank-you-section {
    min-height: 60vh; display: flex; flex-direction: column; align-items: center;
    justify-content: center; text-align: center; padding: 80px 20px;
}
.thank-you-icon {
    width: 80px; height: 80px; background: var(--secondary-color); color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 30px;
}
.thank-you-icon svg { width: 40px; height: 40px; }
.thank-you-section h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 20px; }
.thank-you-section p { font-size: 1.2rem; max-width: 600px; margin-bottom: 30px; }

/* --- COOKIE BANNER --- */
#cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; background-color: rgba(16, 24, 40, 0.95);
    color: var(--white); padding: 1.5rem 0; z-index: 9999; display: none;
    -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
.cookie-content {
    display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
}
.cookie-content p { margin-bottom: 0; color: rgba(255,255,255,0.8); }
.cookie-buttons { display: flex; flex-shrink: 0; gap: 1rem; }
.cookie-buttons .cta-button { background-color: var(--secondary-color); }
.cookie-buttons .cta-button.secondary { background-color: transparent; color: var(--white); border-color: var(--white); }
.cookie-buttons .cta-button.secondary:hover { background-color: rgba(255,255,255,0.1); }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .content-image-split { grid-template-columns: 1fr; }
    .content-image-split .content-image { order: -1; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .nav-links {
        position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
        background-color: var(--white); flex-direction: column; justify-content: center;
        align-items: center; gap: 2rem; transition: right 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    .nav-links.active { right: 0; }
    .menu-toggle { display: block; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .header-cta { display: none; }
    .newsletter-form { flex-direction: column; }
    .cookie-content { flex-direction: column; text-align: center; }
    
    .map-container { height: 350px; }
}