/* ============================================================
   European Veterinary Centre — design system
   Palette keyed to logo.webp (teal shield + terracotta heart)
   ============================================================ */




:root {
  --bg: #F7FAFA;
  --surface: #FFFFFF;
  --surface-2: #EEF5F4;
  --text: #16302E;
  --muted: #5C7472;
  --primary: #0C5F5C;
  --primary-700: #094744;
  --secondary: #5E9593;
  --accent: #DA6E47;
  --accent-600: #C65B36;
  --border: #D9E4E3;
  --focus: #0C5F5C;

  --maxw: 1180px;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(16,48,46,.04), 0 2px 8px rgba(16,48,46,.05);
  --shadow: 0 4px 14px rgba(16,48,46,.07), 0 18px 40px -22px rgba(16,48,46,.28);
  --shadow-lg: 0 24px 70px -28px rgba(12,95,92,.45);

  --ff-head: 'Poppins', system-ui, sans-serif;
  --ff-body: 'Source Sans 3', system-ui, sans-serif;

  --header-h: 74px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  color: var(--text);
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--primary); text-decoration: none; }

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.section { padding-block: clamp(56px, 9vw, 104px); }
.section--tint { background: var(--surface-2); }
.section--teal { background: var(--primary); color: #EAF4F3; }
.section--teal h1, .section--teal h2, .section--teal h3 { color: #fff; }

.center { text-align: center; }
.measure { max-width: 62ch; }
.mx-auto { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-head); font-weight: 600;
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary); margin: 0 0 14px;
}
.section--teal .eyebrow { color: #9FD2CD; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }

.h-display { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 700; }
.h-section { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 600; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); line-height: 1.6; }
.section--teal .lead { color: #BFE0DC; }

/* ---------- buttons ---------- */
.btn {
  --bg-btn: var(--primary);
  --fg-btn: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--ff-head); font-weight: 600; font-size: 1rem;
  line-height: 1; padding: 15px 26px; min-height: 52px;
  border-radius: 999px; border: 1.5px solid transparent;
  background: var(--bg-btn); color: var(--fg-btn);
  cursor: pointer; transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  box-shadow: var(--shadow-sm); white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn svg { width: 19px; height: 19px; flex: none; }

.btn--accent { --bg-btn: var(--accent); }
.btn--accent:hover { background: var(--accent-600); }
.btn--ghost {
  --bg-btn: transparent; --fg-btn: var(--primary);
  border-color: var(--border); box-shadow: none;
}
.btn--ghost:hover { background: var(--surface); border-color: var(--secondary); }
.btn--on-teal { --bg-btn: #fff; --fg-btn: var(--primary); }
.btn--ghost-teal { --bg-btn: transparent; --fg-btn: #fff; border-color: rgba(255,255,255,.45); box-shadow:none; }
.btn--ghost-teal:hover { background: rgba(255,255,255,.12); }
.btn--lg { min-height: 58px; padding: 18px 32px; font-size: 1.06rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- tags / chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 8px 15px; font-size: .9rem; font-weight: 500;
  color: var(--text);
}
.chip svg { width: 16px; height: 16px; color: var(--primary); }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #C3D7D5; }

.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* service card */
.svc { display: flex; flex-direction: column; }
.svc__media { position: relative; aspect-ratio: 16/11; overflow: hidden; background: var(--surface-2); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.svc:hover .svc__media img { transform: scale(1.05); }
.svc__num { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,.92); color: var(--primary); font-family: var(--ff-head); font-weight: 700; font-size: .8rem; padding: 4px 10px; border-radius: 999px; }
.svc__body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.svc__body h3 { font-size: 1.18rem; margin-bottom: 6px; }
.svc__body p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247,250,250,.82); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--ff-head); font-weight: 500; font-size: .98rem; color: var(--text);
  padding: 9px 14px; border-radius: 999px; transition: background .15s ease, color .15s ease;
}
.nav a:hover { background: var(--surface-2); color: var(--primary); }
.nav a.is-active { color: var(--primary); }
.nav a.is-active::after { content:""; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { min-height: 46px; padding: 12px 20px; }

.nav-toggle { display: none; align-items:center; justify-content:center; width: 48px; height: 48px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; color: var(--text); }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 90; display: none; }
.drawer[data-open="true"] { display: block; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(16,48,46,.45); opacity: 0; transition: opacity .25s ease; }
.drawer[data-open="true"] .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(86vw, 360px);
  background: var(--surface); box-shadow: var(--shadow-lg);
  transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; padding: 22px;
}
.drawer[data-open="true"] .drawer__panel { transform: translateX(0); }
.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer__top img { height: 46px; }
.drawer__close { width: 46px; height: 46px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; display:flex; align-items:center; justify-content:center; }
.drawer__close svg { width: 22px; height: 22px; }
.drawer__nav { display: flex; flex-direction: column; gap: 2px; margin: 10px 0 18px; }
.drawer__nav a { font-family: var(--ff-head); font-weight: 500; font-size: 1.12rem; padding: 14px 12px; border-radius: 12px; color: var(--text); }
.drawer__nav a:hover, .drawer__nav a.is-active { background: var(--surface-2); color: var(--primary); }
.drawer__cta { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }

