/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Source+Sans+Pro:wght@300;400;600;700&display=swap');

:root {
    /* Colors extracted from dehlaw.com */
    --primary-gold: #E6AE48;
    /* Buttons, highlights */
    --secondary-black: #1A1A1A;
    /* Footer, dark backgrounds */
    --text-grey: #C4C4C4;
    /* Body text on dark */
    --text-dark: #333333;
    /* Standard body text */
    --white: #FFFFFF;

    /* Fonts */
    --font-heading: 'Lato', sans-serif;
    --font-body: 'Source Sans Pro', sans-serif;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    background-color: var(--primary-gold);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 4px;
    /* Approximated */
    border: none;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: #d49e3d;
    /* Darker gold */
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--primary-gold);
}

.bg-dark {
    background-color: var(--secondary-black);
    color: var(--white);
}

/* Header Styles */
.main-header {
    background-color: var(--secondary-black);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

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

.logo img {
    max-height: 70px;
    display: block;
    filter: brightness(1.1);
}

.main-nav ul {
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-nav a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--white);
    letter-spacing: 0.5px;
    padding: 8px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-gold);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-gold);
}

.main-nav .nav-highlight {
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav .nav-online-payment {
    background-color: var(--primary-gold);
    color: var(--white) !important;
    padding: 8px 15px;
    border-radius: 4px;
}

.main-nav .nav-online-payment:hover {
    background-color: #d49e3d;
}

.main-nav .nav-online-payment::after {
    display: none;
}

/* Hero Section Styles */
.hero-section {
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 600px;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.4);
    /* Dark overlay to improve text readability */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero-sub {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-btn {
    padding: 15px 35px;
    font-size: 1.1rem;
    margin: 5px;
    text-transform: uppercase;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-gold);
}

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

/* Section Utilities */
.section-padding {
    padding: 80px 0;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-50 {
    margin-bottom: 50px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.text-gold {
    color: var(--primary-gold);
}

.bg-light {
    background-color: #f9f9f9;
}

.bg-dark {
    background-color: var(--secondary-black);
    color: var(--white);
}

/* Let's assume bg-secondary is a slightly lighter dark or different tone, 
   but for parity with 'secondary-black' variable, we'll map it there or add new one. */
.bg-secondary {
    background-color: #222;
    color: #ccc;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--secondary-black);
    font-weight: 400;
    /* Live site often uses lighter weights for headings */
}

/* Welcome Section */
.welcome-section {
    background-color: var(--white);
}

.welcome-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #444;
}

/* Info Columns (Laws / Ch7 / FAQs) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.info-col h2 {
    font-size: 1.8rem;
    color: var(--secondary-black);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-gold);
    display: inline-block;
    padding-bottom: 5px;
}

.info-col p {
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary-gold);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-block;
    border-bottom: 1px solid transparent;
}

.read-more:hover {
    border-bottom-color: var(--primary-gold);
}

/* Case Results */
.case-results {
    background-color: var(--white);
}

.results-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.results-list li {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.results-list li strong {
    display: block;
    font-size: 1.1rem;
    color: var(--secondary-black);
    margin-bottom: 5px;
}

.results-list li span {
    color: #666;
    font-style: italic;
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.news-item {
    background: var(--white);
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-top: 3px solid var(--primary-gold);
}

.news-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Attorney Profile Teaser */
.attorney-teaser {
    background-color: var(--white);
}

.attorney-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.attorney-text {
    flex: 2;
}

.attorney-image {
    flex: 1;
}

.img-placeholder {
    width: 100%;
    height: 300px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-weight: 700;
    border: 1px solid #ddd;
}

/* Testimonials */
.testimonials-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/hero-bg.jpg');
    /* Reuse hero bg darkened */
    background-size: cover;
    background-attachment: fixed;
}

.testimonial-item {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.6;
}

.testimonial-author {
    margin-top: 15px;
    font-weight: 700;
    color: var(--primary-gold);
}

/* Footer */
.main-footer {
    padding: 60px 0 20px;
    font-size: 0.95rem;
    color: #bbb;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--primary-gold);
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.footer-col ul li:last-child {
    border-bottom: none;
}

.footer-col ul li a:hover {
    color: var(--primary-gold);
    padding-left: 5px;
}

.social-links a {
    color: var(--white);
    margin: 0 10px;
    font-weight: 700;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    font-size: 0.8rem;
}

.footer-bottom a {
    color: #888;
}

.footer-bottom a:hover {
    color: var(--primary-gold);
}

/* Statistics Section */
.statistics-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-gold);
    font-family: var(--font-heading);
}

.stat-label {
    display: block;
    font-size: 1rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

/* Page Title Section */
.page-title {
    padding: 60px 0;
}

.page-title h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-title p {
    font-size: 1.2rem;
    color: #666;
}

/* Badges Section */
.badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.badge-item {
    display: inline-block;
}

.badge-item img {
    max-height: 60px;
    width: auto;
}

/* Hero Badges */
.hero-badges {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero-badges img {
    max-height: 80px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Social Media Icons */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-gold);
    color: var(--white);
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-icons a:hover {
    background-color: #d49e3d;
    transform: translateY(-3px);
}

/* Footer Logo */
.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    max-height: 60px;
    width: auto;
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
}

.header-icons a {
    color: var(--white);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.header-icons a:hover {
    color: var(--primary-gold);
}

.flag-icon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.flag-icon::before {
    content: "🇲🇽";
    font-size: 1.2rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

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

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

/* Review Buttons */
.review-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.review-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.review-btn.google {
    background-color: #4285f4;
    color: white;
}

.review-btn.yahoo {
    background-color: #6001d2;
    color: white;
}

.review-btn.yellowpages {
    background-color: #ffd800;
    color: #333;
}

.review-btn.superpages {
    background-color: #ff6600;
    color: white;
}

.review-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* FAQ Styles */
.faq-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    color: var(--primary-gold);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.faq-item p {
    color: #555;
    line-height: 1.8;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card-image {
    height: 200px;
    background-color: #f0f0f0;
    background-size: cover;
    background-position: center;
}

.blog-card-content {
    padding: 25px;
}

.blog-card-date {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
}

.blog-card-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-card-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Payment Section */
.payment-section {
    text-align: center;
    padding: 60px 0;
}

.payment-section h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.paypal-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: #0070ba;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 25px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.paypal-button:hover {
    background-color: #005ea6;
    transform: scale(1.05);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    /* Header Mobile */
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--secondary-black);
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav li {
        border-bottom: 1px solid #333;
    }

    .main-nav a {
        display: block;
        padding: 15px 0;
        color: var(--white);
    }

    .header-icons {
        display: none;
    }

    /* Hero Mobile */
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-btn {
        width: 100%;
        max-width: 280px;
    }

    /* Attorney Section */
    .attorney-content {
        flex-direction: column;
        text-align: center;
    }

    .attorney-image {
        width: 100%;
        margin-bottom: 30px;
    }

    /* Blog Mobile */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    /* Stats Mobile */
    .stat-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    /* Review Buttons Mobile */
    .review-buttons {
        grid-template-columns: 1fr;
    }

    /* Contact Grid Mobile */
    .contact-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .container {
        padding: 0 15px;
    }

    .section-padding {
        padding: 50px 0;
    }
}

/* Mobile Menu Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.menu-overlay.active {
    display: block;
}

/* Text utilities */
.text-left {
    text-align: left;
}