:root {
    --primary-color: #A28B68;
    /* Gold/Khaki Accent (Buttons) */
    --secondary-color: #2C241B;
    /* Dark Brown (Headings/Nav) */
    --accent-grey: #F3F1EC;
    --text-color: #544C45;
    /* Soft Brown Text */
    --bg-color: #FDFBF7;
    /* Light Cream Background */
    --white: #FFFFFF;

    --font-heading: 'Playfair Display', serif;
    /* Updated to match Attorna */
    --font-body: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    --font-script: 'Great Vibes', cursive;

    --transition: all 0.3s ease;
}



/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

button,
input,
textarea,
select {
    font-family: inherit;
    font-weight: inherit;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-weight: 300;
    /* Thin weight */
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    /* Dark Brown for headers */
    font-weight: 300;
    /* Thin weight */
}

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

ul {
    list-style: none;
}

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

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

/* Utility Classes */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 300;
    cursor: pointer;
    font-family: var(--font-body);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #8c7656;
    /* Darker Gold */
    color: var(--white);
    border-color: #8c7656;
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

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

.section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

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

.section-badge {
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-weight: 300;
}

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

.section-desc {
    max-width: 700px;
    margin: 1rem auto 0;
    color: #64748B;
}

/* Top Bar */
.top-bar {
    background-color: #FCF7F0;
    /* Cream BG */
    color: #3D352B;
    /* Dark Text */
    padding: 0.5rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid #ECE2D3;
}

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

.mobile-toggle {
    display: none;
    /* Hidden on desktop */
}

.top-socials a {
    margin-right: 1rem;
    color: #3D352B;
}

.top-socials a:hover {
    color: #AB9069;
    /* Gold Accent */
}

.top-contact {
    display: flex;
    align-items: center;
}

/* Header Adjustments */
.header {
    background-color: #FCF7F0;
    /* Cream BG */
    border-bottom: 1px solid #ECE2D3;
    /* Sticky Header */
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    /* Match container padding */
}



.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    /* Space between Lang, Button, Mobile Toggle */
}

/* Language Selector Styles (Adapted for Header) */
.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #64748B;
    font-weight: 500;
    padding: 0;
    transition: var(--transition);
}

.lang-btn.active,
.lang-btn:hover {
    color: var(--primary-color);
    font-weight: 700;
}

.divider {
    color: #ECE2D3;
}

.nav {
    margin-left: auto;
    margin-right: 2rem;
}

.nav-list {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #3D352B;
    /* Deep Brown/Black */
    transition: var(--transition);
}

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

/* Logo Styles */
.logo-text h1 {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: #3D352B;
    /* Dark Text */
    font-weight: 400;
    margin: 0;
    line-height: 1;
}

/* Footer Colors Correction */
.footer-col h4.footer-title {
    color: #FFFFFF;
    /* Force White for readability on dark bg */
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Section Refactor */
.hero {
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.watermark-text {
    position: absolute;
    top: -5%;
    /* Move to top */
    right: -5%;
    /* Move to right */
    left: auto;
    /* Reset left */
    transform: none;
    /* Reset transform */
    font-family: var(--font-heading);
    font-size: 15vw;
    font-weight: 700;
    color: var(--secondary-color);
    opacity: 0.03;
    pointer-events: none;
    white-space: nowrap;
    z-index: 1;
}

@media (max-width: 768px) {
    .watermark-text {
        font-size: 15vw;
        right: -10%;
    }

    .section-watermark {
        font-size: 5rem;
        transform: translate(10%, -10%);
    }
}

.hero-image-wrapper {
    order: -1;
    /* Ensure image is visually first on desktop if HTML order differs, but HTML is already image first */
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    max-width: 450px;
    height: 550px;
    background-color: rgba(44, 36, 27, 0.05);
    /* Subtle dark container */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

.hero-content {
    text-align: left;
    /* Ensure text aligns left per reference */
}

.hero-title {
    font-size: 4.5rem;
    /* Larger title per reference */
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-buttons {
    margin-top: 3rem;
    /* Add space above button */
}

.hero-signature {
    margin-top: 5rem;
    /* Increased top margin for buttons/signature area */
    border-top: 1px solid rgba(44, 36, 27, 0.1);
    padding-top: 1.5rem;
    display: inline-block;
}

.signature-font {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--secondary-color);
    font-weight: 400;
}

.hero-signature span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
    color: var(--text-color);
}

/* Footer */
.footer {
    background-color: #1A1A1A;
    /* Dark Charcoal */
    color: #C7C2BC;
    /* Light Grey Text */
    padding: 4rem 0 0;
    margin-top: auto;
    /* Push to bottom if needed */
}

/* Styles handled in block above, removing duplicates/old styles here */
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: left;
    align-items: start;
    padding-bottom: 2rem;
}

.footer-brand h3 {
    color: #FFFFFF;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-script);
    font-weight: 400;
}

.footer-brand p {
    margin-bottom: 2rem;
    font-weight: 300;
    font-family: var(--font-body);
    color: #C7C2BC;
}

.footer-links ul {
    display: block;
    /* Vertical list */
    gap: 0;
    margin-bottom: 0;
    font-weight: 300;
}

/* Practice Areas */
.practice-areas {
    padding: 5rem 0;
    border-top: 1px solid #ECE2D3;
    position: relative;
    /* For watermark */
    overflow: hidden;
    /* Contain watermark */
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
    /* Above watermark */
}

.area-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 4px;
    border: 1px solid #ECE2D3;
    transition: var(--transition);
}

