/* =========================================
   "COUNSEL" FIRM THEME - GLOBAL VARIABLES
   ========================================= */
:root {
    --primary-navy: #0F172A;       /* Deep, authoritative Law Firm Navy */
    --primary-gold: #C5A059;       /* Professional metallic gold */
    --bg-white: #FFFFFF;
    --bg-light: #F8FAFC;           /* Very subtle grey for contrast sections */
    --text-dark: #1E293B;          /* Dark slate for high readability */
    --text-muted: #64748B;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--primary-navy);
}

h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
}

/* Gold Accent Line under Headings (Law Firm Staple) */
.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-gold);
    margin: 20px auto 0;
}

.split-content h2::after, .about-content h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-gold);
    margin: 20px 0 0;
}

.subtitle {
    color: var(--primary-gold);
    font-size: 13px;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.gold-text { color: var(--primary-gold); }
.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }

/* --- Buttons (Sharp, Square, Authoritative) --- */
.btn-primary, .btn-secondary, .btn-nav {
    display: inline-block;
    padding: 16px 35px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px; /* Sharp corners */
    transition: 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-gold);
    color: var(--bg-white);
    border: 2px solid var(--primary-gold);
}

.btn-primary:hover {
    background-color: var(--primary-navy);
    border-color: var(--primary-navy);
}

.btn-secondary {
    background-color: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

.btn-secondary:hover {
    background-color: var(--bg-white);
    color: var(--primary-navy);
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* --- Top Bar & Header --- */
.top-bar {
    background-color: var(--primary-navy);
    color: var(--primary-gold);
    padding: 10px 5%;
    font-size: 12px;
    letter-spacing: 1px;
    font-weight: 500;
    text-transform: uppercase;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.brand-logo { max-height: 50px; width: auto; }

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--primary-navy);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-gold);
}

.btn-nav {
    padding: 12px 25px;
    background-color: var(--primary-navy);
    color: var(--bg-white);
}

.btn-nav:hover {
    background-color: var(--primary-gold);
}

.menu-toggle { display: none; }

/* --- Hero Section (Full Width Overlay) --- */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    /* Replace URL below with a high-quality office or campus image */
    background: url('https://images.unsplash.com/photo-1577415124269-31713079b7eb?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-content h1 {
    font-size: 55px;
    line-height: 1.15;
    color: var(--bg-white);
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 18px;
    color: #E2E8F0;
    margin-bottom: 30px;
}

/* --- Dual Section & Image Blocks --- */
.dual-section {
    display: flex;
    padding: 100px 10%;
    gap: 60px;
    align-items: center;
}

.about-content { flex: 1; }
.about-content p { color: var(--text-muted); margin-bottom: 20px; }

.about-image-block {
    flex: 1;
    position: relative;
}

.about-image-block img {
    width: 100%;
    height: auto;
    box-shadow: -20px 20px 0px var(--primary-gold); /* Classic structural offset shadow */
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--primary-navy);
    color: var(--bg-white);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.experience-badge h3 { color: var(--primary-gold); font-size: 20px; margin-bottom: 5px; }

/* --- Services Grid --- */
.padded-section { padding: 100px 10%; }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 0;
    border: 1px solid #E2E8F0;
    border-top: 4px solid var(--primary-gold);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.icon-gold {
    font-family: var(--font-heading);
    font-size: 40px;
    color: var(--primary-gold);
    opacity: 0.3;
    margin-bottom: 10px;
}

.service-card h3 { font-size: 22px; margin-bottom: 15px; }
.service-card p { color: var(--text-muted); font-size: 15px; }

/* --- Counter Section --- */
.counter-wrapper {
    display: flex;
    justify-content: space-around;
    padding: 80px 10%;
    background-color: var(--primary-navy);
}

.counter-item { text-align: center; color: var(--bg-white); }
.counter-item h3 { font-size: 50px; color: var(--primary-gold); margin-bottom: 5px; }
.counter-item p { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; }

/* --- Split Sections --- */
.split-section {
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 100px 10%;
}

