/*
Theme Name: M & D Law Associates LLP
Theme URI: https://manddlaw.in
Author: M & D Law Associates LLP
Author URI: https://manddlaw.in
Description: Corporate law firm theme for M & D Law Associates LLP — Punjab & Haryana High Court, Chandigarh. A clean, professional, multi-page theme with no blog functionality.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
License URI: https://manddlaw.in
Text Domain: mandd-law
Tags: law-firm, corporate, professional, no-blog
*/

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
    /* Navy Blue & Gold palette — matching M & D Law logo */
    --md-charcoal:       #0E1A30;
    --md-charcoal-light: #152240;
    --md-charcoal-mid:   #1E3254;
    --md-maroon:         #1B2A4A;
    --md-maroon-dark:    #0E1A30;
    --md-maroon-light:   #243860;
    --md-gold:           #D4A94C;
    --md-gold-light:     #EDD07A;
    --md-white:          #FFFFFF;
    --md-off-white:      #F5F2ED;
    --md-light-gray:     #E8E4DC;
    --md-medium-gray:    #8A7D6B;
    --md-text:           #1B2A4A;
    --md-text-light:     #5A6678;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body:    'Source Sans 3', 'Segoe UI', Tahoma, sans-serif;
    --font-mono:    'JetBrains Mono', 'Courier New', monospace;

    /* Spacing */
    --section-pad: 100px;
    --container-max: 1200px;

    /* Transitions */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-body); color: var(--md-text); background: var(--md-white); line-height: 1.7; font-size: 16px; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s var(--ease-smooth); }
ul, ol { list-style: none; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--md-charcoal); }
h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.2rem; }
p { margin-bottom: 1rem; }

.section-subtitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--md-maroon);
    margin-bottom: 0.75rem;
    display: block;
}

.section-title {
    margin-bottom: 1.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--md-maroon);
    margin-top: 1rem;
}

.section-title.center::after {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-pad) 0;
}

.section--alt {
    background: var(--md-off-white);
}

.section--dark {
    background: var(--md-charcoal);
    color: var(--md-white);
}

.section--dark h2, .section--dark h3 {
    color: var(--md-white);
}

.section--dark .section-subtitle {
    color: var(--md-gold);
}

.section--dark .section-title::after {
    background: var(--md-gold);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(30, 30, 30, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s var(--ease-smooth);
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-logo .logo-shield-img {
    width: 36px;
    height: auto;
    flex-shrink: 0;
}

.site-logo .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.site-logo .logo-firm {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--md-white);
    letter-spacing: 0.5px;
}

.site-logo .logo-tagline {
    font-family: var(--font-body);
    font-size: 0.65rem;
    color: var(--md-gold);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Main Navigation */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 0;
}

.main-nav a {
    display: block;
    padding: 8px 18px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s var(--ease-smooth);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--md-gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease-smooth);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--md-white);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.main-nav .nav-contact {
    background: var(--md-gold);
    color: var(--md-charcoal) !important;
    border-radius: 4px;
    margin-left: 10px;
    padding: 10px 22px;
    font-weight: 700;
}

.main-nav .nav-contact::after { display: none; }
.main-nav .nav-contact:hover {
    background: var(--md-gold-light);
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--md-white);
    margin: 6px 0;
    transition: all 0.3s var(--ease-smooth);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--md-charcoal);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(123, 31, 58, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 80px,
        rgba(255,255,255,0.5) 80px,
        rgba(255,255,255,0.5) 81px
    );
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 750px;
    padding: 120px 0 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(123, 31, 58, 0.2);
    border: 1px solid rgba(123, 31, 58, 0.4);
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--md-gold);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s var(--ease-smooth) both;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--md-gold);
    border-radius: 50%;
}

.hero h1 {
    font-size: clamp(2.6rem, 5vw, 4rem);
    color: var(--md-white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 0.8s var(--ease-smooth) 0.15s both;
}

.hero h1 .highlight {
    color: var(--md-gold);
    display: block;
}

.hero-desc {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 600px;
    animation: fadeInUp 0.8s var(--ease-smooth) 0.3s both;
}

.hero-stats {
    display: flex;
    gap: 50px;
    animation: fadeInUp 0.8s var(--ease-smooth) 0.45s both;
}

.hero-stat {
    text-align: left;
}

.hero-stat .number {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--md-white);
    line-height: 1;
}

