/* ===============================================
   BUTLER LEGAL & CO - PREMIUM LEGAL WEBSITE CSS
   =============================================== */

/* CSS Variables */
:root {
    --color-dark-charcoal: #1a1a1a;
    --color-teal-primary: #0088CC;
    --color-teal-dark: #2B6A8A;
    --color-white: #ffffff;
    --color-text: #666666;
    --color-light-gray: #f5f5f5;
    --color-light-border: #e0e0e0;
    
    --font-serif: 'Georgia', 'Times New Roman', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--color-dark-charcoal);
    font-weight: 500;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-teal-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-teal-dark);
    text-decoration: underline;
}

/* ===============================================
   NAVIGATION
   =============================================== */

.navbar {
    background-color: var(--color-dark-charcoal);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-light);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex: 1;
    margin-left: 3rem;
}

.nav-menu.active {
    display: flex !important;
}

.nav-link {
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    border: none;
    background: none;
    cursor: pointer;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--color-teal-primary);
    text-decoration: none;
}

.nav-dropdown {
    position: relative;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-btn .arrow {
    font-size: 0.75rem;
    transition: var(--transition);
}

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--color-dark-charcoal);
    min-width: 200px;
    box-shadow: var(--shadow-medium);
    padding: 0.5rem 0;
    z-index: 1000;
    border-top: 3px solid var(--color-teal-primary);
    top: 100%;
    left: 0;
    right: auto;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.dropdown-content a {
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    display: block;
    transition: var(--transition);
    pointer-events: auto;
}

.dropdown-content a:hover {
    background-color: rgba(0, 136, 204, 0.25);
    color: var(--color-teal-primary);
    text-decoration: none;
    padding-left: 2rem;
}

/* Mobile dropdown using active class */
@media (max-width: 768px) {
    .dropdown-content {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: none;
    }
    
    .dropdown-content.active {
        display: block;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .nav-dropdown:hover .dropdown-content {
        display: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
    margin: 5px 0;
    transition: var(--transition);
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===============================================
   HERO SECTION
   =============================================== */

.hero {
    position: relative;
    height: 80vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-white);
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    color: var(--color-white);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--color-teal-primary);
    color: var(--color-white);
    padding: 1rem 2.5rem;
    border: 2px solid var(--color-teal-primary);
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--color-teal-dark);
    border-color: var(--color-teal-dark);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* ===============================================
   NEWS SECTION
   =============================================== */

.news-section {
    padding: 6rem 2rem;
    background-color: var(--color-white);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    display: inline-block;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--color-teal-primary);
}

.news-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.news-card {
    display: flex;
    background-color: var(--color-white);
    border: 1px solid var(--color-light-border);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.news-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-4px);
}

.news-left {
    flex: 0 0 120px;
    position: relative;
    overflow: hidden;
}

