/* ==========================================================================
   HA Global Talent — Main Stylesheet
   Colour Palette:
     Primary (HA):       #0A3D62
     Gold (Global Talent): #C9A24D
     Grey Background:     #7F7F7F
     White Background:    #FFFFFF
   Font: Georgia
   ========================================================================== */

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

:root {
    --primary: #0A3D62;
    --gold: #C9A24D;
    --grey-bg: #7F7F7F;
    --white: #FFFFFF;
    --dark: #1a1a1a;
    --light-bg: #f5f5f5;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    line-height: 1.7;
    color: var(--dark);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
}

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

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

/* ===== HEADER ===== */
header {
    background-color: var(--white);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--gold);
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo .ha {
    color: var(--primary);
}

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

/* Navigation */
nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
}

nav ul li a {
    padding: 8px 18px;
    font-size: 0.95rem;
    color: var(--primary);
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: Georgia, serif;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: var(--primary);
    color: var(--white);
}

.nav-cta {
    background-color: var(--gold) !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
}

.nav-cta:hover {
    background-color: #b8922f !important;
    color: var(--white) !important;
}

/* Mobile menu toggle */
.mobile-toggle {
    display: none;
    font-size: 1.6rem;
    color: var(--primary);
    cursor: pointer;
    background: none;
    border: none;
    font-family: Georgia, serif;
}

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
}

.overlay.active {
    display: block;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 4px;
    font-family: Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-gold {
    background-color: var(--gold);
    color: var(--primary);
}

.btn-gold:hover {
    background-color: #b8922f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 162, 77, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--white);
    margin-left: 16px;
}

.btn-outline:hover {
    background-color: var(--gold);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(
        135deg,
        rgba(10, 61, 98, 0.92) 0%,
        rgba(10, 61, 98, 0.78) 100%
    );
    background-size: cover;
    color: var(--white);
    padding: 200px 0 120px;
    text-align: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom right, transparent 49.5%, var(--white) 50%);
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 .gold {
    color: var(--gold);
}

.hero p {
    font-size: 1.2rem;
    max-width: 680px;
    margin: 0 auto 40px;
    opacity: 0.92;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* ===== SECTION COMMON ===== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.4rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-header .underline {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 16px auto;
}

.section-header p {
    color: #555;
    max-width: 650px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ===== SERVICES ===== */
.services {
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    background: var(--white);
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    border-top-color: var(--gold);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.5rem;
    color: var(--gold);
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 14px;
}

.service-card p {
    color: #555;
    font-size: 0.95rem;
}

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

.about-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
    font-size: 1.1rem;
    color: #444;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

.team-card {
    text-align: center;
    background: var(--light-bg);
    border-radius: 8px;
    padding: 40px 28px 32px;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.2rem;
    color: var(--gold);
    border: 3px solid var(--gold);
}

.team-card h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 4px;
}

.team-card .role {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.team-card .location {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 12px;
}

.team-card p {
    font-size: 0.92rem;
    color: #555;
}

/* ===== LOCATIONS ===== */
.locations {
    background: var(--primary);
    color: var(--white);
}

.locations .section-header h2 {
    color: var(--white);
}

.locations .section-header p {
    color: rgba(255, 255, 255, 0.75);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.location-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 32px 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.location-card:hover {
    background: rgba(201, 162, 77, 0.15);
    border-color: var(--gold);
    transform: translateY(-6px);
}

.location-card .loc-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 16px;
}

.location-card h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--white);
}

.location-card p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

/* ===== OUR APPROACH ===== */
.approach {
    background: var(--light-bg);
}

.approach-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.approach-text h3 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.approach-text p {
    color: #555;
    margin-bottom: 16px;
    font-size: 1.02rem;
}

.approach-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--white);
    padding: 28px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateX(6px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.step-num {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
}

.step-content h4 {
    color: var(--primary);
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.step-content p {
    font-size: 0.92rem;
    color: #666;
    margin: 0;
}

/* ===== CORE AREAS ===== */
.core-areas {
    background: var(--white);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.area-card {
    position: relative;
    background: var(--primary);
    border-radius: 8px;
    padding: 36px 24px;
    text-align: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

.area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold);
}

.area-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(10, 61, 98, 0.3);
}

.area-card .area-icon {
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.area-card h3 {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.area-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

/* ===== CTA ===== */
.cta {
    background: linear-gradient(135deg, var(--grey-bg) 0%, #5a5a5a 100%);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-size: 2.4rem;
    margin-bottom: 16px;
}

.cta p {
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto 36px;
    opacity: 0.92;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 70px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-col h3 {
    color: var(--gold);
    font-size: 1.15rem;
    margin-bottom: 20px;
}

.footer-ha {
    color: var(--white);
}

.footer-gold {
    color: var(--gold);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--gold);
}

.footer-col .contact-list li {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
}

.footer-col .contact-list i {
    color: var(--gold);
    margin-right: 8px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--gold);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.88rem;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== RESPONSIVE — TABLET ===== */
@media (max-width: 1024px) {
    .locations-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== RESPONSIVE — MOBILE ===== */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        transition: right 0.3s ease;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        padding-top: 80px;
        z-index: 999;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 4px;
    }

    nav ul li a {
        display: block;
        padding: 12px 18px;
    }

    .hero {
        padding: 160px 0 100px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-outline {
        margin-left: 0;
    }

    .services-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .approach-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .areas-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 80px 0;
    }
}

/* ===== RESPONSIVE — SMALL PHONE ===== */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .locations-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 70px 0;
    }
}
