/* HouseVin — design system
   Brand blue, system typography, card UI. Motion uses transform/opacity only. */

:root {
    --brand: #2196f3;
    --brand-strong: #1769c2;
    --brand-deep: #0f4f99;
    --brand-tint: #eaf4fe;
    --brand-tint-2: #f4f9ff;
    --ink: #1d1d1f;
    --ink-2: #424245;
    --muted: #6e6e73;
    --subtle: #86868b;
    --line: #e5e5ea;
    --line-soft: #f0f0f3;
    --surface: #f5f5f7;
    --white: #fff;
    --success: #1f8f4e;

    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --pill: 999px;

    --shadow-1: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
    --shadow-2: 0 2px 6px rgba(16, 24, 40, .04), 0 10px 28px rgba(16, 24, 40, .08);
    --shadow-3: 0 6px 14px rgba(16, 24, 40, .06), 0 22px 48px rgba(16, 24, 40, .12);

    --ease: cubic-bezier(.2, .7, .2, 1);
    --fast: 160ms;
    --med: 320ms;
    --slow: 600ms;

    --container: 1200px;
    --gutter: clamp(20px, 4vw, 40px);
    --header-h: 64px;
    --focus: 0 0 0 3px #fff, 0 0 0 5px var(--brand-strong);
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.container--narrow { max-width: 780px; }

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

.skip-link {
    position: absolute;
    left: 16px; top: -100px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--ink);
    color: #fff;
    border-radius: var(--pill);
    font-weight: 600;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ---------- Typography ---------- */

.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--brand-strong);
    margin-bottom: 10px;
}

.display {
    font-size: clamp(2.4rem, 1.2rem + 4.6vw, 4.5rem);
    line-height: 1.04;
    font-weight: 700;
    letter-spacing: -.035em;
}

.title-1 {
    font-size: clamp(2rem, 1.2rem + 2.8vw, 3.25rem);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -.03em;
}

.title-2 {
    font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -.025em;
}

.title-3 { font-size: 1.25rem; line-height: 1.25; font-weight: 650; letter-spacing: -.012em; }

.lead {
    font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem);
    line-height: 1.5;
    color: var(--muted);
    letter-spacing: -.005em;
}

.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: var(--pill);
    border: 1px solid transparent;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -.005em;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: transform var(--fast) var(--ease), background-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), color var(--fast) var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { background: var(--brand-strong); color: #fff; }
.btn--primary:hover { background: var(--brand-deep); box-shadow: 0 6px 18px rgba(23, 105, 194, .28); }

.btn--secondary { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn--secondary:hover { border-color: #c9c9cf; background: var(--surface); }

.btn--ghost { background: transparent; color: var(--brand-strong); padding-inline: 12px; }
.btn--ghost:hover { background: var(--brand-tint); }

.btn--light { background: #fff; color: var(--brand-deep); }
.btn--light:hover { background: #f2f7ff; }

.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--fast) var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--med) var(--ease), box-shadow var(--med) var(--ease), background-color var(--med) var(--ease);
}
.site-header.is-scrolled {
    background: rgba(255, 255, 255, .94);
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px rgba(16, 24, 40, .06);
}

.header-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; flex: none; min-height: 44px; border-radius: 8px; }
.brand img { width: 120px; height: 36px; }

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: var(--pill);
    border: 0;
    background: none;
    color: var(--ink-2);
    font-size: 15px;
    font-weight: 500;
    transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.nav-link:hover { background: var(--surface); color: var(--ink); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--brand-strong); }
.nav-link svg { width: 14px; height: 14px; transition: transform var(--fast) var(--ease); }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }

.nav-item--dropdown { position: relative; }
.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    width: min(560px, 90vw);
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-3);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -6px);
    transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease), visibility 0s linear var(--fast);
}
.dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease), visibility 0s;
}
.dropdown h2 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--subtle);
    margin-bottom: 8px;
}
.dropdown a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    margin-inline: -10px;
    border-radius: var(--radius-sm);
    color: var(--ink);
    font-size: 15px;
}
.dropdown a:hover { background: var(--surface); text-decoration: none; }
.dropdown a span { color: var(--subtle); font-size: 13px; font-variant-numeric: tabular-nums; }
.dropdown .dropdown-all { color: var(--brand-strong); font-weight: 600; margin-top: 6px; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--pill);
    border: 0;
    background: transparent;
    color: var(--ink-2);
    transition: background-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.icon-btn:hover { background: var(--surface); color: var(--ink); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 20px; height: 20px; }

