/* CSS Variables & Reset */
:root {
    /* Colors */
    --color-black: #0a0a0a;
    --color-black-light: #1a1a1a;
    --color-white: #ffffff;
    --color-gray-light: #f4f4f4;
    --color-gray-dark: #333333;

    /* Gold Accents - Premium & Elegant */
    --color-gold: #D4AF37;
    --color-gold-light: #F1D46A;
    --color-gold-dark: #AA8C2C;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-black);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.text-gold {
    color: var(--color-gold);
}

.text-white {
    color: var(--color-white);
}

.text-gray {
    color: #cccccc;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-gold {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-black);
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-gold-outline-sm {
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    padding: 0.5rem 1.5rem;
    font-size: 0.8rem;
}

.btn-gold-outline-sm:hover {
    background-color: var(--color-gold);
    color: var(--color-black);
}

/* Header */
.site-header {
    background-color: rgba(10, 10, 10, 0.95);
    color: var(--color-white);
    padding: 1.2rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.85;
}

.logo-img {
    height: 80px;
    width: auto;
    display: block;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a:not(.btn) {
    font-size: 0.95rem;
    color: #e0e0e0;
}

.main-nav a:not(.btn):hover {
    color: var(--color-gold);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Sections Common */
section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.hero-section {
    background-color: var(--color-black);
    color: var(--color-white);
    min-height: 90vh;
    /* Keep decent height */
    display: flex;
    align-items: center;
    padding-top: 120px;
    /* Header offset + spacing */
    padding-bottom: 4rem;
    background-image: radial-gradient(circle at 90% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
    position: relative;
    overflow: hidden;
}

/* Flex Container for Split Layout */
.hero-section .hero-container {
    display: flex;
    align-items: center;
    /* Vertically center image and text */
    justify-content: space-between;
    gap: 4rem;
    /* Consistent spacing between columns */
    width: 100%;
    padding-right: 5%;
    /* Generous right padding as requested */
}

/* Left Column: Text (55-60%) */
.hero-text-col {
    flex: 0 0 55%;
    max-width: 60%;
    text-align: left;
    z-index: 2;
    /* Ensure text is above any potential background */
}

/* Right Column: Image (40-45%) */
.hero-image-col {
    flex: 0 0 40%;
    max-width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    position: relative;
    /* Add soft gold radial glow behind logo */
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.08) 0%, rgba(212, 175, 55, 0.04) 30%, transparent 70%);
}

.hero-brand-image {
    width: 135%;
    /* Increased by ~35% from 100% */
    height: auto;
    max-height: 95vh;
    /* Slightly increased max height */
    object-fit: contain;
    /* Subtle gold glow/shadow for premium effect */
    filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.15));
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-align: left;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 2.5rem;
    max-width: 100%;
    /* Allow full width of column */
    font-weight: 300;
    text-align: left;
}

/* About Section */
.about-section {
    background-color: var(--color-white);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.image-placeholder {
    width: 100%;
    height: 500px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-family: var(--font-heading);
    border: 1px solid #ddd;
}

/* Real image styles */
.about-image,
.office-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.section-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--color-gold);
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}

.about-description {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--color-gray-dark);
}

/* Education Section */
.education-section {
    background-color: var(--color-black);
    /* Dark background */
    color: var(--color-white);
}

.education-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: #cccccc;
    /* Light gray for dark background */
    font-size: 1.05rem;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.education-card {
    background: rgba(255, 255, 255, 0.05);
    /* Dark semi-transparent cards */
    border: 1px solid rgba(212, 175, 55, 0.3);
    /* Gold border */
    padding: 2rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.education-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
    /* Gold glow on hover */
    background: rgba(255, 255, 255, 0.08);
}

.education-card.primary {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 2px solid rgba(212, 175, 55, 0.4);
    padding: 2.5rem 2rem;
}

.education-card.primary h3 {
    font-size: 1.5rem;
    color: var(--color-gold);
    /* Gold for primary heading */
}

/* Center Card - positions below BSSP card */
.education-card.center-card {
    grid-column: 2 / 3;
    /* Center in a 3-column layout */
}

@supports (grid-template-columns: subgrid) {
    .education-card.center-card {
        justify-self: center;
    }
}

.education-card h3 {
    margin: 1rem 0 0.5rem 0;
    font-size: 1.15rem;
    color: var(--color-white);
    /* White text */
    line-height: 1.4;
}

.education-card .institution {
    color: #aaa;
    /* Lighter gray for dark background */
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

.education-card .icon-gold {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

/* Legacy education styles (keeping for potential reuse) */
.education-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.education-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.icon-gold {
    font-size: 2rem;
    line-height: 1;
    color: var(--color-gold);
}

/* Applied Qualifications (Mini Cases) */
.applied-section {
    background-color: var(--color-white);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card-outline {
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 2.5rem;
    transition: transform 0.3s ease;
    background: var(--color-white);
}

.card-outline:hover {
    transform: translateY(-5px);
    border-color: var(--color-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.card-outline h3 {
    margin-bottom: 1rem;
    color: var(--color-gold-dark);
}

/* Services Section */
.services-section {
    background-color: var(--color-black);
    color: var(--color-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-gold);
}

.service-icon {
    margin-bottom: 1.5rem;
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.service-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--color-gold);
}

.service-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
}

.icon-gold svg {
    stroke: var(--color-gold);
}

.service-card p {
    color: #aaaaaa;
    font-size: 0.95rem;
}

/* Audience Section */
.audience-section {
    background-color: var(--color-white);
}

.audience-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.audience-tag {
    background-color: #fafafa;
    border: 1px solid #eee;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--color-black);
}

/* Differentials */
.differentials-section {
    background-color: var(--color-black-light);
    color: var(--color-white);
}

.differentials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: center;
}

.differential-item h3 {
    color: var(--color-gold);
    margin-bottom: 1rem;
}

/* Trust */
.trust-section {
    background-color: #f9f9f9;
    padding: 4rem 0;
}

.trust-text {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--color-gray-dark);
}

/* Office Section */
.office-section {
    background-color: var(--color-white);
    /* White bg as requested */
    border-top: 1px solid #eee;
}

.office-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Split layout */
    gap: var(--spacing-lg);
    align-items: center;
}

