﻿/* =========================================================
   Κτηνιατρείο Αντώνη Πατεράκη — base (v3)
   Ταυτότητα: editorial κάδρα (φωτογραφία + μετατοπισμένο πράσινο περίγραμμα),
   λεπτές γραμμές για σήματα,
   «λευκό εξεταστηρίου», πεύκο, πράσινο του λογοτύπου.
   Happy Style: ροδακινί, μαύρο, κύκλοι.
   1. Tokens  2. Base & type  3. Layout  4. Buttons & links
   5. Header / dropdown  6. Mobile menu  7. Footer & call bar
   8. Responsive
   ========================================================= */

/* 1. Tokens ------------------------------------------------ */
:root {
  --paper: #f5f7f3;
  --paper-2: #e9efe8;
  --paper-3: #dde6dc;
  --ink: #0f2620;
  --ink-2: #44574f;
  --line: rgba(15, 38, 32, 0.14);
  --line-strong: rgba(15, 38, 32, 0.32);

  --green: #1c9a4e;       /* πράσινο του λογοτύπου: σήματα, μεγάλα στοιχεία */
  --green-ink: #13703b;   /* για κείμενο και κουμπιά (AA σε λευκό/χαρτί) */
  --mint: #9fdcb3;        /* πράσινο πάνω σε πεύκο */

  --pine: #0f2620;
  --pine-2: #17342b;
  --on-pine: #eaf1eb;
  --on-pine-2: #a8bdb2;
  --pine-line: rgba(234, 241, 235, 0.16);

  --hs-peach: #ffcdba;
  --hs-peach-2: #ffbea6;
  --hs-ink: #1b1b1b;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Manrope", system-ui, sans-serif;

  --wrap: 1640px;
  --gutter: clamp(20px, 4vw, 56px);
  --gap: clamp(16px, 2vw, 32px);
  --sec: clamp(72px, 8vw, 128px);
  --sec-s: clamp(48px, 5.5vw, 88px);
  --header-h: 80px;
  --r: 4px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Base & type ------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: clip;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  font-variation-settings: "FLAR" 0;
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: inherit;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.45vw, 1.5rem); }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
dl, dd { margin: 0; }
address { font-style: normal; }
a { color: inherit; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: rgba(28, 154, 78, 0.15); }
table { border-collapse: collapse; }

/* Η τυπογραφική φωνή: λεπτό, «ανθισμένο» Didact Gothic στους τίτλους */
.display,
.display-2,
.display-3 {
  font-family: var(--font-head);
  font-variation-settings: "FLAR" 100;
  letter-spacing: -0.03em;
}
.display { font-size: clamp(2.375rem, 1.5rem + 2.9vw, 4.25rem); font-weight: 480; line-height: 1.02; }
.display-2 { font-size: clamp(2rem, 1.4rem + 1.9vw, 3.25rem); font-weight: 470; line-height: 1.06; }
.display-3 { font-size: clamp(1.625rem, 1.25rem + 1.1vw, 2.25rem); font-weight: 500; line-height: 1.12; letter-spacing: -0.025em; }

::selection { background: var(--mint); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--green-ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.site-footer :focus-visible,
.eq :focus-visible,
.p-process :focus-visible,
.p-cta :focus-visible,
.mobile-menu :focus-visible { outline-color: var(--mint); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.nw { white-space: nowrap; }

/* Χωρίς υπογράμμιση συνδέσμων πουθενά στο site. */
a, a:hover, a:focus-visible { text-decoration: none; }

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--ink); color: var(--paper);
  border-radius: var(--r);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

.icon { width: 20px; height: 20px; flex: none; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 30px; height: 30px; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--green-ink);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--green); }

.lead { font-size: 1.1875rem; color: var(--ink-2); max-width: 52ch; }

