/* ========================================
   Quadline Partners — Stylesheet
   ======================================== */

:root {
    --navy: #0b1a2b;
    --navy-light: #112240;
    --navy-mid: #0f2137;
    --gold: #b59a5b;
    --gold-light: #d4bc7c;
    --gold-dim: rgba(181, 154, 91, 0.15);
    --white: #ffffff;
    --off-white: #f8f7f4;
    --gray-100: #f0eeeb;
    --gray-200: #e0ddd7;
    --gray-400: #8a8680;
    --gray-600: #5a5651;
    --text: #1a1a1a;
    --text-light: #6b6b6b;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all 0.4s var(--ease);
}

.nav.scrolled {
    background: rgba(11, 26, 43, 0.95);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--white);
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--gold);
    color: var(--navy);
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 6px;
}

.logo-text {
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    transition: color 0.3s var(--ease);
}

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

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--navy);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: -10%;
    background-image:
        linear-gradient(rgba(181, 154, 91, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(181, 154, 91, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(500px) rotateX(15deg);
    transform-origin: center top;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, var(--navy), transparent);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    padding-top: 6rem;
}

.hero-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s var(--ease-out) 0.4s forwards;
}

.hero-title .accent {
    color: var(--gold-light);
}

.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    max-width: 540px;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s var(--ease-out) 0.6s forwards;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(181, 154, 91, 0.4);
    transition: all 0.3s var(--ease);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ease-out) 0.8s forwards;
}

.hero-cta:hover {
    border-bottom-color: var(--gold);
    gap: 0.75rem;
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1s var(--ease-out) 1.2s forwards;
}

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

/* ========================================
   Section Shared Styles
   ======================================== */
.section-header {
    margin-bottom: 4rem;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 400;
    line-height: 1.25;
    color: var(--text);
}

/* ========================================
   About Section
   ======================================== */
.about {
    padding: 8rem 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.about-lead {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.75;
    color: var(--text);
}

.about-text p:not(.about-lead) {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-light);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-left: 2rem;
    border-left: 1px solid var(--gray-200);
}

.stat-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gray-400);
    line-height: 1.5;
}

/* ========================================
   Focus Areas Section
   ======================================== */
.focus {
    padding: 8rem 0;
    background: var(--off-white);
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.focus-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    transition: all 0.4s var(--ease);
}

.focus-card:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 40px rgba(11, 26, 43, 0.08);
    transform: translateY(-4px);
}

.focus-icon {
    width: 48px;
    height: 48px;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.focus-icon svg {
    width: 100%;
    height: 100%;
}

.focus-title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.focus-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
}

/* ========================================
   Approach Section
   ======================================== */
.approach {
    padding: 8rem 0;
    background: var(--white);
}

.approach-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.approach-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 8px;
    transition: background 0.3s var(--ease);
}

.approach-item:hover {
    background: var(--off-white);
}

.approach-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--gold);
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.6;
}

.approach-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.approach-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-light);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 3rem 0;
    background: var(--navy);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
}

.footer-brand .logo-mark {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
}

.footer-brand .logo-text {
    font-size: 0.95rem;
    font-weight: 400;
}

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Scroll reveal base state */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }

.reveal-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-stats {
        flex-direction: row;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--gray-200);
        padding-top: 2rem;
    }

    .focus-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }

    .hero-content {
        padding-top: 8rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .about,
    .focus,
    .approach {
        padding: 5rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .about-stats {
        flex-direction: column;
    }

    .approach-item {
        padding: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
