:root {
    --navy-900: #0f1b2e;
    --navy-800: #182743;
    --copper-500: #b66a45;
    --cream: #f6f1e9;
    --sand: #e8dfd1;
    --text: #18212f;
    --muted: #5f6a7a;
    --white: #ffffff;
    --radius: 10px;
    --shadow: 0 18px 50px rgba(16, 27, 43, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    width: min(1160px, 92%);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(15, 27, 46, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
}

.brand-main {
    display: block;
    letter-spacing: 0.17em;
    font-size: 1.1rem;
    color: #fff;
}
.brand-sub {
    display: block;
    letter-spacing: 0.24em;
    font-size: 0.64rem;
    color: var(--copper-500);
    margin-top: 4px;
}

.main-nav { display: flex; gap: 18px; align-items: center; }
.main-nav a {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    transition: color .25s ease;
}
.main-nav a:hover, .main-nav a.active { color: #fff; }

.mobile-toggle { display: none; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.btn-primary { background: var(--copper-500); color: #fff; }
.btn-primary:hover { opacity: .92; }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-outline { border-color: rgba(255,255,255,.32); color: #fff; }
.btn-sm { padding: 8px 12px; font-size: 0.72rem; }

.hero {
    background:
        linear-gradient(120deg, rgba(15,27,46,.92) 0%, rgba(15,27,46,.82) 42%, rgba(24,39,67,.9) 100%),
        url('../images/pexels-karola-g-7876040.jpg') center/cover no-repeat;
    color: #fff;
    padding: 120px 0 96px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.kicker {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--copper-500);
    font-size: 0.74rem;
    margin-bottom: 18px;
}
.hero h1 {
    font-size: clamp(2rem, 5.2vw, 4.2rem);
    line-height: 1.1;
    margin: 0 0 18px;
}
.hero p { color: rgba(255,255,255,.8); max-width: 580px; }
.cta-row { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

.section { padding: 88px 0; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--navy-900); color: #fff; }
.section h2 { font-size: clamp(1.7rem, 4.2vw, 3rem); margin: 0 0 18px; }
.section-intro { max-width: 760px; color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card {
    background: #fff;
    border: 1px solid #ece6dc;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card p { color: var(--muted); }

.lawyer-photo {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: top center;
    border-radius: 10px;
    margin-bottom: 0;
    border: 1px solid #ece6dc;
}

.lawyer-card {
    padding: 22px;
    overflow: visible;
}

.lawyer-media {
    position: relative;
    margin: -22px -22px 28px;
    overflow: visible;
}

.lawyer-overlay {
    position: absolute;
    left: -14px;
    bottom: -18px;
    max-width: calc(100% - 26px);
    background: #fff;
    border: 1px solid #e7dccb;
    border-left: 4px solid var(--copper-500);
    border-radius: 0 10px 10px 10px;
    padding: 12px 14px;
    box-shadow: 0 12px 24px rgba(15, 27, 46, 0.14);
}

.lawyer-overlay h2,
.lawyer-overlay h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.25;
}

.lawyer-overlay p {
    margin: 6px 0 0;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6a503d;
}

.pill {
    display: inline-block;
    background: #f1ebe2;
    border: 1px solid #e7dccb;
    color: #6a503d;
    border-radius: 999px;
    font-size: .73rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 6px 10px;
}

.breadcrumb { margin: 24px 0 12px; font-size: .85rem; color: #7b8799; }
.breadcrumb a { color: #4c5a6f; }

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
}

.form-wrap {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid #ece6dc;
    padding: 24px;
    box-shadow: var(--shadow);
}

.form-row { display: grid; gap: 12px; margin-bottom: 14px; }
.form-2 { grid-template-columns: 1fr 1fr; }
label { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: #556177; }
input, textarea, select {
    width: 100%;
    border: 1px solid #d9dfe8;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.95rem;
    font-family: inherit;
}
textarea { min-height: 130px; resize: vertical; }
.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: .92rem;
}
.alert-success { background: #e8f6ed; color: #1f6a3a; border: 1px solid #bde2ca; }
.alert-error { background: #fff2f2; color: #992626; border: 1px solid #f1c0c0; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid #e7e7e7; text-align: left; padding: 10px; font-size: .92rem; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #5f6a7a; }

.site-footer {
    background: #0d1523;
    color: rgba(255,255,255,.82);
    padding: 64px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 26px; }
.site-footer h3, .site-footer h4 { color: #fff; margin-top: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.76); }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }

.floating-actions {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 120;
    display: grid;
    gap: 10px;
}

.floating-btn {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 14px 28px rgba(15, 27, 46, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.26);
}

.floating-btn svg {
    width: 25px;
    height: 25px;
}

.floating-btn-whatsapp {
    background: linear-gradient(135deg, #1e9f52 0%, #22c05e 100%);
}

.floating-btn-phone {
    background: linear-gradient(135deg, #0f1b2e 0%, #253d67 100%);
}

.floating-btn:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.reveal { opacity: 0; transform: translateY(16px); transition: .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side { background: #111e32; color: #fff; padding: 20px; }
.admin-side a { display: block; color: #dce3ed; padding: 10px 8px; border-radius: 8px; }
.admin-side a:hover { background: #1b2d48; }
.admin-main { background: #f4f6fa; padding: 22px; }
.admin-card { background: #fff; border: 1px solid #e4e8ef; border-radius: 10px; padding: 18px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }

@media (max-width: 980px) {
    .hero-grid, .split, .grid-3, .grid-2, .footer-grid, .admin-shell { grid-template-columns: 1fr; }
    .main-nav { display: none; position: absolute; top: 78px; left: 0; right: 0; background: #10213a; padding: 14px; flex-direction: column; align-items: flex-start; }
    .main-nav.open { display: flex; }
    .mobile-toggle { display: inline-flex; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; padding: 8px 12px; border-radius: 6px; }
    .form-2 { grid-template-columns: 1fr; }
    .lawyer-photo { height: 360px; }
    .lawyer-overlay {
        left: 10px;
        right: 10px;
        bottom: -14px;
        max-width: none;
    }
    .floating-actions {
        right: 12px;
        bottom: 12px;
        gap: 8px;
    }
    .floating-btn {
        width: 50px;
        height: 50px;
    }
    .floating-btn svg {
        width: 22px;
        height: 22px;
    }
}
