:root {
    --midnight: #071827;
    --deep-navy: #0D263B;
    --ivory: #F7F3EA;
    --cream: #EFE8DC;
    --gold: #C8A25B;
    --charcoal: #24292F;
    --grey: #73787E;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--ivory);
    color: var(--charcoal);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
}

.text-balance { text-wrap: balance; }

/* Textures & Patterns */
.bg-linen {
    background-color: var(--ivory);
    background-image: radial-gradient(var(--cream) 1px, transparent 1px);
    background-size: 20px 20px;
}
.bg-columns {
    background-color: var(--midnight);
    background-image: repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(255,255,255,0.03) 80px);
}
.bg-grid-dark {
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Gold Divider */
.gold-divider {
    width: 40px;
    height: 1px;
    background-color: var(--gold);
    display: block;
}

/* Nav Styling */
.nav-scrolled {
    background-color: rgba(7, 24, 39, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200, 162, 91, 0.2);
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}
.nav-transparent { background-color: transparent; }

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--gold);
    transition: width 0.4s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Hero Arch Image */
.arch-image {
    border-top-left-radius: 100% 180px;
    border-top-right-radius: 100% 180px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    overflow: hidden;
    position: relative;
}
.arch-outline {
    position: absolute;
    top: 20px;
    left: -20px;
    right: 20px;
    bottom: -20px;
    border-top-left-radius: 100% 180px;
    border-top-right-radius: 100% 180px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border: 1px solid var(--gold);
    z-index: -1;
}

/* Card Hovers */
.service-card {
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    background-color: var(--ivory);
}
.service-card:hover {
    background-color: var(--deep-navy);
    border-color: var(--deep-navy);
    transform: translateY(-8px);
}
.service-card:hover h3, .service-card:hover p, .service-card:hover li, .service-card:hover .card-number { color: var(--ivory); }
.service-card:hover .card-icon { color: var(--gold); border-color: var(--gold); }
.service-card:hover .card-arrow { color: var(--gold); transform: translateX(6px); }

/* Button Hover */
.btn-primary { transition: all 0.4s ease; }
.btn-primary:hover { background-color: var(--ivory); color: var(--midnight); border-color: var(--ivory); }

.btn-outline { transition: all 0.4s ease; }
.btn-outline:hover { background-color: var(--gold); color: var(--midnight); border-color: var(--gold); }

/* Page System */
.page-content { display: none; animation: fadeIn 1s ease; }
.page-content.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Menu */
.mobile-menu { transform: translateX(100%); transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.mobile-menu.open { transform: translateX(0); }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

/* Form Input */
.form-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid #dcdcdc;
    transition: border-color 0.3s ease;
    border-radius: 0;
    padding-left: 0;
}
.form-input:focus {
    outline: none;
    border-bottom-color: var(--gold);
    box-shadow: 0 1px 0 0 var(--gold);
}
.form-input::placeholder { color: #aaa; }

/* Practice Area Detailed Images */
.practice-img-right { border-top-right-radius: 120px; border-bottom-left-radius: 120px; }
.practice-img-left { border-top-left-radius: 120px; border-bottom-right-radius: 120px; }

/* Matters Card Hover */
.matter-card { transition: all 0.4s ease; position: relative; overflow: hidden; }
.matter-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.5s ease;
}
.matter-card:hover { background-color: #fff; border-color: #e5e5e5; }
.matter-card:hover::after { width: 100%; }
.matter-card:hover .matter-arrow { opacity: 1; transform: translateX(0); }
.matter-arrow { opacity: 0; transform: translateX(-10px); transition: all 0.4s ease; }

/* Insight Card Hover (Polished) */
.insight-card {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.insight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(7, 24, 39, 0.1);
    border-color: rgba(200, 162, 91, 0.4);
}
.insight-card .img-wrap { overflow: hidden; }
.insight-card img { transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.insight-card:hover img { transform: scale(1.05); }
.insight-card h3 { transition: color 0.3s ease; }
.insight-card:hover h3 { color: var(--gold); }
.insight-card .read-arrow { transition: all 0.3s ease; opacity: 0; transform: translateX(-10px); }
.insight-card:hover .read-arrow { opacity: 1; transform: translateX(0); }

/* Timeline Polish */
.timeline-line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--gold), var(--cream), transparent);
}
.timeline-dot {
    position: absolute;
    left: -5px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ivory);
    border: 2px solid var(--gold);
    box-shadow: 0 0 0 4px rgba(200, 162, 91, 0.1);
}
.timeline-item { transition: transform 0.4s ease; }
.timeline-item:hover { transform: translateX(8px); }

/* Floating CTA */
.float-cta {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.5s ease;
}
.float-cta.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Focus States for Accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}