/* ===================================
   CSS CUSTOM PROPERTIES
   =================================== */
:root {
    --navy: #0a1628;
    --navy-light: #1a2942;
    --gold: #d4a574;
    --cream: #f8f6f3;
    --gray: #636e7b;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 10px rgba(10, 22, 40, 0.05);
    --shadow-md: 0 10px 30px rgba(10, 22, 40, 0.1);
    --shadow-lg: 0 20px 50px rgba(10, 22, 40, 0.12);
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--navy);
    background-color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ===================================
   LANGUAGE SWITCHER
   =================================== */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lang-btn.active {
    color: var(--gold);
    background: rgba(212, 165, 116, 0.1);
    border-radius: 2px;
}

.lang-btn:hover:not(.active) {
    color: var(--navy);
}

.lang-divider {
    color: var(--gray);
    opacity: 0.3;
}

/* ===================================
   HEADER & NAVIGATION
   =================================== */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(248, 246, 243, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 165, 116, 0.2);
    transition: var(--transition);
}

header.scrolled {
    background: rgba(248, 246, 243, 0.98);
    box-shadow: var(--shadow-md);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.logo:hover {
    color: var(--gold);
}

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

.nav-links a {
    color: var(--navy);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 3rem 4rem;
    background: linear-gradient(135deg, var(--cream) 0%, #e8e4df 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(212, 165, 116, 0.08) 100%);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0% 100%);
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(212, 165, 116, 0.15);
    color: var(--navy);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 2px;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out 0.3s both;
}

h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--navy);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    max-width: 700px;
    color: var(--gray);
    margin-bottom: 3rem;
    font-weight: 300;
    line-height: 1.7;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--navy);
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.4s ease;
    border: 2px solid var(--navy);
    animation: fadeInUp 1s ease-out 0.6s both;
    position: relative;
    overflow: hidden;
    border-radius: 0px;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold);
    transition: left 0.4s ease;
    z-index: -1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.3);
}

/* ===================================
   SECTION STYLES
   =================================== */
section {
    padding: 6rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--navy);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 700px;
    margin-bottom: 4rem;
    font-weight: 300;
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about {
    background: var(--white);
}

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

.about-card {
    padding: 2.5rem;
    background: var(--cream);
    border-left: 3px solid var(--gold);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateX(10px);
    box-shadow: -10px 10px 30px rgba(10, 22, 40, 0.08);
}

.about-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--navy);
}

.about-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* ===================================
   STATS SECTION
   =================================== */
.stats {
    background: var(--cream);
    text-align: center;
}

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

.stat {
    padding: 2rem;
}

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 400;
}

/* ===================================
   STRATEGY SECTION
   =================================== */
.strategy {
    background: var(--navy);
    color: var(--white);
}

.strategy .section-title {
    color: var(--white);
}

.strategy .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

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

.step {
    position: relative;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 165, 116, 0.2);
    transition: all 0.4s ease;
}

.step:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold);
    transform: translateY(-5px);
}

.step-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.step h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.step p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

/* ===================================
   TEAM SECTION
   =================================== */
.team {
    background: var(--white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 4rem;
    margin-top: 3rem;
    align-items: stretch; /* Makes cards same height */
}

.team-member {
    background: var(--cream);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.team-photo {
    width: 100%;
    height: 550px;
    background: linear-gradient(135deg, #e8e4df 0%, #d4d0cb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    image-rendering: -webkit-optimize-contrast; /* Better rendering on Safari */
    image-rendering: crisp-edges; /* Better rendering on other browsers */
}

.team-member:hover .team-photo img {
    transform: scale(1.05);
}

.team-info {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    flex: 1; /* Takes all available space */
}

.team-member h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--navy);
}

.team-role {
    font-size: 0.95rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-member ul {
    list-style: none;
    margin-top: 1.5rem;
}

.team-member li {
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    position: relative;
    color: var(--gray);
    line-height: 1.6;
}

.team-member li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--gold);
}

.team-contact {
    margin-top: auto; /* Pushes to bottom */
    padding-top: 1.5rem;
    border-top: 1px solid rgba(10, 22, 40, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.team-contact a {
    color: var(--navy);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.team-contact a:hover {
    color: var(--gold);
}

.team-contact a:hover .linkedin-icon {
    fill: var(--gold);
}

.linkedin-icon {
    width: 18px;
    height: 18px;
    fill: var(--navy);
    transition: var(--transition);
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact {
    background: var(--navy);
    color: var(--white);
    text-align: center;
}

.contact .section-title {
    color: var(--white);
}

.contact .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 auto 3rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.contact-item {
    text-align: left;
}

.contact-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.contact-value {
    font-size: 1.2rem;
    color: var(--white);
}

.contact-value a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.contact-value a:hover {
    color: var(--gold);
}

/* ===================================
   FOOTER
   =================================== */
footer {
    background: var(--navy-light);
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 2rem 3rem;
    font-size: 0.9rem;
}

footer a {
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition);
}

footer a:hover {
    color: var(--white);
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ===================================
   MOBILE MENU
   =================================== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--navy);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    color: var(--gold);
}

/* ===================================
   LANGUAGE CONTENT VISIBILITY
   =================================== */
.lang-content {
    display: none;
}

.lang-content.active {
    display: block;
}

.lang-content.active.inline {
    display: inline;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }
    
    .nav-left {
        gap: 1rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--cream);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-md);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    section {
        padding: 4rem 1.5rem;
    }
    
    .hero {
        padding: 6rem 1.5rem 4rem;
    }
    
    .about-grid,
    .strategy-steps,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        gap: 3rem;
    }
    
    .contact-info {
        gap: 2rem;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-to-content:focus {
    position: fixed;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    padding: 1rem 2rem;
    background: var(--navy);
    color: var(--white);
    z-index: 9999;
    text-decoration: none;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
