/* Varvavet — design system. Palette measured from varvavet-logo-04.png:
   navy #013a7a (dominant), red #a01010 (accent/CTA), white bg. Flat, muted. */

:root {
  --navy: #013a7a;
  --navy-dark: #012b5c;
  --navy-soft: #e9eef6;
  --red: #a01010;
  --white: #fefefe;
  --off-white: #f0f0f0;
  --ink: #1a1a1a;
  --muted: #56616c;
  --line: #dde2e9;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(1, 43, 92, 0.09);
}

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

/* [hidden] must always win over component display rules (e.g. .contact-actions) */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  font-family: var(--font);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- accessibility ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--white);
  padding: 0.6rem 1rem; z-index: 100; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: var(--white); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- wordmark font (Product Sans Bold — Aris's choice, subsetted to wordmark glyphs) ---------- */
@font-face {
  font-family: "VarvaVet Display";
  src: url("/fonts/varvavet-display.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 64px;
}
.wordmark {
  display: inline-flex; align-items: center;
  text-decoration: none; white-space: nowrap;
}
.wordmark img { display: block; height: 40px; width: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 1.25rem; }
.nav a { text-decoration: none; font-size: 0.95rem; font-weight: 500; }

/* mobile nav toggle — hidden on desktop */
.nav-toggle {
  margin-left: auto; display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--white); color: var(--navy); cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle[aria-expanded="true"] { color: var(--red); }

/* language pill — EL/EN */
.lang-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 52px; padding: 0.35rem 0.8rem;
  border-radius: 999px; border: 1.5px solid var(--navy);
  background: transparent; color: var(--navy);
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.06em;
  cursor: pointer; transition: background 0.15s ease, color 0.15s ease;
}
.lang-toggle:hover { background: var(--navy-soft); }

/* nav CTA («Ραντεβού») — maroon */
.nav-cta {
  display: inline-block; padding: 0.5rem 1.15rem;
  border-radius: 999px; background: #a21213; color: var(--white);
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.02em;
  transition: background 0.15s ease, transform 0.15s ease;
}
.nav-cta:hover { background: #8c0d0d; color: var(--white); transform: translateY(-1px); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 64px; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 28px rgba(1, 20, 45, 0.12);
    display: none; padding: 0.6rem 1.2rem 1rem;
  }
  .nav.open { display: flex; }
  .nav a, .nav .nav-cta { padding: 0.85rem 0.3rem; text-align: center; }
  .nav .nav-cta { border-radius: 10px; }
  .nav .lang-toggle { margin: 0.5rem auto 0; }
}

