/* ========================================
   Ystrat — Corporate Website Styles
   ======================================== */

:root {
    --navy: #0c2340;
    --navy-light: #1a3a5c;
    --teal: #2a8fa3;
    --teal-light: #3fb8cc;
    --gold: #c9a84c;
    --gold-light: #dfc070;
    --white: #ffffff;
    --off-white: #f7f8fa;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--gray-700); line-height: 1.7; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ========== NAVBAR ========== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}
.navbar.scrolled { border-bottom-color: var(--gray-200); box-shadow: var(--shadow-sm); }
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 2rem;
    display: flex; align-items: center; justify-content: space-between;
    height: 72px;
}
.nav-logo { display: flex; align-items: center; }
.logo-img { height: 40px; }
.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-link {
    font-size: 0.875rem; font-weight: 500; color: var(--gray-600);
    transition: var(--transition); letter-spacing: 0.01em;
}
.nav-link:hover { color: var(--navy); }
.nav-link-cta {
    background: var(--navy); color: var(--white) !important;
    padding: 0.5rem 1.25rem; border-radius: 6px;
}
.nav-link-cta:hover { background: var(--navy-light); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
    display: block; width: 24px; height: 2px; background: var(--navy);
    margin: 5px 0; transition: var(--transition);
}

/* ========== HERO ========== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--navy) 0%, #0f3460 40%, var(--navy-light) 100%);
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5" x="0" y="0" width="100" height="100"/></svg>');
    background-size: 100px 100px;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(42,143,163,0.15) 0%, transparent 60%);
}
.hero-content {
    position: relative; z-index: 2; text-align: center;
    max-width: 800px; padding: 2rem;
}
.hero-subtitle {
    font-size: 0.875rem; font-weight: 500; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--teal-light); margin-bottom: 1.5rem;
}
.hero-title {
    font-family: var(--font-heading); font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700; color: var(--white); line-height: 1.15; margin-bottom: 1.5rem;
}
.hero-title .accent { color: var(--gold); }
.hero-desc {
    font-size: 1.125rem; color: rgba(255,255,255,0.7); max-width: 600px;
    margin: 0 auto 2.5rem; line-height: 1.8;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    z-index: 2; animation: bounce 2s infinite;
}
.hero-scroll a { color: rgba(255,255,255,0.4); }
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.75rem 2rem; border-radius: 6px; font-weight: 600;
    font-size: 0.9rem; transition: var(--transition); cursor: pointer;
    border: 2px solid transparent; letter-spacing: 0.02em;
}
.btn-primary {
    background: var(--teal); color: var(--white);
    border-color: var(--teal);
}
.btn-primary:hover { background: var(--teal-light); border-color: var(--teal-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
    background: transparent; color: var(--white);
    border-color: rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.1); }
.btn-full { width: 100%; }

/* ========== SECTIONS ========== */
.section { padding: 6rem 0; }
.section-dark { background: var(--navy); color: var(--white); }
.section-light { background: var(--off-white); }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 4rem; }
.section-tag {
    display: inline-block; font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--teal); margin-bottom: 1rem;
}
.section-dark .section-tag { color: var(--teal-light); }
.section-title {
    font-family: var(--font-heading); font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700; color: var(--navy); line-height: 1.2; margin-bottom: 1rem;
}
.section-dark .section-title { color: var(--white); }
.section-desc {
    font-size: 1.05rem; color: var(--gray-500); line-height: 1.8;
}
.section-dark .section-desc { color: rgba(255,255,255,0.6); }