.area-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.area-icon {
    width: 60px;
    height: 60px;
    background-color: #FCF7F0;
    /* Cream background for icon */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.area-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--secondary-color);
}

.area-card p {
    color: var(--text-color);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    /* Space for button */
}

.area-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    padding-bottom: 2px;
}

.area-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.area-link:hover::after {
    width: 100%;
}

.area-link:hover {
    color: var(--secondary-color);
}

/* Double Rings Icon */
.double-rings {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.double-rings i {
    font-size: 0.8em;
    /* Slightly smaller to fit space */
}

.double-rings i:first-child {
    transform: translateX(10%);
    z-index: 1;
}

.double-rings i:last-child {
    transform: translateX(-10%) rotate(15deg);
    /* Overlap */
    color: var(--secondary-color);
    /* Optional: make one ring secondary color or just slightly different? Keeping same for now but lighter opacity maybe? */
    opacity: 0.8;
}

/* Ensure they fit in area-icon which sets font-size */
.area-icon .double-rings {
    font-size: 1em;
    /* Inherit 2.5rem from area-icon i */
    width: 60px;
    /* Force width if needed */
    height: 60px;
}

.area-icon .double-rings i {
    font-size: 2.2rem;
}

.image-placeholder .double-rings i {
    font-size: 7rem;
}

/* Adjust overlap */
.double-rings .fa-ring:nth-child(1) {
    margin-right: -0.15em;
}

.double-rings .fa-ring:nth-child(2) {
    margin-left: -0.15em;
    transform: rotate(-15deg) translateY(0.05em);
}

/* General Image Placeholder Icon Size */
.image-placeholder i {
    font-size: 7rem;
    color: var(--primary-color);
}

/* General Image Placeholder Icon Size */
.image-placeholder i {
    font-size: 7rem;
    color: var(--primary-color);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    /* More space for form */
    gap: 4rem;
    align-items: start;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    position: relative;
    z-index: 1;
    /* Above watermark */
}

/* Add position relative to contact section generally if needed, but I can target .contact in css if it exists or add it. */
.contact {
    position: relative;
    overflow: hidden;
}

.contact-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.contact-desc {
    margin-bottom: 2.5rem;
    color: var(--text-color);
    line-height: 1.8;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: #555;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 25px;
    /* Fixed width for alignment */
    text-align: center;
    background: none;
    /* Remove circle bg */
    height: auto;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--white);
    border: 1px solid #eee;
    /* Subtle border */
    border-radius: 0;
    /* Sharp edges */
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--secondary-color);
}

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

.contact-form select {
    color: #666;
}

.btn-block {
    width: 100%;
    padding: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 1rem;
}

/* About Section */
.about {
    background-color: var(--white);
    /* White background per request */
    position: relative;
    /* For watermark */
    overflow: hidden;
    /* Contain watermark */
}

/* General Section Watermark */
.section-watermark {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(20%, -20%);
    /* Slight offset to corner */
    font-family: var(--font-heading);
    font-size: 10rem;
    /* Slightly smaller than hero */
    font-weight: 700;
    color: var(--secondary-color);
    opacity: 0.03;
    pointer-events: none;
    white-space: nowrap;
    z-index: 0;
    line-height: 1;
}

