/* Reset and Base Styles */
:root {
    --navbar-height: calc(80px + 3.5rem + 1rem); /* Logo height + padding + extra safety */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #2c2c2c;
    background-color: #ffffff;
    font-feature-settings: 'kern' 1, 'liga' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-serif {
    font-family: 'Playfair Display', 'Times New Roman', serif;
    font-feature-settings: 'kern' 1, 'liga' 1;
}

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

.section {
    padding: 5rem 0;
}

/* Navigation Styles */
.navbar {
    background-color: #ffffff;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #e8e8e8;
    padding-top: env(safe-area-inset-top);
}

.navbar .container {
    padding-left: 1rem;
    padding-right: 2rem;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-logo-image {
    height: 80px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
}

.nav-logo:hover {
    transform: translateY(-1px);
}

.nav-logo:hover .nav-logo-image {
    opacity: 0.9;
}

.desktop-nav {
    display: none;
    gap: 3rem;
}

.nav-link {
    font-weight: 500;
    color: #4a5568;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
}

.nav-link:hover,
.nav-link.active {
    color: #014a8f;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    position: absolute;
    right: 2rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #014a8f;
    margin: 6px 0;
    transition: 0.3s;
}

.mobile-nav {
    display: none;
    border-top: 1px solid #e8e8e8;
    padding: 2rem 0;
    padding-left: 0;
    background-color: white;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav.show {
    display: flex;
}

.mobile-nav-link {
    font-weight: 500;
    color: #4a5568;
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 0.025em;
}

.mobile-nav-link:hover {
    color: #014a8f;
}

/* Hero Section */
.hero-section {
    position: relative;
    color: white;
    padding-top: calc(var(--navbar-height) + 3rem + env(safe-area-inset-top));
    padding-bottom: 8rem;
    text-align: center;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(1, 74, 143, 0.45) 0%, rgba(1, 74, 143, 0.28) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.025em;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.2;
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.025em;
    color: rgba(255, 255, 255, 0.9);
}

.hero-description {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 3rem;
    line-height: 1.6;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.phone-info {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.025em;
}

.btn-primary {
    background-color: white;
    color: #014a8f;
    border-color: white;
}

.btn-primary:hover {
    background-color: transparent;
    color: white;
    border-color: white;
}

/* Metrics Section */
.metrics-section {
    background-color: #f8f9fa;
    padding: 4rem 0;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
}

.metric-item {
    padding: 1rem;
}

.metric-number {
    font-size: 3rem;
    font-weight: 700;
    color: #014a8f;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.metric-label {
    color: #4a5568;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.025em;
}

/* Services Section */
.services-section {
    background-color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #014a8f;
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.025em;
}

.section-description {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.6;
    font-weight: 300;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.service-card {
    text-align: center;
    padding: 2rem;
    border: 1px solid #e8e8e8;
    background-color: white;
}

.service-icon {
    width: 4rem;
    height: 4rem;
    background-color: #014a8f;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 1.5rem;
}

.service-icon svg {
    width: 2rem;
    height: 2rem;
    stroke-width: 1.5;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #014a8f;
    font-family: 'Playfair Display', serif;
}

.service-description {
    color: #4a5568;
    line-height: 1.6;
    font-weight: 300;
}

/* Quote Section */
.quote-section {
    background-color: #2d3748;
    color: white;
    text-align: center;
}

.quote-content {
    max-width: 700px;
    margin: 0 auto;
}

.quote-text {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.5;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
}

.quote-divider {
    width: 4rem;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 auto 2rem;
}

.quote-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    font-weight: 300;
}

/* Clients Section */
.clients-section {
    background-color: #f8f9fa;
}

.clients-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.client-column h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #014a8f;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
}

.client-list {
    list-style: none;
    padding: 0;
}

.client-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e8e8e8;
    color: #4a5568;
    font-weight: 400;
}

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

/* Philosophy Section */
.philosophy-section {
    background-color: white;
}

.philosophy-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.philosophy-item {
    text-align: left;
    padding: 2rem;
    border-left: 3px solid #014a8f;
    background-color: #f8f9fa;
}

.philosophy-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #014a8f;
    font-family: 'Playfair Display', serif;
}

.philosophy-description {
    color: #4a5568;
    line-height: 1.6;
    font-weight: 300;
}

/* Attorneys Section */
.attorneys-section {
    background-color: white;
}

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

.attorney-card {
    background: #fff;
    border: 1px solid #e3e8ee;
    box-shadow: 0 2px 8px rgba(1,74,143,0.04);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s;
    cursor: pointer;
    min-width: 220px;
    max-width: 320px;
    min-height: 340px;
}

.attorney-card:hover {
    box-shadow: 0 4px 16px rgba(1,74,143,0.10);
}

.attorney-photo {
    width: 140px;
    height: 140px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    overflow: hidden;
    border-radius: 8px;
}

.attorney-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: #e3e8ee;
    color: #014a8f;
    font-weight: 600;
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
}

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

