/* Gresk & Singleton - Immigration Law Firm */

/* Fallback font adjustments to reduce FOUT */
@font-face {
    font-family: 'Libre Baskerville Fallback';
    src: local('Georgia'), local('Times New Roman');
    size-adjust: 97%;
    ascent-override: 88%;
    descent-override: 25%;
    line-gap-override: 0%;
}
@font-face {
    font-family: 'Roboto Fallback';
    src: local('Arial'), local('Helvetica');
    size-adjust: 100%;
    ascent-override: 92%;
    descent-override: 22%;
    line-gap-override: 0%;
}

:root {
    /* Brand colors */
    --navy: #051c2c;
    --navy-light: #0a2a4a;
    --blue: #1d5a8a;
    --blue-light: #abc3e1;
    --white: #faf9f7;
    --off-white: #f5f4f1;
    --gray-light: #eceae6;
    --gray: #5a5a58;
    --gold: #c9a227;
    --gold-muted: #b8963d;

    /* Text colors */
    --ink: #0b1b26;
    --ink-2: #243746;
    --muted: #56616a;
    --text-dark: #1a1a1a;

    /* UI colors */
    --border: #d9d6cf;
    --surface: #fbfaf8;
    --link: #165987;
    --link-hover: #0f3e60;

    /* Effects */
    --shadow: 0 10px 25px rgba(5, 28, 44, .08);
    --shadow-sm: 0 6px 16px rgba(5, 28, 44, .08);
    --radius: 12px;

    /* Typography scale */
    --fs-body: 1.0625rem;
    --fs-small: 0.875rem;
    --fs-h1: 2.75rem;
    --fs-h2: 2rem;
    --fs-h3: 1.5rem;
    --fs-h4: 1.25rem;
    --lh-body: 1.6;
    --lh-head: 1.2;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Roboto', 'Roboto Fallback', Arial, sans-serif;
    color: var(--ink);
    line-height: var(--lh-body);
    background: var(--off-white);
    font-size: var(--fs-body);
}
h1, h2, h3, h4 {
    font-family: 'Libre Baskerville', 'Libre Baskerville Fallback', Georgia, serif;
    font-weight: 700;
    line-height: var(--lh-head);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p { margin: 0 0 1rem; }
ul, ol {
    margin: 0.75rem 0 1.25rem;
    padding-left: 1.25rem;
}
li { margin: 0.35rem 0; }
li + li { margin-top: 0.5rem; }
a {
    color: var(--link);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-thickness 0.2s ease;
}
a:hover {
    color: var(--link-hover);
    text-decoration-thickness: 2px;
}
small, .small {
    font-size: var(--fs-small);
    color: var(--muted);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: static;
    z-index: 1000;
}
.header-top {
    background: var(--navy);
    color: var(--white);
    padding: 0.25rem 0;
    font-size: 1rem;
    letter-spacing: 0.3px;
}
.header-top .container {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
}
.header-top .contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.header-top a {
    color: var(--white);
    opacity: 0.9;
    text-decoration: none;
}
.header-top a:hover {
    opacity: 1;
}
.header-main {
    padding: 1rem 0;
    background: rgba(20, 35, 50, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
}
.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 1;
    min-width: 0;
}
.logo-img {
    width: 340px;
    max-width: 100%;
    height: auto;
}
.nav {
    display: flex;
    gap: clamp(0.75rem, 2vw, 2rem);
    align-items: center;
    flex-shrink: 0;
    padding-left: clamp(0.75rem, 2vw, 2rem);
}
.nav a {
    color: rgba(255,255,255,0.85);
    font-weight: 400;
    font-size: 1.05rem;
    padding: 0.5rem 0;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
}
.nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
    transition: width 0.25s ease;
    opacity: 0.85;
}
.nav a:hover::after,
.nav a.active::after {
    width: 70%;
}
.nav a:hover {
    color: var(--white);
}
.nav a.active {
    color: var(--white);
    font-weight: 500;
}
.nav a.btn {
    color: var(--white);
    background: var(--navy);
    padding: 0.6rem 1.25rem;
    font-size: 1rem;
    border-radius: 3px;
}
.nav a.btn::after {
    display: none;
}
.nav a.btn:hover {
    background: var(--navy-light);
    color: var(--white);
}
.lang-switch {
    background: rgba(255,255,255,0.08);
    padding: 0.25rem 1rem;
    border-radius: 999px;
    font-size: 1rem;
    color: rgba(255,255,255,0.85) !important;
    border: 1px solid rgba(255,255,255,0.15);
    letter-spacing: 0.02em;
}
.lang-switch:hover {
    background: rgba(255,255,255,0.12);
    color: var(--white) !important;
}
.social-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.social-links a svg {
    display: block;
}
/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: #d4a84a;
    color: #0a1a2e;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.btn-primary:hover {
    background: #ddb555;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}