.hero-stat .number span {
    color: var(--md-gold);
}

.hero-stat .label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-top: 6px;
}

.hero-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--md-maroon), transparent);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image .image-frame {
    position: relative;
    background: var(--md-light-gray);
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.about-image .image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image .image-frame .placeholder-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--md-medium-gray);
    font-size: 0.85rem;
    gap: 10px;
}

.about-image .image-frame .placeholder-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--md-medium-gray);
}

.about-image .accent-block {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--md-maroon);
    color: var(--md-white);
    padding: 24px 30px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(123, 31, 58, 0.3);
}

.about-image .accent-block .number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}

.about-image .accent-block .text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-top: 4px;
    opacity: 0.85;
}

.about-text p {
    color: var(--md-text-light);
    font-size: 1.05rem;
}

.about-text p.lead {
    font-size: 1.15rem;
    color: var(--md-text);
    font-weight: 500;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 2rem;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--md-off-white);
    border-radius: 6px;
    border-left: 3px solid var(--md-maroon);
}

.value-item .icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.value-item h4 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.value-item p {
    font-size: 0.82rem;
    color: var(--md-text-light);
    margin: 0;
    line-height: 1.5;
}

/* ============================================
   PRACTICE AREAS
   ============================================ */
.practice-areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 3rem;
}

.pa-card {
    background: var(--md-white);
    border: 1px solid var(--md-light-gray);
    border-radius: 6px;
    padding: 28px 24px;
    transition: all 0.4s var(--ease-smooth);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.pa-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--md-maroon);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s var(--ease-smooth);
}

.pa-card:hover {
    border-color: var(--md-maroon);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.pa-card:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.pa-card .pa-icon {
    font-size: 1.6rem;
    margin-bottom: 14px;
    display: block;
}

.pa-card h3 {
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--md-charcoal);
}

.pa-card p {
    font-size: 0.84rem;
    color: var(--md-text-light);
    line-height: 1.6;
    margin: 0;
}

.pa-card .pa-latin {
    font-style: italic;
    font-size: 0.75rem;
    color: var(--md-maroon);
    margin-top: 12px;
    display: block;
    font-family: var(--font-display);
}

/* ============================================
   FOUNDING PARTNER
   ============================================ */
.partner-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
    background: var(--md-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.06);
}

.partner-photo {
    background: var(--md-light-gray);
    min-height: 500px;
    position: relative;
}

.partner-photo .placeholder-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--md-medium-gray);
    gap: 10px;
}

.partner-photo .placeholder-icon svg {
    width: 60px;
    height: 60px;
    stroke: var(--md-medium-gray);
}

.partner-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-info {
    padding: 50px 50px 50px 0;
}

.partner-info .partner-name {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.partner-info .partner-designation {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--md-maroon);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.partner-info .partner-bar {
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--md-text-light);
    margin-bottom: 1.5rem;
}

.partner-info .partner-bio p {
    font-size: 0.95rem;
    color: var(--md-text-light);
    line-height: 1.8;
}

.partner-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2rem;
}

.credential-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--md-off-white);
    border: 1px solid var(--md-light-gray);
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--md-text-light);
}

/* ============================================
   VISION & MISSION
   ============================================ */
.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 3rem;
}

.vision-card {
    padding: 44px;
    border-radius: 8px;
    position: relative;
}

.vision-card.vision {
    background: var(--md-charcoal);
    color: var(--md-white);
}

.vision-card.mission {
    background: var(--md-maroon);
    color: var(--md-white);
}

.vision-card .card-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 1rem;
}

.vision-card h3 {
    color: var(--md-white);
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.vision-card p {
    font-size: 0.95rem;
    line-height: 1.8;
    opacity: 0.85;
}

.vision-card .latin-quote {
    margin-top: 1.5rem;
    font-style: italic;
    font-family: var(--font-display);
    font-size: 0.9rem;
    opacity: 0.6;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 1rem;
}

/* ============================================
   DIGITAL PLATFORMS / PROJECTS
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 3rem;
}

.project-card {
    background: var(--md-white);
    border: 1px solid var(--md-light-gray);
    border-radius: 8px;
    padding: 44px;
    transition: all 0.4s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.project-card .project-logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--md-charcoal);
    margin-bottom: 6px;
}

.project-card .project-url {
    font-size: 0.8rem;
    color: var(--md-maroon);
    font-weight: 600;
    margin-bottom: 1.2rem;
    display: block;
}

.project-card p {
    font-size: 0.92rem;
    color: var(--md-text-light);
    line-height: 1.7;
}

.project-card .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1.5rem;
}

.project-tag {
    padding: 4px 12px;
    background: var(--md-off-white);
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--md-text-light);
    letter-spacing: 0.5px;
}

.project-card .visit-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 1.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--md-maroon);
    transition: gap 0.3s var(--ease-smooth);
}

.project-card .visit-link:hover { gap: 10px; }

/* ============================================
   OFFICES
   ============================================ */
.offices-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 3rem;
}