/* ========== ABOUT ========== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-text .lead { font-size: 1.15rem; font-weight: 500; color: var(--navy); margin-bottom: 1.5rem; line-height: 1.8; }
.about-text p { margin-bottom: 1rem; color: var(--gray-600); }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.stat-card {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: 12px; padding: 1.5rem; text-align: center;
    transition: var(--transition);
}
.stat-card:hover { border-color: var(--teal); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-icon { color: var(--teal); margin-bottom: 0.75rem; }
.stat-number { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; color: var(--navy); }
.stat-suffix { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.stat-label { display: block; font-size: 0.8rem; color: var(--gray-500); margin-top: 0.25rem; font-weight: 500; }

/* ========== PRACTICES ========== */
.practices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.practice-card {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px; padding: 2rem; transition: var(--transition);
}
.practice-card:hover {
    background: rgba(255,255,255,0.1); border-color: var(--teal);
    transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.practice-icon { color: var(--teal-light); margin-bottom: 1.25rem; }
.practice-title {
    font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600;
    color: var(--white); margin-bottom: 0.75rem;
}
.practice-desc { font-size: 0.9rem; color: rgba(255,255,255,0.6); margin-bottom: 1.25rem; line-height: 1.7; }
.practice-list { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.practice-list li {
    padding: 0.25rem 0 0.25rem 1rem; position: relative;
}
.practice-list li::before {
    content: ''; position: absolute; left: 0; top: 50%;
    width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
    transform: translateY(-50%);
}

/* ========== FIGURES ========== */
.figures-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-bottom: 3rem; }
.figure-card {
    text-align: center; padding: 2rem 1rem;
    border-radius: 12px; border: 1px solid var(--gray-200);
    transition: var(--transition);
}
.figure-card:hover { border-color: var(--teal); box-shadow: var(--shadow-md); }
.figure-number {
    font-family: var(--font-heading); font-size: 3rem; font-weight: 700;
    color: var(--navy); line-height: 1;
}
.figure-label { font-weight: 600; color: var(--navy); margin: 0.5rem 0; }
.figure-detail { font-size: 0.85rem; color: var(--gray-500); line-height: 1.6; }
.sectors-bar { text-align: center; }
.sectors-bar h3 { font-family: var(--font-heading); color: var(--navy); margin-bottom: 1.5rem; font-size: 1.25rem; }
.sectors-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.sector-badge {
    background: var(--navy); color: var(--white);
    padding: 0.5rem 1.25rem; border-radius: 50px;
    font-size: 0.85rem; font-weight: 500;
    transition: var(--transition);
}
.sector-badge:hover { background: var(--teal); }

/* ========== INSIGHTS ========== */
.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.insight-card {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: 12px; padding: 2rem; transition: var(--transition);
}
.insight-card:hover { border-color: var(--teal); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.insight-badge {
    display: inline-block; font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--teal); background: rgba(42,143,163,0.1);
    padding: 0.25rem 0.75rem; border-radius: 50px; margin-bottom: 1rem;
}
.insight-card h3 { font-family: var(--font-heading); font-size: 1.15rem; color: var(--navy); margin-bottom: 0.75rem; }
.insight-card p { font-size: 0.9rem; color: var(--gray-500); line-height: 1.7; }

/* ========== OFFICES ========== */
.offices-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.office-card {
    text-align: center; padding: 3rem 2rem;
    border: 1px solid var(--gray-200); border-radius: 12px;
    transition: var(--transition);
}
.office-card:hover { border-color: var(--teal); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.office-icon { color: var(--teal); margin-bottom: 1.5rem; }
.office-card h3 { font-family: var(--font-heading); font-size: 1.5rem; color: var(--navy); margin-bottom: 0.25rem; }
.office-role { font-size: 0.85rem; color: var(--teal); font-weight: 600; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.1em; }
.office-card p:last-child { font-size: 0.9rem; color: var(--gray-500); line-height: 1.7; }

/* ========== CONTACT ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-item {
    display: flex; align-items: flex-start; gap: 1rem;
    color: rgba(255,255,255,0.7);
}
.contact-item svg { flex-shrink: 0; color: var(--teal-light); margin-top: 2px; }
.contact-item strong { display: block; color: var(--white); font-weight: 600; margin-bottom: 0.25rem; }
.contact-item a { color: var(--teal-light); transition: var(--transition); }
.contact-item a:hover { color: var(--gold); }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.7); }
.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px; padding: 0.75rem 1rem; color: var(--white);
    font-family: var(--font-body); font-size: 0.9rem; transition: var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none; border-color: var(--teal);
    background: rgba(255,255,255,0.12);
}
.form-group select option { background: var(--navy); color: var(--white); }

/* ========== FOOTER ========== */
.footer { background: var(--gray-900); color: var(--gray-400); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { height: 32px; margin-bottom: 0.75rem; opacity: 0.7; }
.footer-brand p { font-size: 0.9rem; font-style: italic; }
.footer-links h4 { color: var(--white); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.footer-links a { display: block; font-size: 0.9rem; color: var(--gray-400); padding: 0.25rem 0; transition: var(--transition); }
.footer-links a:hover { color: var(--teal-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; text-align: center; font-size: 0.85rem; }

/* ========== ANIMATIONS ========== */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .practices-grid { grid-template-columns: repeat(2, 1fr); }
    .figures-grid { grid-template-columns: repeat(2, 1fr); }
    .insights-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-menu {
        display: none; position: absolute; top: 72px; left: 0; right: 0;
        background: var(--white); flex-direction: column; padding: 1.5rem 2rem;
        border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-lg);
    }
    .nav-menu.active { display: flex; }
    .nav-link-cta { text-align: center; }
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .practices-grid { grid-template-columns: 1fr; }
    .figures-grid { grid-template-columns: repeat(2, 1fr); }
    .insights-grid { grid-template-columns: 1fr; }
    .offices-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .form-row { grid-template-columns: 1fr; }
    .section { padding: 4rem 0; }
    .hero-title { font-size: 2.25rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .hero-content { padding: 1rem; }
    .figures-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: 1fr; }
}
