:root {
    --gold: #C08D5D;
    --gold-hover: #b07d4d;
    --dark-bg: #0b0a0a;
    --darker-bg: #070606;
    --white: #FFFFFF;
    --black: #000000;
    --gray-text: #999999;
    --light-bg: #F4F4F4;
    --font-heading: 'EB Garamond', serif;
    --font-body: 'Tinos', serif;
    --font-accent: 'Poppins', sans-serif;
    --font-tinos: 'Tinos', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

section[id] {
    scroll-margin-top: 100px;
}

.invert-white {
    filter: invert(1) brightness(2);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

/* HEADER */
header {
    position: absolute;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* STICKY HEADER STATE */
header.sticky-header {
    position: fixed;
    top: 0;
    background-color: rgba(11, 10, 10, 0.98);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    animation: slideDown 0.4s ease forwards;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

header.sticky-header .top-bar {
    display: none;
}

header.sticky-header nav {
    border-bottom: 2px solid var(--gold);
}

header.sticky-header .logo-bg-curve {
    display: none;
}

header.sticky-header .logo-wrapper {
    padding: 10px 40px;
    margin-bottom: 0;
    min-width: 200px;
}

header.sticky-header .logo img {
    max-height: 50px;
}

header.sticky-header .nav-links a {
    font-size: 15px;
}

header.sticky-header .nav-links {
    gap: 30px;
}

.top-bar {
    height: 40px;
    display: flex;
    align-items: center;
    background-color: #000000;
    font-family: var(--font-accent);
    font-size: 11px;
    letter-spacing: 1px;
}

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

.contact-info span {
    margin-right: 25px;
    color: #cccccc;
}

.contact-info i {
    color: #cccccc;
    margin-right: 8px;
    font-size: 12px;
}

.social-links a {
    color: #cccccc;
    margin-left: 20px;
    transition: color 0.3s;
    font-size: 13px;
}

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

nav {
    background-color: var(--dark-bg);
    border-bottom: 4px solid var(--gold);
    position: relative;
}

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

.nav-links {
    flex: 1;
    display: flex;
    gap: 40px;
}

.nav-links.right {
    justify-content: flex-end;
}

.nav-links a {
    color: #dddddd;
    text-decoration: none;
    font-family: var(--font-tinos);
    font-size: 16px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--gold);
}

/* LOGO WITH CURVE */
.logo-wrapper {
    position: relative;
    padding: 20px 40px 60px;
    margin-bottom: -50px; /* Pull it down over the banner */
    text-align: center;
    z-index: 5;
    min-width: 320px;
}

.logo-bg-curve {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    border-bottom: 4px solid var(--gold);
    border-radius: 0 0 50% 50% / 0 0 40px 40px;
    z-index: -1;
}

.logo img {
    max-height: 100px;
    width: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

/* HERO */
.hero {
    height: 100vh;
    min-height: 800px;
    background-image: url('../assets/img/hero-bg.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 750px;
    margin-top: 50px;
}

.hero h2 {
    font-family: var(--font-tinos);
    font-size: 64px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
}

.hero p {
    font-size: 16px;
    margin-bottom: 40px;
    color: var(--white);
    line-height: 1.6;
    font-family: var(--font-body);
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    color: var(--black);
    padding: 0 40px;
    height: 50px;
    text-decoration: none;
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-hero:hover {
    background-color: var(--gold);
    color: var(--white);
}

/* ABOUT OVERLAP */
.about-overlap {
    position: relative;
    margin-top: -100px;
    z-index: 20;
    padding-bottom: 100px;
}

.overlap-card {
    display: flex;
    background-color: var(--white);
    color: var(--dark-bg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 2px solid transparent;
    transition: all 0.4s ease;
}

.overlap-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.25);
}

.card-text {
    flex: 1;
    padding: 80px;
}

.title-with-border {
    border-left: 4px solid var(--gold);
    padding-left: 20px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    min-height: 40px;
}

.card-text h3 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
}

.card-text p {
    color: var(--black);
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.8;
}

.btn-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gold);
    color: var(--white);
    padding: 0 40px;
    height: 50px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-card:hover {
    background-color: var(--gold-hover);
    color: var(--white);
}

.card-image {
    flex: 1;
}

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

/* SERVICES */
.services-section {
    padding: 120px 0;
    background-color: var(--dark-bg);
}

.history-section {
    padding: 120px 0;
    background-color: var(--light-bg);
}

.history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.history-images {
    position: relative;
    padding-right: 50px;
    padding-bottom: 50px;
}

.main-image {
    position: relative;
    width: 100%;
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-frame {
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid var(--white);
    pointer-events: none;
}

.overlap-image {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 45%;
    border: 8px solid var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.overlap-image img {
    width: 100%;
    height: auto;
    display: block;
}

.section-title-alt {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--black);
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
}

.history-content p {
    color: var(--black);
    font-size: 16px;
    margin-bottom: 40px;
    line-height: 1.8;
}

.history-cta-box {
    background-color: #222222;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.history-cta-box p {
    color: var(--white);
    margin-bottom: 0;
    font-style: italic;
    font-size: 20px;
    font-family: var(--font-heading);
    max-width: 65%;
    line-height: 1.4;
}

.history-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 24px;
    color: var(--gray-text);
}

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 42px;
    color: var(--gold);
    margin-bottom: 20px;
    text-transform: none;
    letter-spacing: 1px;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
    color: var(--white);
    font-size: 15px;
}

.services-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.service-item {
    width: 370px;
    padding: 50px;
    border: 2px solid transparent;
    text-align: center;
    transition: all 0.4s ease;
    background-color: transparent;
}

.service-item:hover {
    border-color: var(--gold);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.service-icon {
    font-size: 45px;
    color: var(--gold);
    margin-bottom: 30px;
}

.service-item h4 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
}

.service-item p {
    color: var(--white);
    margin-bottom: 30px;
    font-size: 14px;
    line-height: 1.6;
}

.service-link {
    color: var(--gold);
    text-decoration: underline;
    font-family: var(--font-tinos);
    font-size: 16px;
    font-weight: 400;
}

.services-footer {
    text-align: center;
    margin-top: 60px;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gold);
    color: var(--black);
    padding: 0 40px;
    height: 50px;
    text-decoration: none;
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

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

/* TEAM */
.team-section {
    padding: 120px 0;
    background-color: var(--light-bg);
    position: relative;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 720px;
    background-color: var(--dark-bg);
    z-index: 0;
}

.team-section .container {
    position: relative;
    z-index: 1;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1140px;
    margin: 0 auto;
    align-items: start;
}

.team-member {
    text-align: left;
}

.member-photo {
    width: 100%;
    height: 480px;
    margin: 0 auto;
    border: none;
    overflow: hidden;
    position: relative;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s;
}

.member-photo img.img-wilson {
    object-position: top center;
}

.member-photo img.img-rubens {
    object-position: center 20%;
}

.member-photo-overlay {
    position: absolute;
    bottom: 70px;
    left: 20px;
    z-index: 3;
}

.oab-tag {
    background-color: var(--gold);
    color: var(--black);
    font-weight: 700;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
}

.team-member:hover img {
    transform: scale(1.04);
}

.member-info {
    background-color: var(--white);
    padding: 35px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    width: 92%;
    margin: -50px auto 0;
    position: relative;
    z-index: 2;
    border: 2px solid #e8e8e8;
    transition: all 0.4s ease;
}

.team-member:hover .member-info {
    border-color: var(--gold);
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.member-header {
    border-bottom: 2px solid var(--gold);
    padding-bottom: 12px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}

.member-info h4 {
    font-family: var(--font-heading);
    font-size: 25px;
    margin-bottom: 0;
    font-weight: 700;
    color: var(--black);
}

.member-role {
    color: var(--gold-hover);
    font-family: var(--font-accent);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.member-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.stat-badge {
    background-color: #f7f7f7;
    border-left: 3px solid var(--gold);
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.stat-badge i {
    color: var(--gold);
}

.bio-text p {
    color: #4a4a4a;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
    text-align: justify;
}

.bio-text p strong {
    color: #222;
}

.specialty-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.specialty-tags span {
    background-color: #111;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 2px;
    letter-spacing: 0.3px;
}

/* QUOTE */
.testimonials-section {
    padding: 120px 0;
    background-color: var(--dark-bg);
    text-align: center;
}

.testimonials-grid {
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-item {
    padding: 40px;
    border: 2px solid transparent;
    transition: all 0.4s ease;
}

.testimonial-item:hover {
    border-color: var(--gold);
    transform: scale(1.02);
}

.testimonial-item p {
    font-family: var(--font-body);
    font-size: 16px;
    font-style: normal;
    color: var(--white);
    margin-bottom: 40px;
    line-height: 1.8;
}

.testimonial-item cite {
    color: var(--gray-text);
    font-family: var(--font-accent);
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
}

.quote-icon-large {
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 120px;
    line-height: 0;
    margin-top: 60px;
    margin-bottom: 40px;
    font-weight: 700;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background-color: transparent;
    cursor: pointer;
}

.carousel-dots .dot.active {
    background-color: var(--gold);
}

/* CONTACT */
/* CONTACT */
.contact-section {
    background-color: var(--gold);
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.contact-map {
    height: 100%;
    min-height: 500px;
}

.contact-form {
    background-color: var(--gold);
    padding: 80px 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--white);
    margin-bottom: 40px;
    font-weight: 700;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    height: 50px;
    padding: 15px 20px;
    background-color: var(--white);
    border: none;
    color: var(--black);
    font-family: var(--font-body);
    font-size: 15px;
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

.btn-submit {
    width: 180px;
    height: 50px;
    background-color: #222222;
    color: var(--gold);
    border: none;
    font-family: var(--font-accent);
    font-weight: 700;
    text-transform: none;
    letter-spacing: 1px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    align-self: flex-end;
}

.btn-submit:hover {
    background-color: var(--black);
}

/* FOOTER */
.main-footer {
    position: relative;
    padding: 100px 0 0;
    background: url('../assets/img/estatua\ justiça.png') center/cover no-repeat;
    color: var(--white);
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 30, 30, 0.85); /* Dark overlay */
    z-index: 1;
}

.footer-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding-bottom: 60px;
    text-align: left;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.footer-logo-img {
    height: 75px;
    width: auto;
    object-fit: contain;
    margin-bottom: 25px;
    align-self: flex-start;
}

.footer-text p {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.8;
    color: #cccccc;
    margin-bottom: 25px;
    max-width: 450px;
    text-align: left;
}

.social-icons-footer {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.social-icons-footer a {
    color: var(--gold);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--gold);
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icons-footer a:hover {
    background-color: var(--gold);
    color: var(--black);
    transform: translateY(-3px);
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
}

.contact-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
    text-align: left;
    width: 100%;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    gap: 15px;
    font-family: var(--font-accent);
    font-size: 14px;
    color: #cccccc;
    line-height: 1.6;
}

.contact-list li i {
    color: var(--gold);
    font-size: 18px;
    margin-top: 3px;
    flex-shrink: 0;
}

.contact-list li span {
    text-align: left;
}

.footer-bottom-bar {
    position: relative;
    z-index: 2;
    height: 15px;
    background-color: #222222;
}

/* MOBILE MENU & HEADER BASE STYLES */
.mobile-menu-toggle,
.mobile-nav-menu,
.mobile-social-header {
    display: none;
}

/* RESPONSIVE DESIGN - TABLETS & PHONES (<= 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }

    /* Header Fixed Bar for Mobile - Starts immediately on page load */
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background-color: #0b0a0a;
        border-bottom: 2px solid var(--gold);
        box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    }

    .top-bar {
        display: none !important;
    }

    nav {
        background-color: transparent;
        border-bottom: none;
        position: relative;
    }

    .nav-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 15px;
        height: 70px;
    }

    .nav-links {
        display: none !important;
    }

    /* Mobile Social Icons - Left Side (Order 1) */
    .mobile-social-header {
        display: flex;
        align-items: center;
        gap: 10px;
        z-index: 10;
        flex-shrink: 0;
        order: 1;
    }

    .mobile-social-header a {
        color: var(--gold);
        font-size: 18px;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 4px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--gold);
        text-decoration: none;
    }

    .mobile-social-header a:hover {
        color: var(--black);
        background-color: var(--gold);
    }

    /* Logo - Center (Order 2) */
    .logo-wrapper {
        position: relative;
        padding: 0;
        margin: 0;
        min-width: unset;
        z-index: 5;
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        order: 2;
    }

    .logo-bg-curve {
        display: none !important;
    }

    .logo img {
        max-height: 44px;
        width: auto;
        display: block;
        margin: 0 auto;
    }

    /* Hamburger Toggle - Right Side (Order 3) */
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 1.5px solid var(--gold);
        color: var(--gold);
        font-size: 20px;
        width: 44px;
        height: 44px;
        border-radius: 6px;
        cursor: pointer;
        z-index: 10;
        flex-shrink: 0;
        transition: all 0.3s;
        order: 3;
    }

    .mobile-menu-toggle:hover {
        background-color: var(--gold);
        color: var(--black);
    }

    .mobile-nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: rgba(11, 10, 10, 0.98);
        border-top: 1px solid rgba(192, 141, 93, 0.3);
        border-bottom: 3px solid var(--gold);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        padding: 10px 0;
    }

    .mobile-nav-menu.active {
        display: flex;
    }

    .mobile-nav-menu a {
        color: var(--white);
        text-decoration: none;
        padding: 12px 25px;
        font-family: var(--font-accent);
        font-size: 15px;
        font-weight: 600;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        transition: background 0.3s, color 0.3s;
    }

    .mobile-nav-menu a:hover {
        background-color: rgba(192, 141, 93, 0.15);
        color: var(--gold);
    }

    /* Hero */
    .hero {
        height: auto;
        min-height: 600px;
        padding: 140px 0 80px;
    }
    .hero h2 {
        font-size: clamp(32px, 5.5vw, 52px);
        line-height: 1.2;
    }
    .hero p {
        font-size: 15px;
        margin-bottom: 30px;
    }

    /* About Overlap */
    .about-overlap {
        margin-top: -40px;
        padding-bottom: 60px;
    }
    .overlap-card {
        flex-direction: column;
    }
    .card-text {
        padding: 40px 25px;
    }
    .card-text h3 {
        font-size: 28px;
    }
    .card-image {
        height: 320px;
    }

    /* History */
    .history-section {
        padding: 70px 0;
    }
    .history-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .history-images {
        padding-right: 0;
        padding-bottom: 0;
    }
    .overlap-image {
        position: relative;
        width: 70%;
        margin: -40px auto 0;
        right: 0;
        bottom: 0;
    }
    .history-cta-box {
        flex-direction: column;
        gap: 20px;
        padding: 30px 20px;
        text-align: center;
    }
    .history-cta-box p {
        max-width: 100%;
        font-size: 18px;
    }

    /* Services */
    .services-section {
        padding: 70px 0;
    }
    .services-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    .service-item {
        width: 100%;
        max-width: 100%;
        padding: 40px 25px;
    }

    /* Team Section Responsive Fix */
    .team-section {
        padding: 70px 0;
        background-color: var(--dark-bg);
    }
    .team-section::before {
        display: none;
    }
    .team-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        max-width: 650px;
    }
    .member-photo {
        height: 420px;
    }
    .member-info {
        width: 95%;
        margin: -40px auto 0;
        padding: 30px 22px;
    }
    .member-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .member-info h4 {
        font-size: 23px;
    }
    .bio-text p {
        text-align: left;
        font-size: 14px;
    }

    /* Testimonials */
    .testimonials-section {
        padding: 70px 0;
    }
    .testimonial-item {
        padding: 25px 15px;
    }

    /* Contact */
    .contact-section {
        padding: 0;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-map {
        height: 300px;
    }
    .contact-form {
        padding: 40px 25px;
    }
    .contact-form input,
    .contact-form textarea {
        font-size: 16px;
    }

    /* Footer Mobile - Left Aligned */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: left;
    }
    .footer-left {
        align-items: flex-start;
        text-align: left;
    }
    .footer-right {
        align-items: flex-start;
        text-align: left;
    }
    .footer-logo-img {
        align-self: flex-start;
        margin-bottom: 18px;
    }
    .footer-text p {
        max-width: 100%;
        text-align: left;
    }
    .social-icons-footer {
        justify-content: flex-start;
    }
    .contact-list {
        text-align: left;
        align-items: flex-start;
    }
    .contact-list li {
        justify-content: flex-start;
        text-align: left;
        flex-direction: row;
        align-items: flex-start;
        gap: 15px;
    }
    .contact-list li span {
        text-align: left;
    }
}

