/* Base Styles and Variables */
:root {
    --primary-color: #2e5faa;
    --secondary-color: #4c81d6;
    --accent-color: #ffd166;
    --dark-color: #113262;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #666;
    --text-dark: #111;
    --border-color: #e0e0e0;
    --success-color: #4CAF50;
    --error-color: #f44336;
    --warning-color: #ff9800;
    --info-color: #2196F3;
    --font-main: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --transition-main: all 0.3s ease-in-out;
    --shadow-small: 0 2px 5px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-large: 0 8px 24px rgba(0,0,0,0.1);
    --radius-small: 4px;
    --radius-medium: 8px;
    --radius-large: 16px;
    --container-max: 1200px;
    --container-padding: 20px;
}

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@300;400;600&display=swap');

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

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

body {
    font-family: var(--font-main);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 3.2rem;
    margin-bottom: 3rem;
}

h3 {
    font-size: 2.4rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-main);
}

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

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

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* Utility Classes */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

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

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.mb-4 {
    margin-bottom: 4rem;
}

.mb-5 {
    margin-bottom: 5rem;
}

.pt-1 {
    padding-top: 1rem;
}

.pt-2 {
    padding-top: 2rem;
}

.pt-3 {
    padding-top: 3rem;
}

.pb-1 {
    padding-bottom: 1rem;
}

.pb-2 {
    padding-bottom: 2rem;
}

.pb-3 {
    padding-bottom: 3rem;
}

.btn-primary {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--radius-medium);
    transition: var(--transition-main);
    font-weight: 600;
    text-align: center;
    box-shadow: var(--shadow-small);
}

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

.btn-secondary {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-medium);
    transition: var(--transition-main);
    font-weight: 600;
    text-align: center;
}

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

/* Header & Navigation */
header {
    background-color: white;
    box-shadow: var(--shadow-small);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.5rem 0;
}

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

.logo {
    flex: 0 0 auto;
}

.logo img {
    max-height: 5rem;
    border-radius: var(--radius-small);
}

nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
}

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

.main-nav a {
    font-weight: 600;
    padding: 0.8rem 1.2rem;
    color: var(--text-color);
    position: relative;
}

.main-nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.main-nav a:hover:after, .main-nav a.active:after {
    transform: scaleX(1);
    transform-origin: left;
}

