/* ═══════════════════════════════════════════════════════════════
   Supero & Vesper, LLP — Design System
   ═══════════════════════════════════════════════════════════════ */

:root {
    --sv-navy:         #0B1524;
    --sv-navy-soft:    #141E30;
    --sv-charcoal:     #111418;
    --sv-text:         #111111;
    --sv-text-muted:   #5F6470;
    --sv-surface:      #F5F5F7;
    --sv-surface-mid:  #E4E5EA;
    --sv-gold:         #CBA15A;
    --sv-gold-soft:    #E0C48B;
    --sv-danger:       #8B1B2C;
    --sv-border:       #D3D5DD;
    --sv-white:        #FFFFFF;
    --sv-font-heading: "Playfair Display", "Georgia", "Times New Roman", serif;
    --sv-font-body:    "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --sv-max-width:    960px;
    --sv-wide-width:   1200px;
    --sv-radius:       4px;
    --sv-transition:   0.3s ease;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; font-size: 16px; }

body {
    font-family: var(--sv-font-body);
    color: var(--sv-text);
    line-height: 1.6;
    background: var(--sv-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.sv-container {
    width: 100%;
    max-width: var(--sv-wide-width);
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .sv-container { padding: 0 16px; }
}

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */

.sv-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(11, 21, 36, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(203, 161, 90, 0.15);
    transition: background var(--sv-transition), box-shadow var(--sv-transition);
}

.sv-header--scrolled {
    background: rgba(11, 21, 36, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.sv-header__inner {
    max-width: var(--sv-wide-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.sv-header__logo { display: flex; align-items: center; }

.sv-header__logo-img {
    height: 36px;
    width: auto;
}

.sv-header__nav-list {
    display: flex;
    gap: 32px;
    align-items: center;
}

.sv-header__nav-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color var(--sv-transition);
    position: relative;
}

.sv-header__nav-link:hover,
.sv-header__nav-link--active {
    color: var(--sv-gold);
}

.sv-header__nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--sv-gold);
    transition: width var(--sv-transition);
}

.sv-header__nav-link:hover::after,
.sv-header__nav-link--active::after {
    width: 100%;
}

.sv-header__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.sv-header__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--sv-white);
    border-radius: 1px;
    transition: transform var(--sv-transition), opacity var(--sv-transition);
}

.sv-header__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.sv-header__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.sv-header__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .sv-header__toggle { display: flex; }

    .sv-header__nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(11, 21, 36, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 999;
    }

    .sv-header__nav--open {
        transform: translateX(0);
    }

    .sv-header__nav-list {
        flex-direction: column;
        gap: 0;
        padding: 32px 24px;
    }

    .sv-header__nav-link {
        font-size: 1.125rem;
        padding: 16px 0;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.sv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--sv-font-body);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    border: none;
    border-radius: var(--sv-radius);
    cursor: pointer;
    transition: all var(--sv-transition);
    padding: 12px 24px;
    text-decoration: none;
}

.sv-btn--lg {
    padding: 16px 32px;
    font-size: 0.9375rem;
}

.sv-btn--full { width: 100%; }

.sv-btn--primary {
    background: var(--sv-gold);
    color: var(--sv-navy);
}
.sv-btn--primary:hover {
    background: var(--sv-gold-soft);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(203, 161, 90, 0.3);
}

.sv-btn--outline {
    background: transparent;
    color: var(--sv-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.sv-btn--outline:hover {
    border-color: var(--sv-gold);
    color: var(--sv-gold);
}

.sv-btn--gold {
    background: var(--sv-gold);
    color: var(--sv-navy);
}
.sv-btn--gold:hover {
    background: var(--sv-gold-soft);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(203, 161, 90, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */

.sv-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--sv-navy);
}

.sv-hero__bg {
    position: absolute;
    inset: 0;
}

.sv-hero__bg picture,
.sv-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sv-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.sv-hero__img--active {
    opacity: 1;
}

.sv-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(8, 20, 39, 0.94), rgba(8, 20, 39, 0.60));
}

.sv-hero__content {
    position: relative;
    z-index: 2;
    padding: 160px 0 96px;
    max-width: 680px;
}

.sv-hero__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--sv-gold);
    margin-bottom: 20px;
}