.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.35);
    color: var(--white);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.5);
}
/* Hero Section */
.hero {
    background-color: #0b2740;
    color: var(--white);
    padding: 1rem 0 4rem;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}
.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    max-width: 3000px;
    margin: 0 auto;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Responsive hero image transforms */
@media (min-width: 769px) and (max-width: 992px) {
    .hero-bg img {
        object-fit: contain;
        transform: scale(1.2) translate(5%, 8%);
    }
}
@media (min-width: 993px) and (max-width: 1200px) {
    .hero-bg img {
        object-fit: contain;
        transform: scale(1.6) translate(0%, 17%);
    }
}
@media (min-width: 1201px) and (max-width: 1500px) {
    .hero-bg img {
        object-fit: contain;
        transform: scale(1.5) translate(-4%, 16%);
    }
}
.hero-content {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    color: #fff;
}
.hero-content h1 {
    color: #fff;
}
:lang(es) .hero-content h1 {
    font-size: clamp(1.5rem, 8vw, 2.5rem);
}
.hero .container {
    position: relative;
    z-index: 1;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 15%, rgba(180, 150, 60, 0.15) 50%, transparent 85%);
    z-index: 2;
}
.hero-content h1 {
    margin-bottom: 1rem;
    font-size: clamp(1.75rem, 8vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.hero-tagline {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.9);
    font-family: 'Roboto', sans-serif;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
}
.hero-text {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 2rem;
    line-height: 1.75;
    max-width: 48ch;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    row-gap: 1.5rem;
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 8px;
}
.stat-card {
    flex: 1 0 20%;
    min-width: 20%;
    background: transparent;
    padding: 0 1.5rem;
    text-align: left;
    border-left: 1px solid rgba(255,255,255,0.15);
    border-right: 1px solid rgba(255,255,255,0.15);
    margin-right: -1px;
    transition: all 0.3s ease;
}
.stat-number {
    font-size: 2.25rem;
    font-weight: 600;
    font-family: 'Libre Baskerville', serif;
    color: rgba(216, 178, 90, 0.95);
    line-height: 1;
    letter-spacing: -0.01em;
}
.stat-label {
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
    margin-top: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
/* Page Header */
.page-header {
    padding: 3rem 0 1.5rem;
}
.page-header h1 {
    margin: 0 0 2rem;
    font-size: clamp(2rem, 2.5vw + 1rem, 2.5rem);
    line-height: 1.1;
}
.page-header p {
    font-size: 1.125rem;
    line-height: 1.55;
    margin-top: 0;
    margin-bottom: 0;
}
.page-header + .section {
    padding-top: 0;
}
.page-header + .section h2:first-child,
.page-header + .section h3:first-child {
    margin-top: 0;
}
/* Sections */
.section {
    padding: 3rem 0;
}
.section:first-of-type {
    padding-top: 1.5rem;
}
.section-light {
    background: var(--gray-light);
    padding-top: 2rem;
}
.section-header {
    max-width: 650px;
    margin-bottom: 2.5rem;
}
.section-header h2 {
    margin-bottom: 0.75rem;
    font-size: 1.85rem;
    color: var(--navy);
}
.section-header p {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.7;
}
/* Practice Areas */
.practice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.practice-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
}
.practice-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.practice-icon {
    width: 44px;
    height: 44px;
    background: var(--navy);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
}
.practice-card h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    color: var(--navy);
}
.practice-card p {
    color: var(--gray);
    line-height: 1.7;
    font-size: 1rem;
}
.practice-area {
    margin-bottom: 2.5rem;
}
.practice-area:last-child {
    margin-bottom: 0;
}
.practice-area h2 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--navy);
}
.practice-area p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}
.practice-area ul {
    color: var(--gray);
    line-height: 1.6;
    margin-top: 0.5rem;
}
/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-content h2 {
    margin-bottom: 1.5rem;
}
.about-content p {
    margin-bottom: 1rem;
    color: var(--gray);
}
.about-content p:first-of-type {
    font-size: 1.1rem;
    color: var(--navy);
}
.about-image {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: 8px;
    padding: 3rem;
    color: var(--white);
}
.quote {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.quote-author {
    font-size: 1rem;
    opacity: 0.8;
}
/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}
.team-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.team-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--white);
    font-family: 'Libre Baskerville', serif;
}
.team-info h3 {
    margin-top: 0;
    margin-bottom: 0.25rem;
}
.team-title {
    color: var(--blue);
    font-weight: 500;
    margin-bottom: 1rem;
}
.team-bio {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.7;
}
/* Staff Directory Cards */
.staff-section h2 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}
.staff-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.staff-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 0.75rem;
    align-items: start;
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
    transition: box-shadow 0.2s;
}
.staff-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.staff-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Libre Baskerville', serif;
    font-size: 1rem;
    font-weight: 600;
}
.staff-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.staff-item .staff-name {
    display: block;
    font-weight: 600;
    color: var(--navy);
    font-size: 1rem;
}
.staff-item .staff-role {
    display: block;
    color: var(--blue);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}
