/* =========================================================
   Civil Canines — main stylesheet
   Clean, mobile-first design system. Single file by intent;
   if it grows past ~800 lines, split it into _tokens.css,
   _layout.css, _components.css and import them here.
   ========================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
    /* Brand palette */
    --color-navy-900: #0B2240;
    --color-navy-800: #0F2A47;
    --color-navy-700: #1B3A63;
    --color-teal-600: #0E8F87;
    --color-teal-500: #14A89E;
    --color-teal-300: #7AD4CD;

    /* Neutrals */
    --color-ink:       #0F172A;
    --color-ink-soft:  #1F2937;
    --color-muted:     #475569;
    --color-muted-2:   #64748B;
    --color-line:      #E2E8F0;
    --color-surface:   #FFFFFF;
    --color-surface-2: #F5F8FB;
    --color-surface-3: #EAF2F8;

    /* Status / feedback */
    --color-warn: #B45309;

    /* Typography */
    --font-sans:   'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-serif:  'Fraunces', Georgia, "Times New Roman", serif;

    /* Type scale (fluid) */
    --fs-xs:   0.8125rem;  /* 13px */
    --fs-sm:   0.9375rem;  /* 15px */
    --fs-base: 1rem;       /* 16px */
    --fs-md:   1.125rem;   /* 18px */
    --fs-lg:   clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
    --fs-xl:   clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
    --fs-2xl:  clamp(2rem, 1.4rem + 2.6vw, 3rem);
    --fs-3xl:  clamp(2.5rem, 1.6rem + 3.8vw, 4rem);

    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;
    --space-9: 6rem;

    /* Layout */
    --content-max: 1160px;
    --content-narrow: 760px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Effects */
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);

    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--color-ink);
    background: var(--color-surface);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-teal-600); text-decoration: none; }
a:hover { color: var(--color-navy-800); }
button { font: inherit; cursor: pointer; }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--color-navy-900); line-height: 1.2; margin: 0 0 var(--space-4); letter-spacing: -0.01em; }
h1 { font-size: var(--fs-3xl); font-weight: 600; }
h2 { font-size: var(--fs-2xl); font-weight: 600; }
h3 { font-size: var(--fs-xl);  font-weight: 600; }
h4 { font-size: var(--fs-lg);  font-weight: 600; }
p  { margin: 0 0 var(--space-4); }

/* ---------- 3. Utilities ---------- */
.container {
    width: 100%;
    max-width: var(--content-max);
    margin-inline: auto;
    padding-inline: var(--space-5);
}
.container--narrow { max-width: var(--content-narrow); }

.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: -9999px;
    top: 0;
    background: var(--color-navy-900);
    color: #fff;
    padding: var(--space-3) var(--space-4);
    z-index: 100;
}
.skip-link:focus { left: var(--space-3); top: var(--space-3); }

.eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-teal-600);
    margin-bottom: var(--space-3);
}

.lede {
    font-size: var(--fs-md);
    color: var(--color-muted);
    max-width: 60ch;
}

