/* ===== CSS Variables ===== */
:root {
    --navy: #1A2B24;
    --navy-dark: #0f1419;
    --gold: #2E7A4D;
    --gold-light: #1A5C38;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray: #888888;
    --gray-dark: #333333;
    --text-dark: #2c3e50;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.2);
    
    --font-heading: 'Merriweather', serif;
    --font-body: 'Open Sans', sans-serif;
    
    --transition: all 0.3s ease;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
    background-image: 
        url('data:image/svg+xml,<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="legal-books" x="0" y="0" width="200" height="200" patternUnits="userSpaceOnUse"><path d="M20 40 L20 160 L60 160 L60 40 Z M70 50 L70 170 L110 170 L110 50 Z M120 45 L120 165 L160 165 L160 45 Z" fill="none" stroke="rgba(46,122,77,0.06)" stroke-width="1"/><line x1="25" y1="80" x2="55" y2="80" stroke="rgba(46,122,77,0.04)" stroke-width="0.5"/><line x1="25" y1="100" x2="55" y2="100" stroke="rgba(46,122,77,0.04)" stroke-width="0.5"/><line x1="25" y1="120" x2="55" y2="120" stroke="rgba(46,122,77,0.04)" stroke-width="0.5"/><line x1="75" y1="90" x2="105" y2="90" stroke="rgba(46,122,77,0.04)" stroke-width="0.5"/><line x1="75" y1="110" x2="105" y2="110" stroke="rgba(46,122,77,0.04)" stroke-width="0.5"/><line x1="75" y1="130" x2="105" y2="130" stroke="rgba(46,122,77,0.04)" stroke-width="0.5"/><line x1="125" y1="85" x2="155" y2="85" stroke="rgba(46,122,77,0.04)" stroke-width="0.5"/><line x1="125" y1="105" x2="155" y2="105" stroke="rgba(46,122,77,0.04)" stroke-width="0.5"/><line x1="125" y1="125" x2="155" y2="125" stroke="rgba(46,122,77,0.04)" stroke-width="0.5"/></pattern></defs><rect width="100%" height="100%" fill="url(%23legal-books)"/></svg>');
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Navigation ===== */
.navbar {
    background: #1a2332;
    padding: 2rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 15px var(--shadow-dark);
}

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

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    width: 100%;
}

.brand-name {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.2;
    text-transform: uppercase;
    transition: var(--transition);
    white-space: nowrap;
    margin-bottom: 0.5rem;
}

.brand-profession {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.3rem;
}

.brand-decorative-lines {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 120px;
    margin: 0.3rem 0;
}

.brand-line {
    height: 1px;
    background: var(--gold);
    width: 100%;
    position: relative;
}

.brand-line::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gold);
    opacity: 0.6;
}

.brand-title {
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: var(--transition);
    white-space: nowrap;
}

.brand-dash {
    display: none;
}

.brand-link:hover .brand-name {
    color: var(--gold-light);
}

.brand-link:hover .brand-title,
.brand-link:hover .brand-dash {
    opacity: 0.8;
}