.staff-item .staff-contact {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}
.staff-item .staff-contact a {
    color: var(--muted);
    text-decoration: none;
}
.staff-item .staff-contact a:hover {
    color: var(--link);
    text-decoration: underline;
}
/* Offices */
.offices-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.office-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.office-card h3 {
    color: var(--blue);
    margin-bottom: 1rem;
}
.office-address {
    margin-bottom: 1rem;
    color: var(--gray);
}
.office-phone {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
}
/* CTA Section */
.cta {
    background: var(--navy);
    color: var(--white);
    padding: 3.5rem 0;
}
.cta h2 {
    margin-bottom: 0.75rem;
    font-size: 1.75rem;
}
.cta p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}
/* Careers Banner */
.careers-banner {
    background: var(--navy);
    color: var(--white);
    padding: 2.5rem 0;
    border-top: 3px solid var(--gold);
}
.careers-banner h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: var(--gold);
}
.careers-banner p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.25rem;
    font-size: 1rem;
}
/* Resources Page */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}
.resource-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.resource-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.resource-card h3 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.3;
    color: var(--navy);
}
.resource-card p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}
.resource-card .resource-link {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    color: var(--link);
    text-decoration: none;
}
.resource-card .resource-link:hover {
    color: var(--link-hover);
    text-decoration: underline;
}
/* Contact Page */
.contact-intro {
    margin-bottom: 1.5rem;
    max-width: 65ch;
}
.contact-intro h2 {
    margin-top: 0;
}
.contact-intro p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
}
.radio-callout {
    margin: 1.5rem 0 2rem;
    padding: 1.25rem 1.5rem;
    background: color-mix(in oklab, var(--gold) 10%, var(--surface));
    border: 1px solid color-mix(in oklab, var(--gold) 30%, var(--border));
    border-radius: var(--radius);
    border-left: 4px solid var(--gold);
}
.radio-callout h3 {
    margin: 0 0 0.5rem;
    color: var(--navy);
    font-size: 1.25rem;
}
.radio-callout p {
    margin: 0;
    color: var(--ink-2);
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.contact-card {
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.contact-card h3 {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    color: var(--navy);
}
.contact-address {
    color: var(--ink);
    line-height: 1.6;
    margin-bottom: 1rem;
}
.contact-phone {
    margin-bottom: 0.5rem;
}
.contact-phone a {
    font-size: 1.15rem;
    font-weight: 500;
    text-decoration: none;
}
.contact-phone a:hover {
    text-decoration: underline;
}
.contact-fax {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 1rem;
}
.map-link {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    text-decoration: none;
}
.map-link:hover {
    text-decoration: underline;
}
/* Careers Page */
.careers-intro {
    margin-bottom: 2.5rem;
}
.careers-intro p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--ink-2);
}
.careers-intro + h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}
.job-listing {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}
.job-listing:last-of-type {
    border-bottom: none;
}
.job-listing h3 {
    margin: 0 0 0.5rem;
    color: var(--navy);
}
.job-listing p {
    color: var(--ink);
    margin-bottom: 0.75rem;
}
.job-listing ul {
    margin: 0;
    color: var(--muted);
}
.benefits-section,
.location-section,
.apply-section {
    margin-top: 2.5rem;
}
.benefits-section h2,
.location-section h2,
.apply-section h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}
.benefits-list {
    column-count: 2;
    column-gap: 2rem;
}
.location-section .address {
    font-size: 1.1rem;
    color: var(--ink);
    line-height: 1.6;
}
.apply-section .btn {
    margin: 0.5rem 0 1.5rem;
}
.eeo-statement {
    font-size: 1rem;
    color: var(--muted);
    font-style: italic;
}
/* Footer */
.footer {
    background: var(--navy);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}
