:root {
    --bg: #07121a;
    --bg-deep: #04080c;
    --ink: #f4efe6;
    --muted: #b8c6cf;
    --line: rgba(190, 212, 223, 0.18);
    --sky: #79d6ff;
    --cyan: #4fb8e8;
    --emerald: #3ccf8d;
    --jade: #1f8f67;
    --gold: #dfbf7b;
    --rose: #e0928c;
    --violet: #8a82da;
    --panel: rgba(10, 20, 30, 0.78);
    --panel-strong: rgba(10, 22, 35, 0.92);
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    background:
        radial-gradient(circle at top left, rgba(121, 214, 255, 0.12), transparent 30%),
        radial-gradient(circle at 85% 10%, rgba(223, 191, 123, 0.1), transparent 28%),
        radial-gradient(circle at 20% 70%, rgba(60, 207, 141, 0.08), transparent 24%),
        linear-gradient(180deg, #08131c 0%, #0b1721 46%, #060b10 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

.wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid var(--line);
    background: rgba(6, 10, 15, 0.72);
    backdrop-filter: blur(18px);
}

.topbar-inner,
.nav-links,
.brand,
.hero-actions,
.hero-trust,
.hero-main-card-footer,
.contact-list,
.admin-header,
.card-heading,
.lawyer-admin-card,
.lawyer-admin-actions,
.checkbox-row,
.current-image-row,
.footer-grid,
.footer-links {
    display: flex;
    align-items: center;
}

.topbar-inner,
.admin-header,
.card-heading,
.lawyer-admin-card,
.footer-grid {
    justify-content: space-between;
}

.topbar-inner {
    min-height: 106px;
}

.brand {
    gap: 14px;
}

.brand-logo,
.brand-mark {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
}

.brand-logo {
    width: auto;
    height: 76px;
    max-width: 320px;
    flex: 0 0 auto;
    object-fit: contain;
}

.brand-mark {
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--gold), var(--sky));
    color: var(--bg-deep);
    font-weight: 700;
}

.brand strong,
.hero h1,
.page-hero h1,
.section-heading h2,
.feature-teaser h2,
.section-copy h2,
.contact-copy h2,
.showcase-card h3,
.hero-main-card h2,
.accent-panel h3,
.admin-auth-header h1,
.admin-header h1 {
    font-family: "Times New Roman", Georgia, serif;
}

.brand small,
.eyebrow,
.section-label,
.mini-label,
.lawyer-role {
    display: block;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #f4d9a0;
}

.nav-links,
.footer-links {
    gap: 20px;
}

.nav-links a,
.footer-links a {
    color: var(--muted);
    transition: color 0.2s ease;
}

.nav-links a:hover,
.footer-links a:hover {
    color: var(--ink);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), var(--sky));
    color: #071018;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(121, 214, 255, 0.14);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
    box-shadow: none;
}

.button-danger {
    background: rgba(224, 146, 140, 0.12);
    color: #ffd6d2;
    border-color: rgba(224, 146, 140, 0.28);
    box-shadow: none;
}

.hero,
.page-hero {
    position: relative;
    overflow: clip;
}

.hero-premium {
    padding: 98px 0 78px;
}

.hero-backdrop-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(121, 214, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(121, 214, 255, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, black, transparent 95%);
}

.hero-light,
.page-hero::before,
.page-hero::after {
    position: absolute;
    border-radius: 999px;
    filter: blur(28px);
}

.hero-light-left {
    top: 60px;
    left: -90px;
    width: 280px;
    height: 280px;
    background: rgba(60, 207, 141, 0.16);
}

.hero-light-right {
    top: 90px;
    right: 2%;
    width: 320px;
    height: 320px;
    background: rgba(138, 130, 218, 0.12);
}

.hero-premium-grid,
.split-section,
.contact-grid,
.admin-grid,
.feature-teasers {
    display: grid;
    gap: 28px;
}

.hero-premium-grid,
.split-section,
.contact-grid {
    grid-template-columns: 1.04fr 0.96fr;
}

.hero-copy,
.hero-visual,
.metrics article,
.showcase-card,
.lawyer-card,
.contact-form-card,
.admin-card,
.admin-auth-card,
.accent-panel,
.feature-teaser {
    position: relative;
    z-index: 1;
}

.hero-copy h1,
.page-hero h1 {
    margin: 14px 0 18px;
    line-height: 0.95;
}

.hero-copy h1 {
    font-size: clamp(3rem, 7vw, 5.8rem);
    max-width: 11ch;
}

.page-hero {
    padding: 88px 0 52px;
}