.main-nav a.active {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero, .about-hero, .contact-hero {
    background-color: var(--dark-color);
    color: white;
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1, .about-hero h1, .contact-hero h1 {
    color: white;
    margin-bottom: 1rem;
}

.hero p, .about-hero p, .contact-hero p {
    font-size: 1.8rem;
    max-width: 70rem;
    margin: 0 auto 3rem auto;
}

.subtitle {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
}

/* Timeline Section */
.timeline {
    padding: 6rem 0;
    background-color: var(--light-color);
}

.timeline h2 {
    text-align: center;
    margin-bottom: 5rem;
}

.timeline-container {
    position: relative;
    max-width: 100rem;
    margin: 0 auto;
}

.timeline-container::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    position: relative;
    margin-bottom: 5rem;
}

.timeline-item::after {
    content: '';
    display: block;
    clear: both;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-date {
    position: absolute;
    width: 120px;
    padding: 0.8rem 1.2rem;
    background-color: var(--accent-color);
    color: var(--text-dark);
    border-radius: var(--radius-medium);
    text-align: center;
    font-weight: 600;
    font-size: 1.4rem;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 30px;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 2rem;
    background-color: white;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-medium);
}

.timeline-item:nth-child(odd) .timeline-content {
    float: left;
}

.timeline-item:nth-child(even) .timeline-content {
    float: right;
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.timeline-content p {
    margin-bottom: 0;
}

/* Blog Posts Grid */
.blog-posts {
    padding: 6rem 0;
}

.blog-posts h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
}

.post-card {
    background-color: white;
    border-radius: var(--radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-main);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    box-shadow: var(--shadow-large);
    transform: translateY(-5px);
}

.post-image {
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.post-content p {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.read-more {
    align-self: flex-start;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
}

.read-more::after {
    content: '→';
    margin-left: 0.5rem;
    transition: var(--transition-main);
}

.read-more:hover::after {
    margin-left: 1rem;
}

/* Newsletter Section */
.newsletter {
    background-color: var(--primary-color);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.newsletter h2 {
    color: white;
    margin-bottom: 1rem;
}

.newsletter p {
    font-size: 1.8rem;
    max-width: 60rem;
    margin: 0 auto 3rem auto;
}

.newsletter-form {
    display: flex;
    max-width: 50rem;
    margin: 0 auto;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1.2rem 1.5rem;
    border: none;
    border-radius: var(--radius-medium);
    font-size: 1.6rem;
}

.newsletter-form button {
    padding: 1.2rem 2.4rem;
    background-color: var(--accent-color);
    color: var(--text-dark);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-medium);
    cursor: pointer;
    transition: var(--transition-main);
}

.newsletter-form button:hover {
    background-color: #e9bc54;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 5rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

footer h3 {
    color: white;
    margin-bottom: 2rem;
    position: relative;
}

footer h3::after {
    content: '';
    position: absolute;
    bottom: -0.8rem;
    left: 0;
    width: 4rem;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-about p {
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: #ffffffbb;
    transition: var(--transition-main);
}

.footer-links a:hover {
    color: white;
    padding-left: 0.5rem;
}

.footer-contact p {
    margin-bottom: 1rem;
}

.footer-contact a {
    color: var(--accent-color);
}

.footer-social .social-icons {
    display: flex;
    gap: 1.5rem;
}

.footer-social .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition-main);
}

.footer-social .social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer-social .social-icons svg {
    fill: none;
    stroke: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* About Page Styles */
.about-intro {
    padding: 6rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 2rem;
}

.about-image img {
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-medium);
}

.team-section {
    padding: 6rem 0;
    background-color: var(--light-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.team-card {
    background-color: white;
    border-radius: var(--radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-main);
    text-align: center;
    padding-bottom: 2rem;
}

.team-card:hover {
    box-shadow: var(--shadow-large);
    transform: translateY(-5px);
}

.team-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.team-card h3 {
    margin: 2rem 0 0.5rem 0;
}

.team-card p {
    padding: 0 2rem;
    margin-bottom: 1.5rem;
}

.team-card p:first-of-type {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.6rem;
    height: 3.6rem;
    background-color: var(--light-color);
    border-radius: 50%;
    transition: var(--transition-main);
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.social-links a:hover svg {
    stroke: white;
}

.values-section {
    padding: 6rem 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.value-card {
    background-color: white;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-medium);
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition-main);
}

.value-card:hover {
    box-shadow: var(--shadow-large);
    transform: translateY(-5px);
}

.value-icon {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.value-card h3 {
    margin-bottom: 1.5rem;
}

.cta-section {
    background-color: var(--primary-color);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta-section p {
    max-width: 70rem;
    margin: 0 auto 3rem auto;
    font-size: 1.8rem;
}

.cta-section .btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.cta-section .btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--dark-color);
}

/* Contact Page Styles */
.contact-section {
    padding: 6rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    margin-bottom: 3rem;
}

.contact-card {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: var(--radius-medium);
    transition: var(--transition-main);
}

.contact-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-3px);
}

.contact-icon {
    margin-right: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-details h3 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.contact-details p {
    margin-bottom: 0;
}

.social-contact {
    margin-top: 3rem;
}

.social-contact h3 {
    margin-bottom: 1.5rem;
}

.contact-form-container {
    background-color: white;
    padding: 3rem;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-medium);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-medium);
    transition: var(--transition-main);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 95, 170, 0.2);
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.consent-checkbox input {
    width: auto;
    margin-top: 0.4rem;
}

.contact-form button {
    margin-top: 1rem;
}

.map-section {
    padding: 6rem 0;
    background-color: var(--light-color);
}

.map-section h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.map-container {
    border-radius: var(--radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.map-placeholder {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.faq-section {
    padding: 6rem 0;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.faq-container {
    max-width: 80rem;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-medium);
    overflow: hidden;
}

.faq-question {
    padding: 2rem;
    background-color: var(--light-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.8rem;
}

.faq-toggle {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 2rem;
    max-height: 500px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 3rem;
    border-radius: var(--radius-medium);
    max-width: 50rem;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-large);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.8rem;
    cursor: pointer;
    color: var(--text-light);
}

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

.success-message svg {
    margin-bottom: 2rem;
}

.success-message h2 {
    color: var(--success-color);
}

.close-btn {
    margin-top: 2rem;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 100rem;
    background-color: white;
    padding: 2rem;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-large);
    z-index: 1500;
    display: none;
}

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

.cookie-content p {
    margin-bottom: 1.5rem;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cookie-accept, .cookie-customize, .cookie-decline {
    padding: 1rem 2rem;
    border-radius: var(--radius-small);
    font-weight: 600;
    transition: var(--transition-main);
}

.cookie-accept {
    background-color: var(--success-color);
    color: white;
}

.cookie-customize {
    background-color: var(--info-color);
    color: white;
}

.cookie-decline {
    background-color: var(--text-light);
    color: white;
}

.cookie-policy-link {
    font-size: 1.4rem;
    margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 992px) {
    html {
        font-size: 58%;
    }

    .about-content, .contact-grid {
        grid-template-columns: 1fr;
    }

    .timeline-container::before {
        left: 40px;
    }

    .timeline-dot {
        left: 40px;
    }

    .timeline-date {
        left: 40px;
        transform: translateX(-50%);
        margin-top: -30px;
    }

    .timeline-content {
        width: calc(100% - 80px);
        float: right;
    }
}

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

    h2 {
        font-size: 2.8rem;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        padding: 10rem 2rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .main-nav.active {
        right: 0;
    }

    .mobile-menu-toggle {
        display: block;
        z-index: 1001;
    }

    .mobile-menu-toggle.active svg {
        transform: rotate(90deg);
    }

    .newsletter-form {
        flex-direction: column;
    }

    .hero, .about-hero, .contact-hero {
        padding: 5rem 0;
    }

    .values-section, .blog-posts, .about-intro, .contact-section, .timeline, .team-section, .map-section, .faq-section {
        padding: 4rem 0;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 55%;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .timeline-container::before, .timeline-dot, .timeline-date {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 40px);
        padding: 1.5rem;
    }

    .timeline-date {
        width: auto;
        top: -40px;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .contact-form-container {
        padding: 2rem;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