/* ---------- emergency band ---------- */
.emband {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-600) 100%);
  color: #fff; border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px);
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
  box-shadow: 0 24px 60px -30px rgba(198,91,54,.7);
}
.emband h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.emband p { color: rgba(255,255,255,.92); margin: 0; max-width: 52ch; }
.emband .btn--on-accent { background: #fff; color: var(--accent-600); }
.emband__pulse { display:inline-flex; align-items:center; gap:10px; font-weight:600; font-family:var(--ff-head); margin-bottom: 8px; font-size:.82rem; letter-spacing:.12em; text-transform:uppercase; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(255,255,255,.6);} 70%{box-shadow:0 0 0 12px rgba(255,255,255,0);} 100%{box-shadow:0 0 0 0 rgba(255,255,255,0);} }

/* ---------- team ---------- */
.tcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease; }
.tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tcard__media { aspect-ratio: 4/5; overflow: hidden; background: var(--surface-2); }
.tcard__media img { width:100%; height:100%; object-fit: cover; object-position: center top; }
.tcard__body { padding: 16px 18px 20px; }
.tcard__body h3 { font-size: 1.08rem; margin: 0 0 2px; }
.tcard__role { color: var(--accent-600); font-weight: 600; font-size: .9rem; margin: 0; }
.tcard--noimg .tcard__media { display:flex; align-items:center; justify-content:center; }
.tcard__mono { width: 84px; height: 84px; border-radius: 50%; background: var(--primary); color:#fff; display:flex; align-items:center; justify-content:center; font-family:var(--ff-head); font-weight:700; font-size:1.7rem; }

/* ---------- info rows ---------- */
.inforow { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--border); }
.inforow:last-child { border-bottom: none; }
.inforow__ic { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--surface-2); color: var(--primary); display:flex; align-items:center; justify-content:center; }
.inforow__ic svg { width: 22px; height: 22px; }
.inforow h4 { margin: 0 0 2px; font-size: 1rem; }
.inforow p { margin: 0; color: var(--muted); font-size: .98rem; }
.inforow a { font-weight: 600; }