/* ---------- 4. Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.875rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: var(--fs-sm);
    line-height: 1;
    border: 1.5px solid transparent;
    background: var(--color-navy-900);
    color: #fff;
    transition: transform 0.15s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
    white-space: nowrap;
}
.btn:hover { background: var(--color-navy-800); color: #fff; transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--color-teal-300); outline-offset: 2px; }

.btn--primary {
    background: var(--color-teal-600);
    color: #fff;
}
.btn--primary:hover { background: var(--color-teal-500); color: #fff; }

.btn--ghost {
    background: transparent;
    color: var(--color-navy-900);
    border-color: var(--color-line);
}
.btn--ghost:hover { background: var(--color-surface-3); color: var(--color-navy-900); }

.btn--nav {
    padding: 0.6rem 1.1rem;
    font-size: var(--fs-sm);
}

.btn--block { width: 100%; }

/* ---------- 5. Header / Nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--color-line);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    min-height: 70px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--color-navy-900);
    font-weight: 700;
}
.brand:hover { color: var(--color-navy-900); }
.brand__logo {
    width: 38px; height: 38px;
    border-radius: 8px;
    object-fit: cover;
}
.brand__name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    background: transparent;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    padding: 0 12px;
}
.nav-toggle__bar {
    display: block;
    width: 18px; height: 2px;
    background: var(--color-navy-900);
    border-radius: 2px;
    transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow-md);
    transform-origin: top;
    transform: scaleY(0.97);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.primary-nav.is-open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
}
.primary-nav__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-4) var(--space-5);
}
.primary-nav__list a {
    display: block;
    padding: var(--space-3) var(--space-2);
    color: var(--color-ink);
    font-weight: 500;
    border-radius: var(--radius-sm);
}
.primary-nav__list a:hover { background: var(--color-surface-2); color: var(--color-navy-900); }
.primary-nav__list a.is-active {
    color: var(--color-teal-600);
    background: var(--color-surface-3);
}
.primary-nav__list a.btn { color: #fff; padding: 0.7rem 1.1rem; }
.primary-nav__list a.btn.is-active { background: var(--color-teal-500); color: #fff; }

@media (min-width: 880px) {
    .nav-toggle { display: none; }
    .primary-nav {
        position: static;
        background: transparent;
        border: 0;
        box-shadow: none;
        transform: none;
        opacity: 1;
        pointer-events: auto;
    }
    .primary-nav__list {
        flex-direction: row;
        align-items: center;
        gap: var(--space-2);
        padding: 0;
    }
    .primary-nav__list a { padding: var(--space-2) var(--space-3); }
    .primary-nav__list a.is-active {
        background: transparent;
        color: var(--color-teal-600);
    }
    .primary-nav__list a.is-active::after {
        content: '';
        display: block;
        height: 2px;
        background: var(--color-teal-500);
        margin-top: 4px;
        border-radius: 2px;
    }
    .primary-nav__list a.btn.is-active::after { display: none; }
}

/* ---------- 6. Sections ---------- */
.section { padding-block: var(--space-8); }
.section--lg { padding-block: var(--space-9); }
.section--tinted { background: var(--color-surface-2); }
.section--ink { background: var(--color-navy-900); color: #fff; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }
.section--ink .lede, .section--ink p { color: rgba(255,255,255,0.82); }

.section-head { margin-bottom: var(--space-7); max-width: 60ch; }
.section-head--center { margin-inline: auto; text-align: center; }

/* ---------- 7. Hero ---------- */
.hero {
    position: relative;
    isolation: isolate;
    padding: var(--space-8) 0 var(--space-9);
    background:
        radial-gradient(60% 60% at 90% 10%, rgba(20, 168, 158, 0.18), transparent 60%),
        radial-gradient(40% 50% at 0% 30%, rgba(15, 42, 71, 0.08), transparent 60%),
        var(--color-surface-2);
    overflow: hidden;
}
.hero__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-7);
    align-items: center;
}
.hero h1 { margin-bottom: var(--space-4); }
.hero__lede {
    font-size: var(--fs-md);
    color: var(--color-muted);
    max-width: 55ch;
    margin-bottom: var(--space-6);
}
.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}
.hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-5);
    color: var(--color-muted);
    font-size: var(--fs-sm);
}
.hero__trust-item { display: inline-flex; align-items: center; gap: var(--space-2); }
.hero__trust-item::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--color-teal-500);
}

.hero__media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-surface-3);
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-lg);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 880px) {
    .hero__inner {
        grid-template-columns: 1.1fr 0.9fr;
        gap: var(--space-8);
    }
}

/* Page banner (shorter hero for non-home pages) */
.page-banner {
    background:
        radial-gradient(60% 60% at 90% 10%, rgba(20, 168, 158, 0.18), transparent 60%),
        var(--color-surface-2);
    padding: var(--space-8) 0 var(--space-7);
    border-bottom: 1px solid var(--color-line);
}
.page-banner h1 { margin-bottom: var(--space-3); }
.page-banner__lede {
    font-size: var(--fs-md);
    color: var(--color-muted);
    max-width: 60ch;
}

/* ---------- 8. Cards / grids ---------- */
.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
    .grid--2 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
    .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-teal-300);
}
.card h3 { margin-bottom: var(--space-2); }

/* Service cards */
.service-card { display: flex; flex-direction: column; gap: var(--space-3); }
.service-card__icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: grid; place-items: center;
    background: var(--color-surface-3);
    color: var(--color-teal-600);
    margin-bottom: var(--space-2);
}
.service-card__icon svg { width: 24px; height: 24px; }
.service-card p { color: var(--color-muted); margin: 0; }
.service-card__link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--color-teal-600);
    padding-top: var(--space-3);
}
.service-card__link::after {
    content: '→';
    transition: transform 0.2s var(--ease);
}
.service-card__link:hover::after { transform: translateX(3px); }