.office-card {
    background: var(--md-charcoal-light);
    border-radius: 8px;
    padding: 40px;
    border: 1px solid var(--md-charcoal-mid);
}

.office-card .office-type {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--md-gold);
    margin-bottom: 0.75rem;
}

.office-card h3 {
    color: var(--md-white);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.office-card address {
    font-style: normal;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.office-card .office-contact {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--md-charcoal-mid);
}

.office-card .office-contact a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.office-card .office-contact a:hover {
    color: var(--md-gold);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 3rem;
}

.contact-form-wrap {}

.md-form .form-group {
    margin-bottom: 1.5rem;
}

.md-form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--md-charcoal);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.md-form input[type="text"],
.md-form input[type="email"],
.md-form input[type="tel"],
.md-form textarea,
.md-form select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--md-light-gray);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--md-text);
    background: var(--md-white);
    transition: border-color 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
    -webkit-appearance: none;
}

.md-form input:focus,
.md-form textarea:focus,
.md-form select:focus {
    outline: none;
    border-color: var(--md-maroon);
    box-shadow: 0 0 0 3px rgba(123, 31, 58, 0.08);
}

.md-form textarea {
    min-height: 150px;
    resize: vertical;
}

.md-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: var(--md-gold);
    color: var(--md-charcoal);
    border: none;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
}

.btn-submit:hover {
    background: var(--md-gold-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 169, 76, 0.35);
}

.form-status {
    margin-top: 1rem;
    padding: 14px;
    border-radius: 4px;
    font-size: 0.9rem;
    display: none;
}

.form-status.success {
    display: block;
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.form-status.error {
    display: block;
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.contact-info-side h3 {
    margin-bottom: 2rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 2rem;
}

.contact-detail .icon-circle {
    width: 44px;
    height: 44px;
    background: var(--md-off-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail .icon-circle svg {
    width: 20px;
    height: 20px;
    stroke: var(--md-maroon);
}

.contact-detail h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.contact-detail p, .contact-detail a {
    font-size: 0.9rem;
    color: var(--md-text-light);
    line-height: 1.6;
    margin: 0;
}

.contact-detail a:hover { color: var(--md-maroon); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--md-charcoal);
    color: rgba(255, 255, 255, 0.6);
    padding: 60px 0 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .footer-logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--md-white);
    margin-bottom: 1rem;
    display: block;
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--md-white);
    margin-bottom: 1.5rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--md-gold);
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
}