.page-hero::before {
    content: "";
    top: 40px;
    left: 10%;
    width: 240px;
    height: 240px;
    background: rgba(121, 214, 255, 0.12);
}

.page-hero::after {
    content: "";
    right: 10%;
    bottom: 0;
    width: 220px;
    height: 220px;
    background: rgba(223, 191, 123, 0.12);
}

.page-hero-contact::after {
    background: rgba(60, 207, 141, 0.14);
}

.page-hero-inner {
    max-width: 760px;
}

.page-hero h1 {
    font-size: clamp(2.7rem, 6vw, 4.9rem);
}

.hero-copy p,
.page-hero p,
.section-copy p,
.contact-copy p,
.feature-teaser p,
.lawyer-content p,
.showcase-card p,
.hero-main-card p,
.hero-floating-card p,
.accent-panel p,
.admin-header p,
.admin-auth-header p,
.footer-copy {
    color: var(--muted);
    line-height: 1.8;
}

.hero-actions {
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-trust {
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-trust div,
.metrics article,
.showcase-card,
.lawyer-card,
.contact-form-card,
.admin-card,
.admin-auth-card,
.accent-panel,
.feature-teaser {
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 30px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-trust div {
    min-width: 180px;
    padding: 14px 18px;
    background: rgba(8, 17, 25, 0.66);
}

.hero-trust strong,
.metrics article strong,
.showcase-card h3,
.lawyer-content h3 {
    display: block;
}

.hero-trust span {
    color: var(--muted);
}

.hero-stack {
    position: relative;
    min-height: 660px;
    padding-top: 48px;
}

.hero-main-card {
    position: absolute;
    top: 92px;
    right: 12px;
    width: min(100%, 470px);
    min-height: 430px;
    padding: 34px;
    border: 1px solid rgba(223, 191, 123, 0.2);
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(121, 214, 255, 0.16), transparent 30%),
        linear-gradient(145deg, rgba(9, 20, 30, 0.96), rgba(7, 16, 24, 0.94));
    box-shadow: var(--shadow);
}

.hero-main-card h2 {
    margin: 16px 0 12px;
    font-size: 2.25rem;
    line-height: 1.06;
}

.hero-main-card-footer {
    justify-content: space-between;
    margin-top: 56px;
    color: #ecd5a0;
}

.hero-floating-card {
    position: absolute;
    width: 250px;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(9, 18, 28, 0.88);
    box-shadow: var(--shadow);
    animation: floatCard 8s ease-in-out infinite;
}

.hero-floating-card-top {
    top: 0;
    left: -18px;
}

.hero-floating-card-bottom {
    bottom: 24px;
    left: 36px;
    animation-delay: -4s;
}

.metrics {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 16px;
}

.metrics article,
.showcase-card,
.contact-form-card,
.admin-card,
.admin-auth-card,
.accent-panel,
.feature-teaser {
    padding: 28px;
}

.metrics article strong {
    margin-bottom: 10px;
    font-size: 1.08rem;
}

.section {
    padding: 78px 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 30px;
}

.showcase-section {
    padding-top: 36px;
}

.showcase-slider {
    overflow: hidden;
    position: relative;
    border-radius: 32px;
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.showcase-track {
    display: flex;
    gap: 22px;
    width: max-content;
    animation: slideCards 28s linear infinite;
}

.showcase-slider:hover .showcase-track {
    animation-play-state: paused;
}

.showcase-card {
    width: min(340px, 82vw);
    background:
        linear-gradient(180deg, rgba(223, 191, 123, 0.1), transparent),
        linear-gradient(145deg, rgba(10, 20, 30, 0.88), rgba(10, 23, 36, 0.78));
}

.showcase-card h3 {
    margin: 16px 0 12px;
    font-size: 1.65rem;
    line-height: 1.15;
}

.feature-teasers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 78px;
}

.feature-teaser {
    background:
        linear-gradient(145deg, rgba(79, 184, 232, 0.1), rgba(138, 130, 218, 0.07)),
        rgba(10, 22, 34, 0.86);
}

.feature-teaser-accent {
    background:
        linear-gradient(145deg, rgba(223, 191, 123, 0.14), rgba(60, 207, 141, 0.09)),
        rgba(10, 22, 34, 0.9);
}

.split-section .accent-panel {
    background:
        linear-gradient(145deg, rgba(223, 191, 123, 0.14), rgba(79, 184, 232, 0.08)),
        rgba(10, 22, 34, 0.9);
}

.lawyer-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lawyer-card {
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.lawyer-card:hover {
    transform: translateY(-6px);
    border-color: rgba(223, 191, 123, 0.34);
}

.lawyer-image-frame {
    aspect-ratio: 4 / 4.2;
    background:
        radial-gradient(circle at 50% 8%, rgba(223, 191, 123, 0.18), transparent 42%),
        linear-gradient(180deg, rgba(121, 214, 255, 0.18), rgba(60, 207, 141, 0.08));
}

.lawyer-content {
    padding: 24px;
}

.lawyer-content h3 {
    margin: 10px 0;
    font-size: 1.55rem;
}

.contact-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 28px;
}

.contact-form,
.admin-form {
    display: grid;
    gap: 16px;
}

.branding-upload-panel {
    display: grid;
    gap: 16px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(223, 191, 123, 0.08), rgba(121, 214, 255, 0.08)),
        rgba(9, 18, 28, 0.82);
}

label span {
    display: block;
    margin-bottom: 8px;
    font-size: 0.96rem;
}

input,
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(184, 198, 207, 0.16);
    border-radius: 18px;
    background: rgba(4, 11, 17, 0.7);
    color: var(--ink);
    font: inherit;
}