/* Service deep blocks (services.html) */
.service-block {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    align-items: center;
    padding-block: var(--space-7);
    border-bottom: 1px solid var(--color-line);
}
.service-block:last-child { border-bottom: 0; }
.service-block__media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--color-surface-3);
}
.service-block__media img { width: 100%; height: 100%; object-fit: cover; }
.service-block__list { margin: var(--space-4) 0; display: grid; gap: var(--space-2); }
.service-block__list li {
    position: relative;
    padding-left: 1.6rem;
    color: var(--color-muted);
}
.service-block__list li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.55em;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--color-surface-3);
    border: 2px solid var(--color-teal-500);
}
@media (min-width: 880px) {
    .service-block { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
    .service-block--reverse .service-block__media { order: 2; }
}

/* Testimonial card */
.testimonial {
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    padding: var(--space-6);
    display: flex; flex-direction: column;
    gap: var(--space-3);
    height: 100%;
}
.testimonial__quote {
    font-family: var(--font-serif);
    font-size: var(--fs-md);
    color: var(--color-ink);
    line-height: 1.5;
    margin: 0;
}
.testimonial__quote::before { content: '“'; color: var(--color-teal-500); font-size: 1.6em; line-height: 0; margin-right: 4px; }
.testimonial__author {
    display: flex; align-items: center; gap: var(--space-3);
    margin-top: auto;
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-line);
}
.testimonial__avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--color-surface-3);
    object-fit: cover;
    flex: 0 0 auto;
}
.testimonial__name { font-weight: 600; color: var(--color-navy-900); display: block; }
.testimonial__breed { color: var(--color-muted-2); font-size: var(--fs-sm); }

/* Stat strip */
.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
    padding: var(--space-6);
    background: var(--color-surface-2);
    border-radius: var(--radius-md);
}
.stat__num { font-family: var(--font-serif); font-size: var(--fs-2xl); font-weight: 700; color: var(--color-teal-600); display: block; }
.stat__label { color: var(--color-muted); font-size: var(--fs-sm); }
@media (min-width: 880px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* About split */
.about-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-7);
    align-items: center;
}
.about-split__media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--color-surface-3);
    box-shadow: var(--shadow-md);
}
.about-split__media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 880px) {
    .about-split { grid-template-columns: 0.85fr 1fr; gap: var(--space-8); }
}