/* EXTRA SMALL PHONES (<= 576px) */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    .section-title {
        font-size: 32px;
    }
    .hero {
        min-height: 520px;
        padding: 120px 0 60px;
    }
    .hero h2 {
        font-size: 28px;
    }
    .hero p {
        font-size: 14px;
    }
    .btn-hero, .btn-card, .btn-gold {
        padding: 0 25px;
        font-size: 12px;
        height: 46px;
    }
    .card-text {
        padding: 30px 18px;
    }
    .card-text h3 {
        font-size: 24px;
    }
    .card-text p {
        font-size: 14px;
    }
    .card-image {
        height: 240px;
    }
    .history-cta-box p {
        font-size: 16px;
    }
    .member-photo {
        height: 350px;
    }
    .member-photo-overlay {
        bottom: 50px;
        left: 12px;
    }
    .oab-tag {
        font-size: 11px;
        padding: 4px 10px;
    }
    .member-info {
        width: 98%;
        padding: 22px 16px;
        margin: -35px auto 0;
    }
    .member-info h4 {
        font-size: 21px;
    }
    .stat-badge {
        font-size: 11.5px;
        padding: 5px 8px;
    }
    .bio-text p {
        font-size: 13px;
        line-height: 1.6;
    }
    .specialty-tags span {
        font-size: 10px;
        padding: 3px 7px;
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
}

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
    color: #FFF;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}