.split-content { flex: 1; }
.split-content p { color: var(--text-muted); margin-bottom: 20px; }

.split-image { flex: 1; }
.square-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 20px 20px 0px rgba(15, 23, 42, 0.05);
}

.checklist { list-style: none; margin: 20px 0; }
.checklist li {
    font-size: 16px;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    color: var(--text-dark);
    font-weight: 500;
}
.checklist li::before {
    content: '■'; /* Square bullets for law firm feel */
    position: absolute;
    left: 0;
    color: var(--primary-gold);
}

/* --- CTA & Footer --- */
.cta-section {
    padding: 100px 10%;
    background: var(--primary-navy);
}
.cta-section h2 { color: var(--bg-white); }
.cta-section .section-header h2::after { background: var(--primary-gold); }

.footer {
    text-align: center;
    padding: 80px 10%;
    background-color: #080D1A; /* Even darker than navy */
}
.brand-logo-footer { max-height: 60px; margin: 0 auto 20px auto; display: block; }

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 3fr 2fr; /* The form takes up 60%, info takes 40% */
    gap: 40px;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
}

/* Form Styling */
.contact-form-block {
    background: var(--bg-white);
    padding: 40px;
    border-top: 4px solid var(--primary-gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form .dual-group {
    display: flex;
    gap: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #E2E8F0;
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-dark);
    background-color: var(--bg-light);
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
}

/* Information Block Styling */
.contact-info-block {
    background: var(--primary-navy);
    color: var(--bg-white);
    padding: 50px 40px;
    border-radius: 2px;
    box-shadow: 20px 20px 0px rgba(197, 160, 89, 0.2); /* Faint gold offset shadow */
}

.contact-info-block h3 {
    color: var(--primary-gold);
    font-size: 28px;
    margin-bottom: 15px;
}

.contact-info-block > p {
    color: #E2E8F0;
    margin-bottom: 40px;
    font-size: 15px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    font-size: 24px;
    margin-top: 5px; /* Aligns emoji with the text heading */
}

.info-text h4 {
    color: var(--primary-gold);
    font-family: var(--font-body);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.info-text p {
    color: #E2E8F0;
    font-size: 15px;
    line-height: 1.6;
}
/* =========================================
   RESPONSIVE ADJUSTMENTS (TABLET & MOBILE)
   ========================================= */
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .dual-section, .split-section, .split-section[style*="row-reverse"] { flex-direction: column !important; text-align: center; gap: 50px; }
    .about-image-block img { box-shadow: none; }
    .experience-badge { position: relative; bottom: 0; right: 0; margin-top: -30px; }
    .split-content h2::after, .about-content h2::after { margin: 20px auto 0; }
    .checklist li { text-align: left; }
    .top-bar-content { flex-direction: column; text-align: center; gap: 10px; }
}

@media (max-width: 768px) {
    h2 { font-size: 32px; }
    .hero-content h1 { font-size: 40px; }
    .grid-3 { grid-template-columns: 1fr; }
    .counter-wrapper { flex-direction: column; gap: 40px; }
    .button-group { flex-direction: column; }
    .btn-primary, .btn-secondary { width: 100%; text-align: center; }
    
    /* Hamburger Menu Logic */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1100;
    }
    .menu-toggle .bar { width: 25px; height: 3px; background-color: var(--primary-navy); transition: 0.3s; }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 20px;
    }
    
    .header.nav-active {
        flex-direction: column;
        align-items: flex-start;
        background-color: var(--bg-white);
        position: fixed;
        top: 0; left: 0; right: 0; height: 100vh;
        padding-top: 80px;
    }
    .header.nav-active .nav-links { display: flex; }
    .header.nav-active .menu-toggle { position: absolute; top: 20px; right: 5%; }
    .header.nav-active .logo { display: none; }
    
    .header.nav-active .menu-toggle .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .header.nav-active .menu-toggle .bar:nth-child(2) { opacity: 0; }
    .header.nav-active .menu-toggle .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Fix Contact Section for Mobile */
    .contact-grid { grid-template-columns: 1fr; }
    .contact-form .dual-group { flex-direction: column; }
}