/* ==========================================================================
   Magan & Magan — M&M Law Chambers
   Palette taken from the chambers mark: deep navy, burnished gold, ivory.
   ========================================================================== */

:root {
    --navy-900: #05152b;
    --navy-800: #0b2545;
    --navy-700: #133560;
    --navy-600: #1d4880;
    --navy-050: #eef2f8;

    --gold-700: #8c6a16;
    --gold-600: #a87c0a;
    --gold-500: #c9a227;
    --gold-400: #ddbb5c;
    --gold-300: #ecd79c;
    --gold-100: #f7eed6;

    --ivory: #fbf8f2;
    --paper: #ffffff;
    --ink: #16202e;
    --muted: #5c6b7f;
    --line: #e4e7ee;

    --gold-gradient: linear-gradient(135deg, #8c6a16 0%, #e7ce86 42%, #b8860b 78%, #8c6a16 100%);
    --navy-gradient: linear-gradient(160deg, #0b2545 0%, #05152b 55%, #0b2545 100%);

    --shadow-sm: 0 1px 2px rgba(11, 37, 69, .06), 0 2px 6px rgba(11, 37, 69, .05);
    --shadow-md: 0 8px 24px rgba(11, 37, 69, .08);
    --shadow-lg: 0 20px 50px rgba(11, 37, 69, .14);

    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --radius: 4px;
    --radius-lg: 8px;
    --container: 1180px;
    --section-y: clamp(3.5rem, 7vw, 6.5rem);
}

/* --------------------------------------------------------------- base ---- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--gold-600); }

h1, h2, h3, h4 {
    font-family: var(--serif);
    color: var(--navy-800);
    line-height: 1.18;
    letter-spacing: -0.01em;
    margin: 0 0 .6em;
    font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25rem; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

:focus-visible {
    outline: 2px solid var(--gold-500);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--navy-800);
    color: #fff;
    padding: .75rem 1.25rem;
    z-index: 999;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------------------------------------------------------- utilities ---- */

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

.section { padding-block: var(--section-y); }
.section--ivory { background: var(--ivory); }
.section--navy { background: var(--navy-gradient); color: #d7e0ec; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.text-center { text-align: center; }
.muted { color: var(--muted); }
.gold { color: var(--gold-600); }

.rule-gold {
    width: 58px;
    height: 3px;
    border: 0;
    margin: 0 0 1.35rem;
    background: var(--gold-gradient);
}
.text-center .rule-gold { margin-inline: auto; }

/* Gold hairline used to separate navy blocks */
.hairline { height: 2px; background: var(--gold-gradient); opacity: .85; }

/* ------------------------------------------------------------ buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .85rem 1.6rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn .icon { width: 17px; height: 17px; }

.btn--gold {
    background: var(--gold-gradient);
    color: var(--navy-900);
    box-shadow: 0 6px 18px rgba(168, 124, 10, .28);
}
.btn--gold:hover {
    color: var(--navy-900);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(168, 124, 10, .38);
}

.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { background: var(--navy-700); color: #fff; transform: translateY(-2px); }

.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; background: transparent; }
.btn--ghost:hover { border-color: var(--gold-400); color: var(--gold-300); background: rgba(255, 255, 255, .05); }

.btn--outline { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn--outline:hover { background: var(--navy-800); color: #fff; }

.btn--sm { padding: .6rem 1.1rem; font-size: .74rem; }
.btn--block { width: 100%; }

.link-more {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold-600);
}
.link-more .icon { width: 16px; height: 16px; transition: transform .18s ease; }
.link-more:hover .icon { transform: translateX(4px); }

/* ------------------------------------------------------------- topbar ---- */

.topbar {
    background: var(--navy-900);
    color: #adbdd2;
    font-size: .8rem;
}
.topbar .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    min-height: 42px;
}
.topbar__list { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; }
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; color: #adbdd2; }
.topbar__item .icon { width: 15px; height: 15px; color: var(--gold-400); }
.topbar__item:hover { color: var(--gold-300); }
.topbar__social { display: flex; gap: .65rem; }
.topbar__social a {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(236, 215, 156, .3);
    border-radius: 50%;
    color: var(--gold-300);
}
.topbar__social a .icon { width: 13px; height: 13px; }
.topbar__social a:hover { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-500); }

/* ------------------------------------------------------------- header ---- */

.header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 82px;
}