.office-text {
    /* Left column */
    text-align: left;
}

.office-description {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--color-gray-dark);
}

.office-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background-color: rgba(212, 175, 55, 0.05);
    border-left: 3px solid var(--color-gold);
    border-radius: 4px;
}

.office-address svg {
    flex-shrink: 0;
    stroke: var(--color-gold);
}

.office-address span {
    color: var(--color-gray-dark);
    font-size: 0.95rem;
    font-weight: 500;
}

.office-image-wrapper {
    /* Right column */
    width: 100%;
}

/* Footer */
.site-footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding-top: var(--spacing-xl);
    border-top: 3px solid var(--color-gold);
}

.footer-content {
    text-align: center;
}

.footer-cta {
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.footer-cta p {
    margin-bottom: 2rem;
    color: #ccc;
}

/* Footer Main Grid Layout - 2 Columns */
.footer-main {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 3rem;
    text-align: left;
}

/* Footer Brand (Left Column) */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo-link {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.footer-logo-link:hover {
    opacity: 0.85;
}

.footer-brand img.footer-logo-img {
    height: 110px;
    width: auto;
}

.footer-tagline {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 250px;
}

/* Footer Contact (Center Column) */
.footer-contact-title {
    color: var(--color-gold);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #ccc;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    color: var(--color-white);
}

.contact-item svg {
    flex-shrink: 0;
    stroke: var(--color-gold);
    transition: stroke 0.3s ease;
}

.contact-item:hover svg {
    stroke: var(--color-gold-light);
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--color-white);
}

.footer-bottom {
    padding: 1.5rem 0;
    background-color: #0a0a0a;
    color: #666;
    font-size: 0.85rem;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 900px) {

    /* ============================================
       1. GLOBAL OVERFLOW FIX
       ============================================ */
    html,
    body {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    * {
        box-sizing: border-box;
    }

    /* ============================================
       2. CONTAINER & SECTION WIDTHS
       ============================================ */
    .container {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
        overflow: hidden;
    }

    section {
        max-width: 100vw;
        overflow-x: hidden;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    /* ============================================
       3. HEADER & HAMBURGER FIX
       ============================================ */
    .site-header {
        width: 100%;
        max-width: 100vw;
    }

    .site-header .container {
        padding: 0 1rem;
    }

    .header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        position: relative;
    }

    /* Hide logos on mobile only */
    .logo,
    .logo-img {
        display: none;
    }

    /* Hamburger menu - always visible and inside viewport */
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        z-index: 1001;
        position: relative;
        margin-left: auto;
        flex-shrink: 0;
    }

    .mobile-menu-btn span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: var(--color-gold);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* Hamburger Animation */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* ============================================
       4. MOBILE NAV PANEL
       ============================================ */
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(85vw, 320px);
        height: 100vh;
        background-color: var(--color-black);
        padding: 5rem 2rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 1000;
        overflow-y: auto;
    }

    .main-nav.active {
        transform: translateX(0);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 2rem;
    }

    .main-nav a {
        font-size: 1.5rem;
    }

    /* Hide CTA button inside mobile menu */
    .main-nav .btn {
        display: none;
    }

    /* ============================================
       5. HERO SECTION
       ============================================ */
    .hero-section .hero-container {
        flex-direction: column;
        padding-left: 1rem;
        padding-right: 1rem;
        gap: 2rem;
        text-align: center;
    }

    .hero-text-col,
    .hero-image-col {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
    }

    .hero-image-col {
        order: 2;
        margin-top: 1rem;
        background: radial-gradient(circle at center, rgba(212, 175, 55, 0.05) 0%, rgba(212, 175, 55, 0.02) 40%, transparent 70%);
    }

    .hero-title {
        font-size: 2rem;
        text-align: center;
    }

    .hero-subtitle {
        text-align: center;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-brand-image {
        max-height: 350px;
        width: 100%;
    }

    /* ============================================
       6. GRIDS TO SINGLE COLUMN
       ============================================ */
    .about-container,
    .office-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image,
    .office-image {
        height: auto;
        max-height: 350px;
    }

    .education-grid {
        grid-template-columns: 1fr;
    }

    .education-card.primary,
    .education-card.center-card {
        grid-column: 1;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .differentials-grid {
        grid-template-columns: 1fr;
    }

    /* ============================================
       7. FOOTER MOBILE
       ============================================ */
    .footer-logo-img,
    .footer-logo-link,
    .footer-brand {
        display: none;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-contact {
        max-width: 100%;
    }

    .footer-info {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-cta h2 {
        font-size: 1.75rem;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays if needed (can be added via JS or nth-child) */

/* Extra Polish */
.hero-cta-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .hero-cta-group {
        justify-content: center;
    }

    .hero-content {
        text-align: center;
    }
}