/* ==========================================================================
   Lasharela - front-end styles
   Admin styles live in /assets/admin/css/style.css.
   ========================================================================== */

:root {
    --brand: #9b1c1c;
    --brand-dark: #7a1414;
    --brand-soft: #fdf2f2;
    --ink: #17161a;
    --ink-soft: #55535d;
    --ink-faint: #8b8892;
    --bg: #ffffff;
    --bg-alt: #f7f5f2;
    --line: #e8e4de;
    --line-strong: #d6d1c8;
    --gold: #b98a2f;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(23, 22, 26, 0.04), 0 14px 40px -12px rgba(23, 22, 26, 0.16);
    --shadow-lg: 0 2px 6px rgba(23, 22, 26, 0.06), 0 30px 70px -20px rgba(23, 22, 26, 0.3);
    --header-h: 78px;
    --font: 'Inter', 'Noto Sans Georgian', -apple-system, BlinkMacSystemFont, 'Segoe UI', Sylfaen, Roboto, Arial, sans-serif;
}

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

[hidden] {
    display: none !important;
}

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #f2f2f7;
}

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

a {
    color: inherit;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.025em;
    font-weight: 650;
}
.px-0 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: clamp(56px, 8vw, 104px) 0;
}

.section--alt {
    background: #fff;
}

/* --- shared bits --------------------------------------------------------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand);
}

.eyebrow::before {
    content: '';
    width: 26px;
    height: 2px;
    background: var(--brand);
}

.section__title {
    font-size: clamp(27px, 4vw, 40px);
    max-width: 22ch;
}

.section__lede {
    max-width: 62ch;
    margin: 14px 0 0;
    font-size: 16.5px;
    color: var(--ink-soft);
}

.section__head {
    margin-bottom: clamp(28px, 4vw, 48px);
}

.section__head--split {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    font: inherit;
    font-size: 15px;
    font-weight: 560;
    color: #fff;
    text-decoration: none;
    background: var(--brand);
    border: 1px solid var(--brand);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.18s, border-color 0.18s, transform 0.12s, box-shadow 0.18s;
}

.btn:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    box-shadow: 0 12px 26px -10px rgba(155, 28, 28, 0.7);
}

.btn:active {
    transform: translateY(1px);
}

.btn--ghost {
    color: #fff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    box-shadow: none;
}

.btn--dark {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
}

.btn--dark:hover {
    background: #000;
    border-color: #000;
    box-shadow: none;
}

.btn svg {
    transition: transform 0.18s;
}

.btn:hover svg {
    transform: translateX(3px);
}

/* ==========================================================================
   Header
   ========================================================================== */

.topline {
    display: none;
    position: relative;
    background: #fff;
    color: var(--ink-soft);
    font-size: 13px;
    border-bottom: 1px solid var(--line);
}

/* Thin brand gradient along the very top edge. */
.topline::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--brand) 0%, #c2410c 48%, var(--gold) 100%);
}

.topline__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 48px;
}

.topline__group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.topline__item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 11px;
    color: var(--ink-soft);
    text-decoration: none;
    white-space: nowrap;
    border-radius: 999px;
    transition: color 0.16s, background-color 0.16s;
}

a.topline__item:hover {
    color: var(--brand);
    background: var(--brand-soft);
}

.topline__ico {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    flex: none;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: 8px;
    transition: color 0.16s, background-color 0.16s, transform 0.16s;
}

a.topline__item:hover .topline__ico {
    color: #fff;
    background: var(--brand);
    transform: translateY(-1px);
}

.topline__value {
    font-weight: 550;
    color: var(--ink);
    letter-spacing: -0.01em;
}

a.topline__item:hover .topline__value {
    color: inherit;
}

.topline__sep {
    width: 1px;
    height: 18px;
    margin: 0 6px;
    background: var(--line);
}

/* Open / closed indicator. */
.topline__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 10px;
    font-size: 12.5px;
    font-weight: 550;
    color: #0f7a4d;
    background: #eaf7f0;
    border: 1px solid #cdeadb;
    border-radius: 999px;
    white-space: nowrap;
}

.topline__dot {
    position: relative;
    width: 7px;
    height: 7px;
    flex: none;
    background: #16a34a;
    border-radius: 50%;
}