.attorney-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.attorney-title {
    color: #014a8f;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.attorney-email {
    font-size: 0.98rem;
    color: #444;
    word-break: break-all;
}

/* Modal Enhancements */
.modal-content {
    max-width: 800px;
    min-width: 370px;
    padding: 3rem 3rem 2.5rem 3rem;
}

.modal-attorney-photo {
    width: 170px;
    height: 170px;
    box-shadow: 0 2px 8px rgba(1,74,143,0.04);
}

#modal-attorney-placeholder {
    font-size: 3rem;
}

#modal-attorney-name {
    font-size: 2.2rem;
}

.modal-attorney-details .attorney-title {
    font-size: 1.18rem;
}

.modal-attorney-details .attorney-email {
    font-size: 1.12rem;
}

#modal-attorney-bio-content {
    font-size: 1.15rem;
    line-height: 1.8;
}

/* Modal Styles - Flat, Minimal, Sharp Edges */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    background: rgba(1, 74, 143, 0.18);
    transition: background 0.2s;
}

.modal.open {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    margin: 4vh auto;
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    border: 1.5px solid #014a8f;
    box-shadow: 0 8px 32px rgba(1,74,143,0.13);
    max-width: 700px;
    min-width: 340px;
    width: 90vw;
    border-radius: 0;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e3e8ee;
    padding-bottom: 0.7rem;
}

#modal-attorney-name {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: #014a8f;
    margin: 0;
}

.modal-header .close {
    font-size: 2.2rem;
    color: #014a8f;
    cursor: pointer;
    font-weight: 400;
    line-height: 1;
    margin-left: 1.5rem;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-attorney-info {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 0.5rem;
}

.modal-attorney-photo {
    width: 140px;
    height: 140px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(1,74,143,0.04);
}

.modal-attorney-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

#modal-attorney-placeholder {
    width: 100%;
    height: 100%;
    background: #e3e8ee;
    color: #014a8f;
    font-weight: 600;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
    border-radius: 8px;
}

.modal-attorney-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    justify-content: center;
}

.modal-attorney-details .attorney-title {
    font-size: 1.1rem;
    color: #014a8f;
    margin-bottom: 0.1rem;
}

.modal-attorney-details .attorney-email {
    font-size: 1.05rem;
    color: #444;
    word-break: break-all;
}

.modal-attorney-bio {
    margin-top: 0.5rem;
}

.modal-attorney-bio h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #014a8f;
    margin-bottom: 0.5rem;
}

#modal-attorney-bio-content {
    font-size: 1.08rem;
    line-height: 1.7;
    color: #222;
    font-family: 'Inter', sans-serif;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Contact Section */
.contact-section {
    background-color: #f8f9fa;
    border-top: 1px solid #e3e8ee;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2.5rem;
}

.contact-form-container {
    background: #fff;
    border: 1px solid #e3e8ee;
    box-shadow: 0 2px 8px rgba(1,74,143,0.04);
    padding: 2.5rem 2rem;
    border-radius: 0;
}

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

.contact-form label {
    display: block;
    font-weight: 500;
    color: #014a8f;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e3e8ee;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    border-radius: 0;
    background: #f3f6fa;
    color: #222;
    transition: border 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border: 1.5px solid #014a8f;
    outline: none;
    background: #fff;
}

.contact-form button[type="submit"] {
    margin-top: 1rem;
    width: 100%;
}