/* 3. Layout ------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

/* 4. Buttons & links --------------------------------------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--r);
  background: var(--green-ink);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.35s var(--ease);
}
/* Γέμισμα από κάτω προς τα πάνω στο hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
}
.btn:hover::before,
.btn:focus-visible::before { transform: none; }
.btn__num {
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  font-variant-numeric: tabular-nums;
}
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; gap: 10px; }
.btn--xl { min-height: 60px; padding: 0 28px; font-size: 1.0625rem; }

.btn--light { background: var(--paper); color: var(--ink); }
.btn--light::before { background: var(--mint); }
.btn--light .btn__num { border-color: var(--line-strong); }

/* Happy Style: δικό του, στρογγυλό κουμπί */
.btn--hs { border-radius: 999px; background: var(--hs-ink); color: #fff; }
.btn--hs::before { background: var(--green-ink); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}
.link-arrow .icon { transition: transform 0.35s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s;
}
.icon-btn:hover { background: var(--paper-2); border-color: var(--ink); }

/* 5. Header ------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 247, 243, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}
.brand { display: inline-flex; flex: none; }
.brand__logo { width: auto; height: 42px; }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.96875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
/* Λεπτή γραμμή κάτω από τον ενεργό/hover σύνδεσμο */
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after,
.nav-link.is-active::after { transform: none; }
.nav-link .chev { transition: transform 0.3s var(--ease); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-link--hs { font-weight: 600; }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: -24px;
  width: min(640px, 80vw);
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 24px 48px -24px rgba(15, 38, 32, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease-out), visibility 0s linear 0.35s;
}
.dropdown.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dropdown__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; list-style: none; }
.dropdown__link {
  display: block;
  padding: 14px 16px;
  border-radius: var(--r);
  text-decoration: none;
  transition: background-color 0.2s;
}
.dropdown__link strong { display: block; font-weight: 600; }
.dropdown__link span { display: block; color: var(--ink-2); font-size: 0.875rem; }
.dropdown__link:hover,
.dropdown__link[aria-current="page"] { background: var(--paper-2); }
.dropdown__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 8px;
  padding: 16px 16px 6px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.header-cta { flex: none; }
.header-actions { display: none; gap: 8px; margin-left: auto; }

/* 6. Mobile menu ------------------------------------------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  background: var(--pine);
  color: var(--on-pine);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.3s var(--ease-out), transform 0.35s var(--ease-out);
}
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .mobile-menu { transition: none; transform: none; } }
.mobile-menu__top {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding-inline: var(--gutter);
  background: var(--pine);
}
.mobile-menu__top .brand { padding: 6px 10px; background: var(--paper); border-radius: var(--r); }
.mobile-menu__top .brand__logo { height: 34px; }
.mobile-menu .icon-btn { border-color: var(--pine-line); }
.mobile-menu .icon-btn:hover { background: var(--pine-2); }
.mobile-menu__body {
  display: grid;
  gap: 40px;
  padding: 16px var(--gutter) 40px;
}
.mobile-nav { list-style: none; }
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--pine-line);
  text-decoration: none;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.25;
}
.mobile-nav a[aria-current="page"] { color: var(--mint); }
.mobile-nav--sub { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }

.mobile-menu__label { margin-bottom: 8px; color: var(--on-pine-2); font-size: 0.9375rem; font-weight: 600; }
.mobile-hs {
  display: grid;
  gap: 16px;
  justify-items: start;
  padding: 24px;
  background: var(--hs-peach);
  color: var(--hs-ink);
  border-radius: 28px;
}
.mobile-hs img { width: 150px; mix-blend-mode: multiply; }
.mobile-menu__info { display: grid; gap: 12px; color: var(--on-pine-2); }
.mobile-menu__info p { display: flex; gap: 10px; align-items: flex-start; }
.mobile-menu__info .icon { margin-top: 4px; }
.mobile-menu__info .btn { margin-top: 8px; justify-self: stretch; }
.mobile-menu .btn::before { background: var(--pine-2); }
.mobile-hs .btn::before { background: var(--green-ink); }

@media (prefers-reduced-motion: no-preference) {
  .mobile-menu.is-open .mobile-menu__body > * { animation: menu-in 0.6s var(--ease-out) both; }
  .mobile-menu.is-open .mobile-menu__body > *:nth-child(2) { animation-delay: 0.06s; }
  .mobile-menu.is-open .mobile-menu__body > *:nth-child(3) { animation-delay: 0.12s; }
  .mobile-menu.is-open .mobile-menu__body > *:nth-child(4) { animation-delay: 0.18s; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* 7. Footer ------------------------------------------------ */