.topline__dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid rgba(22, 163, 74, 0.35);
    border-radius: 50%;
    animation: ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    0% {
        transform: scale(0.6);
        opacity: 0.9;
    }
    70%,
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

.topline__social {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: var(--ink-faint);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 50%;
    transition: color 0.16s, background-color 0.16s, border-color 0.16s, transform 0.16s;
}

.topline__social:hover {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
    transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
    .topline__dot::after {
        animation: none;
    }

    .topline__ico,
    .topline__social {
        transition: none;
    }
}

@media (min-width: 900px) {
    .topline {
        display: block;
    }
}

.header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow 0.2s;
}

.header.is-stuck {
    box-shadow: 0 6px 24px -14px rgba(23, 22, 26, 0.5);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
}

/*
 * The crest is portrait (243x448). Height drives the size and the ratio keeps
 * the width reserved, so nothing shifts while the png loads.
 */
.logo__img {
    height: 70px;
    width: auto;
    flex: none;
    aspect-ratio: 243 / 448;
    object-fit: contain;
    transition: transform 0.2s;
}

.logo:hover .logo__img {
    transform: translateY(-1px) scale(1.03);
}

.drawer .logo__img {
    height: 44px;
}

.footer .logo__img {
    height: 58px;
}

@media (prefers-reduced-motion: reduce) {
    .logo__img {
        transition: none;
    }
}

.logo__name {
    display: block;
    font-size: 17px;
    font-weight: 680;
    letter-spacing: -0.02em;
}