.footer h4 {
    margin-bottom: 1rem;
    color: var(--gold);
}
.footer p, .footer a {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    text-decoration: none;
}
.footer a:hover {
    color: var(--white);
    text-decoration: underline;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 0.5rem;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 1rem;
    opacity: 0.7;
}
/* Legal Content Pages */
.legal-content {
    max-width: 800px;
    line-height: 1.8;
}
.legal-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--navy);
}
.legal-content h2:first-of-type {
    margin-top: 2rem;
}
.legal-content p {
    margin-bottom: 1rem;
}
.legal-content ul {
    margin: 1rem 0 1.5rem 1.5rem;
}
.legal-content li {
    margin-bottom: 0.5rem;
}
.legal-content .contact-list {
    list-style: none;
    margin-left: 0;
}
.legal-content .contact-list li {
    margin-bottom: 0.75rem;
}
.legal-content a {
    color: var(--blue);
}
.legal-content a:hover {
    text-decoration: underline;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--navy);
}
/* Responsive */
@media (max-width: 992px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }

    .hero .container {
        grid-template-columns: 1fr;
    }

    .stat-card {
        flex: 1 0 40%;
        min-width: 40%;
    }
    
    .practice-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .offices-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
@media (min-width: 769px) and (max-width: 992px) {
    .hero {
        padding: 0;
        min-height: auto;
    }

    .hero-bg {
        height: 350px;
        bottom: auto;
    }

    .hero .container {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: min(382px, 42vw) auto auto auto;
        gap: 24px;
    }

    .hero-content {
        display: contents;
    }

    .hero-content h1 {
        grid-row: 1;
        grid-column: 1;
        align-self: start;
        padding-top: 3rem;
        margin: 0;
        position: relative;
        z-index: 1;
    }

    .hero-tagline {
        grid-row: 1;
        grid-column: 1;
        align-self: start;
        justify-self: start;
        margin-top: 10.5rem;
        max-width: 400px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 1rem 1.5rem;
        border-radius: 8px;
        position: relative;
        z-index: 1;
        white-space: normal;
    }

    .hero-text {
        display: block !important;
        grid-row: 2;
        grid-column: 1;
        justify-self: stretch;
        padding-top: 1.5rem;
        margin: 0 0 -0.5rem 0;
        color: rgba(255,255,255,0.9);
        max-width: none !important;
        width: 100% !important;
    }

    .hero-buttons {
        display: flex !important;
        flex-flow: row nowrap !important;
        gap: 1rem;
        grid-row: 3;
        grid-column: 1;
        padding: 0;
        margin: 0;
    }

    .hero-stats {
        grid-row: 4;
        grid-column: 1;
        margin: 0 0 1.5rem 0;
        display: flex !important;
        flex-wrap: wrap !important;
    }

    .stat-card {
        flex: 1 0 40% !important;
        min-width: 40% !important;
    }

    .section:first-of-type::before {
        display: none !important;
    }
}
@media (max-width: 768px) {
    .hero {
        padding: 0;
        min-height: auto;
    }

    .hero-bg {
        height: 208px;
        overflow: hidden;
        bottom: auto;
    }

    .hero-bg img {
        transform: scale(1.3) translate(1%, 11%);
    }

    .hero .container {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 215px auto auto auto auto;
        gap: 24px;
    }

    .hero-content {
        display: contents;
    }

    .hero-content h1 {
        grid-row: 1;
        grid-column: 1;
        align-self: start;
        padding-top: 3rem;
        margin: 0;
        position: relative;
        z-index: 1;
        font-size: 1.75rem;
        line-height: 2.5rem;
    }

    :lang(es) .hero-content h1 {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    :lang(es) .hero-tagline {
        white-space: normal;
    }

    .hero-tagline {
        grid-row: 2;
        grid-column: 1;
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        border-radius: 0;
        margin: 0;
        white-space: nowrap;
    }

    .hero-text {
        display: block !important;
        grid-row: 3;
        grid-column: 1;
        justify-self: stretch;
        padding: 0;
        margin: 0;
        color: rgba(255,255,255,0.9);
        max-width: none !important;
        width: 100% !important;
    }

    .hero-buttons {
        display: flex !important;
        flex-flow: row nowrap !important;
        gap: 1rem;
        grid-row: 4;
        grid-column: 1;
        padding: 0;
        margin: 0;
    }

    .hero-stats {
        grid-row: 5;
        grid-column: 1;
        margin: 0 0 1.5rem 0;
        display: flex !important;
        flex-wrap: wrap !important;
    }

    .stat-card {
        flex: 1 0 40% !important;
        min-width: 40% !important;
    }

    .section:first-of-type::before {
        display: none !important;
    }

    .header {
        position: static;
    }

    .header.menu-open {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 200;
    }

    .header-main {
        backdrop-filter: none;
    }

    .nav {
        display: none;
        position: fixed;
        top: 116px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--off-white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        z-index: 100;
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        padding: 1.25rem 2rem;
        color: var(--navy);
        font-size: 1.25rem;
        text-align: center;
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav a:last-child {
        border-bottom: none;
    }

    .nav a:hover {
        color: var(--blue);
        background: var(--gray-light);
    }

    .nav a.active {
        color: var(--blue);
        font-weight: 600;
    }

    .menu-toggle {
        display: block;
    }

    .team-card {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 580px) {
    .header-top .contact-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.125rem;
    }

    .header-top .contact-info span {
        display: none;
    }

    .nav {
        top: 144px;
    }

    .hero-content {
        background: rgba(255, 255, 255, 0.25);
        padding: 1.5rem;
    }

    .hero-stats {
        background: rgba(255, 255, 255, 0.25);
        padding: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 1.5rem;
    }

    .hero-buttons .btn {
        text-align: center;
    }

    .benefits-list {
        column-count: 1;
    }
}