/* Responsive adjustments for brand */
@media (max-width: 768px) {
    .brand-name {
        font-size: 1.4rem;
        letter-spacing: 1.5px;
    }
    
    .brand-title {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .brand-decorative-lines {
        width: 100px;
    }
    
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-info {
        text-align: center;
    }
    
    .hero-name-large {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .brand-name {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }
    
    .brand-title {
        font-size: 0.9rem;
        letter-spacing: 1.5px;
    }
    
    .brand-decorative-lines {
        width: 80px;
    }
    
    .hero-name-large {
        font-size: 2rem;
    }
    
    .hero-phone {
        font-size: 1.2rem;
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--gold);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: var(--transition);
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.language-switcher-header {
    display: flex;
}

.language-switcher-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-language-section {
    width: 100%;
    margin-top: 1rem;
}

.footer-language-section h4 {
    margin-bottom: 0.75rem;
}

/* Hide header language switcher on mobile, show footer one */
@media (max-width: 768px) {
    .language-switcher-header {
        display: none;
    }
    
    .footer-language-section {
        display: block;
    }
}

/* Hide footer language switcher on desktop */
@media (min-width: 769px) {
    .footer-language-section {
        display: none;
    }
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    border-radius: 4px;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
}

.footer .lang-btn {
    border-color: var(--gray);
    color: var(--gray-dark);
}

.footer .lang-btn:hover,
.footer .lang-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
}

/* ===== Hero Section ===== */
.hero {
    background: var(--navy);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url('data:image/svg+xml,<svg width="300" height="300" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="gavel-pattern" x="0" y="0" width="300" height="300" patternUnits="userSpaceOnUse"><g opacity="0.12"><path d="M150 50 L150 120 M120 80 L180 80 M150 120 L130 140 M150 120 L170 140" stroke="rgba(46,122,77,0.4)" stroke-width="2" fill="none"/><circle cx="150" cy="80" r="8" fill="rgba(46,122,77,0.25)"/></g></pattern></defs><rect width="100%" height="100%" fill="url(%23gavel-pattern)"/></svg>'),
        url('data:image/svg+xml,<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="scales-pattern" x="0" y="0" width="200" height="200" patternUnits="userSpaceOnUse"><g opacity="0.1"><path d="M100 40 L100 120 M60 80 L140 80 M60 80 L50 100 M60 80 L70 100 M140 80 L130 100 M140 80 L150 100" stroke="rgba(46,122,77,0.4)" stroke-width="1.5" fill="none"/><circle cx="60" cy="80" r="6" fill="rgba(46,122,77,0.2)"/><circle cx="140" cy="80" r="6" fill="rgba(46,122,77,0.2)"/></g></pattern></defs><rect width="100%" height="100%" fill="url(%23scales-pattern)"/></svg>');
    opacity: 1;
}

.hero-content {
    width: 100%;
    color: var(--white);
    z-index: 1;
    position: relative;
    padding: 2rem 0;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 0;
}

.hero-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 0.5rem;
}

.hero-specialization {
    font-size: 1rem;
    font-weight: 400;
    color: var(--white);
    margin: 0;
    opacity: 0.9;
}

.hero-profession-text {
    font-size: 1rem;
    font-weight: 400;
    color: var(--white);
    margin: 0;
    opacity: 0.9;
}

.hero-name-large {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin: 0.5rem 0;
    line-height: 1.2;
}

.hero-phone {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--white);
    margin: 1rem 0 0.5rem 0;
}

.hero-consultation {
    font-size: 1rem;
    font-weight: 400;
    color: #ff4444;
    margin: 0.5rem 0 0 0;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gold);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.hero-name {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--gold-light);
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-dark);
}