/* Adjustments for specific sections if needed */
.hero .watermark-text {
    /* Keep existing hero watermark if we don't change HTML class there yet, 
       but user asked for "like hero", so maybe I should use the same class name 
       or update hero to use this one? 
       For now, I'll keep hero separate styling as it was specific: 15vw size. 
       I will use section-watermark for others. */
}

/* Features Strip */
.features-section {
    background-color: var(--white);
    padding: 3rem 0;
    border-bottom: 1px solid #EBE9E4;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-item p {
    color: var(--text-color);
    font-size: 0.9rem;
}

/* About Section (New Split) */
.about-container {
    /* Padding removed to respect .container padding and .section padding */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    /* Above watermark */
}

.about-text-col {
    text-align: left;
}

.section-header-left {
    margin-bottom: 2rem;
    text-align: left;
}

.about-image-col {
    display: flex;
    justify-content: center;
}

.about-image {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    /* Just in case */
}

.about-desc.about-long-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: justify;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col p {
    margin-bottom: 0.8rem;
}

/* Mobile Responsive overrides */
@media (max-width: 992px) {

    .hero-container,
    .about-container,
    .contact-grid {
        /* Added contact-grid here */
        grid-template-columns: 1fr;
        text-align: center;
    }

    .top-bar-container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .top-socials {
        display: none;
        /* Hide socials in top bar on mobile to save space */
    }

    .top-contact {
        flex-direction: column;
        gap: 0.5rem;
    }

    .logo-text h1 {
        font-size: 1.8rem;
        /* Scale down logo on mobile */
    }

    .form-row {
        grid-template-columns: 1fr;
        /* Stack inputs on mobile */
    }

    .contact-title {
        font-size: 2.5rem;
    }

    .hero-content,
    .about-text-col,
    .section-header-left {
        text-align: center;
    }

    .hero-content {
        order: -1;
    }

    .nav {
        margin: 0;
        /* Reset margins for mobile menu */
    }
}

/* RTL Support via helper class on body */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .mr-2 {
    margin-left: 0.5rem;
    margin-right: 0;
}

body.rtl .header-container {
    flex-direction: row-reverse;
}

body.rtl .logo-text {
    margin-right: 1rem;
    margin-left: 0;
}

body.rtl .hero-buttons {
    /* RTL specific adjustments for buttons if needed, usually text-align handles it */
}

body.rtl .about-list li i {

    /* Icons might need flipping but checkmark is usually universal */
}

/* Ensure icons that suggest direction are flipped in RTL */
body.rtl .fa-arrow-right:before {
    content: "\f060";
    /* arrow-left */
}

/* Mobile Responsive Navigation (Restored) */
/* Footer Bottom Centering */
.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
    /* Added bottom spacing */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.footer-bottom p {
    margin: 0;
    color: #aaa;
    font-size: 0.9rem;
}

/* Mobile Responsive Navigation (Restored) */
@media (max-width: 992px) {

    /* Fix container padding on mobile so it doesn't touch edges */
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .mobile-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--secondary-color);
        background: none;
        border: none;
        position: relative;
        z-index: 1100;
        /* Above nav sidebar */
    }

    .header-actions .btn {
        display: none;
        /* Hide CTA on mobile */
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #FCF7F0;
        /* Cream BG */
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 4rem 2rem;
        transition: 0.4s ease;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        margin: 0;
        /* Override generic margin */
    }

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

    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
    }

    /* RTL Mobile */
    body.rtl .nav {
        right: auto;
        left: -100%;
    }

    body.rtl .nav.nav-active {
        left: 0;
    }

    /* Hero Image Mobile Adjustment */
    .hero-image-wrapper {
        justify-content: center;
        margin-bottom: 2rem;
    }

    .hero-image {
        max-width: 60%;
        /* Reduce size on mobile */
        margin: 0 auto;
    }

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

/* Button Loading State */
.btn-loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnRotate 0.8s linear infinite;
}

@keyframes btnRotate {
    to {
        transform: rotate(360deg);
    }
}

/* Status Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease;
}

.modal-content {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.modal-icon.success::before {
    content: "✓";
    color: #28a745;
}

.modal-icon.error::before {
    content: "✕";
    color: #dc3545;
}

#modalTitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

#modalMessage {
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

#closeModal {
    width: 100%;
    padding: 12px;
    font-weight: 600;
}