/*
 * Av. Sinan Kaya Resmî Web Sitesi - Premium WordPress Style Theme
 * Colors: Navy Slate (#1d242e), Gold/Bronze (#c5a059), Light Gray (#f9fbfd), Accent Bronze (#b8944d)
 * Fonts loaded via header.php link tags for better performance (no @import)
 */

:root {
    --primary: #1d242e;
    /* Navy Slate matching reference site */
    --primary-light: #28323f;
    --accent: #c5a059;
    /* Champagne Gold */
    --accent-hover: #b08d4b;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --text-dark: #2d3748;
    --text-muted: #6b7280;
    --font-heading: 'Cinzel', 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 15px 35px rgba(29, 36, 46, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Prevent images from overflowing containers */
img {
    max-width: 100%;
    height: auto;
}

/* Accessibility helper class for screen readers */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

/* --- FLOATING FLOATING WIDGETS --- */
.floating-widget {
    position: fixed;
    bottom: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    animation: pulseWidget 2s infinite;
}

.floating-whatsapp {
    right: 25px;
    background-color: #25D366;
}

.floating-phone {
    left: 25px;
    background-color: #22c55e;
}

.floating-widget:hover {
    transform: scale(1.1);
    color: #ffffff;
}

@keyframes pulseWidget {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 15px rgba(34, 197, 94, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* --- UPPER INFO BAR --- */
.upper-bar {
    background-color: #171d26;
    color: #a0aec0;
    font-size: 13px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.upper-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.upper-info {
    display: flex;
    gap: 25px;
}

.upper-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content:center;
}

.upper-info a {
    color: #cbd5e0;
}

.upper-info a:hover {
    color: var(--accent);
}

.upper-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-upper {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.btn-upper:hover {
    background: var(--accent);
    color: #171d26;
}

/* --- HEADER / NAVIGATION (Dark Theme matching reference site) --- */
.main-header {
    background-color: var(--primary);
    /* Dark grey slate matching zeynep erdem */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.main-header.compact {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 20px;
    transition: var(--transition);
}

.main-header.compact .nav-container {
    padding: 12px 20px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1.5px;
}

.logo-sub {
    display: block;
    font-size: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: #e2e8f0;
    /* White/greyish navigation links */
    text-transform: capitalize;
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-menu li {
    position: relative;
}

/* Dropdown styling */
.nav-menu li.dropdown {
    padding-right: 0;
}

.nav-menu li.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.nav-menu li.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-icon {
    font-size: 10px;
    margin-left: 6px;
    transition: transform 0.25s ease;
    vertical-align: middle;
    pointer-events: auto;
    /* Allow clicking */
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 24px);
    /* Align perfectly with bottom of header in normal mode */
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background-color: #ffffff;
    min-width: 220px;
    padding: 12px 0;
    list-style: none;
    border-radius: var(--border-radius, 4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-top: 3px solid var(--accent);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1100;
}

/* Invisible bridge to prevent losing hover state when moving mouse over the gap */
.dropdown-menu::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    height: 30px;
    background: transparent;
}

/* Align with bottom of compact header when shrunk */
.main-header.compact .dropdown-menu {
    top: calc(100% + 14px);
}

.dropdown-menu li {
    width: 100%;
    text-align: left;
}

.dropdown-link {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark, #2d3748);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-body);
    transition: var(--transition);
    text-transform: capitalize;
    white-space: nowrap;
}

.dropdown-link:hover,
.dropdown-link.active {
    color: var(--accent);
    background-color: var(--bg-light, #f7fafc);
    padding-left: 24px;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 24px;
    color: #ffffff;
}

/* --- HERO AREA --- */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #1d242e 0%, #11161d 100%);
    color: #ffffff;
    padding: 100px 20px;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M10 90 Q 50 10 90 90' fill='none' stroke='rgba(197, 160, 89, 0.025)' stroke-width='2'/%3E%3C/svg%3E");
    background-size: 150px;
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 42px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
    line-height: 1.25;
}

.hero-content p {
    font-size: 17px;
    color: #a0aec0;
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.btn-primary {
    background-color: var(--accent);
    color: #1d242e;
    padding: 14px 30px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.2);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    padding: 14px 30px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.hero-image-wrapper {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(197, 160, 89, 0.25);
}

/* --- TRUST BOXES --- */
.trust-section {
    padding: 50px 20px;
    background-color: var(--bg-white);
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.trust-container {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.trust-card {
    background-color: var(--bg-white);
    padding: 30px 25px;
    border-radius: 4px;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--accent);
    transition: var(--transition);

}

.trust-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.trust-icon {
    font-size: 26px;
    color: var(--accent);
    margin-bottom: 20px;
}

.trust-card h3 {
    font-size: 16px;
    font-family: var(--font-body);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary);
}

.trust-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- SECTION HEADERS --- */
.section-padding {
    padding: 100px 20px;
}

.section-bg {
    background-color: var(--bg-light);
}

.section-title-wrapper {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.section-subtitle {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
}

.section-title {
    font-size: 32px;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    font-weight: 600;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--accent);
}

.section-desc {
    color: var(--text-muted);
    font-size: 16px;
}

/* --- PRACTICE AREAS (GRID) --- */
.practice-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.practice-card {
    background-color: var(--bg-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--accent);
    display: flex;
    flex-direction: column;
}

.practice-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.practice-card-content {
    padding: 35px 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.practice-card-icon {
    font-size: 50px;
    color: var(--accent);
    margin-bottom: 20px;
}

.practice-card h3 {
    font-size: 19px;
    margin-bottom: 15px;
    font-family: var(--font-body);
    font-weight: 700;
}

.practice-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.7;
}

.btn-card {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    justify-content:center;
}

.btn-card:hover {
    color: var(--primary);
}

/* --- ABOUT SECTION --- */
.about-home {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-home-img {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.about-home-content h2 {
    font-size: 34px;
    margin-bottom: 25px;
}

.about-home-content p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    list-style: none;
    margin: 30px 0 40px 0;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
}

.about-features li i {
    color: var(--accent);
}

/* --- LOCAL SEO SECTION --- */
.local-seo-section {
    background-color: var(--primary);
    color: #ffffff;
}

.local-seo-section h2,
.local-seo-section .section-desc {
    color: #ffffff;
}

.local-seo-section .section-title::after {
    background-color: var(--accent);
}

.local-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.local-card {
    background-color: var(--primary-light);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 22px;
    text-align: center;
    transition: var(--transition);
}

.local-card:hover {
    background-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.local-card:hover a {
    color: var(--primary);
}

.local-card a {
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    display: block;
    letter-spacing: 0.5px;
}

/* --- BLOG CARD DESIGN (Accurate WordPress/Ref representation) --- */
.blog-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.blog-card {
    background-color: var(--bg-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f4f8;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.blog-card-img {
    height: 220px;
    overflow: hidden;
    position: relative;
    background-color: #f1f5f9;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.06);
}

/* Overlapping Date Badge matching reference site */
.blog-date-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    color: #ffffff;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: var(--font-body);
    z-index: 5;
}

.blog-card-content {
    padding: 30px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta-category {
    font-size: 11px;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.blog-card h3 {
    font-size: 18px;
    font-family: var(--font-body);
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 15px;
    color: var(--primary);
}

.blog-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Premium WordPress Style "Devamını Oku" button with preceding line */
.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    text-transform: capitalize;
    margin-top: auto;
    width: fit-content;
}

.btn-read-more::before {
    content: '';
    display: inline-block;
    width: 25px;
    height: 1px;
    background-color: var(--accent);
    transition: var(--transition);
}

.btn-read-more:hover {
    color: var(--primary);
}

.btn-read-more:hover::before {
    width: 40px;
    background-color: var(--primary);
}

/* --- FAQs ACCORDION --- */
.faq-container {
    max-width: 850px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-white);
    border-radius: 4px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    border: 1px solid #edf2f7;
    overflow: hidden;
}

.faq-question {
    padding: 22px 30px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary);
    transition: var(--transition);
}

.faq-question:hover {
    background-color: rgba(197, 160, 89, 0.04);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    padding: 0 30px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

.faq-answer p {
    padding-bottom: 22px;
}

.faq-item.active .faq-question {
    background-color: rgba(197, 160, 89, 0.06);
    color: var(--accent);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    transition: max-height 0.5s cubic-bezier(1, 0, 1, 0);
}

.faq-icon {
    font-size: 11px;
    color: var(--accent);
    transition: var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer-content {
    padding-bottom: 22px;
}

.faq-answer-content p {
    margin-bottom: 10px;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

/* --- CONTACT CTA BANNER --- */
.contact-cta {
    background: linear-gradient(135deg, #1d242e 0%, #11161d 60%, #1a2332 100%);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M10 90 Q 50 10 90 90' fill='none' stroke='rgba(197, 160, 89, 0.04)' stroke-width='2'/%3E%3C/svg%3E");
    background-size: 120px;
    pointer-events: none;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact-cta h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}

.contact-cta p {
    font-size: 16px;
    color: #a0aec0;
    line-height: 1.7;
    margin-bottom: 35px;
    font-weight: 300;
}

.cta-btns {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btns .btn-primary {
    box-shadow: 0 4px 20px rgba(197, 160, 89, 0.25);
}

.cta-btns .btn-outline {
    border-color: rgba(255, 255, 255, 0.25);
}

.cta-btns .btn-outline:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.06);
}

@media (max-width: 768px) {
    .contact-cta {
        padding: 60px 20px;
    }

    .contact-cta h2 {
        font-size: 24px;
    }

    .cta-btns {
        flex-direction: column;
        gap: 12px;
    }

    .cta-btns .btn-primary,
    .cta-btns .btn-outline {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* --- FOOTER --- */
.main-footer {
    background-color: #11161d;
    color: #a0aec0;
    padding: 80px 20px 30px 20px;
    border-top: 4px solid var(--accent);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 45px;
    margin-bottom: 60px;
}

.footer-widget h3 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
    font-family: var(--font-body);
    font-weight: 700;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.footer-about p {
    font-size: 13.5px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e0;
    font-size: 15px;
}

.social-link:hover {
    background-color: var(--accent);
    color: #11161d;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #a0aec0;
    font-size: 13.5px;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 6px;
}

.footer-contact-info {
    font-size: 13.5px;
    line-height: 1.8;
}

.footer-contact-info p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact-info i {
    color: var(--accent);
    margin-top: 4px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.footer-legal-notice {
    font-style: italic;
    color: #718096;
    max-width: 600px;
    text-align: right;
    line-height: 1.6;
}

/* --- INNER PAGES --- */
.page-banner {
    background: linear-gradient(rgba(29, 36, 46, 0.9), rgba(29, 36, 46, 0.9)), url('../images/banner-bg.jpg') no-repeat center center/cover;
    color: #ffffff;
    padding: 70px 20px;
    text-align: center;
}

.banner-container h1 {
    color: #ffffff;
    font-size: 34px;
    margin-bottom: 12px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    list-style: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breadcrumb a {
    color: #a0aec0;
}

.breadcrumb span {
    color: var(--accent);
}

.inner-page-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 75px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.inner-page-content {
    line-height: 1.85;
}

.inner-page-content h2,
.inner-page-content h3 {
    margin: 35px 0 20px 0;
}

.inner-page-content p {
    margin-bottom: 25px;
    color: #2d3748;
}

.sidebar-widget {
    background-color: var(--bg-light);
    padding: 35px;
    border-radius: 4px;
    margin-bottom: 30px;
    border: 1px solid #edf2f7;
}

.sidebar-widget h3 {
    font-size: 17px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 12px;
    font-family: var(--font-body);
    font-weight: 700;
}

/* --- CONTACT PAGE --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-panel {
    background-color: var(--primary);
    color: #ffffff;
    padding: 50px 40px;
    border-radius: 4px;
}

.contact-info-panel h2 {
    color: #ffffff;
    font-size: 26px;
    margin-bottom: 30px;
}

.contact-info-item {
    display: flex;
    gap: 18px;
    margin-bottom: 30px;
}

.contact-info-item i {
    font-size: 22px;
    color: var(--accent);
    margin-top: 4px;
}

.contact-info-item h4 {
    color: #ffffff;
    font-size: 16px;
    font-family: var(--font-body);
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-info-item p,
.contact-info-item a {
    color: #cbd5e0;
    font-size: 14.5px;
}

.contact-form-panel {
    background-color: var(--bg-white);
    padding: 50px 40px;
    border-radius: 4px;
    box-shadow: var(--shadow);
    border: 1px solid #edf2f7;
}

.contact-form-panel h2 {
    font-size: 26px;
    margin-bottom: 30px;
}

/* --- CONTACT FORM ELEMENTS --- */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    font-family: var(--font-body);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-dark);
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

textarea.form-control {
    resize: vertical;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 25px;
    text-align: left;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    cursor: pointer;
    accent-color: var(--accent);
}

.form-check label {
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.5;
    font-family: var(--font-body);
}

/* --- ALERTS --- */
.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 25px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    text-align: left;
    font-family: var(--font-body);
}

.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* --- MAP SECTION --- */
.map-section {
    width: 100%;
    height: 450px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 40px;
    box-shadow: var(--shadow);
    border: 1px solid #edf2f7;
}

/* --- TABLE OF CONTENTS (TOC) --- */
.table-of-contents {
    background-color: var(--bg-light);
    border-left: 4px solid var(--accent);
    padding: 25px;
    margin-bottom: 35px;
    border-radius: 0 4px 4px 0;
    border: 1px solid #edf2f7;
    border-left-width: 4px;
}

.toc-title {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary);
}

.table-of-contents ul {
    list-style: none;
    padding-left: 0;
}

.table-of-contents li {
    margin-bottom: 10px;
    font-size: 14.5px;
}

.table-of-contents li.toc-h3 {
    padding-left: 20px;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .trust-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .practice-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Prevent body scroll when menu is active */
    body.nav-open {
        overflow: hidden !important;
    }

    /* Hide upper bar when menu is active */
    body.nav-open .upper-bar {
        display: none !important;
    }

    /* Fix header at top-0 when menu is active */
    body.nav-open .main-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        background-color: transparent !important;
        box-shadow: none !important;
        z-index: 10000 !important;
    }

    body.nav-open .nav-container {
        padding: 15px 20px !important;
    }

    /* Logo and Hamburger z-index to stay on top of the menu overlay */
    .logo, .hamburger {
        position: relative;
        z-index: 10001;
    }

    /* Full-screen animated overlay menu */
    .nav-menu {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(29, 36, 46, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 100px 40px 40px 40px;
        z-index: 9999;
        overflow-y: auto;
        
        /* Animation states */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        margin-bottom: 12px;
    }

    .nav-link {
        color: #ffffff;
        font-size: 20px;
        font-family: var(--font-heading);
        font-weight: 600;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        width: auto;
        padding: 8px 20px;
        border-bottom: none;
        letter-spacing: 1px;
    }

    .nav-link::after {
        display: none !important;
    }

    /* Override hover for mobile to use click trigger only */
    .nav-menu li.dropdown:hover .dropdown-menu {
        opacity: 0;
        visibility: hidden;
        transform: none;
        height: 0;
        padding: 0;
        margin-top: 0;
    }

    /* Smooth accordion-style mobile dropdown */
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 0;
        visibility: hidden;
        height: 0;
        overflow: hidden;
        background-color: rgba(255, 255, 255, 0.03);
        box-shadow: none;
        border-top: none;
        border-radius: 4px;
        padding: 0;
        margin-top: 0;
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
        display: block !important;
    }

    .nav-menu li.dropdown.active-dropdown .dropdown-menu,
    .nav-menu li.dropdown.active-dropdown:hover .dropdown-menu {
        opacity: 1 !important;
        visibility: visible !important;
        height: auto !important;
        padding: 10px 0 !important;
        margin-top: 8px !important;
    }

    .dropdown-link {
        color: #e2e8f0;
        font-size: 16px;
        padding: 8px 20px;
        border-bottom: none;
        display: block;
        transition: var(--transition);
    }

    .dropdown-link:hover,
    .dropdown-link.active {
        background-color: transparent;
        color: var(--accent);
        padding-left: 20px;
    }

    .dropdown-icon {
        padding: 10px 15px;
        margin-right: -15px;
        cursor: pointer;
        transition: transform 0.3s ease;
    }

    .dropdown.active-dropdown .dropdown-icon {
        transform: rotate(180deg);
    }

    .hamburger {
        display: block;
    }

    .about-home {
        grid-template-columns: 1fr;
    }

    .local-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .inner-page-layout {
        grid-template-columns: 1fr;
    }

    .upper-container {
        flex-direction: column;
        gap: 0;
        text-align: center;
        padding: 5px 0;
    }

    .upper-phone,
    .upper-email {
        display: none !important;
    }

    .upper-actions {
        display: none !important;
    }

    .upper-info {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .upper-address {
        font-size: 12px;
        text-align: center;
        display: block;
        width: 100%;
        margin: 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 26px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-padding {
        padding: 60px 15px;
    }

    .practice-card p {
        font-size: 12px;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .trust-container {
        gap: 15px;
    }

    .trust-card {
        min-height: 270px;
        padding: 20px 15px;
    }

    .practice-grid {
        gap: 20px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .local-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .contact-info-panel,
    .contact-form-panel {
        padding: 30px 20px;
    }

    .faq-question {
        padding: 16px 15px;
        font-size: 14px;
    }

    .faq-answer {
        padding: 0 15px;
    }

    .about-home-content h2 {
        font-size: 26px;
    }

    .btn-primary,
    .btn-outline {
        padding: 12px 20px;
        font-size: 13px;
    }
}