:root {
    --primary-dark: #0a0a0a;
    --secondary-dark: #161616;
    --gold: #c29b57;
    --light-bg: #f9f7f2;
    --white: #ffffff;
    --text-dark: #222222;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font-body); color: var(--text-dark); line-height: 1.7; background-color: var(--white); overflow-x: hidden; }

/* FIX FOR IMAGES & LOGOS */
img { max-width: 100%; height: auto; display: block; }
.logo-img { max-width: 60px; height: auto; } /* Keeps header logo small */
.footer-logo { max-width: 120px; height: auto; margin-bottom: 15px; filter: brightness(0) invert(1); } /* Keeps footer logo small */
.profile-img { width: 100%; object-fit: cover; }

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; margin-bottom: 15px; color: var(--primary-dark); }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
.section-padding { padding: 100px 0; }
.bg-light { background-color: var(--light-bg); }
.text-center { text-align: center; }

.section-subtitle { color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 10px; }
.section-title { font-size: clamp(32px, 4vw, 42px); margin-bottom: 20px; line-height: 1.2; }
.display-title { font-size: clamp(40px, 5vw, 65px); font-weight: 300; text-transform: uppercase; line-height: 1.1; letter-spacing: 2px; }

.shadow-img { border-radius: 4px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); transition: var(--transition); }
.shadow-img:hover { transform: translateY(-5px); box-shadow: 0 20px 45px rgba(0,0,0,0.15); }

.check-list { margin-top: 20px; color: #555; line-height: 2.2; }
.check-list i { color: var(--gold); margin-right: 12px; }

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: none !important; }

/* HEADER */
header { position: fixed; top: 0; width: 100%; z-index: 1000; background-color: rgba(10, 10, 10, 0.98); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.05); transition: var(--transition); padding: 15px 0; }
header.scrolled { box-shadow: 0 5px 20px rgba(0,0,0,0.5); padding: 10px 0; }

.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo-container { display: flex; align-items: center; gap: 15px; }
.logo-text-wrapper { display: flex; flex-direction: column; justify-content: center; }
.site-title { font-family: var(--font-heading); color: var(--white); font-size: 18px; font-weight: 700; line-height: 1.1; letter-spacing: 1px; }
.site-tagline { font-family: var(--font-body); color: var(--gold); font-size: 8px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; margin-top: 4px; }

.navbar { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; gap: 25px; }
.nav-links a { font-size: 12px; font-weight: 700; color: var(--white); letter-spacing: 1.5px; position: relative; padding: 5px 0; text-transform: uppercase; }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; background-color: var(--gold); bottom: 0; left: 0; transition: var(--transition); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.mobile-menu-btn { display: none; font-size: 24px; color: var(--white); cursor: pointer; z-index: 1001; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 28px; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; border-radius: 2px; cursor: pointer; transition: var(--transition); }
.btn-solid { background-color: var(--gold); color: var(--white); border: 1px solid var(--gold); }
.btn-solid:hover { background-color: transparent; color: var(--gold); }
.btn-outline { background-color: transparent; color: var(--gold); border: 1px solid var(--gold); }
.btn-outline:hover { background-color: var(--gold); color: var(--white); }