.logo__tag {
    display: block;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.nav {
    display: none;
    margin-left: auto;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav__link {
    display: block;
    padding: 9px 14px;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    border-radius: 999px;
    transition: color 0.15s, background-color 0.15s;
}

.nav__link:hover,
.nav__link.is-active {
    color: var(--brand);
    background: var(--brand-soft);
}

@media (min-width: 1000px) {
    .nav {
        display: block;
    }
}

.header__side {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

@media (min-width: 1000px) {
    .header__side {
        margin-left: 0;
    }
}

.langs {
    display: flex;
    gap: 2px;
    padding: 3px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.langs__item {
    padding: 5px 11px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-faint);
    text-decoration: none;
    border-radius: 999px;
    transition: color 0.15s, background-color 0.15s;
}

.langs__item:hover {
    color: var(--ink);
}

.langs__item.is-active {
    color: #fff;
    background: var(--brand);
}

.header__cta {
    display: none;
}

@media (min-width: 1160px) {
    .header__cta {
        display: inline-flex;
        padding: 11px 20px;
        font-size: 14px;
    }
}

.burger {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    color: var(--ink);
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
}

@media (min-width: 1000px) {
    .burger {
        display: none;
    }
}

/* mobile drawer */

.drawer {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 80;
    width: min(340px, 86vw);
    padding: 22px;
    padding-top: calc(22px + env(safe-area-inset-top, 0px));
    background: #fff;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.drawer.is-open {
    transform: none;
}

.drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.drawer__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.drawer__list a {
    display: block;
    padding: 13px 4px;
    font-size: 16.5px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}

.drawer__list a:hover {
    color: var(--brand);
}

.drawer__foot {
    margin-top: 24px;
    display: grid;
    gap: 10px;
}

.scrim {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(12, 10, 14, 0.5);
    backdrop-filter: blur(2px);
}

@media (prefers-reduced-motion: reduce) {
    .drawer {
        transition: none;
    }
}

/* ==========================================================================
   Hero slider
   ========================================================================== */

.hero {
    position: relative;
    min-height: min(78vh, 720px);
    display: grid;
    background: #2a0c0c;
    overflow: hidden;
}

.hero__slide {
    grid-area: 1 / 1;
    position: relative;
    display: grid;
    align-items: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.hero__slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 7s ease-out;
}

.hero__slide.is-active .hero__bg {
    transform: scale(1);
}

.hero__slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(14, 8, 8, 0.7) 0%, rgba(14, 8, 8, 0.42) 46%, rgba(14, 8, 8, 0.12) 100%);
}

.hero__inner {
    position: relative;
    z-index: 2;

    /*
    | Vertical only: the element also carries .wrap, whose 20px gutter the old
    | `padding: … 0` shorthand was wiping out, leaving the copy against the
    | screen edge on phones.
    */
    padding-block: clamp(70px, 12vw, 120px);
}

/*
| A wider gutter than the rest of the page: this text sits over a photo, and
| the right side keeps extra room for the certificate tabs pinned to that edge.
*/
@media (max-width: 640px) {
    .hero__inner {
        padding-inline: 28px 52px;
    }
}

.hero__copy {
    max-width: 660px;
    color: #fff;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px 7px 11px;
    margin-bottom: 20px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.hero__eyebrow span.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f87171;
}

.hero__title {
    font-size: clamp(32px, 6vw, 60px);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.hero__text {
    max-width: 52ch;
    margin: 18px 0 0;
    font-size: clamp(15.5px, 2vw, 18px);
    color: rgba(255, 255, 255, 0.82);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero__ui {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: clamp(20px, 4vw, 38px);
}

.hero__ui-inner {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero__dots {
    display: flex;
    gap: 8px;
    margin-right: auto;
}

.hero__dot {
    width: 30px;
    height: 4px;
    padding: 0;
    background: rgba(255, 255, 255, 0.34);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s, width 0.2s;
}

.hero__dot.is-active {
    width: 46px;
    background: #fff;
}

.hero__arrow {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background-color 0.18s;
}

.hero__arrow:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   Services
   ========================================================================== */

.cards {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
}

.card {
    position: relative;
    padding: 30px 26px 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
}

.card__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: 14px;
}

.card__title {
    font-size: 19px;
    font-weight: 620;
}

.card__text {
    margin: 10px 0 0;
    font-size: 15px;
    color: var(--ink-soft);
}

.card__no {
    position: absolute;
    top: 22px;
    right: 24px;
    font-size: 13px;
    font-weight: 700;
    color: var(--line-strong);
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
    display: grid;
    gap: clamp(28px, 5vw, 56px);
    align-items: center;
}

@media (min-width: 900px) {
    .about {
        grid-template-columns: 1fr 1fr;
    }

    .about--text {
        grid-template-columns: 1fr;
    }
}

.about__media {
    position: relative;
}

.about__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.about__badge {
    position: absolute;
    right: -10px;
    bottom: -18px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.about__badge-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: #fff;
    background: var(--gold);
    border-radius: 11px;
}

.about__badge-title {
    font-size: 14.5px;
    font-weight: 640;
}

.about__badge-sub {
    font-size: 12.5px;
    color: var(--ink-faint);
}

.ticks {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.ticks li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 15.5px;
    color: var(--ink-soft);
}

.ticks svg {
    flex: none;
    margin-top: 3px;
    color: var(--brand);
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.grid-gallery {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.shot {
    position: relative;
    display: block;
    padding: 0;
    overflow: hidden;
    background: var(--bg-alt);
    border: 0;
    border-radius: var(--radius);
    cursor: zoom-in;
    aspect-ratio: 4 / 3;
}

/*
| The first photo runs as a 2x2 block. Spanning both rows is what keeps the
| tiles next to it full height: with a single tall tile the row grew to match
| it and the 4:3 tiles beside it were left with dead space underneath.
*/
@media (min-width: 760px) {
    .shot:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
        aspect-ratio: auto;
        height: 100%;
    }
}

.shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.shot:hover img {
    transform: scale(1.06);
}

.shot__veil {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(18, 10, 10, 0.34);
    opacity: 0;
    transition: opacity 0.25s;
}

.shot:hover .shot__veil,
.shot:focus-visible .shot__veil {
    opacity: 1;
}

.shot__veil span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    backdrop-filter: blur(3px);
}

/* lightbox */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(10, 8, 10, 0.9);
    backdrop-filter: blur(4px);
}

.lightbox img {
    max-width: min(1100px, 92vw);
    max-height: 84vh;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
}

.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.24);
}

/* ==========================================================================
   Certificates - fixed side tabs that slide out
   ========================================================================== */

/* viewport-sized layer: clips the parked panels so they never widen the page */