/* ---------- map placeholder ---------- */
.map-ph {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 300px;
  background:
    repeating-linear-gradient(45deg, #E6EFEE 0 14px, #EDF4F3 14px 28px);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.map-ph__tag { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; font-family: var(--ff-head); font-weight: 500; color: var(--muted); display:flex; align-items:center; gap:10px; box-shadow: var(--shadow-sm); max-width: 80%; text-align:center; }
.map-ph__tag svg { width: 22px; height: 22px; color: var(--primary); flex:none; }

/* ---------- form ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-family: var(--ff-head); font-weight: 500; font-size: .92rem; }
.field .req { color: var(--accent-600); }
.field input, .field select, .field textarea {
  font-family: var(--ff-body); font-size: 1rem; color: var(--text);
  padding: 13px 15px; border: 1.5px solid var(--border); border-radius: 12px;
  background: var(--surface); transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(12,95,92,.14); }
.field textarea { resize: vertical; min-height: 110px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-note { font-size: .86rem; color: var(--muted); margin-top: 4px; }
.form-success { background: #ECF6EE; border: 1px solid #BFE3C6; color: #1C5B2E; border-radius: 12px; padding: 16px 18px; display:none; align-items:flex-start; gap:10px; }
.form-success svg { width: 22px; height: 22px; flex:none; }

/* ---------- footer ---------- */
.site-footer { background: var(--primary-700); color: #C9E1DE; padding-block: clamp(48px, 7vw, 76px) 0; }
.site-footer a { color: #C9E1DE; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-brand img { height: 116px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: #9FC4C0; font-size: .96rem; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col li { font-size: .98rem; }
.footer-social { display: flex; gap: 10px; margin-top: 4px; }
.footer-social a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; transition: background .15s ease; }
.footer-social a:hover { background: rgba(255,255,255,.18); }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: clamp(36px,5vw,56px); padding: 22px 0; display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap; font-size:.88rem; color:#8FB8B4; }

/* ---------- mobile sticky action bar ---------- */
.mobilebar { display: none; }
@media (max-width: 860px) {
  .mobilebar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 7px 7px calc(7px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px -16px rgba(16,48,46,.5);
  }
  .mobilebar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    font-family: var(--ff-head); font-weight: 500; font-size: .68rem; color: var(--text);
    padding: 7px 2px; border-radius: 12px; min-height: 52px;
  }
  .mobilebar a svg { width: 22px; height: 22px; }
  .mobilebar a.is-emerg { color: var(--accent-600); }
  .mobilebar a.is-book { color: var(--primary); }
  body { padding-bottom: 74px; }
}

/* ---------- reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
  html.js-reveal .reveal.in { opacity: 1; transform: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(26px, 4vw, 56px); align-items: center; padding-block: clamp(40px, 6vw, 80px); }
.hero__panel {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(180deg, #F7C948 0%, #F2B705 100%);
  aspect-ratio: 4/5; box-shadow: var(--shadow-lg);
}
.hero__panel img { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; object-position: center 30%; }
.hero__badge {
  position: absolute; left: 18px; bottom: 18px; background: rgba(255,255,255,.94);
  border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow); display:flex; align-items:center; gap:12px; max-width: calc(100% - 36px);
}
.hero__badge .ic { width: 42px; height: 42px; border-radius: 10px; background: var(--surface-2); color: var(--primary); display:flex; align-items:center; justify-content:center; flex:none; }
.hero__badge .ic svg { width: 22px; height: 22px; }
.hero__badge b { display:block; font-family: var(--ff-head); font-size:.98rem; }
.hero__badge span { font-size:.84rem; color: var(--muted); }
.trust-strip { display:flex; flex-wrap:wrap; gap:10px; margin-top: 26px; }

/* page hero (interior) */
.pagehero { background: var(--primary); color: #fff; position: relative; overflow:hidden; }
.pagehero::after { content:""; position:absolute; right:-80px; top:-80px; width:320px; height:320px; border-radius:50%; background: rgba(255,255,255,.05); }
.pagehero .container { position: relative; padding-block: clamp(48px, 7vw, 88px); }
.pagehero h1 { color:#fff; font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight:700; }
.pagehero p { color:#BFE0DC; max-width: 56ch; font-size: clamp(1.02rem,1.5vw,1.18rem); }
.breadcrumb { font-size:.84rem; color:#9FD2CD; margin-bottom: 14px; font-family:var(--ff-head); font-weight:500; letter-spacing:.04em; }
.breadcrumb a { color:#9FD2CD; }

/* split feature */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,64px); align-items:center; }
.split__media { border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow); aspect-ratio: 5/4; }
.split__media img { width:100%; height:100%; object-fit: cover; }

.stat-row { display:flex; gap: clamp(20px,4vw,52px); flex-wrap:wrap; }
.stat b { display:block; font-family: var(--ff-head); font-weight:700; font-size: clamp(2rem,4vw,2.8rem); color: var(--primary); line-height:1; }
.stat span { color: var(--muted); font-size:.96rem; }
.section--teal .stat b { color:#fff; }
.section--teal .stat span { color:#BFE0DC; }

/* gallery */
.gallery { display:grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 14px; }
.gallery a { border-radius: var(--radius-sm); overflow:hidden; display:block; }
.gallery img { width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.gallery a:hover img { transform: scale(1.06); }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .brand img { height: 46px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__panel { aspect-ratio: 5/4; order: -1; }
  .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: -1; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .emband { flex-direction: column; align-items: flex-start; text-align: left; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .btn-row .btn { width: 100%; }
}