/* HERO */
.hero { position: relative; height: 100vh; min-height: 600px; display: flex; align-items: center; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to right, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.5) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero h1 { font-size: clamp(40px, 5vw, 65px); color: var(--white); margin-bottom: 25px; line-height: 1.1; }
.hero h1 span { color: var(--gold); }
.hero p { color: #ddd; font-size: 18px; margin-bottom: 40px; }
.hero-buttons { display: flex; gap: 15px; }

/* LAYOUTS */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-layout.reverse { direction: rtl; }
.split-layout.reverse > * { direction: ltr; }
.align-start { align-items: flex-start !important; }

.highlights-grid { display: grid; grid-template-columns: repeat(4, 1fr); background-color: var(--secondary-dark); border-bottom: 1px solid #333; }
.highlight-item { padding: 40px 20px; text-align: center; border-right: 1px solid #333; transition: var(--transition); color: var(--white); }
.highlight-item:hover { background-color: #222; transform: translateY(-5px); }
.highlight-item i { color: var(--gold); font-size: 30px; margin-bottom: 15px; }
.highlight-item h3 { font-size: 14px; margin-bottom: 10px; color: var(--white); letter-spacing: 1px;}
.highlight-item p { font-size: 13px; color: #999; }

/* PRACTICE AREAS SECTION */
/* 1. THE SECTION: Solid color, NO image */
#practice-areas {
    position: relative;
    padding: 100px 0;
    background-color: #ffffff; /* Solid black/dark color for the whole section */
    color: #333333;
}

/* 2. THE GRID: Standard layout */
/* Apply the image to the grid container instead of individual cards */
.practice-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    margin-top: 40px;
    
    /* Move the background image here */
    background-image: url('../images/services-bg.jpg');
    background-size: cover; 
    background-position: center;
    background-attachment: fixed; 
    padding: 40px; /* Add some padding so the background shows around cards */
    border-radius: 8px;
}

.practice-card { 
    position: relative;
    padding: 60px 30px; 
    border-radius: 8px; 
    text-align: center;
    overflow: hidden;
    
    /* Remove these lines from here */
    background-image: none;
    
    /* Keep a solid background color for the cards to make text readable */
    background-color: rgba(0, 0, 0, 0.8); 
}

/* Remove or adjust the .practice-card::before overlay since the card is now solid */
.practice-card::before {
    display: none; 
}
/* 4. THE OVERLAY: Keeps text readable within the card */
.practice-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Darker overlay inside the card only */
    z-index: 1;
}

/* 5. CONTENT: Ensure text sits on top */
.practice-card i, 
.practice-card h3, 
.practice-card p { 
    position: relative; 
    z-index: 2; 
}

/* 6. GOLD HEADINGS & STYLING */
.practice-card i { color: var(--gold); font-size: 35px; margin-bottom: 20px; display: block; }
.practice-card h3 { color: var(--gold); font-size: 20px; margin-bottom: 15px; font-weight: 700; }
.practice-card p { color: #eeeeee; font-size: 14px; line-height: 1.6; }

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
    .practice-grid { grid-template-columns: 1fr; }
    /* Mobile browsers don't support 'fixed' backgrounds well, so we scroll normally on mobile */
    .practice-card { background-attachment: scroll; }
}
/* CONTACT */
.contact-form-wrapper { background: var(--white); box-shadow: 0 15px 50px rgba(0,0,0,0.06); border-radius: 4px; overflow: hidden; }
.form-tabs { display: flex; background: #fdfdfd; border-bottom: 1px solid #eaeaea; }
.tab-btn { flex: 1; padding: 20px 10px; border: none; background: transparent; font-family: var(--font-body); font-weight: 700; font-size: 11px; letter-spacing: 1px; color: #999; cursor: pointer; transition: 0.3s; border-top: 3px solid transparent; outline: none; }
.tab-btn.active { color: var(--gold); border-top-color: var(--gold); background: var(--white); }
.tab-content { display: none; padding: 40px; animation: fadeIn 0.4s; }
.tab-content.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.premium-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.premium-form input, .premium-form select, .premium-form textarea { width: 100%; padding: 15px; border: 1px solid #e5e5e5; background: #fcfcfc; font-family: var(--font-body); font-size: 14px; outline: none; transition: 0.3s; border-radius: 2px; }
.premium-form input:focus, .premium-form select:focus, .premium-form textarea:focus { border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 3px rgba(194, 155, 87, 0.1); }
.premium-form textarea { resize: vertical; margin-bottom: 15px; }

.btn-dark-full { width: 100%; background: var(--primary-dark); color: var(--white); padding: 18px; border: none; font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; transition: 0.3s; border-radius: 2px; }
.btn-dark-full:hover { background: var(--gold); }



.file-upload-area { border: 2px dashed #ddd; padding: 40px 20px; text-align: center; border-radius: 4px; background: #fdfdfd; transition: 0.3s; }
.file-upload-area:hover { border-color: var(--gold); background: var(--white); }

/* FOOTER */
footer { background-color: var(--primary-dark); color: var(--white); padding-top: 80px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; padding-bottom: 50px; border-bottom: 1px solid #222; }
.links-col ul li { margin-bottom: 10px; font-size: 14px; }
.links-col a { color: #999; }
.links-col a:hover { color: var(--gold); padding-left: 5px; }

.floating-widget { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column-reverse; align-items: center; gap: 15px; }
.widget-toggle { width: 60px; height: 60px; background-color: var(--gold); color: #fff; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 24px; cursor: pointer; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); transition: 0.3s; }
.widget-toggle:hover { transform: scale(1.1); background-color: #b5952f; }
.widget-menu { display: flex; flex-direction: column; gap: 15px; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.4s ease; }
.floating-widget.open .widget-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.widget-item { width: 45px; height: 45px; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #fff; font-size: 20px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); transition: 0.3s; }
.widget-item:hover { transform: scale(1.15); }
.widget-item.wa { background-color: #25D366; }
.widget-item.phone { background-color: #007bff; }
.widget-item.email { background-color: #dc3545; }

/* MOBILE RESPONSIVE FIXES */
@media (max-width: 991px) {
    .split-layout, .split-layout.reverse { grid-template-columns: 1fr; gap: 40px; }
    .practice-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-buttons { flex-direction: column; width: 100%; max-width: 300px; }
    .hero-buttons .btn { justify-content: center; width: 100%; }
}

@media (max-width: 768px) {
    .practice-grid, .footer-content, .highlights-grid { grid-template-columns: 1fr; }
    .premium-form .form-grid { grid-template-columns: 1fr; }
    .form-tabs { flex-direction: column; }
    .tab-btn { padding: 15px; border-top: none; border-left: 3px solid transparent; text-align: left; border-bottom: 1px solid #eee; }
    .tab-btn.active { border-top: none; border-left-color: var(--gold); }
    .connect-instantly-btn { position: relative; bottom: 0; right: 0; margin-bottom: 15px; justify-content: center; }
    
    .mobile-menu-btn { display: block; }
    .navbar { position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--white); box-shadow: 0 4px 10px rgba(0,0,0,0.1); flex-direction: column; display: none; padding: 20px 0; }
    .navbar.active { display: flex; }
    .nav-links { flex-direction: column; width: 100%; text-align: center; gap: 0; }
    .nav-links a { display: block; padding: 15px 0; color: var(--primary-dark); border-bottom: 1px solid #eee; }
    .nav-links a::after { display: none; }
    .navbar .nav-btn { margin: 20px auto 0; color: var(--gold); }
}
/* --- MODAL POP-UP STYLES --- */
.modal-overlay {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(10, 10, 10, 0.85); /* Matches your primary dark theme */
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    padding: 50px 40px;
    border-radius: 4px;
    max-width: 550px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: translateY(30px);
    transition: var(--transition);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px; 
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: var(--transition);
}

.close-modal:hover { 
    color: var(--gold); 
}

.modal-content h1 { 
    font-size: 28px; 
    margin-bottom: 15px; 
}

.modal-content p { 
    margin-bottom: 30px; 
    color: #555; 
    font-size: 15px;
    line-height: 1.8;
}