.footer-bottom .legal-entity {
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom .legal-entity strong {
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   PAGE HEADER (Internal pages)
   ============================================ */
.page-header {
    background: var(--md-charcoal);
    padding: 140px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(123, 31, 58, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: var(--md-white);
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 0.75rem;
}

.page-header .breadcrumb {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

.page-header .breadcrumb a {
    color: var(--md-gold);
}

.page-header .breadcrumb a:hover {
    text-decoration: underline;
}

.page-header .page-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin-top: 1rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease-smooth), transform 0.6s var(--ease-smooth);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 50px; }
    .partner-card { grid-template-columns: 260px 1fr; gap: 40px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    :root { --section-pad: 70px; }

    .nav-toggle { display: block; }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--md-charcoal);
        padding: 100px 30px 40px;
        transition: right 0.4s var(--ease-smooth);
        box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    }

    .main-nav.open { right: 0; }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        padding: 14px 0;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .main-nav .nav-contact {
        margin-left: 0;
        margin-top: 20px;
        text-align: center;
    }

    .hero-content { padding: 100px 0 60px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-stats { flex-direction: column; gap: 24px; }

    .partner-card { grid-template-columns: 1fr; }
    .partner-photo { min-height: 300px; }
    .partner-info { padding: 30px; }

    .vision-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .offices-grid { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }

    .md-form .form-row { grid-template-columns: 1fr; }

    .practice-areas-grid { grid-template-columns: 1fr 1fr; }

    .about-values { grid-template-columns: 1fr; }

    .footer-top { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 480px) {
    .practice-areas-grid { grid-template-columns: 1fr; }
    .header-inner { height: 68px; }
    .hero h1 { font-size: 1.8rem; }
    .vision-card { padding: 30px; }
    .office-card { padding: 30px; }
}

/* ============================================
   BCI DISCLAIMER POPUP
   ============================================ */
.bci-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    transition: opacity 0.4s var(--ease-smooth);
}

.bci-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.bci-popup {
    background: var(--md-white);
    border-radius: 10px;
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: bciSlideUp 0.5s var(--ease-smooth) both;
}

@keyframes bciSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.bci-header {
    background: var(--md-charcoal);
    padding: 30px 36px 24px;
    text-align: center;
    border-bottom: 3px solid var(--md-maroon);
}

.bci-header .bci-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.bci-header h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--md-white);
    margin-bottom: 4px;
}

.bci-header .bci-subhead {
    font-size: 0.78rem;
    color: var(--md-gold);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0;
}

.bci-body {
    padding: 28px 36px;
    overflow-y: auto;
    flex: 1;
    max-height: 50vh;
}

.bci-body p {
    font-size: 0.9rem;
    color: var(--md-text);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.bci-list {
    margin: 1rem 0;
    padding-left: 0;
    counter-reset: bci-counter;
}

.bci-list li {
    position: relative;
    padding: 10px 0 10px 32px;
    font-size: 0.85rem;
    color: var(--md-text-light);
    line-height: 1.7;
    border-bottom: 1px solid var(--md-light-gray);
    counter-increment: bci-counter;
}

.bci-list li:last-child {
    border-bottom: none;
}

.bci-list li::before {
    content: counter(bci-counter, lower-roman) ".";
    position: absolute;
    left: 0;
    top: 10px;
    font-weight: 700;
    color: var(--md-maroon);
    font-size: 0.82rem;
}

.bci-footer {
    padding: 20px 36px 28px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    background: var(--md-off-white);
    border-top: 1px solid var(--md-light-gray);
}

.bci-btn {
    padding: 13px 32px;
    border: none;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
}

.bci-btn--agree {
    background: var(--md-gold);
    color: var(--md-charcoal);
    text-transform: uppercase;
}

.bci-btn--agree:hover {
    background: var(--md-gold-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 169, 76, 0.35);
}

.bci-btn--decline {
    background: transparent;
    color: var(--md-text-light);
    border: 1px solid var(--md-light-gray);
}

.bci-btn--decline:hover {
    background: var(--md-light-gray);
    color: var(--md-text);
}

/* ============================================
   COOKIE CONSENT BAR
   ============================================ */
.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--md-charcoal);
    border-top: 2px solid var(--md-maroon);
    padding: 18px 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.5s var(--ease-smooth);
}

.cookie-bar.visible {
    transform: translateY(0);
}

.cookie-bar.hidden {
    transform: translateY(100%);
}

.cookie-bar-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.cookie-text {
    flex: 1;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.cookie-text strong {
    color: var(--md-white);
}

.cookie-text a {
    color: var(--md-gold);
    text-decoration: underline;
}

.cookie-text a:hover {
    color: var(--md-gold-light);
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 22px;
    border: none;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    white-space: nowrap;
}

.cookie-btn--accept {
    background: var(--md-gold);
    color: var(--md-charcoal);
}

.cookie-btn--accept:hover {
    background: var(--md-gold-light);
}

.cookie-btn--essential {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn--essential:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--md-white);
}

/* BCI active = lock scroll */
body.bci-active {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .bci-popup { margin: 10px; }
    .bci-header { padding: 24px 24px 20px; }
    .bci-body { padding: 20px 24px; }
    .bci-footer { padding: 16px 24px 24px; flex-direction: column; }
    .bci-btn { width: 100%; text-align: center; }

    .cookie-bar-inner { flex-direction: column; text-align: center; gap: 14px; }
    .cookie-actions { width: 100%; justify-content: center; }
}

