/* ========================================
   THDS Legal - Royal & Authoritative Styling
   Established 1990
   ======================================== */

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-navy: #1a2840;
    --secondary-navy: #2a3547;
    --deep-charcoal: #0f1419;
    --gold-accent: #c9a961;
    --gold-dark: #a68b4e;
    --text-dark: #1a2840;
    --text-muted: #5a6370;
    --border-gold: #c9a961;
    --bg-light: #f8f7f5;
    --bg-white: #ffffff;
    --bg-cream: #fafaf8;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Crimson Text', 'Georgia', serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201, 169, 97, 0.3);
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(26, 40, 64, 0.08);
}

.navbar.scrolled {
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(26, 40, 64, 0.12);
}

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

.logo img {
    height: 50px;
    transition: height 0.3s ease;
}

.navbar.scrolled .logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 45px;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

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

.cta-nav {
    background: var(--gold-accent);
    color: var(--bg-white) !important;
    padding: 10px 24px;
    border-radius: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-nav:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 2px;
    background: var(--gold-accent);
    transition: all 0.3s ease;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        linear-gradient(135deg, rgba(248, 247, 245, 0.97) 0%, rgba(250, 250, 248, 0.95) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23fafaf8" width="1200" height="800"/><g opacity="0.04"><path fill="%23c9a961" d="M600 200l100 200H500z"/><path fill="%23c9a961" d="M200 400h800v20H200z"/><circle cx="600" cy="400" r="150" fill="none" stroke="%23c9a961" stroke-width="2"/></g></svg>') center/cover;
    padding-top: 100px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at center, transparent 0%, rgba(248, 247, 245, 0.3) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(201, 169, 97, 0.12);
    border: 1px solid var(--gold-accent);
    color: var(--gold-dark);
    padding: 8px 28px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
    font-weight: 600;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 72px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    color: var(--text-dark);
    letter-spacing: 1px;
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    color: var(--text-muted);
    margin-bottom: 50px;
    line-height: 1.6;
    font-weight: 400;
}

.btn-primary {
    display: inline-block;
    background: var(--gold-accent);
    color: var(--bg-white);
    padding: 18px 50px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--gold-accent);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 169, 97, 0.4);
}

.hero-credentials {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 80px;
    gap: 60px;
}

.credential-item {
    text-align: center;
}

.credential-number {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--gold-accent);
    margin-bottom: 8px;
}

.credential-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.credential-divider {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--gold-accent), transparent);
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.section-header.section-header-left {
    justify-content: flex-start;
    text-align: left;
}

.section-ornament {
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-accent), transparent);
    position: relative;
}

.section-ornament::before {
    content: '◆';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: var(--gold-accent);
    font-size: 10px;
}

.section-ornament-light {
    background: linear-gradient(to right, transparent, rgba(232, 230, 227, 0.5), transparent);
}

.section-ornament-light::before {
    color: var(--text-light);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 1px;
}

.section-title-light {
    color: var(--bg-white);
}

.section-title-left {
    margin: 0;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
    padding: 120px 0;
    background: var(--bg-white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: center;
}

.about-logo img {
    width: 100%;
    max-width: 400px;
    opacity: 0.95;
}

.about-text {
    font-size: 19px;
    line-height: 1.8;
}

.about-intro {
    font-size: 21px;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.government-list {
    list-style: none;
    margin: 25px 0;
    padding-left: 0;
}

.government-list li {
    padding: 12px 0 12px 30px;
    position: relative;
    color: var(--text-muted);
    border-left: 2px solid var(--gold-accent);
    margin-bottom: 8px;
}

.government-list li::before {
    content: '◆';
    position: absolute;
    left: -6px;
    color: var(--gold-accent);
    font-size: 12px;
}

.about-conclusion {
    font-style: italic;
    color: var(--gold-dark);
    font-size: 20px;
    margin-top: 30px;
    font-weight: 600;
}

/* ========================================
   PRACTICE AREAS SECTION
   ======================================== */
.practice-areas {
    padding: 120px 0;
    background: var(--bg-cream);
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.practice-card {
    background: var(--bg-white);
    padding: 50px 40px;
    border: 1px solid rgba(201, 169, 97, 0.25);
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 10px rgba(26, 40, 64, 0.05);
}

.practice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gold-accent);
    transition: height 0.3s ease;
}

.practice-card:hover {
    border-color: var(--gold-accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(26, 40, 64, 0.12);
}

.practice-card:hover::before {
    height: 100%;
}

.practice-number {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    color: rgba(201, 169, 97, 0.4);
    font-weight: 700;
    margin-bottom: 20px;
}

.practice-title {
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

.practice-description {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ========================================
   LEGACY SECTION
   ======================================== */
.legacy-section {
    position: relative;
    padding: 120px 0;
    background: var(--primary-navy);
}

.legacy-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(26, 40, 64, 0.3) 100%);
    pointer-events: none;
}

.legacy-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
}

.legacy-item {
    text-align: center;
    padding: 40px 30px;
}

.legacy-icon {
    font-size: 56px;
    color: var(--gold-accent);
    margin-bottom: 25px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.legacy-item h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--bg-white);
    margin-bottom: 18px;
}

