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

:root {
  --primary-blue: #09124b;
  --secondary-blue: #1e5a8e;
  --primary-orange: #e69b00;
  --text-color: #333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f9f9f9;
    line-height: 1.6;
}

/* Header Styles */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 15px;
    gap: 10px;
}

.logo-link {
    flex-shrink: 0;
    order: 1;
}

.nav {
    order: 2;
}

.phone {
    order: 3;
}

.logo img {
    height: 45px;
    width: auto;
    display: block;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--primary-orange);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 15px;
    z-index: 999;
}

.dropdown-menu {
    visibility: hidden;
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    background-color: #ffffff;
    list-style: none;
    padding: 10px 0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
    flex-direction: column;
    display: flex;
}

/* .nav-dropdown:hover .dropdown-menu, */
.nav-dropdown.active .dropdown-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.dropdown-menu li {
    padding: 0;
    margin: 0;
    display: block;
    text-align: center;
    min-width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 5px 20px;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background-color: var(--primary-blue);
    color: white;
}

.phone {
    text-align: center;
}

.phone a {
    text-decoration: none;
    color: var(--secondary-blue);
    font-weight: 600;
    font-size: 18px;
    transition: color 0.3s ease;
}

.phone a:hover {
    color: var(--primary-orange);
}

/* Hamburger Button - Hidden on desktop */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

.hamburger-btn span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: var(--primary-blue);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Phone item in nav (mobile menu only) */
.nav-phone-item {
    display: none;
}

/* Title Section */
.title {
    padding: 15px 0;
    margin-top: 40px;
}

.title h2 {
    width: 80vw;
    margin: auto;
    text-align: center;
}

/* Banner Section */
.banner {
    background-color: #f9f9f9;
    padding-top: 60px;
    text-align: center;
}

.banner-container {
    max-width: 800px;
    margin: 0 auto;
}

.banner-heading {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 40px;
    line-height: 1.3;
}

.banner-image-wrapper {
    width: 100%;
    padding-bottom: 100%;
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.banner-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.banner-subheading {
    font-size: 36px;
    font-weight: 600;
    margin: 0;
}

.banner-subheading a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: color 0.3s ease;
}

.banner-subheading a:hover {
    color: var(--primary-orange);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Attorney Section */
.attorney-section {
    padding: 60px 30px;
    background-color: #ffffff;
}

.attorney-section .container {
    display: block;
    text-align: left;
}

.attorney-image {
    text-align: center;
    margin-bottom: 30px;
}

.attorney-image img {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.attorney-bio {
    width: 100%;
}

.attorney-bio h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 30px;
    text-align: center;
}

.attorney-bio p {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    text-indent: 30px;
    text-align: justify;
    padding-top: 15px;
}

/* Intro Section */
.intro {
    padding: 40px;
}

.intro .container {
    display: block;
}

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

.intro .container p {
    padding-top: 20px;
    font-size: 18px;
    text-indent: 30px;
    line-height: 1.8;
    color: #555;
}

a.phone-link {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a.phone-link:hover {
    color: var(--primary-orange);
}

/* Practice Areas Section */
.practice-areas-section {
    padding: 40px 30px;
}

.practice-areas-section h3 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 40px;
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.practice-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background-color: var(--secondary-blue);
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    min-height: 100px;
}

.practice-button:hover {
    background-color: var(--primary-orange);
    transform: translateY(-3px);
}

/* Centered Paragraph Section */
.centered-paragraph-section {
    padding: 40px;
}

.centered-paragraph-section h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 30px;
    text-align: center;
}

.large-paragraph p {
    text-indent: 30px;
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    text-align: left;
    min-height: 100px;
    margin-bottom: 30px;
}

/* Footer */
.footer {
    background-color: var(--primary-blue);
    color: #ffffff;
    padding: 40px 30px;
    /* margin-top: 80px; */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
    justify-content: space-between;
}

.footer-column {
    flex: 1;
}

