/* --- DESIGN SYSTEM --- */
:root {
    --pri: #F5FAFA;
    --sec: #7DB8C9;
    --acc: #4A8DA0;
    --dark: #2C5364;
    --darker: #203A43;
    --gradient: linear-gradient(to right, #2C5364, #203A43, #0F2027);

    --font-heading: 'Josefin Sans', sans-serif;
    --font-body: 'Nunito', sans-serif;

    --radius-soft: 8px;
    --radius-card: 12px;
}

/* --- GENERAL & RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark);
    color: var(--pri);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

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

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

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

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

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

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

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

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

/* --- BUTTONS & CARDS --- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-soft);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--sec);
    color: var(--dark);
}

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

.btn-accent {
    background-color: var(--acc);
    color: var(--pri);
}

.btn-accent:hover {
    background-color: transparent;
    border-color: var(--acc);
    color: var(--acc);
}

.btn-secondary {
    background-color: transparent;
    color: var(--pri);
    border: 2px solid var(--sec);
}

.btn-secondary:hover {
    background-color: var(--sec);
    color: var(--dark);
}

.card {
    background-color: var(--dark);
    border-radius: var(--radius-card);
    padding: 2rem;
    box-shadow: inset 0 0 0 2px var(--sec);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: inset 0 0 0 2px var(--acc);
}

/* --- HEADER --- */
.header {
    background: rgba(44, 83, 100, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    width: 100%;
    z-index: 1000;
}

.header.sticky {
    position: sticky;
    top: 0;
}

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

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--pri);
}

.nav-menu {
    display: none; /* Hidden by default, shown via JS for mobile */
}

.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px; 
    left: 0;
    width: 100%;
    background: var(--darker);
    padding: 1rem 0;
    text-align: center;
}

.nav-link {
    padding: 0.5rem 1rem;
    color: var(--pri);
    font-weight: 600;
}
.nav-link.active, .nav-link:hover {
    color: var(--acc);
}
.nav-btn { display: none; }

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--pri);
    border-radius: 5px;
    transition: all 0.3s linear;
}

/* --- HERO SECTION --- */
.hero-left {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(44, 83, 100, 0.9) 0%, rgba(44, 83, 100, 0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* --- ITEMS CAROUSEL --- */
.items-carousel-section {
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: calc(300px * 12); /* Card width * number of cards */
    animation: scroll 40s linear infinite;
}

.item-card {
    flex-shrink: 0;
    width: 280px;
    margin: 0 1rem;
    text-align: center;
}
.item-card img { 
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    margin-bottom: 1rem;
}
.item-card h3 { margin-bottom: 0.5rem; color: var(--sec); }

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-300px * 6)); } /* Card width * half number of cards */
}

/* --- FEATURES --- */
.grid-3 {
    display: grid;
    gap: 2rem;
}
.feature-card {
    text-align: center;
}
.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
}

/* --- TESTIMONIALS --- */
.testimonial-featured {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.testimonial-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 3px solid var(--sec);
}
.testimonial-featured blockquote p {
    font-size: 1.4rem;
    font-style: italic;
    margin-bottom: 1rem;
}
.testimonial-featured cite {
    font-weight: bold;
    color: var(--acc);
    display: block;
}

/* --- GALLERY --- */
.gallery-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}
.gallery-grid-4 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-soft);
}

/* --- CTA & NEWSLETTER --- */
.cta-simple {
    background-color: var(--darker);
    text-align: center;
}
.cta-simple h2 { color: var(--sec); }
.cta-simple p { max-width: 600px; margin: 0 auto 2rem; }

.newsletter-fullwidth {
    text-align: center;
    background: var(--gradient);
}
.newsletter-form {
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: 1.5rem auto 0;
}
.newsletter-form input {
    flex-grow: 1;
    padding: 12px;
    border: 2px solid var(--sec);
    border-radius: var(--radius-soft) 0 0 var(--radius-soft);
    background: var(--dark);
    color: var(--pri);
}
.newsletter-form button {
    border-radius: 0 var(--radius-soft) var(--radius-soft) 0;
}

/* --- ABOUT PAGE --- */
.page-header { text-align: center; padding: 3rem 0; background: var(--darker); }
.text-columns-2 {
    display: grid;
    gap: 3rem;
    align-items: center;
}
.image-col img { border-radius: var(--radius-card); }