.certdock {
    --cert-top: 158px;
    --cert-step: 84px;
    --cert-tab-w: 76px;
    --cert-tab-h: 76px;
    --cert-panel-w: 250px;
    --cert-panel-h: 372px;

    position: fixed;
    inset: 0;
    z-index: 65; /* over the sticky header, under the scrim/drawer/lightbox */
    overflow: hidden;
    pointer-events: none;
}

/* one pinned tab per certificate: top = start + index * step */

.certdock__item {
    position: absolute;
    top: calc(var(--cert-top) + var(--i) * var(--cert-step));
    right: 0;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    height: var(--cert-tab-h);
    pointer-events: auto;
    transform: translateX(var(--cert-panel-w));
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.certdock__item.is-open {
    z-index: 2;
    transform: translateX(0);
}

/* tab */

.certdock__tab {
    position: relative;
    flex: none;
    width: var(--cert-tab-w);
    height: var(--cert-tab-h);
    padding: 5px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-right: 0;
    border-radius: 12px 0 0 12px;
    box-shadow: -6px 10px 26px -14px rgba(23, 22, 26, 0.5);
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: width 0.25s, border-color 0.2s, background-color 0.2s;
}

/* brand hairline down the outer edge */
.certdock__tab::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: -1px;
    width: 3px;
    background: var(--brand);
    border-radius: 3px;
    opacity: 0.35;
    transition: opacity 0.2s;
}

.certdock__tab:hover,
.certdock__tab:focus-visible {
    background: #fff;
    border-color: var(--brand);
}

.certdock__tab:hover::before,
.certdock__item.is-open .certdock__tab::before {
    opacity: 1;
}

.certdock__tab-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--bg-alt);
    border-radius: 8px;
}

.certdock__tab-hint {
    position: absolute;
    top: 50%;
    left: -10px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    color: #fff;
    background: var(--brand);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: var(--shadow);
    transform: translateY(-50%);
    transition: transform 0.3s;
}

.certdock__item.is-open .certdock__tab-hint {
    transform: translateY(-50%) rotate(180deg);
}

/* panel: rides out with the tab, holds the second image */

.certdock__panel {
    flex: none;
    align-self: flex-start;
    width: var(--cert-panel-w);
    height: var(--cert-panel-h);
    margin-top: var(--shift, calc((var(--cert-tab-h) - var(--cert-panel-h)) / 2));
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-right: 0;
    border-radius: 14px 0 0 14px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: opacity 0.3s;
}

.certdock__item.is-open .certdock__panel {
    opacity: 1;
}

.certdock__panel-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
    cursor: zoom-in;
}

@media (max-width: 900px) {
    .certdock {
        --cert-top: 90px;
        --cert-step: 74px;
        --cert-tab-w: 50px;
        --cert-tab-h: 64px;
        --cert-panel-w: min(210px, 62vw);
        --cert-panel-h: 306px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .certdock__item,
    .certdock__panel,
    .certdock__tab-hint {
        transition: none;
    }
}
/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
    display: grid;
    gap: clamp(24px, 4vw, 44px);
    align-items: start;
}

@media (min-width: 940px) {
    .contact {
        grid-template-columns: 1fr 1.1fr;
    }
}

.infos {
    display: grid;
    gap: 14px;
}

.info {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.info__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: 12px;
}

