/* ============================================
   HAODS - Shared Design System
   Classic Modern Sleek
   ============================================ */

/* --- CSS Variables --- */
:root {
    /* Colors */
    --burgundy: #162A4F;
    --burgundy-dark: #0e1a2e;
    --burgundy-light: #1f3a66;
    --gold: #EBD074;
    --gold-light: #F3EED8;
    --ivory: #FAFAF7;
    --white: #FFFFFF;
    --charcoal: #1A1A2E;
    --slate: #4A4A5A;
    --muted: #8E8E9A;
    --border: #E8E8EC;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
    --shadow-hover: 0 12px 40px rgba(22,42,79,0.12);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 50px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--ivory);
    color: var(--charcoal);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg {
    display: block;
    max-width: 100%;
}

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

ul, ol {
    list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    line-height: 1.2;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-2xl);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav-logo svg {
    width: 28px;
    height: 28px;
    color: var(--burgundy);
}

.nav-logo span {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    color: var(--burgundy);
    letter-spacing: 0.08em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--slate);
    position: relative;
    transition: color 0.3s ease;
    padding: var(--space-xs) 0;
}

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

.nav-link:hover {
    color: var(--burgundy);
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.65rem 1.75rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1.4;
}

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

.btn-primary:hover {
    background: var(--burgundy-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 42, 79, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--burgundy);
    border: 2px solid var(--burgundy);
}

.btn-secondary:hover {
    background: var(--burgundy);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}

.btn-small {
    font-size: 0.8rem;
    padding: 0.45rem 1.1rem;
}

/* --- Hamburger Menu --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

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

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

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

/* Mobile Nav Overlay */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1050;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav a,
.mobile-nav button {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--charcoal);
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s ease;
}

.mobile-nav a:hover,
.mobile-nav button:hover {
    color: var(--burgundy);
}

/* --- Cards --- */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.card-body {
    padding: var(--space-xl);
}

/* Info Card (with left border) */
.info-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-2xl);
    border-left: 3px solid var(--burgundy);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.info-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.info-card h3 {
    font-size: 1.5rem;
    color: var(--burgundy);
    margin-bottom: var(--space-md);
}

.info-card p {
    font-size: 0.95rem;
    color: var(--slate);
    line-height: 1.7;
}

/* --- Section Layout --- */
.section {
    padding: var(--space-4xl) var(--space-2xl);
    max-width: 1280px;
    margin: 0 auto;
}

.section-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--burgundy);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 600px;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* --- Grid Layouts --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-xl);
}

/* --- Feature Items (Members preview) --- */
.feature-item {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--burgundy), var(--burgundy-light));
    color: var(--white);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-item h4 {
    font-size: 1.25rem;
    color: var(--charcoal);
    margin-bottom: var(--space-sm);
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
}

/* --- Footer --- */
.footer {
    background: var(--charcoal);
    color: rgba(255,255,255,0.7);
    padding: var(--space-4xl) var(--space-2xl) var(--space-xl);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-3xl);
}

.footer-brand h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    max-width: 1280px;
    margin: var(--space-3xl) auto 0;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.85rem;
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-burgundy { color: var(--burgundy); }
.text-muted { color: var(--muted); }

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-in {
    animation: fadeInUp 0.8s ease-out both;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* --- Loading/Spinner --- */
.loading {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--muted);
    font-size: 0.95rem;
}

.spinner {
    border: 3px solid var(--border);
    border-top: 3px solid var(--burgundy);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
    margin: 0 auto var(--space-md);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Error State --- */
.error {
    background: #FFF5F5;
    border-left: 3px solid #C53030;
    padding: var(--space-lg);
    border-radius: var(--radius-sm);
    color: #C53030;
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .mobile-nav {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .nav-inner {
        padding: 0 var(--space-lg);
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: var(--space-3xl) var(--space-lg);
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 480px) {
    .section {
        padding: var(--space-2xl) var(--space-md);
    }

    .info-card {
        padding: var(--space-lg);
    }

    .nav-inner {
        padding: 0 var(--space-md);
    }
}