.sv-hero__title {
    font-family: var(--sv-font-heading);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    color: var(--sv-white);
    line-height: 1.15;
    margin-bottom: 20px;
}

.sv-hero__subtitle {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 32px;
}

.sv-hero__ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.sv-hero__trust {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sv-hero__trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
}

.sv-hero__check {
    color: var(--sv-gold);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .sv-hero__content { padding: 120px 0 64px; }
    .sv-hero__overlay {
        background: linear-gradient(to top, rgba(8, 20, 39, 0.95) 30%, rgba(8, 20, 39, 0.60));
    }
    .sv-hero { align-items: flex-end; }
}

/* ═══════════════════════════════════════════════════════════════
   SECTIONS (shared)
   ═══════════════════════════════════════════════════════════════ */

.sv-section {
    padding: 96px 0;
}

.sv-section__header {
    text-align: center;
    max-width: var(--sv-max-width);
    margin: 0 auto 56px;
}

.sv-section__title {
    font-family: var(--sv-font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--sv-text);
    margin-bottom: 16px;
}

.sv-section__title--light { color: var(--sv-white); }

.sv-section__intro {
    font-size: 1.0625rem;
    color: var(--sv-text-muted);
    line-height: 1.7;
    max-width: 720px;
    margin: 0 auto;
}

.sv-section__intro--light { color: rgba(255, 255, 255, 0.65); }

@media (max-width: 768px) {
    .sv-section { padding: 64px 0; }
    .sv-section__header { margin-bottom: 40px; }
}

/* ═══════════════════════════════════════════════════════════════
   PRACTICE AREAS
   ═══════════════════════════════════════════════════════════════ */

.sv-practice {
    background: var(--sv-surface);
}

.sv-practice__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.sv-practice__card {
    background: var(--sv-white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: transform var(--sv-transition), box-shadow var(--sv-transition);
}

.sv-practice__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.sv-practice__card-img-wrap {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.sv-practice__card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sv-practice__card:hover .sv-practice__card-img {
    transform: scale(1.05);
}

.sv-practice__card-body {
    padding: 24px;
}

.sv-practice__card-title {
    font-family: var(--sv-font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--sv-navy);
}

.sv-practice__card-desc {
    font-size: 0.875rem;
    color: var(--sv-text-muted);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .sv-practice__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .sv-practice__grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   MACHINA BANNER
   ═══════════════════════════════════════════════════════════════ */

.sv-banner {
    padding: 96px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.sv-banner__inner {
    max-width: 720px;
}

.sv-banner__title {
    font-family: var(--sv-font-heading);
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: var(--sv-white);
    margin-bottom: 24px;
    line-height: 1.25;
}

.sv-banner__text {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 16px;
}

.sv-banner__text:last-of-type {
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .sv-banner { padding: 64px 0; background-attachment: scroll; }
}

/* ═══════════════════════════════════════════════════════════════
   ATTORNEYS
   ═══════════════════════════════════════════════════════════════ */

.sv-attorneys {
    background: var(--sv-white);
}

.sv-attorneys__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
    margin-bottom: 56px;
}

.sv-attorneys__card {
    display: flex;
    flex-direction: column;
}

.sv-attorneys__portrait-wrap {
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 24px;
}

.sv-attorneys__portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sv-attorneys__card:hover .sv-attorneys__portrait {
    transform: scale(1.03);
}

.sv-attorneys__name {
    font-family: var(--sv-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sv-navy);
    margin-bottom: 4px;
}

.sv-attorneys__role {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sv-gold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.sv-attorneys__bio {
    font-size: 0.9375rem;
    color: var(--sv-text-muted);
    line-height: 1.7;
    margin-bottom: 8px;
}

.sv-attorneys__focus {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--sv-border);
}

.sv-attorneys__focus-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sv-text-muted);
    margin-bottom: 10px;
}

.sv-attorneys__focus-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sv-attorneys__focus-list li {
    font-size: 0.875rem;
    color: var(--sv-text);
    padding-left: 16px;
    position: relative;
}

.sv-attorneys__focus-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background: var(--sv-gold);
    border-radius: 50%;
}