.menu-toggle { display: none; }
.menu-toggle .bars { position: relative; width: 20px; height: 14px; }
.menu-toggle .bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform var(--med) var(--ease), opacity var(--fast) var(--ease), top var(--med) var(--ease);
}
.menu-toggle .bars span:nth-child(1) { top: 0; }
.menu-toggle .bars span:nth-child(2) { top: 6px; }
.menu-toggle .bars span:nth-child(3) { top: 12px; }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.mobile-panel { display: none; }

@media (max-width: 899px) {
    .nav { display: none; }
    .header-actions { margin-left: auto; }
    .menu-toggle { display: inline-grid; }

    .mobile-panel {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows var(--med) var(--ease);
        border-top: 1px solid transparent;
    }
    .mobile-panel > div { overflow: hidden; }
    .mobile-panel.is-open { grid-template-rows: 1fr; border-top-color: var(--line); }
    .mobile-panel-inner {
        padding: 12px var(--gutter) 28px;
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity var(--med) var(--ease), transform var(--med) var(--ease);
    }
    .mobile-panel.is-open .mobile-panel-inner { opacity: 1; transform: none; }
    .mobile-nav a {
        display: flex;
        align-items: center;
        min-height: 52px;
        border-bottom: 1px solid var(--line-soft);
        color: var(--ink);
        font-size: 20px;
        font-weight: 600;
        letter-spacing: -.015em;
    }
    .mobile-nav a:hover { text-decoration: none; color: var(--brand-strong); }
    .mobile-panel h2 {
        margin: 24px 0 10px;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: .06em;
        text-transform: uppercase;
        color: var(--subtle);
    }
}

/* ---------- Breadcrumbs ---------- */

.breadcrumbs { padding-top: 20px; }
.breadcrumbs ol {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    font-size: 14px;
    color: var(--muted);
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.breadcrumbs li + li::before {
    content: "";
    width: 6px; height: 6px;
    border-right: 1.5px solid #b7b7bd;
    border-top: 1.5px solid #b7b7bd;
    transform: rotate(45deg);
    margin-right: 4px;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand-strong); }
.breadcrumbs [aria-current] {
    color: var(--ink-2);
    max-width: 52ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(56px, 8vw, 112px); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section--surface { background: var(--surface); }

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 32px;
    margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head > div { max-width: 640px; }
.section-head .lead { margin-top: 10px; }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(56px, 9vw, 128px) clamp(48px, 7vw, 96px);
    background:
        radial-gradient(60% 70% at 15% 0%, rgba(33, 150, 243, .14), transparent 70%),
        radial-gradient(50% 60% at 95% 10%, rgba(33, 150, 243, .10), transparent 70%),
        linear-gradient(180deg, var(--brand-tint-2) 0%, #fff 100%);
    text-align: center;
}
.hero .display { max-width: 15ch; margin-inline: auto; }
.hero .display em { font-style: normal; color: var(--brand-strong); }
.hero .lead { max-width: 36em; margin: 20px auto 0; }

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 8px;
    max-width: 920px;
    margin: clamp(28px, 4vw, 44px) auto 0;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-2);
    text-align: left;
}
.field { position: relative; display: flex; align-items: center; min-width: 0; }
.field svg {
    position: absolute;
    left: 16px;
    width: 18px; height: 18px;
    color: var(--subtle);
    pointer-events: none;
}
.field input, .field select {
    width: 100%;
    min-height: 52px;
    padding: 0 16px 0 44px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: var(--surface);
    font-size: 16px;
    color: var(--ink);
    transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
    -webkit-appearance: none;
    appearance: none;
}
.field select {
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    text-overflow: ellipsis;
}
.field input::placeholder { color: var(--subtle); }
.field input:hover, .field select:hover { background-color: #efeff2; }
.field input:focus, .field select:focus {
    outline: none;
    background-color: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(33, 150, 243, .16);
}
.search-panel .btn { min-height: 52px; padding-inline: 28px; border-radius: 14px; }

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 28px;
    margin-top: 28px;
    font-size: 15px;
    color: var(--muted);
}
.hero-stats strong { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }

@media (max-width: 899px) {
    .search-panel { grid-template-columns: 1fr 1fr; }
    .search-panel .field--keyword { grid-column: 1 / -1; }
    .search-panel .btn { grid-column: 1 / -1; }
}
@media (max-width: 559px) {
    .search-panel { grid-template-columns: 1fr; border-radius: 20px; }
}

/* ---------- Grids ---------- */

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--categories { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
@media (max-width: 899px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .grid--3 { grid-template-columns: 1fr; } }

/* ---------- Category tiles ---------- */

.tile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 84px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    box-shadow: var(--shadow-1);
    transition: transform var(--med) var(--ease), box-shadow var(--med) var(--ease), border-color var(--med) var(--ease);
}
.tile:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: #d6e7fb; }
.tile:active { transform: translateY(-1px) scale(.99); }
.tile-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--brand-tint);
    color: var(--brand-strong);
    transition: background-color var(--med) var(--ease), color var(--med) var(--ease);
}
.tile:hover .tile-icon { background: var(--brand-strong); color: #fff; }
.tile-icon svg { width: 24px; height: 24px; }
.tile-body { min-width: 0; }
.tile-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.01em;
    overflow-wrap: anywhere;
}
.tile-meta { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tile-arrow {
    margin-left: auto;
    flex: none;
    width: 18px; height: 18px;
    color: #c2c2c8;
    transition: transform var(--med) var(--ease), color var(--med) var(--ease);
}
.tile:hover .tile-arrow { transform: translateX(3px); color: var(--brand-strong); }

/* ---------- Chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: var(--pill);
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 15px;
    transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.chip:hover { text-decoration: none; border-color: var(--brand); color: var(--brand-strong); background: var(--brand-tint-2); }
.chip:active { transform: scale(.97); }
.chip span { color: var(--subtle); font-size: 13px; font-variant-numeric: tabular-nums; }
.chip--static { cursor: default; }
.chip--static:hover { border-color: var(--line); color: var(--ink-2); background: #fff; }

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: var(--pill);
    background: var(--brand-tint);
    color: var(--brand-deep);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .01em;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

details.more { margin-top: 28px; }
details.more summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: var(--pill);
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    transition: background-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
details.more summary::-webkit-details-marker { display: none; }
details.more summary:hover { background: var(--surface); }
details.more summary:active { transform: scale(.98); }
details.more summary svg { width: 16px; height: 16px; transition: transform var(--med) var(--ease); }
details.more[open] summary svg { transform: rotate(180deg); }
details.more .chips { margin-top: 20px; }

/* ---------- Cards ---------- */

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-1);
    transition: transform var(--med) var(--ease), box-shadow var(--med) var(--ease), border-color var(--med) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: transparent; }
.card:has(.card-link:active) { transform: translateY(-2px) scale(.995); }
.card:focus-within { box-shadow: var(--shadow-3), var(--focus); }

.card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #f1f5fa, #e8eef6);
    overflow: hidden;
}
.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--slow) var(--ease);
}
.card:hover .card-media img { transform: scale(1.04); }
.card-media .placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #8fb4dc;
    background:
        radial-gradient(70% 90% at 20% 10%, rgba(33, 150, 243, .12), transparent 70%),
        linear-gradient(135deg, #f3f8fe, #e9f1fb);
}
.card-media .placeholder svg { width: 40px; height: 40px; stroke-width: 1.5; transition: transform var(--slow) var(--ease); }
.card:hover .card-media .placeholder svg { transform: scale(1.08); }
.card-media .badge {
    position: absolute;
    left: 12px;
    top: 12px;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    max-width: calc(100% - 24px);
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    padding: 18px 20px 20px;
}
.card-title {
    font-size: 18px;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -.015em;
    overflow-wrap: anywhere;
}
.card-link { color: var(--ink); }
.card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card-link:hover { text-decoration: none; }
.card-link:focus-visible { box-shadow: none; }
.card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--muted);
    min-width: 0;
}
.card-meta svg { width: 15px; height: 15px; flex: none; color: var(--subtle); }
.card-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-foot {
    margin-top: auto;
    padding-top: 6px;
    font-size: 13px;
    color: var(--subtle);
}

/* ---------- Page header (archives, listings) ---------- */

