/* style.css */
/* OLYMPION GROUP - STYLESHEET */

/* --- FONT IMPORTS --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Lato:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@700&display=swap');

/* --- CSS VARIABLES (COLOR PALETTE & FONTS) --- */
:root {
    --primary-color: #354f74;   /* Your primary blue */
    --secondary-color: #6998bb; /* Your secondary blue */
    --accent-color: #ddac19;    /* Your gold accent */
    --background-color: #f8f8fe;/* Your off-white background */
    --text-color: #2c2c2c;      /* A dark gray for text */
    --white-color: #ffffff;

    --font-heading: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;
}

html {
    height: 100%;
    scroll-behavior: smooth;
    overflow-y: scroll; /* Fix #2: Always show scrollbar for consistent alignment */
}

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    display: flex;          /* Fix #1: Enable flexbox for sticky footer */
    flex-direction: column; /* Fix #1: Stack elements vertically */
    min-height: 100vh;      /* Fix #1: Ensure body is at least full screen height */
}

main {
    flex-grow: 1; /* Fix #1: Allow main content to expand and push footer down */
}

/* --- GLOBAL RESETS & BASE STYLES --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

p {
    margin-bottom: 1rem;
    max-width: 75ch; /* Limits line length for readability */
}

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

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo img {
    max-height: 45px;
}

.logo span {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1rem;
    color: var(--primary-color);
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.main-nav a:hover, .main-nav a.active {
    border-bottom-color: var(--accent-color);
    color: var(--accent-color);
}

/* --- REUSABLE COMPONENTS --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--accent-color);
    color: var(--white-color);
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid var(--accent-color);
}

.btn:hover {
    background-color: #c99a17; /* Darker gold */
    color: var(--white-color);
    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: var(--white-color);
}

/* --- HERO SECTION (UPDATED for better text readability) --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 70vh;
    color: var(--white-color);
    position: relative;
    background: url('../images/hero-background.jpg') no-repeat center center/cover;
}

.hero::after { /* The overlay for text readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(53, 79, 116, 0.7); 
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero h1 {
    font-size: 4rem;
    color: var(--white-color);
    font-weight: 700;
    text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 600px;
    margin: 1rem auto 2rem;
    text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.5);
}

/* --- CONTENT SECTIONS --- */
.page-header {
    padding: 4rem 0;
    background-color: var(--primary-color);
    text-align: center;
}

.page-header h1 {
    color: var(--white-color);
    font-size: 3.5rem;
}

.content-section {
    padding: 5rem 0;
}

.content-section.bg-light {
    background-color: var(--white-color);
}

.centered-text {
    margin: 0 auto 3rem auto;
    max-width: 700px;
    text-align: center;
}

.centered-text h2 {
    font-size: 2.5rem;
}

.centered-text .btn {
    margin-top: 1.5rem;
}

/* --- ABOUT PAGE SPECIFIC --- */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.leader-card {
    background: var(--white-color);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-radius: 5px;
}

.leader-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 5px solid var(--background-color);
}

.leader-card h3 {
    font-size: 1.5rem;
}

.leader-card .title {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* --- CONTACT PAGE SPECIFIC (UPDATED) --- */
.contact-wrapper {
    max-width: 700px; /* Set a max-width for the form area */
    margin: 0 auto;   /* Center the wrapper */
}

.contact-info {
    margin-bottom: 3rem; /* Add space between contact details and form */
    text-align: center;
}

.contact-info p {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap on small screens */
    justify-content: center;
    align-items: center;
    gap: 2rem; /* Space between email and phone */
    font-size: 1.1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* Space between icon and text */
}

.contact-form {
    width: 100%;
}

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

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
}

/* --- FOOTER (UPDATED FOR CENTERING) --- */
.main-footer {
    background-color: var(--primary-color);
    color: #e0e0e0;
    padding: 3rem 0;
    text-align: center; /* Center all text content within the footer */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem; /* Add space below the grid */
}

.footer-grid h4 {
    font-family: var(--font-heading);
    color: var(--white-color);
    margin-bottom: 1rem;
}

.footer-grid ul {
    list-style: none;
    padding: 0; /* Remove default padding */
}

.footer-grid ul li {
    margin-bottom: 0.5rem;
}

.footer-grid ul a {
    color: #e0e0e0;
}

.footer-grid ul a:hover {
    color: var(--accent-color);
}

.footer-socials {
    margin-top: 1.5rem;
}

.footer-socials a {
    display: inline-block;
    color: var(--white-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

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

.footer-socials svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.footer-bottom {
    display: flex;
    justify-content: center; /* This is a more powerful centering method */
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--secondary-color);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #e0e0e0;
}

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


/* --- RESPONSIVE ADJUSTMENTS --- */
@media(max-width: 768px) {
    .header-container { flex-direction: row; }
    .hero h1 { font-size: 2.5rem; }
    .page-header h1 { font-size: 2.5rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .contact-info { justify-self: center; text-align: center; } /* Center contact info on mobile */
    .contact-info p { justify-content: center; } /* Center the icons and text */
}

/* --- NEW JAVASCRIPT-DRIVEN STYLES --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

.hamburger {
    display: none;
    position: relative;
    width: 30px;
    height: 21px;
    z-index: 1010;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    position: absolute;
    left: 0;
    transition: all 0.3s ease-in-out;
}

.hamburger .bar:nth-child(1) { top: 0; }
.hamburger .bar:nth-child(2) { top: 9px; }
.hamburger .bar:nth-child(3) { bottom: 0; }

.hamburger.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.is-active .bar:nth-child(2) { opacity: 0; }
.hamburger.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
.hamburger.is-active .bar { background-color: var(--white-color); }

@media(max-width: 768px) {
    .main-nav ul { display: none; }
    .hamburger { display: block; }
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        max-width: 75%;
        height: 100vh;
        background-color: var(--primary-color);
        z-index: 1005;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }
    .main-nav.is-active { transform: translateX(0); }
    .main-nav.is-active ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        gap: 2rem;
    }
    .main-nav.is-active a {
        color: var(--white-color);
        font-size: 1.5rem;
    }
}

/* --- NEW FOUNDER'S LETTER STYLES --- */
.founders-letter {
    background-color: var(--white-color);
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 25px rgba(0,0,0,0.07);
    border-radius: 5px;
    border-top: 5px solid var(--accent-color);
}

.founders-letter .letter-body p {
    font-family: 'Merriweather', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.founders-letter .letter-signature p {
    font-family: 'Merriweather', serif;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.letter-signature p:first-child {
    font-family: 'Dancing Script', cursive;
    font-size: 2.0rem;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

/* --- LEGAL & 404 PAGE STYLES --- */
.legal-content h2 { margin-top: 2rem; }
.legal-content p { max-width: 100%; }
.error-page-content { padding: 6rem 0; }
.error-title { font-size: 6rem; margin-bottom: 0; line-height: 1; }