/* ==========================================================================
   Columbia Animal Hospital — website
   Tokens follow the landing page: Red #C6302B · Ink #17181A · Slate #1B2624 · Paper #FAF8F4
   ========================================================================== */
:root {
    --red: #C6302B; --red-dark: #9C241F; --red-soft: #F4DEDB;
    --ink: #17181A; --ink-soft: #4A4C4E;
    --paper: #FAF8F4; --paper-alt: #F1EBE0; --line: rgba(23,24,26,.10);
    --slate: #1B2624; --slate-2: #24322F; --slate-line: rgba(255,255,255,.12);
    --gold: #B08D57; --white: #fff;
    --font-display: "Fraunces", "Cairo", Georgia, serif;
    --font-body: "Inter", "Cairo", system-ui, sans-serif;
    --font-mono: "IBM Plex Mono", "Cairo", monospace;
    --container: 1220px; --r-s: 10px; --r-m: 18px; --r-l: 28px;
    --ease: cubic-bezier(.22,.9,.32,1);
}
[dir="rtl"] { --font-display: "Cairo", "Fraunces", serif; --font-body: "Cairo", "Inter", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; line-height: 1.65; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-weight: 700; letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
[dir="rtl"] .eyebrow { letter-spacing: .02em; font-size: .85rem; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(198,48,43,.15); }
.muted { color: var(--ink-soft); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 1.5px solid transparent; cursor: pointer; transition: background .2s var(--ease), color .2s, border-color .2s, transform .2s; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border-color: currentColor; }
.btn-light { background: #fff; color: var(--ink); }
.btn-whatsapp { background: #1FAF55; color: #fff; }
.btn-whatsapp:hover { background: #178a43; }
.btn i { font-size: 1.05em; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,248,244,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand-word { display: flex; flex-direction: column; line-height: 1.1; }
.brand-word strong { font-family: "Fraunces", "Cairo", serif; font-size: 1.12rem; }
.brand-word em { font-style: normal; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.site-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.site-nav a { padding: 8px 14px; border-radius: 999px; font-weight: 500; color: var(--ink-soft); }
.site-nav a:hover, .site-nav a.active { color: var(--ink); background: var(--paper-alt); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { font-family: var(--font-mono); font-size: .8rem; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.7rem; color: var(--ink); }
@media (max-width: 960px) {
    .site-nav { position: fixed; inset: 76px 0 auto 0; flex-direction: column; background: var(--paper); padding: 12px 24px 24px; border-bottom: 1px solid var(--line); display: none; }
    .site-nav.open { display: flex; }
    .menu-toggle { display: block; margin-inline-start: auto; }
    .header-actions .btn-red span { display: none; }
}

/* ---------- page hero ---------- */
.page-hero { position: relative; color: #fff; background: var(--slate); overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .28; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,38,36,.2) 0%, rgba(27,38,36,.95) 100%); }
.page-hero .container { position: relative; z-index: 1; padding-top: 96px; padding-bottom: 72px; }
.page-hero .eyebrow { color: #FFB3B0; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); margin: 14px 0 8px; }
.page-hero .tagline { font-family: var(--font-display); font-size: clamp(1.15rem, 2.2vw, 1.6rem); color: #E8A6A2; font-style: italic; }
[dir="rtl"] .page-hero .tagline { font-style: normal; }
.page-hero .lead { max-width: 720px; margin-top: 18px; color: rgba(255,255,255,.82); font-size: 1.08rem; }
.page-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pulse-line { display: block; width: 100%; height: 40px; color: var(--red); }

/* ---------- stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--slate-line); border-radius: var(--r-m); overflow: hidden; margin-top: 44px; max-width: 760px; }
.stat { background: rgba(255,255,255,.04); padding: 18px 22px; }
.stat b { display: block; font-family: var(--font-display); font-size: 2rem; color: #fff; }
.stat span { font-size: .85rem; color: rgba(255,255,255,.72); }
@media (max-width: 600px) { .stats { grid-template-columns: 1fr; } }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--paper-alt); }
.section-dark { background: var(--slate); color: #fff; }
.section-dark .muted { color: rgba(255,255,255,.72); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-top: 12px; }
.section-head p { margin-top: 14px; }

.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* rich text from the CMS */
.prose { font-size: 1.04rem; color: var(--ink); }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 18px; }
.prose h3 { font-size: 1.35rem; margin: 40px 0 12px; }
.prose p { margin: 0 0 16px; color: var(--ink-soft); }
.prose ul, .prose ol { margin: 0 0 18px; padding-inline-start: 0; list-style: none; }
.prose li { position: relative; padding-inline-start: 30px; margin-bottom: 10px; color: var(--ink-soft); }
.prose ul li::before { content: ""; position: absolute; inset-inline-start: 6px; top: .7em; width: 9px; height: 9px; border-radius: 2px; background: var(--red); transform: rotate(45deg); }
.prose ol { counter-reset: step; }
.prose ol li { counter-increment: step; padding-inline-start: 46px; min-height: 34px; }
.prose ol li::before { content: counter(step, decimal-leading-zero); position: absolute; inset-inline-start: 0; top: 0; font-family: var(--font-mono); font-size: .78rem; font-weight: 600; color: var(--red); border: 1.5px solid var(--red); border-radius: 8px; padding: 4px 6px; line-height: 1.2; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 28px 0; padding: 26px 30px; background: var(--slate); color: #fff; border-radius: var(--r-m); font-family: var(--font-display); font-size: 1.18rem; line-height: 1.7; border-inline-start: 5px solid var(--red); }
.prose a { color: var(--red); text-decoration: underline; }

.sticky-card { position: sticky; top: 100px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: 28px; box-shadow: 0 10px 40px rgba(23,24,26,.06); }
.sticky-card img { border-radius: var(--r-m); margin-bottom: 20px; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.sticky-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.sticky-card .btn { width: 100%; justify-content: center; margin-top: 10px; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 26px; transition: transform .25s var(--ease), box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(23,24,26,.08); }
.card-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); font-size: 1.35rem; margin-bottom: 16px; }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: .95rem; }
.section-dark .card { background: var(--slate-2); border-color: var(--slate-line); }
.section-dark .card p { color: rgba(255,255,255,.72); }
.section-dark .card-icon { background: rgba(198,48,43,.18); color: #FFB3B0; }

.vm-card { position: relative; background: #fff; border-radius: var(--r-l); padding: 36px; border: 1px solid var(--line); overflow: hidden; }
.vm-card .tag { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .16em; color: var(--red); text-transform: uppercase; }
[dir="rtl"] .vm-card .tag { letter-spacing: 0; font-size: .9rem; font-weight: 700; }
.vm-card p { margin-top: 14px; font-size: 1.08rem; color: var(--ink-soft); }
.vm-card::after { content: ""; position: absolute; inset-inline-end: -40px; bottom: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--red-soft); opacity: .6; }

/* team */
.team-card { background: #fff; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line); }
.team-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; background: var(--paper-alt); }
.team-card .body { padding: 18px 20px 22px; }
.team-card h3 { font-size: 1.12rem; }
.team-card p { margin-top: 4px; font-size: .88rem; color: var(--ink-soft); }

/* ---------- contact ---------- */
.contact-cards .card { display: flex; gap: 16px; align-items: flex-start; }
.contact-cards .card-icon { margin: 0; flex-shrink: 0; }
.contact-cards a.value { font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.contact-cards .value[dir="ltr"] { display: inline-block; }
.form-card { background: #fff; border-radius: var(--r-l); padding: 34px; border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(23,24,26,.06); }
.form-card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.field { margin-top: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); font: inherit; color: var(--ink); transition: border-color .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); background: #fff; }
.field .error { color: var(--red); font-size: .85rem; margin-top: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert-ok { background: #E7F6EC; border: 1px solid #B9E4C6; color: #145A2E; padding: 14px 18px; border-radius: 12px; margin-bottom: 16px; font-weight: 500; }
.hours { width: 100%; border-collapse: collapse; font-size: .92rem; }
.hours td { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.hours td:last-child { text-align: end; font-family: var(--font-mono); }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--slate); color: #fff; font-size: 1.1rem; transition: background .2s; }
.socials a:hover { background: var(--red); }
.emergency-band { background: var(--red); color: #fff; border-radius: var(--r-l); padding: 34px 38px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.emergency-band h3 { font-size: 1.5rem; }
.emergency-band p { color: rgba(255,255,255,.85); margin-top: 4px; }

/* ---------- footer ---------- */
.site-footer { background: var(--slate); color: rgba(255,255,255,.78); padding: 64px 0 28px; margin-top: 0; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 960px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; font-weight: 500; }
[dir="rtl"] .site-footer h4 { letter-spacing: 0; font-size: .9rem; font-weight: 700; }
.site-footer a:hover { color: #fff; }
.site-footer li { list-style: none; margin-bottom: 8px; }
.site-footer ul { padding: 0; margin: 0; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; margin-bottom: 14px; }
.footer-brand img { height: 52px; background: #fff; border-radius: 12px; padding: 4px; }
.footer-bottom { border-top: 1px solid var(--slate-line); margin-top: 40px; padding-top: 22px; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* floating WhatsApp */
.fab-whatsapp { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #1FAF55; color: #fff; display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 10px 30px rgba(31,175,85,.4); }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