.page-head { padding-block: clamp(24px, 4vw, 48px) clamp(28px, 4vw, 48px); }
.page-head .title-1 { max-width: 22ch; overflow-wrap: anywhere; }
.page-head--wide .title-1 { max-width: none; }

.answer {
    max-width: 760px;
    margin-top: 18px;
    font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
    line-height: 1.55;
    color: var(--ink-2);
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    margin-top: 18px;
    font-size: 14px;
    color: var(--muted);
}
.meta-row > * { display: inline-flex; align-items: center; gap: 6px; }
.meta-row svg { width: 16px; height: 16px; color: var(--subtle); }

.subnav { margin-top: 28px; }
.subnav h2 { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }

/* ---------- Pagination ---------- */

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: clamp(40px, 5vw, 64px);
}
.pagination a, .pagination span {
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: var(--pill);
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
    transition: background-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.pagination a:hover { background: var(--surface); text-decoration: none; }
.pagination a:active { transform: scale(.95); }
.pagination [aria-current="page"] { background: var(--ink); color: #fff; }
.pagination .gap { min-width: 24px; padding: 0; color: var(--subtle); }
.pagination .step { border: 1px solid var(--line); }
.pagination svg { width: 18px; height: 18px; }

/* ---------- Empty states ---------- */

.empty {
    padding: clamp(40px, 6vw, 72px) 24px;
    text-align: center;
    background: var(--surface);
    border-radius: var(--radius-lg);
}
.empty-icon {
    display: inline-grid;
    place-items: center;
    width: 64px; height: 64px;
    margin-bottom: 18px;
    border-radius: 20px;
    background: #fff;
    color: var(--brand-strong);
    box-shadow: var(--shadow-1);
}
.empty-icon svg { width: 28px; height: 28px; }
.empty .lead { max-width: 30em; margin: 10px auto 0; }
.empty .chips { justify-content: center; margin-top: 24px; }

/* ---------- Listing detail ---------- */

.detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
    padding-bottom: clamp(48px, 7vw, 96px);
}
@media (max-width: 959px) { .detail { grid-template-columns: 1fr; } }

.detail-media {
    margin-bottom: 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    aspect-ratio: 16 / 10;
}
.detail-media img { width: 100%; height: 100%; object-fit: cover; }

.facts {
    padding: 22px 24px;
    margin-bottom: 32px;
    background: var(--brand-tint-2);
    border: 1px solid #dcebfb;
    border-radius: var(--radius);
}
.facts h2 { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-strong); margin-bottom: 8px; }
.facts p { font-size: 17px; line-height: 1.55; color: var(--ink); }
.facts dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 16px;
    margin-top: 14px;
    font-size: 15px;
}
.facts dt { color: var(--muted); }
.facts dd { color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 479px) {
    .facts dl { grid-template-columns: 1fr; gap: 0; }
    .facts dd { margin-bottom: 8px; }
}

.aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
@media (max-width: 959px) { .aside { position: static; } }

.panel {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2);
}
.panel h2 { font-size: 20px; font-weight: 700; letter-spacing: -.015em; margin-bottom: 16px; }
.panel .btn + .btn { margin-top: 10px; }
.contact-list { margin-top: 20px; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 15px; }
.contact-list svg { width: 20px; height: 20px; color: var(--subtle); margin-top: 2px; }
.contact-list .label { display: block; font-size: 13px; color: var(--muted); }
.contact-list .value { color: var(--ink); overflow-wrap: anywhere; }
.contact-list a.value { color: var(--brand-strong); }

.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours th, .hours td { padding: 6px 0; text-align: left; border-bottom: 1px solid var(--line-soft); font-weight: 400; }
.hours td { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hours th { color: var(--muted); }

.socials { display: flex; flex-wrap: wrap; gap: 8px; }

.call-bar { display: none; }
@media (max-width: 959px) {
    .call-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        display: flex;
        gap: 10px;
        padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .92);
        -webkit-backdrop-filter: saturate(180%) blur(18px);
        backdrop-filter: saturate(180%) blur(18px);
        border-top: 1px solid var(--line);
    }
    .call-bar .btn { flex: 1; }
    .has-call-bar .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ---------- Prose (WordPress content) ---------- */

