* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #fff;
    color: #333;
    line-height: 1.6;
}

a { color: inherit; }

/* TOP BAR */
.top-bar {
    background: #111;
    color: #ccc;
    display: flex;
    justify-content: space-between;
    padding: 10px 50px;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 10px;
}
.top-bar a { color: #ccc; text-decoration: none; }
.top-bar a:hover { color: #5b8def; }

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: #1a1a1a;
    width: 100%;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
    z-index: 50;
}
.navbar.transparent {
    background: transparent;
    position: absolute;
    z-index: 10;
}

.logo {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    align-items: center;
}

.nav-links > a, .nav-links .dropdown > a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    cursor: pointer;
}
.nav-links a:hover { color: #5b8def; }

.dropdown { position: relative; }

.dropdown-menu {
    display: none;
    position: absolute;
    top: 28px;
    left: -10px;
    background: #fff;
    min-width: 240px;
    padding: 12px 0;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    z-index: 100;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu { display: block; }

.dropdown-menu a {
    display: block;
    color: #333;
    padding: 10px 20px;
    font-size: 14px;
    text-decoration: none;
}
.dropdown-menu a:hover { background: #e8f0fb; color: #5b8def; }

.cta-btn {
    background: #5b8def;
    padding: 10px 20px;
    border-radius: 25px;
    color: #fff !important;
    text-decoration: none;
}
.cta-btn:hover { background: #3f6fc9; }

/* PAGE HEADER */
.page-header {
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-top: -88px;
    padding-top: 88px;
}
.page-header::before {
    content: "";
    position: absolute;
    inset: -40px;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(22px) brightness(0.7) saturate(1.2);
    z-index: 0;
    transform: scale(1.08);
}
.page-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(10,10,10,0.42), rgba(10,10,10,0.55));
    z-index: 1;
}
.page-header-inner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}
.page-header h1 {
    font-size: 42px;
    margin-bottom: 12px;
    font-weight: 600;
}
.page-header p {
    font-size: 17px;
    color: #cfe0f5;
}
.breadcrumb {
    margin-top: 16px;
    font-size: 13px;
    color: #5b8def;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.breadcrumb a { color: #5b8def; text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

/* CONTENT */
.content-wrap {
    position: relative;
    overflow: hidden;
}
.content-wrap::before {
    content: "";
    position: absolute;
    inset: -40px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(28px) saturate(1.3) brightness(0.95);
    opacity: 0.28;
    z-index: 0;
    transform: scale(1.05);
}
.content-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255,255,255,0.88), rgba(255,255,255,0.93));
    z-index: 1;
}
.content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 70px 30px;
    position: relative;
    z-index: 2;
}

.content h2 {
    font-size: 30px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.content h3 {
    font-size: 22px;
    margin: 25px 0 12px;
    color: #5b8def;
}

.content p {
    font-size: 16px;
    margin-bottom: 16px;
    color: #444;
}

.content ul {
    margin: 15px 0 20px 25px;
}
.content ul li {
    margin-bottom: 8px;
    color: #444;
}

.section-divider {
    height: 3px;
    width: 60px;
    background: #5b8def;
    margin-bottom: 30px;
}

/* TWO COLUMN */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
@media (max-width: 768px) {
    .two-col { grid-template-columns: 1fr; }
}

/* CARDS */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.card {
    padding: 25px;
    border: 1px solid #eee;
    border-radius: 10px;
    transition: 0.3s;
    background: #fff;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.card h3 {
    color: #1a1a1a;
    margin-bottom: 10px;
}
.card a {
    color: #5b8def;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    margin-top: 12px;
}

/* ATTORNEY CARDS */
.attorney-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.attorney-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    transition: 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}
.attorney-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
.attorney-card-img {
    width: 100%;
    height: 320px;
    background-size: cover;
    background-position: center top;
}
.attorney-card-body {
    padding: 22px;
    text-align: center;
}
.attorney-card-body h3 {
    margin-bottom: 6px;
    color: #1a1a1a;
}
.attorney-card-body p {
    color: #5b8def;
    font-size: 14px;
    margin: 0;
}

