/* =====================================================================
   VISARH — Global stylesheet
   Palette, typography, and frequently-used components (buttons, layout
   utilities, breadcrumbs, filter bar, pagination). Page-specific rules
   live in their own conditionally-loaded stylesheets.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

/* ── Design tokens ─────────────────────────────────────────────────── */
:root {
    --c-bg: #ffffff;
    --c-bg-alt: #f2f1ee;
    --c-card: #e8e6e2;
    --c-card-hover: #ddddd6;
    --c-text: #252422;
    --c-text-2: #706c66;
    --c-text-3: #6e6b65;
    --c-line: rgba(0, 0, 0, 0.08);
    --c-line-strong: rgba(0, 0, 0, 0.15);
    --c-dark: #141412;

    --maxw: 1400px;
    --gutter: 24px;
    --header-h: 80px;

    --ease: 0.6s ease;
    --font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

/* ── Reset / base ──────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-weight: 400;
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { font-weight: 400; margin: 0; line-height: 1.3; }
p { margin: 0; }

.site-main { display: block; }
.site-main--offset { padding-top: var(--header-h); }

/* ── Layout utilities ──────────────────────────────────────────────── */
.container-wide {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter);
    width: 100%;
}

.section { padding: 64px 0; }
.section--bordered { border-top: 1px solid var(--c-line); }

.section__title {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 400;
    font-size: clamp(18px, 3vw, 36px);
    margin: 0 0 40px;
}
.section__title--center { text-align: center; }

.section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 40px;
}
.section__head .section__title { margin: 0; }
.section__head-link {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--c-text-2);
    transition: color 0.25s ease;
}
.section__head-link:hover { color: var(--c-text); }

.section__cta-center {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

/* ── Page head (archives / inner pages) ────────────────────────────── */
.page-head { margin-bottom: 48px; }
.page-head__title {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: clamp(24px, 4vw, 48px);
    font-weight: 400;
}
.page-head__subtitle {
    margin-top: 16px;
    max-width: 560px;
    color: var(--c-text-3);
    font-size: 15px;
    line-height: 1.85;
}

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 16px 40px;
    border: 1px solid transparent;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    line-height: 1;
}
.btn__arrow { font-size: 13px; }

.btn--solid { background: var(--c-text); color: #fff; }
.btn--solid:hover { background: rgba(37, 36, 34, 0.85); }

.btn--light { background: #fff; color: #000; }
.btn--light:hover { background: rgba(255, 255, 255, 0.9); }

.btn--ghost { border-color: #000; color: #000; }
.btn--ghost:hover { background: #000; color: #fff; }

.btn--ghost-light { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.1); }

/* ── Black & white image effect ────────────────────────────────────── */
.img-bw {
    filter: grayscale(100%);
    transition: filter var(--ease), transform 0.7s ease;
}
.img-bw:hover { filter: grayscale(0%); }

/* ── Breadcrumbs ───────────────────────────────────────────────────── */
.breadcrumbs {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 20px var(--gutter) 20px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.breadcrumbs__link { color: var(--c-text-2); transition: color 0.2s ease; }
.breadcrumbs__link:hover { color: var(--c-text); }
.breadcrumbs__sep { color: rgba(0, 0, 0, 0.25); }
.breadcrumbs__current { color: var(--c-text-2); }

/* ── Filter bar ────────────────────────────────────────────────────── */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 48px;
}
.filter-bar__item {
    padding: 7px 16px;
    border: 1px solid var(--c-line-strong);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-text);
    background: #fff;
    transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
    white-space: nowrap;
}
.filter-bar__item:hover { border-color: #000; }
.filter-bar__item.is-active { background: #000; color: #fff; border-color: #000; }

/* ── Pagination ────────────────────────────────────────────────────── */
.pagination-wrap { margin-top: 56px; }
.pagination-wrap .nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}
.pagination-wrap .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--c-line-strong);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--c-text);
    transition: background-color 0.25s ease, color 0.25s ease;
}
.pagination-wrap .page-numbers.current,
.pagination-wrap .page-numbers:hover { background: #000; color: #fff; border-color: #000; }

/* ── Misc shared ───────────────────────────────────────────────────── */
.link-back {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-text-2);
    transition: color 0.2s ease;
}
.link-back:hover { color: var(--c-text); }

.empty-state {
    text-align: center;
    color: rgba(0, 0, 0, 0.3);
    font-size: 24px;
    padding: 60px 0;
}

.muted { color: var(--c-text-2); }

.screen-reader-text,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
.skip-link:focus {
    width: auto;
    height: auto;
    clip: auto;
    left: 12px;
    top: 12px;
    z-index: 1000;
    background: #fff;
    padding: 10px 16px;
}

/* ── Contact block (shared: home + contact page) ───────────────────── */
.contact-block__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
.contact-block__info { display: flex; flex-direction: column; gap: 24px; }
.contact-item__label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--c-text-2);
    margin-bottom: 6px;
}
.contact-item__value { display: block; font-size: 15px; }
a.contact-item__value { transition: opacity 0.2s ease; }
a.contact-item__value:hover { opacity: 0.6; }
.contact-item__value--muted { color: var(--c-text-2); }

.contact-item__social { display: flex; align-items: center; gap: 12px; padding-top: 4px; }
.contact-item__social a {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--c-text-2);
    transition: color 0.2s ease;
}
.contact-item__social a:hover { color: var(--c-text); }
.contact-item__social-sep { width: 1px; height: 12px; background: rgba(0, 0, 0, 0.2); }

.contact-block__map {
    width: 100%;
    height: 320px;
    border: 1px solid var(--c-line-strong);
    overflow: hidden;
}
.contact-block__map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(100%) contrast(0.9);
}

/* ── Team member modal (shared: home + team archive) ───────────────── */
.team-modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 24px; }
.team-modal[hidden] { display: none; }
.team-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(2px); }
.team-modal__dialog {
    position: relative;
    z-index: 2;
    background: #fff;
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
}
.team-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: transparent;
    border: 0;
    font-size: 26px;
    line-height: 1;
    color: var(--c-text);
    z-index: 3;
}
.team-modal__content { display: flex; flex-direction: column; }
.team-modal__media { flex: 0 0 auto; }
.team-modal__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.team-modal__body { padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.team-modal__position {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--c-text-2);
}
.team-modal__name { font-size: clamp(18px, 4vw, 26px); margin-top: 4px; }
.team-modal__exp { font-size: 12px; color: var(--c-text-2); margin-top: 4px; }
.team-modal__bio { font-size: 15px; color: var(--c-text-3); line-height: 1.75; }
.team-modal__achievements { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.team-modal__achievements li {
    position: relative;
    padding-left: 18px;
    font-size: 14px;
    color: var(--c-text-3);
}
.team-modal__achievements li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (min-width: 640px) {
    .team-modal__content { flex-direction: row; }
    .team-modal__media { width: 240px; }
    .team-modal__media img { height: 100%; aspect-ratio: auto; }
}

@media (min-width: 768px) {
    :root { --gutter: 48px; }
    .section { padding: 112px 0; }
    .section__title { margin-bottom: 48px; }
}

@media (min-width: 1024px) {
    .contact-block__grid { grid-template-columns: 1fr 1fr; gap: 80px; }
}