.office-locations {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.office {
    background: #fff;
    border: 1px solid #e3e8ee;
    box-shadow: 0 2px 8px rgba(1,74,143,0.04);
    padding: 2rem 1.5rem;
    border-radius: 0;
}

.office h4 {
    color: #014a8f;
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.office-details {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
}

/* Footer Section */
.footer {
    background: #014a8f !important;
    color: #fff !important;
    padding: 0.5rem 0 0 0 !important;
    border-top: 2px solid #e3e8ee !important;
    font-family: 'Inter', sans-serif !important;
    width: 100vw !important;
    left: 0 !important;
    position: relative !important;
    z-index: 100 !important;
}

.footer-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 1.2rem 0 0.5rem 0 !important;
    gap: 0 !important;
}

.footer-section {
    background: none !important;
    color: inherit !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    text-align: center !important;
    width: 100% !important;
}

.footer-title {
    color: #fff !important;
    font-family: 'Playfair Display', serif !important;
    font-size: 1.15rem !important;
    margin-bottom: 0.2rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
}

.footer-description {
    color: #e3e8ee !important;
    font-size: 0.98rem !important;
    margin-bottom: 0.2rem !important;
    font-weight: 400 !important;
}

.footer-bottom {
    text-align: center !important;
    color: #e3e8ee !important;
    font-size: 0.92rem !important;
    margin-top: 0.5rem !important;
    letter-spacing: 0.02em !important;
    padding-bottom: 0.7rem !important;
}

.back-to-top-btn {
    display: inline-block !important;
    margin: 0.5rem auto 0 auto !important;
    background: #fff !important;
    color: #014a8f !important;
    border: 1.5px solid #014a8f !important;
    border-radius: 4px !important;
    padding: 0.4rem 1.2rem !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background 0.18s, color 0.18s !important;
    box-shadow: 0 2px 8px rgba(1,74,143,0.04) !important;
}

.back-to-top-btn:hover {
    background: #014a8f !important;
    color: #fff !important;
}

.footer svg, .footer i, .footer .icon {
    font-size: 1.1em !important;
    width: 1.1em !important;
    height: 1.1em !important;
    vertical-align: middle !important;
}

/* Hide any contact info in the footer */
.footer [class*="contact"], .footer [class*="office"], .footer-address, .footer-phone, .footer-email {
    display: none !important;
}

/* Mobile Logo Adjustments */
@media (max-width: 640px) {
    .logo {
        font-size: 1.75rem;
        gap: 1rem;
    }
    
    .logo-image {
        height: 55px;
    }
    
    .logo-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
        gap: 0.75rem;
    }
    
    .logo-image {
        height: 48px;
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    :root {
        --navbar-height: calc(60px + 2.5rem + 1.5rem); /* Extra small screens with more safety */
    }
    
    .hero-section {
        min-height: 100vh;
        padding-top: calc(var(--navbar-height) + 3rem + env(safe-area-inset-top));
        padding-bottom: 3rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 640px) {
    :root {
        --navbar-height: calc(60px + 2.5rem + 1rem); /* Smaller logo + padding + safety on mobile */
    }
    
    .nav-content {
        padding: 1.25rem 0;
    }
    
    .nav-logo-image {
        height: 60px;
    }
    
    .hero-section {
        min-height: 100vh;
        padding-top: calc(var(--navbar-height) + 2.5rem + env(safe-area-inset-top));
        padding-bottom: 4rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
}
@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .office-locations {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.75rem;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .philosophy-content {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .attorneys-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    :root {
        --navbar-height: calc(90px + 3.5rem + 1rem); /* Larger logo + padding + safety on large screens */
    }
    
    .nav-logo-image {
        height: 90px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-subtitle {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .container {
        padding: 0 3rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles */
.btn:focus,
.nav-link:focus,
.mobile-nav-link:focus,
input:focus,
textarea:focus {
    outline: 2px solid #014a8f;
    outline-offset: 2px;
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Prevent automatic phone number styling on mobile */
.phone-info,
.phone-info span,
.phone-info a {
    color: inherit !important;
    text-decoration: none !important;
}

/* Additional mobile-specific styling prevention */
@media (max-width: 768px) {
    .phone-info {
        -webkit-text-size-adjust: none;
        -webkit-touch-callout: none;
        -webkit-tap-highlight-color: transparent;
    }
}
