:root {
    --navy: #1a1a1a;
    --navy-dark: #0a0a0a;
    --bordo: #5c1626;
    --bordo-light: #7a2234;
    --gold: #b8935a;
    --gold-light: #d9bb84;
    --cream: #f7f4ee;
    --text: #2b2f36;
    --text-light: #6b7280;
    --border: #e4e0d8;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font-sans);
    color: var(--text);
    background: #fff;
    line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    color: var(--navy);
    margin: 0 0 0.5em;
    font-weight: 600;
}
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}
.container.narrow { max-width: 760px; }
.section { padding: 64px 0; }
.empty-note { color: var(--text-light); font-style: italic; }

/* Header */
.site-header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 48px;
    padding: 14px 24px;
}
.brand { display: flex; align-items: center; }
.brand-logo { max-height: 76px; }
.brand-text {
    font-family: var(--font-serif);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.main-nav ul {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav a {
    color: #e8e8e8;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--gold-light);
    border-bottom-color: var(--gold-light);
}
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #fff;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--navy-dark), var(--bordo));
    color: #fff;
    padding: 140px 0 120px;
    text-align: center;
    position: relative;
}
.hero-has-image {
    background-size: cover;
    background-position: center;
}
.hero-has-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,10,10,0.82), rgba(92,22,38,0.75));
}
.hero-has-image .hero-inner { position: relative; z-index: 1; }

/* Hero Slider */
.hero-slider {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: var(--navy-dark);
}
.hero-slides { position: relative; width: 100%; height: 100%; min-height: 560px; }
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--navy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease;
    z-index: 1;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 2; }
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,10,10,0.82), rgba(92,22,38,0.72));
}
.hero-slide .hero-inner { position: relative; z-index: 1; color: #fff; text-align: center; }
.hero-slide .hero-inner h1 { color: #fff; font-size: 2.6rem; margin-bottom: 0.4em; }
.hero-slide .hero-subtitle { font-size: 1.15rem; color: #e4e6ea; max-width: 640px; margin: 0 auto 2em; }
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}
.slider-arrow:hover { background: var(--gold); border-color: var(--gold); }
.slider-prev { left: 24px; }
.slider-next { right: 24px; }
.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}
.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    padding: 0;
}
.slider-dot.active { background: var(--gold); }
.hero h1 {
    color: #fff;
    font-size: 2.6rem;
    margin-bottom: 0.4em;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: #d6d9de;
    max-width: 640px;
    margin: 0 auto 2em;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 13px 32px;
    border-radius: 2px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all 0.2s;
    border: 2px solid transparent;
    cursor: pointer;
}
.btn-primary {
    background: var(--gold);
    color: #fff;
}
.btn-primary:hover { background: var(--gold-light); }
.btn-outline {
    background: transparent;
    border-color: var(--navy);
    color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-block { display: block; width: 100%; text-align: center; margin-top: 16px; }

/* About teaser */
.about-teaser { background: var(--cream); text-align: center; }
.about-text { max-width: 760px; margin: 0 auto; color: var(--text); }
.link-more {
    display: inline-block;
    margin-top: 16px;
    color: var(--gold);
    font-weight: 600;
}

/* Practice grid */
.practice-preview h2, .section > .container > h2 { text-align: center; margin-bottom: 40px; }
.practice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.practice-card {
    display: block;
    padding: 28px 24px;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.2s;
}
.practice-card:hover {
    border-color: var(--gold);
    box-shadow: 0 8px 24px rgba(19,42,66,0.08);
    transform: translateY(-2px);
}
.practice-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.practice-card p { color: var(--text-light); font-size: 0.92rem; margin: 0; }
.center-cta { text-align: center; margin-top: 40px; }

/* CTA band */
.cta-band { background: var(--bordo); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-inner p { color: #c9ccd1; margin-bottom: 1.6em; }

/* Page banner */
.page-banner {
    background: var(--navy);
    padding: 56px 0;
    text-align: center;
}
.page-banner h1 { color: #fff; margin: 0; }

/* Prose */
.prose p { margin: 0 0 1.2em; }

/* Detail layout */
.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
}
.detail-sidebar {
    background: var(--cream);
    padding: 24px;
    border-radius: 4px;
    align-self: start;
}
.detail-sidebar h4 { font-size: 1rem; margin-bottom: 14px; }
.sidebar-list { list-style: none; margin: 0 0 20px; padding: 0; }
.sidebar-list li { border-bottom: 1px solid var(--border); }
.sidebar-list a {
    display: block;
    padding: 10px 0;
    color: var(--text);
    font-size: 0.92rem;
}
.sidebar-list a:hover { color: var(--gold); }

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.team-card {
    text-align: center;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 4px;
}
.team-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 18px;
}
.team-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bordo);
    color: #fff;
    font-family: var(--font-serif);
    font-size: 2.6rem;
}
.team-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.team-title { color: var(--gold); font-weight: 600; font-size: 0.88rem; margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.4px; }
.team-bio { color: var(--text-light); font-size: 0.92rem; text-align: left; }
.team-bio p { margin: 0 0 0.8em; }