.prose { font-size: 18px; line-height: 1.7; color: var(--ink-2); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); letter-spacing: -.02em; line-height: 1.25; margin-top: 1.8em; }
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.3rem; }
.prose h4 { font-size: 1.1rem; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose a { text-decoration: underline; text-decoration-color: rgba(23, 105, 194, .35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose img { border-radius: var(--radius); height: auto; margin-inline: auto; }
.prose figure { margin-inline: 0; }
.prose figcaption, .prose .wp-caption-text { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }
.prose .wp-caption { max-width: 100% !important; }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand); color: var(--ink); font-size: 1.1em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--surface); color: var(--ink); font-weight: 600; }
.prose iframe, .prose video, .prose embed { max-width: 100%; border: 0; border-radius: var(--radius); }
.prose pre { overflow-x: auto; }
.prose .alignleft { float: left; margin: .3em 1.2em 1em 0; }
.prose .alignright { float: right; margin: .3em 0 1em 1.2em; }
.prose .aligncenter { margin-inline: auto; }
@media (max-width: 599px) {
    .prose { font-size: 17px; }
    .prose .alignleft, .prose .alignright { float: none; margin: 1em auto; }
}
.prose::after { content: ""; display: table; clear: both; }

.article-head { padding-block: clamp(24px, 4vw, 48px) 28px; text-align: center; }
.article-head .title-1 { max-width: 24ch; margin-inline: auto; }
.article-head .meta-row { justify-content: center; }
.article-media { width: min(1000px, calc(100% - 2 * var(--gutter))); margin: 0 auto clamp(32px, 4vw, 56px); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.article-media img { width: 100%; height: auto; }

/* ---------- CTA band ---------- */

.cta {
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px);
    border-radius: 32px;
    background:
        radial-gradient(80% 120% at 100% 0%, rgba(255, 255, 255, .18), transparent 60%),
        linear-gradient(135deg, var(--brand-strong), var(--brand-deep));
    color: #fff;
}
.cta .title-2 { max-width: 18ch; }
.cta p { max-width: 34em; margin-top: 12px; color: rgba(255, 255, 255, .85); font-size: 18px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta .btn--secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.cta .btn--secondary:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* ---------- Search page ---------- */

.search-page-form { display: flex; gap: 8px; max-width: 720px; margin-top: 24px; }
.search-page-form .field { flex: 1; }
@media (max-width: 559px) { .search-page-form { flex-direction: column; } }
.results { margin-top: 32px; display: grid; gap: 10px; max-width: 820px; }
.result {
    display: block;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    transition: transform var(--med) var(--ease), box-shadow var(--med) var(--ease), border-color var(--med) var(--ease);
}
.result:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: transparent; }
.result strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.result span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.results-status { margin-top: 24px; color: var(--muted); }
.results-more { margin-top: 20px; }

/* ---------- Footer ---------- */

.site-footer {
    margin-top: clamp(48px, 7vw, 96px);
    padding-block: clamp(48px, 6vw, 72px) 32px;
    background: var(--surface);
    border-top: 1px solid var(--line);
    font-size: 14px;
    color: var(--muted);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
    gap: 32px;
}
.footer-brand img { width: 120px; height: 36px; }
.footer-brand p { margin-top: 14px; max-width: 26ch; font-size: 15px; color: var(--ink-2); }
.site-footer h2 { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.site-footer ul { display: grid; gap: 4px; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 32px; color: var(--muted); }
.site-footer li a:hover { color: var(--ink); }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 13px;
}
@media (max-width: 959px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 479px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; } }

/* ---------- Not found ---------- */

.not-found { padding-block: clamp(56px, 10vw, 128px); text-align: center; }
.not-found .lead { max-width: 30em; margin: 16px auto 0; }
.not-found .search-page-form { margin-inline: auto; margin-top: 32px; }
.not-found .chips { justify-content: center; margin-top: 32px; }

/* ---------- Scroll reveal ---------- */

.reveal-ready .reveal {
    transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
    transition-delay: var(--delay, 0ms);
}
.reveal-ready .reveal:not(.is-visible) { opacity: 0; transform: translateY(18px); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        transition-delay: 0ms !important;
    }
    .js .reveal { opacity: 1; transform: none; }
    .card:hover, .tile:hover, .result:hover { transform: none; }
    .card:hover .card-media img { transform: none; }
}

@media print {
    .site-header, .site-footer, .aside, .breadcrumbs { display: none; }
}