/* ---------- branch popup (floating bottom-right) ---------- */
.branch-fab { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.branch-fab-card {
  background: var(--white); border: 1px solid rgba(1, 58, 122, 0.18);
  border-radius: 14px; box-shadow: 0 14px 36px rgba(1, 20, 45, 0.22);
  padding: 0.7rem; width: 270px; display: block;
}
.branch-fab-card[hidden] { display: none; }
.branch-fab-head { display: flex; align-items: center; justify-content: space-between; padding: 0.15rem 0.55rem 0.5rem; }
.branch-fab-label { font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.branch-fab-close { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 0.25rem; border-radius: 6px; display: inline-flex; }
.branch-fab-close:hover { color: var(--navy); background: rgba(1, 58, 122, 0.07); }
.branch-fab-btn {
  width: 46px; height: 46px; border-radius: 999px; border: 0; cursor: pointer;
  background: #a21213; color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(1, 20, 45, 0.28);
  transition: background 0.2s ease, transform 0.2s ease;
}
.branch-fab-btn:hover { background: #8c0d0d; transform: translateY(-2px); }
.branch-fab-btn[aria-expanded="true"] { background: #8c0d0d; }
.branch-fab-btn svg { transition: transform 0.25s ease; }

/* attention motion — mobile only, gentle bounce every few seconds */
@keyframes fab-attn {
  0%, 74%, 100% { transform: translateY(0) scale(1); }
  80% { transform: translateY(-5px) scale(1.07); }
  86% { transform: translateY(0) scale(1); }
  90% { transform: translateY(-2px) scale(1.03); }
  94% { transform: translateY(0) scale(1); }
}
@media (max-width: 860px) and (prefers-reduced-motion: no-preference) {
  .branch-fab-btn:not(:hover):not([aria-expanded="true"]) { animation: fab-attn 4.5s ease-in-out infinite; }
}

.branch-link {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.55rem 0.7rem; border-radius: 9px; text-decoration: none;
}

.branch-link:hover { background: rgba(1, 58, 122, 0.06); }

.branch-link .b-dot { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

.branch-link .b-dot.clinic { background: rgba(1, 58, 122, 0.1); color: var(--navy); }

.branch-link .b-dot.agro { background: rgba(45, 100, 55, 0.12); color: #2d6437; }

.branch-link .b-dot.medi { background: rgba(162, 18, 19, 0.1); color: #a21213; }

.branch-link .b-dot svg { width: 18px; height: 18px; }

.branch-link .b-txt { display: flex; flex-direction: column; }

.branch-link .b-txt strong { font-size: 0.93rem; color: var(--navy); font-weight: 700; }

.branch-link .b-txt span { font-size: 0.8rem; color: var(--muted); }

.branch-link[aria-current="page"] .b-txt strong { color: var(--red); }
/* ---------- hero ---------- */
.hero { padding: 3.5rem 0 4rem; background: var(--white); }
.hero .container {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem; align-items: center;
}
.kicker {
  color: var(--red); font-weight: 700; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.9rem;
}
h1 {
  color: var(--navy); line-height: 1.15; font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem);
  font-weight: 800; margin-bottom: 1.1rem;
}
.hero .sub { color: var(--muted); max-width: 34rem; margin-bottom: 1.8rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-logo {
  background: transparent; border: 0; border-radius: 0; padding: 0;
  box-shadow: none;
  text-align: center;
}
/* interactive branch trio (periodic pulse + touch to expand names) */
.hero-trio {
  display: flex; justify-content: center; align-items: flex-end; gap: 6%;
  margin: 0.9rem auto 0; width: 75%; max-width: 340px;
}
.trio-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  text-decoration: none; flex: 1 1 0; min-width: 0;
  opacity: 0.85; transition: opacity 0.18s ease, transform 0.18s ease;
}
.trio-item:hover, .trio-item:focus-visible {
  opacity: 1; transform: translateY(-3px) scale(1.05); cursor: pointer;
}
.trio-item img { display: block; width: 100%; height: auto; }

/* periodic pulse: clinic -> medi -> agro — soft smooth swell, ~7.5s cycle */
@keyframes trio-pulse {
  0%, 9.3%, 100% { transform: scale(1); }
  3.5% { transform: scale(1.12); }
}
.hero-trio .trio-item[data-name="clinic"] img { animation: trio-pulse 7.5s cubic-bezier(0.37, 0, 0.35, 1) infinite; }
.hero-trio .trio-item[data-name="medi"] img   { animation: trio-pulse 7.5s cubic-bezier(0.37, 0, 0.35, 1) infinite; animation-delay: 2.5s; }
.hero-trio .trio-item[data-name="agro"] img   { animation: trio-pulse 7.5s cubic-bezier(0.37, 0, 0.35, 1) infinite; animation-delay: 5s; }

@media (prefers-reduced-motion: reduce) {
  .hero-trio .trio-item img { animation: none; }
}

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-logo { order: -1; max-width: 420px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  padding: 0.75rem 1.5rem; border-radius: var(--radius);
  font-size: 1rem; cursor: pointer; border: 2px solid transparent;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: #8c0d0d; color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy-soft); color: var(--navy-dark); }

/* ---------- sections ---------- */
section { padding: 3.5rem 0; }
.section-head { max-width: 40rem; margin-bottom: 2.2rem; }
h2 {
  color: var(--navy); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  font-weight: 800; margin-bottom: 0.6rem;
}
.section-head p { color: var(--muted); }

/* services */
.services { background: var(--off-white); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
}
.card .icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--navy-soft); color: var(--navy);
  display: grid; place-items: center; margin-bottom: 1rem;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { color: var(--navy); font-size: 1.08rem; margin-bottom: 0.45rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* about — navy band */
.about { background: var(--navy); color: var(--white); }
.about h2 { color: var(--white); }
.about p { max-width: 46rem; margin-bottom: 1rem; opacity: 0.92; }
.about .sig {
  margin-top: 1.6rem; font-weight: 700; font-size: 1.1rem; color: var(--white);
  border-left: 3px solid var(--red); padding-left: 0.9rem;
}

/* hours & location */
.hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.hours-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.hours-table th, .hours-table td {
  text-align: left; padding: 0.6rem 0.4rem;
  border-bottom: 1px solid var(--line); font-size: 0.97rem;
}
.hours-table th { color: var(--navy); font-weight: 700; }
.hours-table td { color: var(--muted); }
.hours-table .closed { color: var(--red); font-weight: 600; }
.hours-note { margin-top: 0.8rem; font-size: 0.9rem; color: var(--muted); }
.map-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); background: var(--off-white);
}
.map-card iframe { width: 100%; height: 340px; border: 0; display: block; }
.addr {
  padding: 0.9rem 1.1rem; font-size: 0.95rem; color: var(--muted);
  background: var(--white); border-top: 1px solid var(--line);
}
.addr strong { color: var(--navy); display: block; margin-bottom: 0.15rem; }
@media (max-width: 860px) { .hours-grid { grid-template-columns: 1fr; } }

/* contact */
.contact { background: var(--off-white); text-align: center; }
.contact .section-head { margin-left: auto; margin-right: auto; }
.contact-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  margin-top: 1.6rem;
}
.contact-detail { margin-top: 1.4rem; color: var(--muted); font-size: 0.95rem; }
.contact-detail a { font-weight: 700; }

/* ---------- stats band (pillars) ---------- */
.stats { background: var(--navy); padding: 3.2rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat { border-top: 3px solid var(--red); padding-top: 1rem; }
.stat-num {
  color: var(--white); font-size: 1.9rem; font-weight: 800;
  line-height: 1.1; margin-bottom: 0.45rem; letter-spacing: 0.01em;
}
.stat-desc { color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; line-height: 1.55; }
@media (max-width: 960px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stats-grid { grid-template-columns: 1fr; gap: 1.4rem; } }

/* wide highlight card (7th service) */

/* ---------- footer ---------- */
.site-footer { background: var(--navy-dark); color: var(--white); padding: 2.5rem 0; }
.site-footer .container {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.site-footer .wordmark { color: var(--white); }
.site-footer .tagline { color: rgba(255, 255, 255, 0.75); font-size: 0.92rem; }
.site-footer .founded { color: rgba(255, 255, 255, 0.65); font-size: 0.88rem; margin-left: 0.4rem; }
.site-footer .foot-links { margin-left: auto; display: flex; gap: 1.4rem; }
.site-footer .foot-links a { color: rgba(255, 255, 255, 0.85); text-decoration: none; font-size: 0.92rem; }
.site-footer .foot-links a:hover { color: var(--white); text-decoration: underline; }
.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 1.6rem;
  padding-top: 1.3rem; font-size: 0.88rem; color: rgba(255, 255, 255, 0.65);
}
.copyright p { margin: 0; }
.copyright .entity { margin-top: 0.25rem; font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); }

/* ---------- legal pages ---------- */
.legal-page { max-width: 760px; margin: 0 auto; padding: 3rem 1.25rem 4rem; }
.legal-page h1 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
.legal-page p { color: var(--muted); margin-bottom: 1rem; }
.legal-page .back { display: inline-block; margin-bottom: 1.5rem; font-size: 0.95rem; }