.legacy-item p {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(248, 247, 245, 0.85);
}

/* ========================================
   OFFICES SECTION
   ======================================== */
.offices-section {
    padding: 120px 0;
    background: var(--bg-white);
}

.offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
}

.office-card {
    background: var(--bg-cream);
    padding: 50px 40px;
    border: 1px solid rgba(201, 169, 97, 0.3);
    text-align: center;
    transition: all 0.3s ease;
}

.office-card:hover {
    border-color: var(--gold-accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(26, 40, 64, 0.1);
}

.office-type {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--gold-dark);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.office-address {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-muted);
}

.office-address p {
    margin-bottom: 15px;
}

.office-divider {
    width: 40px;
    height: 1px;
    background: var(--gold-accent);
    margin: 25px auto;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
    padding: 120px 0;
    background: var(--bg-cream);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
}

.contact-intro {
    font-size: 19px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 50px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--gold-dark);
    margin-bottom: 15px;
}

.contact-item p {
    margin-bottom: 8px;
}

.contact-item a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--gold-accent);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-white);
    padding: 50px;
    border: 1px solid rgba(201, 169, 97, 0.25);
    box-shadow: 0 2px 15px rgba(26, 40, 64, 0.08);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg-cream);
    border: 1px solid rgba(201, 169, 97, 0.3);
    color: var(--text-dark);
    padding: 14px 18px;
    font-family: 'Crimson Text', serif;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-accent);
    background: var(--bg-white);
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    background: var(--gold-accent);
    color: var(--bg-white);
    padding: 16px 40px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--gold-accent);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 169, 97, 0.4);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--primary-navy);
    padding: 60px 0;
    border-top: 1px solid rgba(201, 169, 97, 0.3);
}

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

.footer-logo img {
    height: 80px;
    opacity: 0.9;
    filter: brightness(0) invert(1);
}

.footer-text {
    text-align: right;
}

.footer-text p {
    margin-bottom: 8px;
    color: rgba(248, 247, 245, 0.75);
    font-size: 15px;
}

.footer-text p:first-child {
    color: var(--gold-accent);
    font-size: 17px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 58px;
    }
    
    .practice-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .nav-links {
        position: fixed;
        top: 90px;
        left: -100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        width: 100%;
        padding: 40px;
        gap: 25px;
        align-items: flex-start;
        transition: left 0.3s ease;
        border-top: 1px solid rgba(201, 169, 97, 0.3);
        box-shadow: 0 4px 20px rgba(26, 40, 64, 0.1);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 19px;
    }
    
    .hero-credentials {
        flex-direction: column;
        gap: 30px;
    }
    
    .credential-divider {
        width: 60px;
        height: 1px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-logo {
        text-align: center;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-text {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .hero {
        min-height: 85vh;
    }
    
    .hero-title {
        font-size: 38px;
    }
    
    .hero-subtitle {
        font-size: 17px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .about-section,
    .practice-areas,
    .legacy-section,
    .offices-section,
    .contact-section {
        padding: 80px 0;
    }
    
    .offices-grid,
    .practice-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .btn-primary,
    .btn-submit {
        padding: 14px 30px;
        font-size: 16px;
    }
}