/* CTA banner */
.cta-banner {
    background:
        radial-gradient(60% 100% at 100% 0%, rgba(20, 168, 158, 0.45), transparent 60%),
        var(--color-navy-900);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: var(--space-7);
    display: grid; gap: var(--space-5);
    align-items: center;
}
.cta-banner h2 { color: #fff; margin-bottom: var(--space-2); }
.cta-banner p { color: rgba(255,255,255,0.82); margin: 0; }
.cta-banner__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
@media (min-width: 720px) {
    .cta-banner { grid-template-columns: 1fr auto; padding: var(--space-8); }
}

/* ---------- 9. Forms ---------- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}
@media (min-width: 640px) {
    .form-grid { grid-template-columns: 1fr 1fr; }
    .form-grid > .full { grid-column: 1 / -1; }
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--color-ink-soft);
}
.field__label .req { color: var(--color-teal-600); }
.field__input,
.field__select,
.field__textarea {
    width: 100%;
    padding: 0.75rem 0.875rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--color-line);
    background: var(--color-surface);
    font: inherit;
    color: var(--color-ink);
    transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field__input:focus,
.field__select:focus,
.field__textarea:focus {
    outline: none;
    border-color: var(--color-teal-500);
    box-shadow: 0 0 0 3px rgba(20, 168, 158, 0.18);
}
.field__textarea { resize: vertical; min-height: 140px; }
.field__error {
    color: var(--color-warn);
    font-size: var(--fs-xs);
    min-height: 1em;
}

.form-actions {
    display: flex; gap: var(--space-3); flex-wrap: wrap;
    margin-top: var(--space-3);
}

/* Contact split */
.contact-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    align-items: start;
}
.contact-info {
    background: var(--color-navy-900);
    color: #fff;
    border-radius: var(--radius-md);
    padding: var(--space-6);
    display: grid; gap: var(--space-5);
}
.contact-info h3 { color: #fff; margin: 0 0 var(--space-2); font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; font-family: var(--font-sans); }
.contact-info a { color: var(--color-teal-300); }
.contact-info a:hover { color: #fff; }
.contact-info__group p { margin: 0; }

.contact-form {
    background: var(--color-surface);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    padding: var(--space-6);
}
@media (min-width: 880px) {
    .contact-split { grid-template-columns: 0.8fr 1.2fr; gap: var(--space-7); }
}

/* ---------- 10. Footer ---------- */
.site-footer {
    margin-top: var(--space-9);
    background: var(--color-navy-900);
    color: rgba(255,255,255,0.82);
}
.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding-block: var(--space-8);
}
.site-footer .brand__name { color: #fff; font-size: 1.25rem; }
.site-footer__tag { color: rgba(255,255,255,0.7); margin-top: var(--space-2); max-width: 36ch; }
.site-footer__heading {
    font-family: var(--font-sans);
    font-size: var(--fs-sm);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 var(--space-3);
}
.site-footer ul li { margin-bottom: 6px; }
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: #fff; }

.site-footer__social { display: flex; gap: var(--space-3); margin-top: var(--space-4); }
.site-footer__social a {
    display: inline-grid; place-items: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #fff;
    transition: background 0.2s var(--ease);
}
.site-footer__social a:hover { background: var(--color-teal-600); }

.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-block: var(--space-4);
    color: rgba(255,255,255,0.55);
    font-size: var(--fs-sm);
}

@media (min-width: 720px) {
    .site-footer__inner {
        grid-template-columns: 1.4fr 1fr 1.2fr;
        gap: var(--space-7);
    }
}

/* ---------- 11. Helpers / placeholders ---------- */
/* Tasteful placeholder block where real photos will go */
.img-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    background:
        linear-gradient(135deg, var(--color-surface-3), var(--color-surface-2));
    display: grid; place-items: center;
    color: var(--color-muted-2);
    font-size: var(--fs-sm);
    font-weight: 500;
    border: 1px dashed var(--color-line);
}
.img-placeholder--circle { border-radius: 50%; aspect-ratio: 1; }

/* ---------- 12. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ---------- 13. Booking page (public /book/<token>) ---------- */
.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin: var(--space-5) 0;
}
.slot-choice {
    display: block;
    cursor: pointer;
    position: relative;
}
.slot-choice__input {
    position: absolute;
    opacity: 0;
    width: 1px; height: 1px;
    pointer-events: none;
}
.slot-pill {
    display: block;
    padding: 12px 14px;
    text-align: center;
    border: 1.5px solid var(--color-line);
    border-radius: 8px;
    background: #fff;
    font-weight: 600;
    color: var(--color-navy-900);
    transition: background-color 0.15s var(--ease),
                border-color 0.15s var(--ease),
                color 0.15s var(--ease);
}
.slot-pill:hover { border-color: var(--color-teal-500); }

.slot-choice__input:checked + .slot-pill {
    background: var(--color-teal-600);
    color: #fff;
    border-color: var(--color-teal-600);
}
.slot-choice__input:focus-visible + .slot-pill {
    outline: 3px solid var(--color-teal-300);
    outline-offset: 2px;
}

/* ---------- 14. MonthCalendar widget ---------- */
.cal {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    user-select: none;
    transition: opacity 0.15s var(--ease);
}
.cal--loading { opacity: 0.6; }

.cal__head {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}
.cal__month {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-navy-900);
}
.cal__nav {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-line);
    background: #fff;
    color: var(--color-navy-900);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.cal__nav:hover:not(:disabled) {
    border-color: var(--color-teal-500);
    background: var(--color-surface-2);
}
.cal__nav:disabled {
    opacity: 0.35; cursor: not-allowed;
}

.cal__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.cal__weekdays > div { padding: 6px 0; }