.team-card img { width: 100%; height: 250px; object-fit: cover; object-position: top; border-radius: var(--radius-card) var(--radius-card) 0 0; margin-bottom: 1rem; }
.team-card h3 { color: var(--sec); }
.team-card p { color: var(--acc); }

.gallery-masonry {
    column-count: 3;
    column-gap: 1rem;
}
.gallery-masonry img {
    width: 100%;
    margin-bottom: 1rem;
    border-radius: var(--radius-soft);
}

.stats-row {
    background: var(--darker);
}
.stats-row .container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
}
.stat-item { padding: 1rem; }
.stat-number {
    display: block;
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--sec);
}

.cta-split .container {
    display: grid;
    align-items: center;
    background: var(--darker);
    border-radius: var(--radius-card);
    overflow: hidden;
}
.cta-split-content { padding: 3rem; }
.cta-split-image { min-height: 300px; background-size: cover; background-position: center; }

/* --- FAQ PAGE --- */
.faq-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--sec);
}
.faq-tab-button {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    color: var(--pri);
    font-size: 1.1rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}
.faq-tab-button.active, .faq-tab-button:hover {
    color: var(--acc);
    border-bottom-color: var(--acc);
}
.faq-tab-pane { display: none; }
.faq-tab-pane.active { display: block; }
.faq-item {
    border-bottom: 1px solid var(--sec);
    margin-bottom: 1rem;
}
.faq-item summary {
    padding: 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 10px;
    font-size: 1.5rem;
    color: var(--sec);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 1rem 1rem 1rem; }

/* --- CONTACT PAGE --- */
.contact-centered { text-align: center; }
.contact-content { max-width: 600px; margin: 0 auto 3rem; }
.contact-email { font-size: 1.2rem; color: var(--acc); font-weight: bold; }
.contact-form-container { max-width: 600px; margin: 0 auto; text-align: left; }
.contact-form .form-group { margin-bottom: 1.5rem; }
.contact-form label { display: block; margin-bottom: 0.5rem; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    background: var(--dark);
    border: 2px solid var(--sec);
    border-radius: var(--radius-soft);
    color: var(--pri);
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--acc);
}

/* --- LEGAL PAGES --- */
.legal-content h2 { color: var(--sec); margin-top: 2rem; }
.legal-content p { margin-bottom: 1rem; }

/* --- FOOTER --- */
.footer-wave {
    padding-top: 100px;
    background: var(--gradient);
    position: relative;
}
.footer-wave-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}
.footer-wave-shape::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 200%;
    height: 100px;
    border-radius: 50%;
    background-color: var(--dark);
    transform: translateX(-50%);
    box-shadow: 0 0 0 10px var(--dark);
}

.footer-grid {
    display: grid;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--sec);
}
.footer-col h4 { font-size: 1.2rem; margin-bottom: 1rem; color: var(--sec); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-bottom { text-align: center; padding: 1.5rem 0; }

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--darker);
    padding: 1rem;
    display: none; /* JS will show this */
    align-items: center;
    justify-content: space-between;
    z-index: 2000;
    gap: 1rem;
    flex-wrap: wrap;
    border-top: 2px solid var(--sec);
}
.cookie-banner p { margin: 0; }
.cookie-banner div { display: flex; gap: 0.5rem; }


/* --- RESPONSIVE MEDIA QUERIES --- */
@media (min-width: 768px) {
    h1 { font-size: 4.5rem; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .text-columns-2 { grid-template-columns: 1fr 1fr; }
    .cta-split .container { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
    .hamburger { display: none; }
    .nav-menu { display: flex; }
    .nav-link { margin: 0 0.5rem; }
    .nav-btn { display: inline-block; margin-left: 1rem; }
}

@media (max-width: 767px) {
    h1, .hero-title { font-size: 2.8rem; }
    h2 { font-size: 2rem; }
    .section { padding: 3rem 0; }
    .footer-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    .stats-row .container { flex-direction: column; gap: 1rem; }
    .gallery-masonry { column-count: 2; }
    .cta-split .container { grid-template-columns: 1fr; }
    .cta-split-image { display: none; }
    .cookie-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .gallery-masonry { column-count: 1; }
}