/* --- 1. GLOBAL RESET & FONTS --- */
@import url('https://fonts.googleapis.com');

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

:root {
    --navy: #0a192f;
    --gold: #c5a059;
    --light-grey: #f8f9fa;
    --text-dark: #333;
    --white: #ffffff;
    --border: #e1e1e1;
}

body { 
    font-family: 'Inter', sans-serif; 
    line-height: 1.6; 
    color: var(--text-dark); 
    background-color: #fff;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; color: var(--navy); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* --- 2. HEADER & NAVIGATION --- */
.site-header { background: var(--white); border-bottom: 3px solid var(--gold); padding: 15px 0; position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }

.logo a { text-decoration: none; display: block; }
.logo strong { font-size: 1.6rem; color: var(--navy); text-transform: uppercase; letter-spacing: 1px; line-height: 1; }
.logo span { font-size: 0.85rem; color: var(--gold); letter-spacing: 5px; text-transform: uppercase; }

.main-nav ul { display: flex; list-style: none; gap: 25px; }
.main-nav a { text-decoration: none; color: var(--navy); font-weight: 600; font-size: 0.95rem; transition: 0.3s; }
.main-nav a:hover { color: var(--gold); }

.lang-switch { font-size: 0.8rem; font-weight: bold; }
.lang-switch a { text-decoration: none; color: var(--navy); padding: 5px; }
.lang-switch a:hover { color: var(--gold); }

/* --- 3. HERO & BUTTONS --- */
.hero { 
    background: linear-gradient(rgba(10,25,47,0.85), rgba(10,25,47,0.85)), url('../img/law-bg.jpg') center/cover; 
    color: var(--white); padding: 120px 0; text-align: center; 
}
.hero h1 { color: var(--white); font-size: 3.5rem; margin-bottom: 15px; }
.hero .tagline { font-size: 1.2rem; max-width: 700px; margin: 0 auto 30px; opacity: 0.9; }

.btn { display: inline-block; padding: 14px 35px; text-decoration: none; border-radius: 2px; font-weight: bold; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px; }
.btn-primary { background: var(--gold); color: white; border: 1px solid var(--gold); }
.btn-primary:hover { background: #b08e4d; border-color: #b08e4d; }
.btn-outline { border: 1px solid var(--white); color: white; }
.btn-outline:hover { background: var(--white); color: var(--navy); }

/* --- 4. CONTENT GRIDS (Services/Areas) --- */
.practice-grid, .services-grid { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; padding: 60px 0; 
}

.service-box, .practice-card { 
    background: var(--white); padding: 40px; border: 1px solid #eee; 
    border-top: 5px solid var(--navy); transition: 0.3s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.service-box:hover, .practice-card:hover { transform: translateY(-5px); border-top-color: var(--gold); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
.service-box ul { list-style: none; margin-top: 15px; }
.service-box li { padding: 8px 0; border-bottom: 1px solid #f9f9f9; font-size: 0.95rem; }

/* --- 5. CONTACT PAGE & FORM --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; padding: 60px 0; }
.detail-card { background: var(--light-grey); padding: 30px; border-left: 5px solid var(--gold); margin-bottom: 25px; }

.contact-actions { background: #fff; padding: 40px; border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.modern-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; }
.form-group label { font-weight: 700; color: var(--navy); margin-bottom: 8px; font-size: 0.8rem; text-transform: uppercase; }
.form-group input, .form-group textarea { 
    padding: 14px; border: 1px solid #ddd; background: #fafafa; font-family: inherit; font-size: 1rem; transition: 0.3s; 
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); background: #fff; }

.btn-submit { background: var(--navy); color: white; padding: 18px; border: none; font-weight: bold; text-transform: uppercase; letter-spacing: 2px; cursor: pointer; transition: 0.3s; }
.btn-submit:hover { background: var(--gold); }

/* --- 6. FOOTER --- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 60px 0; margin-top: 80px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.footer-inner h4 { color: #fff; margin-bottom: 20px; }

/* --- 7. MOBILE RESPONSIVENESS --- */
@media (max-width: 850px) {
    .header-inner { flex-direction: column; text-align: center; gap: 20px; }
    .main-nav ul { flex-direction: column; gap: 10px; }
    .contact-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.2rem; }
    .practice-grid { grid-template-columns: 1fr; }
}
.practice-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
    padding: 60px 0; 
}

.practice-card { 
    background: var(--white); 
    padding: 30px; 
    border: 1px solid #eee; 
    border-top: 5px solid var(--navy);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.practice-card:hover { 
    border-top-color: var(--gold); 
    transform: translateY(-5px); 
}

.practice-card ul { 
    list-style: none; 
    padding: 0; 
    margin-top: 15px; 
}

.practice-card ul li { 
    padding: 8px 0; 
    border-bottom: 1px solid #f9f9f9; 
    font-size: 0.95rem; 
    color: #555; 
}
/* --- Dropdown Container --- */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Bridging the gap: This invisible padding ensures the mouse stays 'hovered' */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 240px;
    max-height: 450px;
    overflow-y: auto;
    box-shadow: 0px 12px 24px rgba(0,0,0,0.15);
    z-index: 1001;
    border-top: 4px solid var(--gold);
    border-radius: 0 0 8px 8px;
    
    /* This pushes the dropdown slightly down but keeps the hover connection active */
    top: 100%; 
    left: 0;
    padding-top: 5px; 
}

/* This creates a 'bridge' so you can move the mouse down without it disappearing */
.dropdown::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 20px;
    bottom: -20px;
    left: 0;
}

/* --- Show Dropdown on Hover --- */
.dropdown:hover .dropdown-content {
    display: block;
    /* Optional: Adds a tiny fade-in for a premium feel */
    animation: fadeIn 0.2s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Dropdown Links --- */
.dropdown-content a {
    color: var(--navy);
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s, padding-left 0.2s;
}

.dropdown-content a:hover {
    background-color: #fcfaf5; /* Light gold tint */
    color: var(--gold);
    padding-left: 28px;
}