.brand { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }
.brand img { height: 52px; width: auto; }
.brand__text { display: none; }

.nav { display: flex; align-items: center; gap: .1rem; flex-wrap: nowrap; }

.nav__link {
    --nav-pad: .6rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .6rem var(--nav-pad);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--navy-800);
    border-radius: var(--radius);
}
.nav__link .icon { width: 14px; height: 14px; }
.nav__link::after {
    content: "";
    position: absolute;
    left: var(--nav-pad);
    right: var(--nav-pad);
    bottom: .3rem;
    height: 2px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--navy-800); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__item { position: relative; }
.nav__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 290px;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold-500);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: .5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav__dropdown a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem .7rem;
    border-radius: var(--radius);
    font-size: .88rem;
    color: var(--navy-800);
}
.nav__dropdown a .icon { width: 17px; height: 17px; color: var(--gold-600); flex-shrink: 0; }
.nav__dropdown a:hover { background: var(--navy-050); color: var(--navy-800); }
.nav__dropdown-all {
    margin-top: .35rem;
    border-top: 1px solid var(--line);
    padding-top: .5rem;
    font-weight: 600;
    color: var(--gold-600) !important;
}

.header__cta { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .5rem;
    color: var(--navy-800);
    cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }

/* Mobile navigation panel */
.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    background: #fff;
    max-height: calc(100vh - 82px);
    overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
    display: block;
    padding: .85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--navy-800);
}
.mobile-nav details summary {
    list-style: none;
    cursor: pointer;
    padding: .85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--navy-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-nav details summary::-webkit-details-marker { display: none; }
.mobile-nav details a {
    padding-left: 1rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    color: var(--muted);
}
.mobile-nav__cta { padding: 1.1rem 0 1.4rem; display: grid; gap: .6rem; }

/* --------------------------------------------------------------- hero ---- */

.hero {
    position: relative;
    background: var(--navy-gradient);
    color: #cfdaea;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 420px at 78% 12%, rgba(201, 162, 39, .20), transparent 62%),
        radial-gradient(700px 340px at 8% 88%, rgba(29, 72, 128, .5), transparent 60%);
}
.hero::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -80px;
    width: 520px;
    height: 520px;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: .07;
    pointer-events: none;
    /* Scales-of-justice watermark, echoing the logo */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ecd79c' stroke-width='.6'%3E%3Cpath d='M12 3v18M7.5 21h9M4 7h16M6.5 7 3 14a3.5 3.5 0 0 0 7 0L6.5 7ZM17.5 7 14 14a3.5 3.5 0 0 0 7 0L17.5 7ZM12 5.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z'/%3E%3C/svg%3E");
}
.hero__inner {
    position: relative;
    z-index: 1;
    padding-block: clamp(4rem, 9vw, 7.5rem);
    max-width: 780px;
}
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold-300);
    margin-bottom: 1.4rem;
}
.hero__eyebrow::before {
    content: "";
    width: 42px;
    height: 1px;
    background: var(--gold-400);
}
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero h1 em {
    font-style: normal;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero__lead {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    max-width: 40em;
    color: #c3d0e2;
    margin-bottom: 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero__badges {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(236, 215, 156, .22);
    background: rgba(5, 21, 43, .45);
}
.hero__badges .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1px;
    background: rgba(236, 215, 156, .14);
}
.badge-cell {
    background: var(--navy-900);
    padding: 1.15rem 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: .7rem;
}
.badge-cell .icon { width: 20px; height: 20px; color: var(--gold-400); flex-shrink: 0; margin-top: 2px; }
.badge-cell strong { display: block; color: #fff; font-size: .88rem; font-weight: 600; line-height: 1.35; }
.badge-cell span { font-size: .78rem; color: #93a6bf; }

/* -------------------------------------------------------- page banner ---- */

.page-banner {
    position: relative;
    background: var(--navy-gradient);
    color: #c3d0e2;
    padding-block: clamp(2.75rem, 6vw, 4.5rem);
    overflow: hidden;
}
.page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(700px 300px at 82% 0%, rgba(201, 162, 39, .18), transparent 65%);
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner h1 { color: #fff; margin-bottom: .35em; }
.page-banner p { max-width: 46em; color: #b6c5da; }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #8ea3c0;
}
.breadcrumb a { color: var(--gold-300); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span[aria-hidden] { color: rgba(236, 215, 156, .5); }

/* ------------------------------------------------------ section header ---- */

.section-head { max-width: 720px; margin-bottom: 2.75rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head__eyebrow {
    display: block;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold-600);
    margin-bottom: .85rem;
}
.section--navy .section-head__eyebrow { color: var(--gold-400); }
.section-head p { color: var(--muted); font-size: 1.02rem; }
.section--navy .section-head p { color: #b6c5da; }

.section-head__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    max-width: none;
}

/* --------------------------------------------------------------- card ---- */

.card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.9rem 1.6rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card::before {
    content: "";
    position: absolute;
    inset: -1px -1px auto -1px;
    height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: var(--gold-gradient);
    opacity: 0;
    transition: opacity .22s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #d6dce7; }
.card:hover::before { opacity: 1; }

.card__icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 1.25rem;
    border-radius: var(--radius);
    background: var(--navy-800);
    color: var(--gold-400);
    box-shadow: inset 0 0 0 1px rgba(236, 215, 156, .35);
    transition: background .22s ease, color .22s ease;
}
.card__icon .icon { width: 27px; height: 27px; }
.card:hover .card__icon { background: var(--gold-gradient); color: var(--navy-900); }

.card h3 { margin-bottom: .5rem; font-size: 1.3rem; }
.card p { color: var(--muted); font-size: .94rem; }
.card__foot { margin-top: auto; padding-top: 1.25rem; }

.card-link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
}

/* ---------------------------------------------------------- advocates ---- */

.advocate-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .22s ease, box-shadow .22s ease;
}
.advocate-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.advocate-card__media {
    position: relative;
    aspect-ratio: 4 / 3.4;
    background: var(--navy-gradient);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.advocate-card__media img { width: 100%; height: 100%; object-fit: cover; }
.advocate-card__monogram {
    font-family: var(--serif);
    font-size: 3.2rem;
    font-weight: 600;
    letter-spacing: .04em;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.advocate-card__body { padding: 1.35rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.advocate-card__body h3 { margin-bottom: .15rem; font-size: 1.25rem; }
.advocate-card__role {
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-600);
    margin-bottom: .7rem;
}
.advocate-card__meta {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .87rem;
    color: var(--muted);
    margin-bottom: .4rem;
}
.advocate-card__meta .icon { width: 16px; height: 16px; color: var(--gold-600); flex-shrink: 0; margin-top: 4px; }
.advocate-card__foot { margin-top: auto; padding-top: 1rem; display: flex; gap: .75rem; align-items: center; }

.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.chip {
    display: inline-block;
    padding: .22rem .6rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--ivory);
    font-size: .74rem;
    color: var(--muted);
}

/* ------------------------------------------------------------- pillar ---- */

.pillar { display: flex; gap: 1.15rem; }
.pillar__num {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(236, 215, 156, .4);
    border-radius: 50%;
    font-family: var(--serif);
    font-size: 1.35rem;
    color: var(--gold-400);
}
.pillar h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.pillar p { font-size: .93rem; color: #b6c5da; }

/* -------------------------------------------------------------- stats ---- */

.stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.stat {
    background: #fff;
    padding: 1.75rem 1.25rem;
    text-align: center;
}
.stat__value {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 2.85rem);
    font-weight: 600;
    line-height: 1;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat__label {
    margin-top: .5rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

/* --------------------------------------------------------------- about --- */

.split {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.split--reverse > *:first-child { order: 2; }

.about-figure { position: relative; }
.about-figure img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.about-figure__placeholder {
    aspect-ratio: 4 / 3.2;
    border-radius: var(--radius-lg);
    background: var(--navy-gradient);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-lg);
}
.about-figure__placeholder .icon { width: 130px; height: 130px; color: rgba(236, 215, 156, .35); }
.about-figure::after {
    content: "";
    position: absolute;
    inset: 18px -18px -18px 18px;
    border: 1px solid var(--gold-400);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.tick-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .75rem; }
.tick-list li { display: flex; align-items: flex-start; gap: .7rem; font-size: .95rem; }
.tick-list li .icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--gold-600);
    stroke-width: 2.2;
}
.section--navy .tick-list li { color: #c3d0e2; }
.section--navy .tick-list li .icon { color: var(--gold-400); }

/* ------------------------------------------------------------ article ---- */

.article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease;
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.article-card__media {
    aspect-ratio: 16 / 9;
    background: var(--navy-gradient);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.article-card__media img { width: 100%; height: 100%; object-fit: cover; }
.article-card__media .icon { width: 54px; height: 54px; color: rgba(236, 215, 156, .4); }
.article-card__body { padding: 1.35rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.article-card h3 { font-size: 1.18rem; margin-bottom: .55rem; }
.article-card p { font-size: .92rem; color: var(--muted); }
.article-card__foot {
    margin-top: auto;
    padding-top: 1.1rem;
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    font-size: .78rem;
    color: var(--muted);
}
.article-card__foot span { display: inline-flex; align-items: center; gap: .35rem; }
.article-card__foot .icon { width: 14px; height: 14px; color: var(--gold-600); }

.tag {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: .25rem .65rem;
    margin-bottom: .8rem;
    border-radius: 999px;
    background: var(--gold-100);
    color: var(--gold-700);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

/* -------------------------------------------------------- testimonials --- */

.quote-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2.4rem 1.7rem 1.7rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.quote-card__mark {
    position: absolute;
    top: 1.1rem;
    right: 1.3rem;
    width: 40px;
    height: 40px;
    color: var(--gold-300);
}
.quote-card__stars { color: var(--gold-500); letter-spacing: .12em; margin-bottom: .9rem; font-size: .9rem; }
.quote-card p { font-family: var(--serif); font-size: 1.12rem; line-height: 1.6; color: var(--navy-800); }
.quote-card__by { margin-top: auto; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.quote-card__by strong { display: block; font-size: .95rem; color: var(--navy-800); }
.quote-card__by span { font-size: .82rem; color: var(--muted); }

/* ----------------------------------------------------------------- faq --- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 1.15rem 2.5rem 1.15rem 0;
    position: relative;
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy-800);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    position: absolute;
    right: .35rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--sans);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--gold-600);
}
.faq details[open] summary::after { content: "–"; }
.faq__answer { padding: 0 2.5rem 1.35rem 0; color: var(--muted); font-size: .95rem; }

/* ------------------------------------------------------------ contact ---- */

.contact-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.contact-panel {
    background: var(--navy-gradient);
    color: #c3d0e2;
    border-radius: var(--radius-lg);
    padding: 2.2rem 1.9rem;
    box-shadow: var(--shadow-lg);
}
.contact-panel h3 { color: #fff; }
.contact-panel__item {
    display: flex;
    gap: .9rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.contact-panel__item:last-of-type { border-bottom: 0; }
.contact-panel__item .icon { width: 20px; height: 20px; color: var(--gold-400); flex-shrink: 0; margin-top: 3px; }
.contact-panel__item strong {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-300);
    margin-bottom: .3rem;
}
.contact-panel__item a { color: #dbe4f0; }
.contact-panel__item a:hover { color: var(--gold-300); }

.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.4rem);
    box-shadow: var(--shadow-sm);
}

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--navy-800);
}
.field label .req { color: #a5322b; }
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: .78rem .9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    font-family: var(--sans);
    font-size: .95rem;
    color: var(--ink);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, .18);
}
.field .error { font-size: .8rem; color: #a5322b; }
.field input.is-invalid, .field textarea.is-invalid, .field select.is-invalid { border-color: #a5322b; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: 1rem 1.1rem;
    margin-bottom: 1.4rem;
    border-radius: var(--radius);
    font-size: .92rem;
}
.alert .icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.alert--success { background: #eaf5f0; border: 1px solid #bfe0d0; color: #1f5c45; }
.alert--error { background: #fdeeed; border: 1px solid #f0c8c5; color: #8e2b25; }

.map-embed {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    line-height: 0;
}
.map-embed iframe { width: 100%; height: 420px; border: 0; }

/* ----------------------------------------------------------- cta band ---- */

.cta-band {
    position: relative;
    background: var(--navy-gradient);
    color: #c3d0e2;
    overflow: hidden;
}
.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 300px at 15% 50%, rgba(201, 162, 39, .2), transparent 60%);
}
.cta-band .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.75rem;
    padding-block: clamp(2.5rem, 5vw, 3.75rem);
}
.cta-band h2 { color: #fff; margin-bottom: .35rem; }
.cta-band p { color: #b6c5da; margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* --------------------------------------------------------------- prose --- */

.prose { font-size: 1.02rem; color: #26374d; }
.prose h2 { margin-top: 2.2rem; font-size: 1.8rem; }
.prose h3 { margin-top: 1.8rem; font-size: 1.35rem; }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li { margin-bottom: .5rem; }
.prose blockquote {
    margin: 1.75rem 0;
    padding: .3rem 0 .3rem 1.4rem;
    border-left: 3px solid var(--gold-500);
    font-family: var(--serif);
    font-size: 1.2rem;
    color: var(--navy-800);
}
.prose a { color: var(--gold-700); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius-lg); margin: 1.5rem 0; }

/* -------------------------------------------------------------- aside ---- */

.with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: clamp(2rem, 4vw, 3.25rem);
    align-items: start;
}
.sidebar { display: grid; gap: 1.25rem; position: sticky; top: 100px; }
.sidebar-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.4rem;
}
.sidebar-card h4 {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-600);
    margin-bottom: 1rem;
    font-family: var(--sans);
}
.sidebar-card--navy { background: var(--navy-gradient); border-color: transparent; color: #c3d0e2; }
.sidebar-card--navy h4 { color: var(--gold-300); }
.sidebar-card--navy p { color: #b6c5da; font-size: .92rem; }

.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li + li { border-top: 1px solid var(--line); }
.side-list a,
.side-list > li > span {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .65rem 0;
    font-size: .92rem;
    color: var(--navy-800);
}
.side-list > li > span { color: var(--muted); }
.side-list a .icon,
.side-list > li > span .icon { width: 17px; height: 17px; color: var(--gold-600); flex-shrink: 0; }
.side-list a:hover { color: var(--gold-600); }
.side-list a[aria-current="page"] { color: var(--gold-700); font-weight: 600; }

/* --------------------------------------------------------- pagination ---- */

.pagination { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 2.75rem; list-style: none; padding: 0; }
.pagination a, .pagination span {
    display: grid;
    place-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 .7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: .9rem;
    color: var(--navy-800);
    background: #fff;
}
.pagination a:hover { border-color: var(--gold-500); color: var(--gold-700); }
.pagination .active span { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.pagination .disabled span { color: #b6bfcd; }

/* ------------------------------------------------------------- filters --- */

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.3rem;
    margin-bottom: 2.25rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}
.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-chip {
    padding: .42rem .95rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .82rem;
    color: var(--navy-800);
    background: #fff;
}
.filter-chip:hover { border-color: var(--gold-500); color: var(--gold-700); }
.filter-chip.is-active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.search-inline { display: flex; gap: .5rem; }
.search-inline input {
    padding: .55rem .85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: .9rem;
    min-width: 210px;
}
.search-inline input:focus { outline: none; border-color: var(--gold-500); }

/* -------------------------------------------------------------- empty ---- */

.empty-state {
    text-align: center;
    padding: 4rem 1.5rem;
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
}
.empty-state .icon { width: 46px; height: 46px; color: var(--gold-400); margin: 0 auto 1rem; }
.empty-state p { color: var(--muted); }

/* ------------------------------------------------------------- footer ---- */

.footer { background: var(--navy-900); color: #93a6bf; font-size: .92rem; }
.footer__top { border-top: 3px solid transparent; border-image: var(--gold-gradient) 1; }
.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
    gap: 2.5rem;
    padding-block: clamp(2.75rem, 6vw, 4rem);
}
.footer h4 {
    color: #fff;
    font-family: var(--sans);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: .7rem;
}
.footer h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 2px;
    background: var(--gold-gradient);
}
.footer a { color: #93a6bf; }
.footer a:hover { color: var(--gold-300); }
.footer__brand img { height: 62px; width: auto; background: #fff; padding: .5rem .7rem; border-radius: var(--radius); }
.footer__brand p { margin-top: 1.1rem; font-size: .9rem; line-height: 1.75; }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer__list a { display: inline-flex; align-items: center; gap: .5rem; }
.footer__list a::before { content: "›"; color: var(--gold-500); }
.footer__contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.footer__contact li { display: flex; gap: .65rem; }
.footer__contact .icon { width: 17px; height: 17px; color: var(--gold-400); flex-shrink: 0; margin-top: 4px; }
.footer__social { display: flex; gap: .6rem; margin-top: 1.4rem; }
.footer__social a {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(236, 215, 156, .28);
    border-radius: 50%;
    color: var(--gold-300);
}
.footer__social a .icon { width: 16px; height: 16px; }
.footer__social a:hover { background: var(--gold-gradient); color: var(--navy-900); border-color: transparent; }

.footer__disclaimer {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-block: 1.4rem;
    font-size: .8rem;
    line-height: 1.7;
    color: #7d8ea6;
}
.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-block: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
    justify-content: space-between;
    font-size: .84rem;
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ---------------------------------------------------------- whatsapp ----- */

.float-whatsapp {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 70;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 8px 22px rgba(37, 211, 102, .4);
    transition: transform .2s ease;
}
.float-whatsapp:hover { transform: scale(1.07); color: #fff; }
.float-whatsapp .icon { width: 28px; height: 28px; }

/* --------------------------------------------------------- responsive ---- */

@media (max-width: 1080px) {
    .header .container { gap: 1rem; }
    .nav__link { --nav-pad: .45rem; font-size: .76rem; letter-spacing: .02em; }
    .contact-grid { grid-template-columns: 1fr; }
    .with-sidebar { grid-template-columns: 1fr; }
    .sidebar { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
    .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    .nav, .header__cta { display: none; }
    .nav-toggle { display: inline-flex; }
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split { grid-template-columns: 1fr; }
    .split--reverse > *:first-child { order: 0; }
    .about-figure::after { display: none; }
    .topbar__list { gap: 1rem; }
}

@media (max-width: 640px) {
    .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
    .section-head__row { flex-direction: column; align-items: flex-start; }
    .topbar__social { display: none; }
    .hero::after { display: none; }
    .brand img { height: 42px; }
    .header .container { min-height: 68px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
    .topbar, .header, .footer, .float-whatsapp, .cta-band { display: none; }
    body { color: #000; }
}