.cal__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal__cell {
    position: relative;
    aspect-ratio: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 0;
    border: 1.5px solid transparent;
    border-radius: 8px;
    background: var(--color-surface-2);
    color: var(--color-ink);
    font: inherit;
    cursor: default;
    transition: all 0.15s var(--ease);
}
.cal__cell--blank {
    background: transparent;
    border: 0;
}
.cal__cell--out_of_window,
.cal__cell--no_hours {
    color: var(--color-muted-2);
    background: transparent;
}
.cal__cell--no_hours { background: repeating-linear-gradient(45deg, transparent 0 4px, var(--color-line) 4px 5px); }
.cal__cell--full {
    color: var(--color-muted-2);
    background: var(--color-surface-2);
    text-decoration: line-through;
}
.cal__cell--available {
    background: #fff;
    border-color: var(--color-line);
    cursor: pointer;
    color: var(--color-navy-900);
    font-weight: 600;
}
.cal__cell--available:hover {
    border-color: var(--color-teal-500);
    background: var(--color-surface-3);
}
.cal__cell.is-today {
    box-shadow: inset 0 0 0 2px var(--color-teal-300);
}
.cal__cell.is-selected,
.cal__cell.is-selected.cal__cell--available {
    background: var(--color-teal-600);
    color: #fff;
    border-color: var(--color-teal-600);
}
.cal__cell.is-selected .cal__slots { color: rgba(255,255,255,0.8); }

/* Range mode (boarding drop-off → pick-up) */
.cal__cell.is-in-range,
.cal__cell.is-in-range.cal__cell--available,
.cal__cell.is-in-range.cal__cell--out_of_window,
.cal__cell.is-in-range.cal__cell--no_hours,
.cal__cell.is-in-range.cal__cell--full {
    background: rgba(20, 168, 158, 0.18);
    color: var(--color-navy-900);
    border-color: var(--color-teal-300);
}
.cal__cell.is-range-start,
.cal__cell.is-range-end {
    background: var(--color-teal-600);
    color: #fff;
    border-color: var(--color-teal-600);
}
.cal__hint {
    margin-top: var(--space-3);
    padding: 8px 12px;
    background: var(--color-surface-2);
    border-radius: 8px;
    font-size: 0.82rem;
    color: var(--color-muted);
    text-align: center;
}

.cal__day { font-size: 0.95rem; line-height: 1; }
.cal__slots {
    font-size: 0.7rem;
    color: var(--color-teal-600);
    margin-top: 2px;
    font-weight: 600;
}

.cal__legend {
    display: flex; gap: var(--space-4); flex-wrap: wrap;
    margin-top: var(--space-3); padding-top: var(--space-3);
    border-top: 1px solid var(--color-line);
    font-size: 0.78rem;
    color: var(--color-muted);
}
.cal__legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal__dot {
    display: inline-block;
    width: 10px; height: 10px;
    border-radius: 50%;
}
.cal__dot--av  { background: var(--color-teal-500); }
.cal__dot--off { background: var(--color-line); }

@media (max-width: 480px) {
    .cal__weekdays { font-size: 0.7rem; }
    .cal__day { font-size: 0.85rem; }
    .cal__slots { font-size: 0.6rem; }
}

/* ---------- 15. Calendar compact variant (admin booking form) ---------- */
.cal--compact { padding: 12px; }
.cal--compact .cal__head { margin-bottom: 8px; }
.cal--compact .cal__month { font-size: 0.95rem; }
.cal--compact .cal__nav { width: 28px; height: 28px; font-size: 1.1rem; }
.cal--compact .cal__weekdays { font-size: 0.65rem; }
.cal--compact .cal__weekdays > div { padding: 3px 0; }
.cal--compact .cal__grid { gap: 2px; }
.cal--compact .cal__cell { font-size: 0.78rem; border-radius: 6px; }
.cal--compact .cal__day { font-size: 0.78rem; }
.cal--compact .cal__slots { font-size: 0.55rem; margin-top: 1px; }
.cal--compact .cal__legend { font-size: 0.7rem; padding-top: 8px; margin-top: 8px; }

/* ---------- 16. Admin form label-text wrapper ---------- */
.adm-form__label-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-ink-soft);
    display: block;
}

/* ---------- 17. Testimonial squareness — line-clamp the quote ---------- */
.testimonial {
    min-height: 280px;
    max-height: 320px;
}
.testimonial__quote {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 640px) {
    .testimonial { min-height: 0; max-height: none; }
    .testimonial__quote {
        display: block;
        -webkit-line-clamp: unset;
        line-clamp: unset;
    }
}