.sv-attorneys__office {
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.sv-attorneys__office-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .sv-attorneys__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ═══════════════════════════════════════════════════════════════
   RESULTS
   ═══════════════════════════════════════════════════════════════ */

.sv-results {
    background-size: cover;
    background-position: center;
}

.sv-results__list {
    max-width: var(--sv-max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sv-results__item {
    display: flex;
    gap: 24px;
    align-items: baseline;
    padding: 24px 0;
    border-bottom: 1px solid rgba(203, 161, 90, 0.2);
}

.sv-results__item:last-child {
    border-bottom: none;
}

.sv-results__number {
    font-family: var(--sv-font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--sv-gold);
    flex-shrink: 0;
    line-height: 1;
}

.sv-results__text {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

@media (max-width: 480px) {
    .sv-results__item { flex-direction: column; gap: 8px; }
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════ */

.sv-contact {
    background-size: cover;
    background-position: center;
}

.sv-contact__grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    align-items: start;
}

.sv-contact__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sv-form__group { display: flex; flex-direction: column; gap: 6px; }

.sv-form__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sv-form__req { color: var(--sv-gold); }

.sv-form__input {
    font-family: var(--sv-font-body);
    font-size: 0.9375rem;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--sv-radius);
    color: var(--sv-white);
    transition: border-color var(--sv-transition), background var(--sv-transition);
}

.sv-form__input:focus {
    outline: none;
    border-color: var(--sv-gold);
    background: rgba(255, 255, 255, 0.1);
}

.sv-form__input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.sv-form__textarea {
    resize: vertical;
    min-height: 120px;
}

.sv-form__group--checkbox {
    flex-direction: row;
}

.sv-form__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    cursor: pointer;
}

.sv-form__checkbox {
    margin-top: 3px;
    accent-color: var(--sv-gold);
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.sv-contact__feedback {
    font-size: 0.875rem;
    min-height: 1.5em;
}

.sv-contact__feedback--success { color: var(--sv-gold); }
.sv-contact__feedback--error { color: #e57373; }

.sv-contact__sidebar-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(203, 161, 90, 0.2);
    border-radius: 6px;
    padding: 32px;
}

.sv-contact__sidebar-title {
    font-family: var(--sv-font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--sv-white);
    margin-bottom: 12px;
}

.sv-contact__sidebar-body {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .sv-contact__grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

.sv-footer {
    padding: 80px 0 40px;
    background-size: cover;
    background-position: center;
    text-align: center;
}

.sv-footer__disclaimer {
    max-width: 720px;
    margin: 0 auto 48px;
}

.sv-footer__shield {
    margin-bottom: 24px;
}

.sv-footer__mark {
    height: 48px;
    width: auto;
    margin: 0 auto;
    opacity: 0.6;
}

.sv-footer__heading {
    font-family: var(--sv-font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--sv-gold);
    margin-bottom: 20px;
}

.sv-footer__text {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 12px;
}

.sv-footer__rule {
    border: none;
    border-top: 1px solid rgba(203, 161, 90, 0.2);
    margin: 28px 0;
}

.sv-footer__legal {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    margin-bottom: 8px;
}

.sv-footer__nav {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 24px;
}

.sv-footer__link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color var(--sv-transition);
}

.sv-footer__link:hover {
    color: var(--sv-gold);
}

.sv-footer__copy {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
}

.sv-footer__copy a {
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--sv-transition);
}

.sv-footer__copy a:hover {
    color: var(--sv-gold);
}

/* ═══════════════════════════════════════════════════════════════
   GENERIC / FALLBACK
   ═══════════════════════════════════════════════════════════════ */

.sv-generic {
    padding: 120px 0 80px;
    min-height: 60vh;
}

.sv-generic h1 {
    font-family: var(--sv-font-heading);
    font-size: 2rem;
    margin-bottom: 24px;
}

.entry-content p {
    margin-bottom: 16px;
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

.sv-fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.sv-fade-in--visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading state for form */
.sv-btn--loading {
    pointer-events: none;
    opacity: 0.7;
}

.sv-btn--loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: sv-spin 0.6s linear infinite;
    margin-left: 8px;
}

@keyframes sv-spin {
    to { transform: rotate(360deg); }
}
