/* ========================================
   wise9 digital advisory — Stylesheet
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #0a1628;
    --navy-light: #121f36;
    --blue: #1e3a5f;
    --blue-accent: #2d5a8e;
    --gold: #c8a45e;
    --gold-light: #e0c87a;
    --white: #ffffff;
    --gray-100: #f5f5f7;
    --gray-300: #d1d1d6;
    --gray-500: #8e8e93;
    --gray-700: #48484a;
    --text-dark: #1d1d1f;
    --text-light: rgba(255, 255, 255, 0.85);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- Button --- */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200, 164, 94, 0.3);
}

/* --- Section Labels & Titles --- */
.section-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.section-label.light {
    color: var(--gold-light);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    line-height: 1.2;
    color: var(--navy);
    margin-bottom: 60px;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 2px 40px rgba(0, 0, 0, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: baseline;
    gap: 2px;
    flex-wrap: wrap;
}

.logo-wise {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 2px;
}

.logo-9 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: 2px;
}

.logo-sub {
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 3px;
    color: var(--gray-300);
    width: 100%;
    margin-top: -4px;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.5px;
    transition: color 0.3s;
    position: relative;
}

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

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

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

.lang-switch {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 1px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: all 0.3s;
}

.lang-switch:hover {
    border-color: var(--gold);
}

.lang-active {
    color: var(--gold);
}

.lang-inactive {
    color: var(--gray-500);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 40%, var(--blue) 100%);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(200, 164, 94, 0.06) 0%, transparent 70%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-5%, 5%) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 24px;
    max-width: 900px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards 0.3s;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    font-weight: 300;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards 0.6s;
}

.hero .btn {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards 0.9s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ========================================
   ABOUT
   ======================================== */
.about {
    padding: 120px 0;
    background: var(--white);
}

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

.about-card {
    padding: 40px 32px;
    border: 1px solid var(--gray-100);
    border-radius: 8px;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(40px);
}

.about-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-card:hover {
    border-color: var(--gold);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(10, 22, 40, 0.08);
}

.about-card-icon {
    color: var(--gold);
    margin-bottom: 24px;
}

.about-card h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.about-card p {
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.7;
}

/* ========================================
   SERVICES
   ======================================== */
.services {
    padding: 120px 0;
    background: var(--gray-100);
}

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

.service-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(40px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 50px rgba(10, 22, 40, 0.1);
}

.service-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--gray-100);
    line-height: 1;
    margin-bottom: 16px;
    display: block;
    transition: color 0.3s;
}

.service-card:hover .service-number {
    color: rgba(200, 164, 94, 0.2);
}

.service-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.7;
}

/* Last 2 cards: span the remaining columns */
.services-grid .service-card:nth-child(4) {
    grid-column: 1 / 2;
}

.services-grid .service-card:nth-child(5) {
    grid-column: 2 / 3;
}

/* ========================================
   NUMBERS
   ======================================== */
.numbers {
    padding: 120px 0;
    background: linear-gradient(160deg, var(--navy) 0%, var(--blue) 100%);
    text-align: center;
}

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

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.number-item {
    opacity: 0;
    transform: translateY(30px);
}

.number-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.number-value {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}

.number-suffix {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--gold-light);
}

.number-item p {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

/* ========================================
   CONTACT
   ======================================== */
.contact {
    padding: 120px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-item svg {
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-item strong {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 1rem;
    color: var(--navy);
    font-weight: 500;
}

.contact-social {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-300);
    border-radius: 50%;
    color: var(--navy);
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
    transform: translateY(-3px);
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 0;
    font-size: 1rem;
    font-family: var(--font-body);
    border: none;
    border-bottom: 1px solid var(--gray-300);
    background: transparent;
    color: var(--navy);
    outline: none;
    transition: border-color 0.3s;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--gold);
}

.form-group label {
    position: absolute;
    left: 0;
    top: 16px;
    font-size: 0.95rem;
    color: var(--gray-500);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -8px;
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 0.5px;
}

.contact-form .btn {
    align-self: flex-start;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 40px 0;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-logo {
    display: flex;
    align-items: baseline;
    gap: 2px;
    flex-wrap: wrap;
}

.footer-logo .logo-wise { font-size: 1.1rem; }
.footer-logo .logo-9 { font-size: 1.1rem; }
.footer-logo .logo-sub { font-size: 0.45rem; letter-spacing: 2px; }

.footer-copy {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ========================================
   ANIMATIONS
   ======================================== */
[data-animate] {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate]:nth-child(2) { transition-delay: 0.15s; }
[data-animate]:nth-child(3) { transition-delay: 0.3s; }
[data-animate]:nth-child(4) { transition-delay: 0.45s; }
[data-animate]:nth-child(5) { transition-delay: 0.6s; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .services-grid .service-card:nth-child(5) {
        grid-column: 1 / 2;
    }

    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 24px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--navy);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 40px;
        transition: right 0.4s ease;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .section-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        margin-bottom: 40px;
    }

    .about, .services, .numbers, .contact {
        padding: 80px 0;
    }

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

    .services-grid .service-card:nth-child(4),
    .services-grid .service-card:nth-child(5) {
        grid-column: auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .numbers-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 16px;
    }

    .btn {
        padding: 14px 32px;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }

    .contact-form .btn {
        align-self: stretch;
    }
}