/* Calculators */
.calc-tabs { display: flex; gap: 8px; margin-bottom: 32px; border-bottom: 1px solid var(--border); }
.calc-tab {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 18px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
}
.calc-tab.active { color: var(--navy); border-bottom-color: var(--gold); }
.calc-desc { color: var(--text-light); margin-bottom: 24px; }
.calc-form { background: var(--cream); padding: 24px; border-radius: 4px; margin-bottom: 20px; }
.calc-form .form-row:last-child { margin-bottom: 0; }
.calc-result-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.calc-result-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.calc-result-table td:last-child { text-align: right; font-weight: 600; }
.calc-result-table tr.total-row td { background: var(--navy); color: #fff; font-weight: 700; }
.calc-note { color: var(--text-light); font-size: 0.85rem; margin-top: 20px; }

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 56px;
}
.info-item { margin-bottom: 24px; }
.info-item strong { display: block; color: var(--navy); margin-bottom: 4px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; }
.info-item p { margin: 0; color: var(--text-light); }
.map-embed { margin-top: 24px; border-radius: 4px; overflow: hidden; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9rem; }
.form-row input, .form-row textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--gold); }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alert { padding: 14px 18px; border-radius: 4px; margin-bottom: 20px; font-size: 0.92rem; }
.alert-success { background: #eaf6ec; color: #1f7a3d; border: 1px solid #bfe5c8; }
.alert-error { background: #fcebea; color: #b3261e; border: 1px solid #f3c6c2; }
.alert-error ul { margin: 0; padding-left: 18px; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #c9ccd1; padding-top: 48px; }
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h3, .footer-col h4 { color: #fff; }
.footer-col h3 { font-size: 1.2rem; }
.footer-col h4 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col p { color: #a7acb5; margin: 6px 0; }
.footer-col a { color: #a7acb5; }
.footer-col a:hover { color: var(--gold-light); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom { padding: 20px 0; text-align: center; font-size: 0.85rem; color: #7d828c; }
.footer-bottom p { margin: 4px 0; }
.footer-bottom a { color: #a7acb5; text-decoration: underline; }

@media (max-width: 860px) {
    .practice-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-grid, .contact-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy);
        padding: 12px 24px 20px;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 4px; }
    .site-header { position: sticky; }
    .practice-grid, .team-grid { grid-template-columns: 1fr; }
    .form-row-split { grid-template-columns: 1fr; }
    .hero { padding: 80px 0 64px; }
    .hero h1 { font-size: 1.9rem; }
    .hero-slider, .hero-slides { min-height: 420px; }
    .hero-slide .hero-inner h1 { font-size: 1.9rem; }
    .slider-arrow { width: 36px; height: 36px; font-size: 1.3rem; }
}