.news-parallelogram {
    position: relative;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 100% 10%, 100% 100%, 0 90%);
    background: linear-gradient(135deg, var(--color-teal-primary), var(--color-teal-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.news-parallelogram img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: var(--transition);
}

.news-card:hover .news-parallelogram img {
    opacity: 0.9;
}

.news-badge {
    position: absolute;
    bottom: 1rem;
    left: 0.5rem;
    right: 0.5rem;
    background-color: var(--color-teal-primary);
    color: var(--color-white);
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    border-radius: 2px;
}

.news-right {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    background-color: var(--color-white);
}

.news-right h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.news-right p {
    flex: 1;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.read-more {
    color: var(--color-teal-primary);
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
}

.read-more:hover {
    gap: 0.5rem;
    text-decoration: none;
}

/* ===============================================
   AWARDS SECTION
   =============================================== */

.awards-section {
    padding: 6rem 2rem;
    background-color: var(--color-light-gray);
}

.awards-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.award-item {
    text-align: center;
    padding: 2rem;
    background-color: var(--color-white);
    border-radius: 4px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.award-item:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-4px);
}

.award-item img {
    max-width: 100%;
    height: auto;
}

/* ===============================================
   ABOUT PREVIEW SECTION
   =============================================== */

.about-preview {
    padding: 6rem 2rem;
    background-color: var(--color-white);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.about-content h2 {
    margin-bottom: 2rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.cta-link {
    display: inline-block;
    color: var(--color-teal-primary);
    font-weight: 600;
    margin-top: 1rem;
    transition: var(--transition);
}

.cta-link:hover {
    margin-right: -0.5rem;
    text-decoration: none;
}

.about-image {
    overflow: hidden;
    border-radius: 4px;
    box-shadow: var(--shadow-medium);
}

.about-image img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.about-preview:hover .about-image img {
    transform: scale(1.02);
}

/* ===============================================
   CALL TO ACTION SECTION
   =============================================== */

.cta-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--color-dark-charcoal), #0a0a0a);
    color: var(--color-white);
    text-align: center;
}

.cta-section h2 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* ===============================================
   FOOTER
   =============================================== */

.footer {
    background-color: var(--color-teal-dark);
    color: var(--color-white);
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--color-white);
    text-decoration: underline;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background-color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* ===============================================
   ATTORNEY GRID (attorneys.html)
   =============================================== */

.attorneys-section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.attorneys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.attorney-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-light-border);
    overflow: hidden;
    border-radius: 4px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
}

.attorney-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-8px);
}

.attorney-photo {
    position: relative;
    overflow: hidden;
    height: 350px;
}

.attorney-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: var(--transition);
}

.attorney-card:hover .attorney-photo img {
    opacity: 0.8;
    transform: scale(1.05);
}