input:focus,
textarea:focus {
    outline: 2px solid rgba(121, 214, 255, 0.28);
    border-color: rgba(223, 191, 123, 0.3);
}

.flash-success,
.field-error {
    padding: 12px 14px;
    border-radius: 16px;
}

.flash-success {
    margin-bottom: 18px;
    background: rgba(60, 207, 141, 0.14);
    color: #d3ffe8;
    border: 1px solid rgba(60, 207, 141, 0.24);
}

.field-error {
    display: block;
    margin-top: 8px;
    background: rgba(224, 146, 140, 0.14);
    color: #ffd9d4;
}

.site-footer {
    padding: 30px 0 50px;
    border-top: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(8, 14, 20, 0), rgba(8, 14, 20, 0.72)),
        transparent;
}

.footer-grid {
    gap: 28px;
}

.footer-brand {
    margin-bottom: 14px;
}

.footer-brand .brand-logo {
    height: 62px;
    max-width: 240px;
}

.footer-links {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.floating-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 24px;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px 12px 12px;
    border-radius: 999px;
    border: 1px solid rgba(60, 207, 141, 0.32);
    background: linear-gradient(135deg, rgba(60, 207, 141, 0.98), rgba(31, 143, 103, 0.98));
    color: #05110c;
    box-shadow: 0 18px 40px rgba(31, 143, 103, 0.32);
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 44px rgba(31, 143, 103, 0.4);
}

.floating-whatsapp-icon {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
}

.floating-whatsapp-text {
    white-space: nowrap;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.reveal-delay {
    transition-delay: 0.16s;
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

.admin-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

.admin-shell,
.admin-panel {
    width: min(1180px, 100%);
}

.admin-auth-card,
.admin-panel {
    animation: riseIn 0.7s ease;
}

.admin-panel.narrow-panel {
    width: min(760px, 100%);
    margin: 0 auto;
}

.lawyer-admin-list {
    display: grid;
    gap: 14px;
}

.lawyer-admin-card {
    gap: 18px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.lawyer-admin-card img,
.current-image-row img {
    width: 82px;
    height: 82px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(10, 18, 26, 0.9);
}

.branding-preview-row {
    align-items: center;
    flex-wrap: wrap;
}

.branding-preview {
    width: auto;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    background: rgba(10, 18, 26, 0.9);
}

.branding-preview-logo {
    min-width: 160px;
    max-width: 320px;
    max-height: 110px;
    padding: 10px 14px;
}

.branding-preview-favicon {
    width: 64px;
    height: 64px;
    padding: 8px;
}

.lawyer-admin-card div,
.lawyer-admin-actions {
    display: grid;
    gap: 6px;
}

.lawyer-admin-actions {
    justify-items: end;
}

.checkbox-row,
.current-image-row {
    gap: 12px;
}

.current-image-row {
    justify-content: flex-start;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@keyframes slideCards {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

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

@media (max-width: 980px) {
    .hero-premium-grid,
    .split-section,
    .contact-grid,
    .admin-grid,
    .feature-teasers,
    .lawyer-grid,
    .metrics,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-stack {
        min-height: auto;
        display: grid;
        gap: 18px;
    }

    .hero-main-card,
    .hero-floating-card {
        position: static;
        width: 100%;
        animation: none;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 920px) {
    .nav-links {
        display: none;
    }

    .hero-copy h1 {
        max-width: none;
    }

    .floating-whatsapp {
        right: 16px;
        bottom: 18px;
        padding-right: 14px;
    }

    .floating-whatsapp-text {
        display: none;
    }
}