.btn-secondary {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn-secondary:hover {
    background: var(--navy);
    color: var(--white);
}

/* ===== Criminal Defense Introduction Section ===== */
.criminal-defense-intro {
    padding: 4rem 0;
    background: var(--navy-dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.criminal-defense-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="scales-intro" x="0" y="0" width="200" height="200" patternUnits="userSpaceOnUse"><g opacity="0.05"><path d="M100 30 L100 110 M60 70 L140 70 M60 70 L50 90 M60 70 L70 90 M140 70 L130 90 M140 70 L150 90" stroke="rgba(46,122,77,0.4)" stroke-width="1.5" fill="none"/><circle cx="60" cy="70" r="6" fill="rgba(46,122,77,0.2)"/><circle cx="140" cy="70" r="6" fill="rgba(46,122,77,0.2)"/></g></pattern></defs><rect width="100%" height="100%" fill="url(%23scales-intro)"/></svg>');
    opacity: 1;
    z-index: 0;
}

.criminal-defense-intro .container {
    position: relative;
    z-index: 1;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.intro-text.highlight {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gold);
    margin-top: 2rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .intro-text {
        font-size: 1.1rem;
    }
    
    .intro-text.highlight {
        font-size: 1.2rem;
    }
}

/* ===== Court and Institution Section ===== */
.court-institution-section {
    padding: 5rem 0;
    background: var(--navy);
    color: var(--white);
}

.court-institution-section .section-title {
    color: var(--white);
    text-align: left;
    margin-bottom: 3rem;
}

.court-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.court-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.court-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.court-card-image {
    width: 100%;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.court-image-placeholder {
    font-size: 4rem;
    opacity: 0.7;
}

.court-card h3 {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 1.2rem;
    padding: 1.5rem;
    margin: 0;
    text-align: center;
    line-height: 1.4;
    font-weight: 600;
}

.court-messages {
    text-align: center;
    color: var(--white);
    font-size: 1.1rem;
    margin-top: 3rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .court-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .court-card-image {
        height: 150px;
    }
    
    .court-image-placeholder {
        font-size: 3rem;
    }
    
    .court-card h3 {
        font-size: 1rem;
        padding: 1rem;
    }
}

/* ===== Features Section ===== */
.features {
    padding: 5rem 0;
    background: var(--gray-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-dark);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-family: var(--font-heading);
    color: var(--navy);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* ===== Mission, Guarantee, Priority Section ===== */
.mission-guarantee {
    padding: 5rem 0;
    background: var(--navy-dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.mission-guarantee::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg width="180" height="180" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="books-mission" x="0" y="0" width="180" height="180" patternUnits="userSpaceOnUse"><g opacity="0.04"><path d="M20 30 L20 130 L50 130 L50 30 Z M60 35 L60 135 L90 135 L90 35 Z M100 40 L100 140 L130 140 L130 40 Z" fill="none" stroke="rgba(46,122,77,0.3)" stroke-width="1"/><line x1="25" y1="60" x2="45" y2="60" stroke="rgba(46,122,77,0.15)" stroke-width="0.5"/><line x1="25" y1="80" x2="45" y2="80" stroke="rgba(46,122,77,0.15)" stroke-width="0.5"/><line x1="65" y1="70" x2="85" y2="70" stroke="rgba(46,122,77,0.15)" stroke-width="0.5"/><line x1="65" y1="90" x2="85" y2="90" stroke="rgba(46,122,77,0.15)" stroke-width="0.5"/></g></pattern></defs><rect width="100%" height="100%" fill="url(%23books-mission)"/></svg>');
    opacity: 1;
    z-index: 0;
}

.mission-guarantee .container {
    position: relative;
    z-index: 1;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mission-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--gold);
    transition: var(--transition);
}

.mission-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.mission-card h3 {
    font-family: var(--font-heading);
    color: var(--gold);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.mission-card p {
    color: var(--white);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.mission-card .disclaimer {
    font-size: 0.9rem;
    color: var(--gray);
    font-style: italic;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== Practice Preview ===== */
.practice-preview {
    padding: 5rem 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.practice-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg width="220" height="220" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="legal-scrolls" x="0" y="0" width="220" height="220" patternUnits="userSpaceOnUse"><g opacity="0.03"><path d="M40 50 Q40 30 60 30 L120 30 Q140 30 140 50 L140 120 Q140 140 120 140 L60 140 Q40 140 40 120 Z" fill="none" stroke="rgba(46,122,77,0.25)" stroke-width="1"/><line x1="50" y1="70" x2="130" y2="70" stroke="rgba(46,122,77,0.12)" stroke-width="0.5"/><line x1="50" y1="90" x2="130" y2="90" stroke="rgba(46,122,77,0.12)" stroke-width="0.5"/><line x1="50" y1="110" x2="120" y2="110" stroke="rgba(46,122,77,0.12)" stroke-width="0.5"/></g></pattern></defs><rect width="100%" height="100%" fill="url(%23legal-scrolls)"/></svg>');
    opacity: 1;
    z-index: 0;
}

.practice-preview .container {
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    color: var(--navy);
    margin-bottom: 3rem;
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.practice-card {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--gold);
    transition: var(--transition);
}

.practice-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px var(--shadow);
}

.practice-card h3 {
    font-family: var(--font-heading);
    color: var(--navy);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.practice-card p {
    margin-bottom: 1rem;
    color: var(--gray-dark);
}

.practice-card a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.practice-card a:hover {
    color: var(--gold);
}

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

/* ===== Page Header ===== */
.page-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: 8rem 0 4rem;
    text-align: center;
    color: var(--white);
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url('data:image/svg+xml,<svg width="250" height="250" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="legal-docs" x="0" y="0" width="250" height="250" patternUnits="userSpaceOnUse"><g opacity="0.1"><path d="M30 40 Q30 20 50 20 L150 20 Q170 20 170 40 L170 140 Q170 160 150 160 L50 160 Q30 160 30 140 Z" fill="none" stroke="rgba(46,122,77,0.4)" stroke-width="1"/><line x1="40" y1="60" x2="160" y2="60" stroke="rgba(46,122,77,0.2)" stroke-width="0.5"/><line x1="40" y1="80" x2="160" y2="80" stroke="rgba(46,122,77,0.2)" stroke-width="0.5"/><line x1="40" y1="100" x2="140" y2="100" stroke="rgba(46,122,77,0.2)" stroke-width="0.5"/></g></pattern></defs><rect width="100%" height="100%" fill="url(%23legal-docs)"/></svg>'),
        url('data:image/svg+xml,<svg width="300" height="300" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="gavel-header" x="0" y="0" width="300" height="300" patternUnits="userSpaceOnUse"><g opacity="0.08"><path d="M150 60 L150 130 M120 90 L180 90 M150 130 L130 150 M150 130 L170 150" stroke="rgba(46,122,77,0.4)" stroke-width="2" fill="none"/><circle cx="150" cy="90" r="8" fill="rgba(46,122,77,0.25)"/></g></pattern></defs><rect width="100%" height="100%" fill="url(%23gavel-header)"/></svg>');
    opacity: 1;
    z-index: 0;
}

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

.page-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.page-subtitle {
    font-size: 1.3rem;
    color: var(--gold-light);
}

/* ===== About Page ===== */
.about-content {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg width="240" height="240" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="books-about" x="0" y="0" width="240" height="240" patternUnits="userSpaceOnUse"><g opacity="0.025"><path d="M30 50 L30 150 L70 150 L70 50 Z M80 55 L80 155 L120 155 L120 55 Z M130 60 L130 160 L170 160 L170 60 Z" fill="none" stroke="rgba(46,122,77,0.2)" stroke-width="1"/><line x1="35" y1="80" x2="65" y2="80" stroke="rgba(46,122,77,0.1)" stroke-width="0.5"/><line x1="35" y1="100" x2="65" y2="100" stroke="rgba(46,122,77,0.1)" stroke-width="0.5"/><line x1="85" y1="90" x2="115" y2="90" stroke="rgba(46,122,77,0.1)" stroke-width="0.5"/><line x1="85" y1="110" x2="115" y2="110" stroke="rgba(46,122,77,0.1)" stroke-width="0.5"/></g></pattern></defs><rect width="100%" height="100%" fill="url(%23books-about)"/></svg>');
    opacity: 1;
    z-index: 0;
}

.about-content .container {
    position: relative;
    z-index: 1;
}

.about-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: start;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 50%;
    border: 5px solid var(--gold);
    object-fit: cover;
    object-position: center;
    box-shadow: 0 10px 30px var(--shadow);
    display: block;
    margin: 0 auto;
}

.about-text h2 {
    font-family: var(--font-heading);
    color: var(--navy);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.about-tagline {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 600;
}

.about-bio p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.credentials,
.experience,
.values {
    margin: 4rem 0;
    padding: 2rem 0;
    border-top: 2px solid var(--gray-light);
}

.credentials h2,
.experience h2,
.values h2 {
    font-family: var(--font-heading);
    color: var(--navy);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.credential-item,
.experience-item {
    margin-bottom: 2rem;
    padding-left: 2rem;
    border-left: 3px solid var(--gold);
}

.credential-item h3,
.experience-item h3 {
    color: var(--navy);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.credential-item .year,
.experience-item .period {
    color: var(--gold);
    font-weight: 600;
    margin-top: 0.5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-item {
    padding: 1.5rem;
    background: var(--gray-light);
    border-radius: 10px;
}

.value-item h3 {
    color: var(--navy);
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.cta-section {
    text-align: center;
    padding: 3rem;
    background: var(--gray-light);
    border-radius: 10px;
    margin-top: 3rem;
}

.specializations {
    margin-top: 2rem;
}

.specializations h3 {
    font-family: var(--font-heading);
    color: var(--navy);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.specializations ul {
    list-style: none;
    padding-left: 0;
}

.specializations li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.specializations li:before {
    content: "•";
    color: var(--gold);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.certifications,
.trainings {
    margin-top: 3rem;
}

.certification-item,
.training-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-light);
}

.certification-item:last-child,
.training-item:last-child {
    border-bottom: none;
}

.certification-item p,
.training-item p {
    margin: 0;
    line-height: 1.6;
    color: var(--gray-dark);
}

.professional-history {
    margin-top: 3rem;
}

.professional-history h2 {
    font-family: var(--font-heading);
    color: var(--navy);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.history-item {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    border-left: 3px solid var(--gold);
}

.history-item p {
    line-height: 1.8;
    color: var(--gray-dark);
    margin: 0;
}

.career-list {
    margin-top: 1.5rem;
}

.career-item ul {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.5rem;
}

.career-item li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.career-item li:before {
    content: "•";
    color: var(--gold);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.instances {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--gray-light);
}

.instances h3 {
    font-family: var(--font-heading);
    color: var(--navy);
    margin-bottom: 1rem;
}

.instances ul {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.instances li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.instances li:before {
    content: "•";
    color: var(--gold);
    font-weight: bold;
    position: absolute;
    left: 0;
}

@media (max-width: 768px) {
    .career-item ul,
    .instances ul {
        grid-template-columns: 1fr;
    }
}

.cta-section h2 {
    font-family: var(--font-heading);
    color: var(--navy);
    margin-bottom: 1rem;
}

/* ===== FAQ Section ===== */
.faq-section {
    padding: 5rem 0;
    background: var(--white);
}

.faq-container {
    max-width: 900px;
    margin: 3rem auto 0;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--gray-light);
    border-radius: 10px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 2px 8px var(--shadow);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: 0 4px 12px var(--shadow-dark);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: var(--white);
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    font-family: var(--font-heading);
}

.faq-question:hover {
    background: var(--gray-light);
    color: var(--navy-dark);
}

.faq-question.active {
    background: var(--navy);
    color: var(--white);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--gold);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
    color: var(--gold-light);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 2rem;
}

.faq-answer.active {
    max-height: 1000px;
    padding: 1.5rem 2rem;
}

.faq-answer p {
    color: var(--gray-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .faq-question {
        font-size: 1rem;
        padding: 1.25rem 1.5rem;
    }
    
    .faq-answer {
        padding: 0 1.5rem;
    }
    
    .faq-answer.active {
        padding: 1.25rem 1.5rem;
    }
}

/* ===== Practice Areas Page ===== */
.practice-areas-content {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.practice-areas-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg width="260" height="260" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="gavel-practice" x="0" y="0" width="260" height="260" patternUnits="userSpaceOnUse"><g opacity="0.03"><path d="M130 50 L130 120 M100 80 L160 80 M130 120 L110 140 M130 120 L150 140" stroke="rgba(46,122,77,0.3)" stroke-width="2" fill="none"/><circle cx="130" cy="80" r="8" fill="rgba(46,122,77,0.15)"/></g></pattern></defs><rect width="100%" height="100%" fill="url(%23gavel-practice)"/></svg>');
    opacity: 1;
    z-index: 0;
}

.practice-areas-content .container {
    position: relative;
    z-index: 1;
}

.practice-area-card {
    background: var(--white);
    padding: 3rem;
    margin-bottom: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow);
    border-top: 4px solid var(--gold);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.practice-area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(46, 122, 77, 0.1), transparent);
    transition: left 0.5s ease;
}

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

.practice-area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-dark);
    border-top-color: var(--gold-light);
}

.interactive-card {
    cursor: pointer;
}

.practice-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    transition: var(--transition);
    display: inline-block;
}

.practice-area-card:hover .practice-icon {
    transform: scale(1.1) rotate(5deg);
}

.practice-summary {
    margin-bottom: 1rem;
    color: var(--gray-dark);
    line-height: 1.8;
}

.expand-btn {
    background: var(--navy);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.expand-btn:hover {
    background: var(--navy-dark);
    transform: translateX(5px);
}

.expand-icon {
    transition: transform 0.3s ease;
    display: inline-block;
}

.expand-btn.active .expand-icon {
    transform: rotate(180deg);
}

.practice-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0;
}

.practice-details.active {
    max-height: 2000px;
    padding-top: 1.5rem;
    margin-top: 1rem;
    border-top: 2px solid var(--gray-light);
}

/* Expandable Practice List Items */
.expandable-list {
    list-style: none;
    padding-left: 0;
}

.expandable-item {
    margin-bottom: 1rem;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    padding: 1rem;
    background: var(--white);
    transition: var(--transition);
}

.expandable-item:hover {
    border-color: var(--gold);
    box-shadow: 0 2px 8px var(--shadow);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.item-header span {
    flex: 1;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.6;
}

.expand-item-btn {
    background: transparent;
    border: none;
    color: var(--gold);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
    font-family: var(--font-body);
    font-size: 0.9rem;
    white-space: nowrap;
}

.expand-item-btn:hover {
    background: var(--gray-light);
    color: var(--navy-dark);
}

.expand-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.expandable-item.active .expand-arrow {
    transform: rotate(180deg);
}

.expandable-item.active .expand-item-btn {
    color: var(--navy-dark);
}

.item-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, margin 0.4s ease;
    padding: 0;
    margin-top: 0;
}

.item-details.active {
    max-height: 500px;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--gray-light);
}

.item-details p {
    color: var(--gray-dark);
    line-height: 1.8;
    margin: 0;
}

@media (max-width: 768px) {
    .item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .expand-item-btn {
        align-self: flex-start;
    }
}

.practice-area-card h2 {
    font-family: var(--font-heading);
    color: var(--navy);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.practice-area-card > p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--gray-dark);
}

.practice-list {
    list-style: none;
    padding-left: 0;
}

.practice-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid var(--gray-light);
}

.practice-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
    font-size: 1.2rem;
}


/* ===== Contact Page ===== */
.contact-content {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.contact-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg width="230" height="230" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="scales-contact" x="0" y="0" width="230" height="230" patternUnits="userSpaceOnUse"><g opacity="0.025"><path d="M115 40 L115 120 M75 80 L155 80 M75 80 L65 100 M75 80 L85 100 M155 80 L145 100 M155 80 L165 100" stroke="rgba(46,122,77,0.3)" stroke-width="1.5" fill="none"/><circle cx="75" cy="80" r="6" fill="rgba(46,122,77,0.15)"/><circle cx="155" cy="80" r="6" fill="rgba(46,122,77,0.15)"/></g></pattern></defs><rect width="100%" height="100%" fill="url(%23scales-contact)"/></svg>');
    opacity: 1;
    z-index: 0;
}

.contact-content .container {
    position: relative;
    z-index: 1;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-info h2,
.contact-form-wrapper h2 {
    font-family: var(--font-heading);
    color: var(--navy);
    font-size: 2rem;
    margin-bottom: 2rem;
}

.info-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-light);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item h3 {
    color: var(--navy);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: var(--gray-dark);
    line-height: 1.8;
}

.info-item a {
    color: var(--navy);
    text-decoration: none;
    transition: var(--transition);
}

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

.contact-form {
    background: var(--gray-light);
    padding: 2.5rem;
    border-radius: 10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--navy);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--gray-light);
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

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

.form-group textarea {
    resize: vertical;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.map-section {
    margin-top: 4rem;
}

.map-section h2 {
    font-family: var(--font-heading);
    color: var(--navy);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow);
    width: 100%;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 450px;
}

.map-note {
    margin-top: 1rem;
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
    font-style: italic;
}

/* ===== Footer ===== */
.footer {
    background: var(--navy-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    font-family: var(--font-heading);
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--gold);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gold);
    color: var(--navy);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    color: var(--gray);
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ===== Privacy Policy Page ===== */
.privacy-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.privacy-content h2 {
    font-family: var(--font-heading);
    color: var(--navy);
    font-size: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold);
}

.privacy-content h2:first-of-type {
    margin-top: 0;
}

.privacy-content p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.privacy-content ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.privacy-content ul li {
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.privacy-content strong {
    color: var(--navy);
    font-weight: 600;
}

.privacy-content a {
    color: var(--navy);
    text-decoration: none;
    transition: var(--transition);
}

.privacy-content a:hover {
    color: var(--gold);
    text-decoration: underline;
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--navy);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-title {
        font-size: 2rem;
    }

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

    .language-switcher {
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-image img {
        width: 200px;
        height: 200px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .btn {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }

    .practice-area-card,
    .contact-form {
        padding: 1.5rem;
    }
}