.attorney-expertise {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: var(--color-white);
    padding: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.attorney-bar {
    background-color: var(--color-teal-primary);
    color: var(--color-white);
    padding: 1rem;
    text-align: center;
}

.attorney-name {
    font-size: 1.3rem;
    font-family: var(--font-serif);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.attorney-call {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ===============================================
   ATTORNEY DETAIL PAGE
   =============================================== */

.attorney-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.attorney-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.attorney-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 3rem;
    align-items: center;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.attorney-hero-photo {
    width: 420px;
    height: auto;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    flex-shrink: 0;
    background: var(--color-dark-charcoal);
}

.attorney-hero-photo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    opacity: 0.95;
}

.attorney-hero-info {
    color: var(--color-white);
}

.attorney-hero-info h1 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.attorney-call-year {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.attorney-title {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.attorney-contact {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.attorney-contact a {
    display: inline-block;
    color: var(--color-teal-primary);
    padding: 0.5rem 1rem;
    border: 2px solid var(--color-teal-primary);
    border-radius: 4px;
    transition: var(--transition);
    font-weight: 600;
}

.attorney-contact a:hover {
    background-color: var(--color-teal-primary);
    color: var(--color-white);
    text-decoration: none;
}

.attorney-details {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.attorney-about h2 {
    margin-bottom: 1.5rem;
}

.attorney-about p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.attorney-expertise-list {
    margin: 3rem 0;
}

.attorney-expertise-list h3 {
    margin-bottom: 1rem;
}

.attorney-expertise-list ul {
    list-style: none;
    columns: 2;
    gap: 2rem;
}

.attorney-expertise-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.attorney-expertise-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-teal-primary);
    font-weight: bold;
}

.testimonials {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid var(--color-light-border);
}

.testimonials h3 {
    margin-bottom: 2rem;
}

.testimonials-carousel {
    position: relative;
}

.testimonial {
    background-color: var(--color-light-gray);
    padding: 2rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.testimonial-quote {
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-dark-charcoal);
    margin-bottom: 0.3rem;
}

.testimonial-company {
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.testimonial-rating {
    color: var(--color-teal-primary);
    font-size: 0.95rem;
}

/* ===============================================
   CONTACT PAGE
   =============================================== */

.contact-section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-form {
    margin-top: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-dark-charcoal);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-light-border);
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-teal-primary);
    box-shadow: 0 0 0 3px rgba(0, 136, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    background-color: var(--color-teal-primary);
    color: var(--color-white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background-color: var(--color-teal-dark);
    transform: translateY(-2px);
}

.map-container {
    margin-top: 3rem;
    border-radius: 4px;
    overflow: hidden;
    height: 400px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

@media (max-width: 1024px) {
    .nav-menu {
        gap: 1rem;
        margin-left: 2rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .about-preview {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .attorney-hero-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background-color: var(--color-dark-charcoal);
        padding: 2rem;
        margin-left: 0;
        display: none !important;
        z-index: 999;
        box-shadow: var(--shadow-medium);
    }

    .nav-menu.active {
        display: flex !important;
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static !important;
        display: none;
        background: rgba(0, 136, 204, 0.1);
        box-shadow: none;
        border: none;
        margin-top: 0;
    }

    .dropdown-content.active {
        display: block;
    }

    .nav-link {
        display: block;
        padding: 0.75rem 0;
        width: 100%;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card {
        flex-direction: column;
    }

    .news-left {
        flex: 0 0 200px;
        min-height: 200px;
    }

    .hero {
        height: 50vh;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .awards-grid {
        grid-template-columns: 1fr 1fr;
    }

    .attorneys-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .attorney-card:hover {
        transform: translateY(-4px);
    }

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

    .attorney-expertise-list ul {
        columns: 1;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .nav-container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .hero {
        height: 40vh;
    }

    .nav-menu {
        top: 60px;
        padding: 1.5rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .awards-grid {
        grid-template-columns: 1fr;
    }

    .attorneys-grid {
        grid-template-columns: 1fr;
    }

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

    .section-header h2::after {
        width: 60px;
    }

    .attorney-details {
        padding: 2rem 1rem;
    }

   .attorney-hero-photo {
        width: 92%;
        max-width: 420px;
        height: auto;
    }

    .attorney-hero-photo img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .about-preview {
        padding: 3rem 1rem;
    }

    .contact-section {
        padding: 2rem 1rem;
    }

    .filter-buttons {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }
}

/* ===============================================
   UTILITY CLASSES
   =============================================== */

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

.hidden {
    display: none;
}

.visible {
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* =========================================================
   FINAL MOBILE NAVIGATION OVERRIDES
   Keeps the existing design/colors; fixes portrait touch layout.
   ========================================================= */
@media (max-width: 768px) {
    .attorney-hero {
        height: auto;
        min-height: 0;
        padding: 2rem 0;
    }

    .navbar {
        position: sticky;
        top: 0;
        z-index: 10000;
        width: 100%;
    }

    .nav-container {
        width: 100%;
        min-width: 0;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .logo {
        flex: 0 1 auto;
        min-width: 0;
    }

    .logo-img {
        display: block;
        height: 50px;
        width: 50px;
        max-width: 50px;
        object-fit: contain;
    }

    .hamburger {
        display: flex !important;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        position: relative;
        z-index: 10002;
        padding: 8px;
        margin-left: auto;
        border: 0;
        background: transparent;
        cursor: pointer;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        flex: 0 0 3px;
        margin: 3px 0;
    }

    .nav-menu {
        position: fixed !important;
        top: 82px;
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100dvh - 82px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: none !important;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0 !important;
        padding: 1rem;
        background-color: var(--color-dark-charcoal);
        z-index: 10001;
        box-shadow: var(--shadow-medium);
    }

    .nav-menu.active {
        display: flex !important;
    }

    .nav-menu > .nav-link,
    .nav-menu > .nav-dropdown {
        width: 100%;
        flex: 0 0 auto;
    }

    .nav-menu .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0.75rem 0;
        text-align: left;
    }

    .nav-menu .nav-dropdown .dropdown-content {
        position: static !important;
        width: 100%;
        min-width: 0;
        margin: 0;
        display: none !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        background: rgba(0, 136, 204, 0.1);
        box-shadow: none;
        border: 0;
        border-left: 3px solid var(--color-teal-primary);
    }

    .nav-menu .nav-dropdown.active .dropdown-content,
    .nav-menu .nav-dropdown .dropdown-content.active {
        display: block !important;
    }

    /* Prevent desktop hover behavior from fighting mobile taps. */
    .nav-menu .nav-dropdown:hover .dropdown-content {
        display: none !important;
    }

    .nav-menu .nav-dropdown.active:hover .dropdown-content,
    .nav-menu .nav-dropdown .dropdown-content.active {
        display: block !important;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .nav-menu {
        top: 82px;
        max-height: calc(100dvh - 82px);
        padding: 0.75rem 1rem;
    }
}

/* Profile contact button refinement */
.attorney-profile-contact {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-light-border);
}

.attorney-profile-contact .cta-button {
    display: inline-block;
}

.profile-meta {
    margin-bottom: 2rem;
}

.profile-meta strong {
    color: var(--color-dark-charcoal);
}

.testimonial-card {
    background: var(--color-light-gray);
    border-left: 4px solid var(--color-teal-primary);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0 4px 4px 0;
}


/* FINAL MOBILE SAFETY FIX — Android/iPhone portrait and touch */
@media (max-width: 768px) {
    .navbar, .nav-container, .hamburger {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    .hamburger {
        display: flex !important;
        position: relative;
        z-index: 10002 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
        user-select: none;
        -webkit-user-select: none;
    }
    .hamburger span { pointer-events: none; }
    .nav-menu { z-index: 10001 !important; }
    .nav-menu.active { display: flex !important; }
}

/* Attorney profile: use one photo only; keep the existing visual treatment. */
.attorney-hero {
    background: var(--color-dark-charcoal);
}


/* =========================================================
   FULL NEWS ARTICLES — FINAL FIX
   Keeps the existing colours/layout, but prevents the
   article pages from inheriting the compact homepage card
   treatment or being hidden/cropped on mobile.
   ========================================================= */
.news-article-full {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 2.5rem;
    cursor: default;
    opacity: 1 !important;
    transform: none !important;
    display: flex;
    align-items: stretch;
}

.news-article-full .news-left {
    flex: 0 0 320px;
    min-height: 360px;
}

.news-article-full .news-parallelogram {
    min-height: 360px;
    height: 100%;
}

.news-article-full .news-parallelogram img {
    opacity: 1;
    object-fit: cover;
}

.news-article-full .news-right {
    min-width: 0;
}

.news-article-full .news-right h2 {
    margin-top: 0;
    line-height: 1.25;
}

.news-article-full .news-right p,
.news-article-full .news-right li {
    line-height: 1.75;
}

.news-article-full .news-right ul {
    margin: 0 0 1rem 1.25rem;
    padding-left: 1rem;
}

@media (max-width: 768px) {
    .news-article-full {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-bottom: 2rem;
        opacity: 1 !important;
        transform: none !important;
    }

    .news-article-full .news-left {
        flex: 0 0 auto;
        width: 100%;
        min-height: 240px;
    }

    .news-article-full .news-parallelogram {
        width: 100%;
        height: 260px;
        min-height: 260px;
        clip-path: none;
    }

    .news-article-full .news-parallelogram img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .news-article-full .news-right {
        width: 100%;
        padding: 1.25rem;
        box-sizing: border-box;
    }

    .news-article-full .news-right h2 {
        font-size: 1.45rem;
    }
}

@media (max-width: 480px) {
    .news-article-full .news-left {
        min-height: 210px;
    }

    .news-article-full .news-parallelogram {
        height: 220px;
        min-height: 220px;
    }

    .news-article-full .news-right {
        padding: 1rem;
    }
}

/* Niamh's profile image: reliable web-safe filename and full-photo display */
.attorney-hero-photo img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    display: block;
}
