/* style.css */

/* ---------------------------------- */
/*      1. CSS Variables              */
/* ---------------------------------- */
:root {
    /* Color Palette (Pastel) */
    --primary-color: #588B8B;
    --secondary-color: #C2E2E2;
    --accent-color: #F28F3B;
    --accent-color-dark: #E67A21;
    --background-color: #FDFDFD;
    --background-colored-section: #F4F9F9;
    --text-color: #333333;
    --text-color-light: #FFFFFF;
    --heading-color: #222222;
    --border-color: #DDDDDD;
    --shadow-color: rgba(88, 139, 139, 0.15);
    --volumetric-shadow-color: #C2E2E2;

    /* Fonts */
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Source Sans Pro', sans-serif;

    /* Layout */
    --container-width: 1140px;
    --header-height: 80px;
    --border-radius: 12px;
    --card-shadow: 0 8px 25px var(--shadow-color);
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.05);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

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

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

ul {
    list-style: none;
}

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

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

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--heading-color);
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: #555;
    font-size: 1.1rem;
}

.content-section {
    padding: 60px 0;
}

.content-section-colored {
    padding: 60px 0;
    background-color: var(--background-colored-section);
}


/* ---------------------------------- */
/*      3. Components                 */
/* ---------------------------------- */

/* --- Buttons --- */
.button {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    transition: all var(--transition-speed) ease;
    user-select: none;
}

.button-primary {
    background-color: var(--accent-color);
    color: var(--text-color-light);
    box-shadow: 0 4px 15px rgba(242, 143, 59, 0.4);
}

.button-primary:hover {
    background-color: var(--accent-color-dark);
    color: var(--text-color-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 143, 59, 0.5);
}

.button-secondary {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.button-secondary:hover {
    background-color: #4a7575;
    color: var(--text-color-light);
    transform: translateY(-3px);
}

.button-primary-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.button-primary-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.button-full {
    width: 100%;
    padding: 15px 30px;
}

/* --- Cards --- */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: var(--text-color-light);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px var(--shadow-color);
}

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

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

.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-content h3 {
    margin-bottom: 15px;
}

.card-content p {
    flex-grow: 1;
}

.read-more {
    font-weight: 600;
    color: var(--accent-color);
    margin-top: 15px;
    display: inline-block;
}

.read-more:hover {
    color: var(--accent-color-dark);
    text-decoration: underline;
}

/* --- Forms --- */
.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--text-color-light);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #f9f9f9;
    font-family: var(--font-secondary);
    font-size: 1rem;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

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

.form-group label {
    position: absolute;
    top: -10px;
    left: 12px;
    background: var(--text-color-light);
    padding: 0 5px;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Switch Toggle */
.form-group-switch {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 15px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: var(--transition-speed);
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition-speed);
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* --- Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--background-color);
    margin: 15% auto;
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 500px;
    position: relative;
    animation: fadeIn 0.5s;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: var(--heading-color);
}


/* ---------------------------------- */
/*      4. Header & Footer            */
/* ---------------------------------- */

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    height: var(--header-height);
    transition: background-color var(--transition-speed) ease;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    padding: 5px 0;
}

.nav-links a:not(.button)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease;
}

.nav-links a:not(.button):hover::after {
    width: 100%;
}

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

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--heading-color);
    margin: 5px 0;
    transition: all var(--transition-speed) ease;
}


/* --- Footer --- */
.site-footer {
    background-color: #2a2a2a;
    color: #a0a0a0;
    padding: 60px 0 20px 0;
}

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

.footer-column h4 {
    color: var(--text-color-light);
    font-family: var(--font-primary);
    margin-bottom: 20px;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: #a0a0a0;
}

.footer-column a:hover {
    color: var(--text-color-light);
    text-decoration: underline;
}

.footer-column p {
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* ---------------------------------- */
/*      5. Section-Specific Styles    */
/* ---------------------------------- */

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color-light);
    padding: 40px 0;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Simple Parallax */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(40, 50, 60, 0.6), rgba(0, 0, 0, 0.5));
}

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

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--text-color-light); /* Enforced white color */
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin: 20px 0 40px 0;
    color: var(--text-color-light); /* Enforced white color */
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

/* --- About Us Section --- */
.columns-container {
    display: flex;
    gap: 50px;
    align-items: center;
}

.column-text {
    flex: 1;
}

.column-image {
    flex-basis: 45%;
}

.image-container.volumetric-shadow {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.image-container.volumetric-shadow img {
    border-radius: var(--border-radius);
}

.image-container.volumetric-shadow::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    background: var(--volumetric-shadow-color);
    border-radius: var(--border-radius);
    z-index: -1;
    transition: all var(--transition-speed) ease;
}

.image-container.volumetric-shadow:hover::after {
    top: 10px;
    left: 10px;
}

/* --- Insights Slider --- */
.slider-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    min-height: 400px;
}

.insight-slide {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.insight-slide.active {
    display: flex;
}

.insight-image {
    flex-basis: 50%;
    background-size: cover;
    background-position: center;
}

.insight-content {
    flex-basis: 50%;
    padding: 40px;
    background: var(--text-color-light);
}

.insight-date {
    display: block;
    margin-top: 20px;
    font-style: italic;
    color: #777;
}

/* --- Awards Section --- */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.award-item img {
    margin: 0 auto 15px auto;
    height: 80px;
    width: auto;
}

/* --- External Resources Section --- */
.resources-list {
    max-width: 800px;
    margin: 0 auto;
}

.resource-item {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border-left: 5px solid var(--secondary-color);
    transition: all var(--transition-speed) ease;
}

.resource-item:hover {
    border-left-color: var(--accent-color);
    transform: translateX(5px);
}

.resource-title a {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--heading-color);
}

/* --- Standalone Pages (Privacy, Terms, Success) --- */
.legal-page-content, .success-page-content {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
}

.success-page-body {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    background: var(--background-colored-section);
}
.success-page-content {
    padding-top: 0;
}

.success-container {
    background: white;
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}
.success-container h1 {
    color: var(--primary-color);
}


/* ---------------------------------- */
/*      6. Responsive Design          */
/* ---------------------------------- */

@media (max-width: 992px) {
    .columns-container {
        flex-direction: column;
        text-align: center;
    }
    .columns-container .column-image {
        order: -1; /* Image appears first on smaller screens */
        margin-bottom: 30px;
    }
}

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

    .content-section, .content-section-colored {
        padding: 40px 0;
    }

    /* --- Header & Mobile Nav --- */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--background-color);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transform: translateX(100%);
        transition: transform var(--transition-speed) ease-in-out;
    }

    .nav-links.is-active {
        transform: translateX(0);
    }
    
    .nav-links a {
        font-size: 1.5rem;
    }

    .burger-menu {
        display: block;
    }

    .burger-menu.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger-menu.is-active span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .insight-slide.active {
        flex-direction: column;
    }

    .insight-image {
        min-height: 200px;
        flex-basis: auto;
    }

    .insight-content {
        flex-basis: auto;
    }
}