.footer-left img {
    height: 50px;
    width: auto;
    display: block;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-column h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-left h4 {
    margin-bottom: 10px;
    margin-top: 10px;
}

.disclaimer {
    font-size: 13px;
    line-height: 1.6;
    color: #e0e0e0;
    margin: 0;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 5px;
}

.footer-links a {
    text-decoration: none;
    color: #ffffff;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-orange);
}

.footer-right address {
    font-style: normal;
}

.footer-right address p {
    font-size: 15px;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-right address a {
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s ease;
}

.footer-right address a:hover {
    color: var(--primary-orange);
}

/* Practice Area Pages */
.practice-banner {
    background-image: url('../images/legalbanner.webp');
    background-size: cover;
    background-position: top;
    background-attachment: fixed;
    height: 400px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.practice-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.practice-banner-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.practice-banner h1 {
    font-size: 48px;
    font-weight: 700;
    color: white;
    margin-bottom: 0;
    line-height: 1.3;
    padding: 10px 20px;
    border-radius: 10px;
}

.practice-content {
    padding: 60px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.practice-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-top: 40px;
    margin-bottom: 20px;
}

.practice-content p, .practice-content ul {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
    text-align: left;
}

.practice-content ul, li {
    padding-left: 2vw;
}

.back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--primary-orange);
}

/* Mobile breakpoint - tablets and phones */
@media (max-width: 768px) {
    .header-container {
        padding: 8px 12px;
        gap: 8px;
    }

    .logo {
        order: 1;
    }

    .logo img {
        height: 38px;
    }

    .phone {
        order: 2;
        flex: 1;
        text-align: center;
    }

    .phone-text {
        display: none;
    }

    .phone a {
        font-size: 17px;
    }

    .hamburger-btn {
        display: flex;
        order: 3;
    }

    .nav {
        order: 4;
        flex-basis: 100%;
        max-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        transition: max-height 0.3s ease-out;
        scrollbar-width: none;
    }

    .nav::-webkit-scrollbar {
        display: none;
    }

    .nav.active {
        max-height: 80vh;
    }

    .nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        /* padding: 8px 0; */
    }

    .nav > ul > li {
        padding: 10px 0;
        border-top: 1px solid #eee;
        text-align: center;
    }

    .nav > ul > li:first-child {
        border-top: none;
    }

    .nav-phone-item {
        display: block;
    }

    .nav-phone-item a {
        color: var(--secondary-blue);
        font-weight: 600;
        font-size: 17px;
    }

    /* Mobile dropdown - inline accordion style */
    .nav-dropdown::after {
        display: none;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: hidden;
        max-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 0;
        margin-top: 0;
        background-color: transparent;
        border-radius: 0;
        min-width: auto;
        width: 100%;
        transition: max-height 0.3s ease, padding 0.3s ease, visibility 0.3s ease;
        pointer-events: none;
        transform: none;
        left: auto;
        top: auto;
    }

    .nav-dropdown.active .dropdown-menu {
        visibility: visible;
        max-height: 400px;
        padding: 8px 0;
        pointer-events: auto;
        background-color: #f5f5f5;
        border-radius: 4px;
        margin-top: 8px;
    }

    .dropdown-menu li a {
        padding: 8px 20px;
    }

    /* Title Section */
    .title h2 {
        width: 90vw;
        font-size: 24px;
    }

    .banner-heading {
        font-size: 28px;
    }

    .practice-areas-section h3 {
        font-size: 28px;
    }

    .practice-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .practice-button {
        min-height: 70px;
        padding: 15px;
        font-size: 14px;
    }

    .centered-paragraph-section h1 {
        font-size: 26px;
    }

    .intro .container p {
        font-size: 16px;
        text-indent: 0;
        padding: 0;
    }

    .large-paragraph p {
        font-size: 16px;
        text-indent: 0;
    }

    .attorney-section {
        padding: 30px 15px;
    }

    .attorney-bio h1 {
        font-size: 28px;
    }

    .attorney-bio p {
        font-size: 16px;
        text-indent: 0;
    }

    .attorney-image img {
        max-width: 180px;
    }

    .practice-banner {
        height: 250px;
        background-attachment: scroll;
    }

    .practice-banner h1 {
        font-size: 32px;
        padding: 10px 15px;
    }

    .practice-content {
        padding: 30px 15px;
    }

    .practice-content h2 {
        font-size: 22px;
        margin-top: 25px;
    }

    .practice-content p, .practice-content ul {
        font-size: 15px;
    }

    .practice-content ul, li {
        padding-left: 15px;
    }

    .footer {
        padding: 30px 15px;
    }

    .footer-container {
        flex-direction: column;
        gap: 25px;
    }

    .footer-column h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .footer-right address p {
        font-size: 14px;
    }

    .container {
        padding: 0 15px;
    }
}

/* Small phone breakpoint */
@media (max-width: 480px) {
    .header-container {
        padding: 6px 10px;
        gap: 6px;
    }

    .logo img {
        height: 32px;
    }

    .phone a {
        font-size: 15px;
    }

    .hamburger-btn {
        width: 40px;
        height: 40px;
        padding: 6px;
    }

    .hamburger-btn span {
        width: 24px;
        height: 2.5px;
    }

    .title h2 {
        font-size: 20px;
        width: 95vw;
    }

    .banner-heading {
        font-size: 22px;
    }

    .practice-areas-section {
        padding: 25px 10px;
    }

    .practice-areas-section h3 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .practice-grid {
        gap: 10px;
    }

    .practice-button {
        min-height: 60px;
        padding: 12px;
        font-size: 13px;
    }

    .centered-paragraph-section {
        padding: 25px 10px;
    }

    .centered-paragraph-section h1 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .intro {
        padding: 25px 10px;
    }

    .intro .container p {
        font-size: 14px;
        padding-top: 10px;
    }

    .large-paragraph p {
        font-size: 14px;
        min-height: auto;
        margin-bottom: 15px;
    }

    .attorney-section {
        padding: 20px 10px;
    }

    .attorney-image img {
        max-width: 160px;
    }

    .attorney-bio h1 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .attorney-bio p {
        font-size: 14px;
    }

    .practice-banner {
        height: 200px;
    }

    .practice-banner h1 {
        font-size: 26px;
        padding: 8px 12px;
    }

    .practice-content {
        padding: 20px 10px;
    }

    .practice-content h2 {
        font-size: 18px;
        margin-top: 20px;
    }

    .practice-content p, .practice-content ul {
        font-size: 14px;
    }

    .back-link {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .footer {
        padding: 25px 10px;
    }

    .footer-column h4 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .footer-left img {
        height: 35px;
        margin-bottom: 10px;
    }

    .disclaimer {
        font-size: 12px;
    }

    .footer-links a {
        font-size: 13px;
    }

    .footer-right address p {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .container {
        padding: 0 10px;
    }
}