.site-footer {
  position: relative;
  background: var(--pine);
  color: var(--on-pine);
  padding: var(--sec-s) 0 32px;
  overflow: hidden;
}
.footer-call {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  gap: 8px 20px;
  padding-bottom: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--pine-line);
}
.footer-call p { color: var(--on-pine-2); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 400; }
.footer-call__num {
  color: var(--on-pine);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 500;
  font-variation-settings: "FLAR" 100;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.35s var(--ease);
}
.footer-call__num:hover { color: var(--mint); }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px var(--gap);
  padding: clamp(40px, 5vw, 64px) 0;
}
.footer-grid h2 {
  margin-bottom: 18px;
  line-height: 1;
  color: var(--on-pine-2);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.footer-grid ul { list-style: none; display: grid; gap: 6px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:not(.btn):hover { color: var(--mint); }
.footer-brand { display: grid; gap: 20px; align-content: start; max-width: 34ch; }
.footer-brand__logo { justify-self: start; padding: 10px 14px; background: var(--paper); border-radius: 16px; }
.footer-brand__logo img { height: 40px; width: auto; }
.footer-brand p { color: var(--on-pine-2); }
.footer-grid address { display: grid; gap: 6px; }
.footer-hours { display: grid; gap: 12px; }
.footer-hours span { color: var(--on-pine-2); font-variant-numeric: tabular-nums; }

.footer-hs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--hs-peach);
  color: var(--hs-ink);
  border-radius: 16px;
}
.footer-hs p { color: var(--hs-ink); font-size: 0.9375rem; }
.footer-hs__logo img { width: 112px; mix-blend-mode: multiply; }
.footer-hs .btn { margin-top: auto; }
.footer-hs .btn::before { background: var(--green-ink); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 32px;
  color: var(--on-pine-2);
  font-size: 0.875rem;
}

/* Σταθερή μπάρα κλήσης (κινητό) */
.callbar { display: none; }

/* 8. Responsive -------------------------------------------- */
@media (max-width: 1240px) {
  .main-nav, .header-cta { display: none; }
  .header-actions { display: flex; }
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
  .footer-hs { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .footer-hs .btn { margin-top: 0; }
}
@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .brand__logo { height: 34px; }
  .menu-btn span { display: none; }
  .btn--xl { min-height: 56px; padding: 0 22px; font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }

  .callbar {
    position: fixed;
    left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 40;
    display: flex;
    gap: 8px;
    padding: 8px;
    background: rgba(245, 247, 243, 0.96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 32px -16px rgba(15, 38, 32, 0.45);
    transform: translateY(calc(100% + 24px));
    transition: transform 0.4s var(--ease-out);
  }
  .callbar.is-visible { transform: none; }
  .callbar .btn { flex: 1; }
  .callbar .icon-btn { width: 52px; height: 52px; }
  body.has-callbar .site-footer { padding-bottom: 104px; }
}
@media (max-width: 420px) {
  .mobile-nav--sub { grid-template-columns: 1fr; }
  .btn__num { display: none; }
}

.footer-bottom a { color: var(--on-pine); font-weight: 600; text-decoration: none; }
.footer-bottom a:hover { color: var(--mint); }

/* Στόχοι αφής: τουλάχιστον 44px ύψος στους συνδέσμους (WCAG 2.5.8 / οδηγίες κινητού). */
.brand { min-height: 44px; align-items: center; }
.link-arrow { min-height: 44px; }
.footer-grid address { gap: 0; }
.footer-grid address > a { display: flex; align-items: center; min-height: 44px; }
.footer-grid address > span { padding: 4px 0 8px; }
.footer-call__num { display: inline-flex; align-items: center; min-height: 44px; }
.big-phone { display: inline-flex; align-items: center; min-height: 44px; }
.p-note a, .contact__col p a, .info-block p a { display: inline-block; padding-block: 10px; }