/* ATTORNEY DETAIL */
.attorney-detail {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 50px;
    align-items: start;
}
@media (max-width: 768px) {
    .attorney-detail { grid-template-columns: 1fr; }
}
.attorney-detail img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.attorney-meta {
    margin-top: 8px;
}
.attorney-meta .role {
    color: #5b8def;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 13px;
    margin-bottom: 8px;
}
.attorney-meta h2 {
    font-size: 36px;
    margin-bottom: 18px;
}
.contact-line {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
}
.contact-line a { color: #5b8def; text-decoration: none; }

/* CONTACT PAGE */
.office-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.office-card {
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fafafa;
}
.office-card h3 {
    color: #5b8def;
    margin-bottom: 14px;
    font-size: 20px;
}
.office-card p {
    margin-bottom: 8px;
    font-size: 15px;
    color: #444;
}
.office-card a {
    color: #1a1a1a;
    text-decoration: none;
}
.office-card a:hover { color: #5b8def; }

/* FAQ */
.faq-item {
    border-bottom: 1px solid #eee;
    padding: 22px 0;
}
.faq-item h3 {
    color: #1a1a1a;
    margin-bottom: 8px;
    font-size: 18px;
}
.faq-item p {
    color: #555;
}

/* CTA STRIP */
.cta-strip {
    background: #5b8def;
    color: #fff;
    text-align: center;
    padding: 50px 30px;
}
.cta-strip h2 {
    color: #fff;
    margin-bottom: 14px;
}
.cta-strip p {
    color: #fff;
    margin-bottom: 22px;
    font-size: 16px;
}
.cta-strip .btn {
    background: #1a1a1a;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
}
.cta-strip .btn:hover { background: #000; }

/* FOOTER */
footer {
    background: #0a1f44;
    color: #c8d4e8;
    padding: 50px 50px 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}
.footer-grid h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 16px;
    letter-spacing: 0.5px;
}
.footer-grid a {
    display: block;
    color: #c8d4e8;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 14px;
}
.footer-grid a:hover { color: #5b8def; }
.footer-grid p {
    font-size: 14px;
    margin-bottom: 6px;
}
.footer-grid svg.footer-icon {
    width: 14px;
    height: 14px;
    vertical-align: middle;
    margin-right: 8px;
    fill: #5b8def;
}
.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #1d3a6e;
    font-size: 13px;
}

/* HAMBURGER BUTTON */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 200;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
}
/* Animate to X when open */
.hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Hide mobile CTA by default (shown inside mobile menu only) */
.mobile-cta { display: none; }

@media (max-width: 768px) {
    .navbar { padding: 15px 20px; flex-wrap: nowrap; }
    .top-bar { padding: 10px 20px; font-size: 12px; }
    .content { padding: 50px 20px; }
    .page-header h1 { font-size: 30px; }
    .hero h1 { font-size: 34px !important; }
    footer { padding: 40px 20px 20px; }

    /* Show hamburger, hide desktop CTA */
    .hamburger { display: flex; }
    .desktop-cta { display: none; }

    /* Mobile nav panel — hidden by default */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a1a1a;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 10px 0 20px;
        z-index: 150;
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    }
    .nav-links.open { display: flex; }

    /* Top-level nav items */
    .nav-links > a,
    .nav-links .dropdown {
        width: 100%;
        border-bottom: 1px solid #2a2a2a;
    }
    .nav-links > a {
        padding: 14px 24px;
        font-size: 15px;
        color: #fff;
    }

    /* Dropdown trigger row */
    .dropdown-trigger {
        display: block;
        width: 100%;
        padding: 14px 24px;
        font-size: 15px;
        color: #fff !important;
        cursor: pointer;
    }

    /* Sub-menu: stack below trigger instead of absolute */
    .dropdown-menu {
        position: static;
        display: none;
        background: #111;
        min-width: 100%;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .dropdown.open .dropdown-menu { display: block; }
    .dropdown-menu a {
        padding: 12px 36px;
        color: #ccc;
        font-size: 14px;
        border-bottom: 1px solid #1e1e1e;
    }
    .dropdown-menu a:hover { background: #1e2a3a; color: #5b8def; }

    /* Mobile CTA inside menu */
    .mobile-cta {
        display: inline-block;
        margin: 16px 24px 0;
        align-self: flex-start;
    }
}