.info__body {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.info__label {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.info__value {
    margin-top: 2px;
    font-size: 15.5px;
    font-weight: 550;
}

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

.info__value a:hover {
    color: var(--brand);
}

.form-card {
    padding: clamp(20px, 3vw, 30px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    gap: 14px;
}

@media (min-width: 620px) {
    .form-grid--2 {
        grid-template-columns: 1fr 1fr;
    }
}

.field__label {
    display: block;
    margin-bottom: 7px;
    font-size: 13.5px;
    font-weight: 550;
    color: var(--ink-soft);
}

.input,
.textarea {
    width: 100%;
    padding: 13px 15px;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.textarea {
    min-height: 130px;
    resize: vertical;
}

.input:focus,
.textarea:focus {
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(155, 28, 28, 0.12);
}

.input--invalid,
.input--invalid:focus {
    border-color: var(--brand);
    background: var(--brand-soft);
}

.field__error {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    font-weight: 550;
    color: var(--brand);
}

.note {
    margin: 14px 0 0;
    font-size: 12.5px;
    color: var(--ink-faint);
}

/* form feedback */

.alert {
    margin: 0 0 18px;
    padding: 13px 16px;
    font-size: 14.5px;
    font-weight: 550;
    border: 1px solid;
    border-radius: var(--radius-sm);
}

.alert--ok {
    color: #0f7a4d;
    background: #eaf7f0;
    border-color: #cdeadb;
}

.alert--bad {
    color: var(--brand);
    background: var(--brand-soft);
    border-color: #f3d3d3;
}

/* captcha */

.captcha {
    margin-top: 14px;
}

/* image, reload and input share one row, so they line up on their centres */
.captcha__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.captcha__row .input {
    flex: 1;
    min-width: 150px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.captcha__img {
    flex: none;
    width: 168px;
    height: 54px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    user-select: none;
}

.captcha__reload {
    display: grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--ink-soft);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
    transition: color 0.16s, border-color 0.16s, transform 0.3s;
}

.captcha__reload:hover {
    color: var(--brand);
    border-color: var(--brand);
    transform: rotate(-90deg);
}


.map {
    /* how much of the embed's own title bar is cropped off the top */
    --map-crop: 56px;

    position: relative;
    grid-column: 1 / -1;
    width: 100%;
    aspect-ratio: 3 / 1;
    min-height: 300px;
    overflow: hidden;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* brand hairline along the top edge, echoing the topline */
.map::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    z-index: 2;
    height: 3px;
    background: linear-gradient(90deg, var(--brand) 0%, #c2410c 48%, var(--gold) 100%);
}

.map__frame {
    position: absolute;
    top: calc(-1 * var(--map-crop));
    left: 0;
    display: block;
    width: 100%;
    height: calc(100% + var(--map-crop));
    border: 0;
    filter: saturate(0.8) contrast(1.03);
    transition: filter 0.45s;
}

.map:hover .map__frame {
    filter: none;
}

/* address chip; never in the way of the map's own controls */
.map__pin {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: calc(100% - 32px);
    padding: 11px 17px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.93);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow);
    pointer-events: none;
    backdrop-filter: blur(8px);
}

.map__pin svg {
    flex: none;
    color: var(--brand);
}

/*
| Below the two column contact layout a 3:1 strip gets too short to be worth
| anything, so the map switches to a height that grows with the viewport
| instead of with its own width.
*/
@media (max-width: 940px) {
    .map {
        aspect-ratio: auto;
        height: clamp(300px, 52vw, 420px);
    }
}

@media (max-width: 700px) {
    .map {
        /* the embed's title bar wraps to two lines on narrow screens */
        --map-crop: 74px;
        height: clamp(320px, 62vw, 400px);
        border-radius: var(--radius-sm);
    }

    .map__pin {
        top: 12px;
        right: 12px;
        max-width: calc(100% - 24px);
        padding: 9px 14px;
        font-size: 12.5px;
    }
}

/* the address is already a card right above this; on a small map it just
   covers the pin it is pointing at */
@media (max-width: 560px) {
    .map__pin {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .map__frame {
        transition: none;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    padding: clamp(44px, 6vw, 72px) 0 0;
    color: rgba(255, 255, 255, 0.68);
    background: var(--ink);
}

.footer__grid {
    display: grid;
    gap: 32px;
    grid-template-columns: 1fr;
}

@media (min-width: 760px) {
    .footer__grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }
}

.footer .logo__name,
.footer h3 {
    color: #fff;
}

.footer h3 {
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer__text {
    max-width: 44ch;
    margin: 16px 0 0;
    font-size: 14.5px;
}

.footer__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 9px;
    font-size: 14.5px;
}

.footer__list a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

.footer__list a:hover {
    color: #fff;
}

.footer__bottom {
    margin-top: 40px;
    padding: 20px 0 calc(20px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero__bg,
    .hero__slide {
        transition: none;
    }
}

/* back to top */

.totop {
    position: fixed;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 50;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    color: #fff;
    background: var(--brand);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    box-shadow: var(--shadow);
    transition: opacity 0.22s, transform 0.22s;
}

.totop.is-shown {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
