/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --deep-eclipse: #110505;
    --solar-gold: #E58A13;
    --spice-dust: #C29F6E;
    --teal: #528180;
    /* In addition to Dunal palette*/
    --dark-charcoal: #555555;
    --cream: #F2EDE4;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--deep-eclipse);
    background-color: var(--white);
    line-height: 1.6;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h1 { font-size: 4rem; margin-bottom: 1.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--teal); }

p {
    color: var(--dark-charcoal);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.lead {
    font-size: 1.5rem;
    color: var(--deep-eclipse);
    font-weight: 400;
}
/* In-content links */
a {
    color: var(--teal);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

a:hover {
    border-bottom-color: var(--teal);
}

.lead a {
    font-weight: 600;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

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

/* Header & Nav */
header {
    padding: 1.5rem 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--cream);
    position: sticky;
    top: 0;
    z-index: 1002;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.logo-container:hover {
    border-bottom-color: transparent;
}

.logo-icon {
    width: 2.5rem;
    height: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--deep-eclipse);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--dark-charcoal);
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--teal);
}

/* Hidden by default on large viewports */
.menu-toggle {
    display: none;
}

/* Smartphone navigation */
@media (max-width: 768px) {
    /* Display the interactive hamburger button */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
        z-index: 1001; /* Keeps button accessible over the overlay drawer */
    }

    .menu-toggle .bar {
        width: 100%;
        height: 2px;
        background-color: var(--deep-eclipse);
        transition: transform 0.3s cubic-bezier(0.1, 0.8, 0.3, 1), 
                    opacity 0.2s ease;
    }

    /* Transform navigation row into a hidden full-screen slider panel */
    .nav-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        
        position: fixed;
        top: 0;
        left: 100%; /* Fully hidden off-screen to the right */
        width: 100%;
        height: 100vh;
        background-color: var(--white);
        padding: 2rem;
        z-index: 1000;
        
        /* Smooth Swiss-style easing slide transition animation */
        transition: left 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
    }

    /* Emphasized font sizing for premium mobile accessibility scaling */
    .nav-links a {
        font-size: 1.75rem;
        font-weight: 600;
        width: 100%;
        text-align: center;
        display: block;
    }

    /* Activated State: Triggered when JavaScript toggles class */
    .nav-links.is-open {
        left: 0; /* Slides smoothly into complete fullscreen view */
    }

    /* Hamburger Morph: Transforms 3 horizontal bars into a clean 'X' symbol */
    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

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

/* Team Component */
.team-member img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border-bottom: 4px solid var(--spice-dust);
}

.team-member h3 {
    color: var(--deep-eclipse);
    margin-bottom: 0.2rem;
}

.team-role {
    font-weight: 600;
    color: var(--spice-dust);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

/* Swiss-style Minimalist Bullet Lists */
.team-member ul {
    list-style: none;
    padding-left: 0;
}

.team-member li {
    font-size: 0.95rem;
    color: var(--dark-charcoal);
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.25rem;
    font-weight: 300;
    line-height: 1.5;
}

/* Custom Gold Dash Bullet */
.team-member li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--spice-dust);
    font-weight: 600;
}

.team-member {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Pushes the links section down cleanly to align on a perfect horizontal row */
.team-member ul {
    flex-grow: 1; 
    margin-bottom: 2rem;
}

/* Links Container */
.team-links {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--cream); /* Elegant horizontal dividing line */
}

/* Minimalist Swiss Typography Link Style */
.social-link {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: var(--teal);
    transition: color 0.2s ease-in-out;
}

.social-link:hover {
    color: var(--spice-dust);
}

/* Footer */
footer {
    background-color: var(--deep-eclipse);
    color: var(--cream);
    padding: 4rem 0;
    font-size: 0.9rem;
}

footer a { color: var(--spice-dust); text-decoration: none; }
footer a:hover { color: var(--teal); }

/* Accents */
.accent-line {
    width: 60px;
    height: 4px;
    background-color: var(--spice-dust);
    margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .grid-2 { grid-template-columns: 1fr; gap: 2rem; }
}
