/* ===================================================================
   Athens Vision — Refreshed homepage
   Design system + components
=================================================================== */
:root {
  /* Athens Vision brand blues */
  --teal-900: #16324f;
  --teal-700: #204066;
  --teal-600: #1577b0;
  --teal-500: #1d9ad6;
  --teal-400: #4fc3f0;
  --teal-50:  #e8f6fc;

  --ink:      #14222e;
  --ink-2:    #32485a;
  --muted:    #647d90;
  --line:     #e1e9ef;
  --bg:       #ffffff;
  --bg-soft:  #f3f8fb;
  --bg-mint:  #e8f4fb;

  --gold:     #d9a441;

  --radius:   18px;
  --radius-sm:12px;
  --shadow-sm: 0 1px 2px rgba(22,50,79,.06), 0 4px 14px rgba(22,50,79,.07);
  --shadow:   0 10px 30px rgba(22,50,79,.12);
  --shadow-lg:0 24px 60px rgba(22,50,79,.18);

  --container: 1180px;
  --ease: cubic-bezier(.16,.84,.44,1);

  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Sora", var(--font-body);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 14px;
}

.grad {
  background: linear-gradient(100deg, var(--teal-500), var(--teal-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn--primary {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: #fff;
  box-shadow: 0 10px 24px rgba(29,154,214,.32);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(29,154,214,.42); }
.btn--ghost { background: transparent; color: var(--teal-700); border-color: var(--teal-600); }
.btn--ghost:hover { background: var(--teal-600); color: #fff; transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--teal-700); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.link-arrow {
  font-weight: 600;
  color: var(--teal-700);
  font-size: .92rem;
  transition: gap .2s, color .2s;
}
.link-arrow:hover { color: var(--teal-500); }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--teal-900);
  color: #cfeae6;
  font-size: .85rem;
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 42px; }
.topbar__locations { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-400); display: inline-block; }
.dot:not(:first-child) { margin-left: 8px; }
.topbar__contact { display: flex; align-items: center; gap: 18px; }
.topbar__phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: #fff; }
.topbar__phone:hover { color: var(--teal-400); }
.topbar__emergency {
  background: var(--gold);
  color: #3a2a00;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.topbar__emergency:hover { filter: brightness(1.08); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background .3s;
}
.header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); background: rgba(255,255,255,.95); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__img { height: 42px; width: auto; display: block; }
.logo__img--footer { height: 56px; }
.logo__mark { color: var(--teal-600); display: inline-flex; }
.logo__text { font-family: var(--font-head); font-weight: 600; font-size: 1.35rem; color: var(--ink); letter-spacing: -.02em; }
.logo__text strong { color: var(--teal-600); }
.logo--light .logo__text { color: #fff; }
.logo--light .logo__text strong { color: var(--teal-400); }

.nav { display: flex; gap: 6px; }
.nav a {
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 999px;
  position: relative;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--teal-700); background: var(--teal-50); }

.header__actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 70px 0 120px; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(79,195,240,.18), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(29,154,214,.12), transparent 60%),
    linear-gradient(180deg, var(--bg-mint), #fff 70%);
  z-index: -2;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__content h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; margin-bottom: 20px; }
.hero__content > p { font-size: 1.12rem; color: var(--ink-2); max-width: 30em; margin-bottom: 30px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__trust { display: flex; gap: 34px; flex-wrap: wrap; }
.hero__trust div { display: flex; flex-direction: column; }
.hero__trust strong { font-family: var(--font-head); font-size: 1.7rem; color: var(--teal-700); }
.hero__trust span { font-size: .85rem; color: var(--muted); }

.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  border-radius: 26px;
  aspect-ratio: 4/4.4;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.hero__card {
  position: absolute;
  bottom: 26px; left: -26px;
  background: #fff;
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  animation: float 4s ease-in-out infinite;
}
.hero__card-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal-400), var(--teal-700));
  color: #fff; font-size: 1.1rem;
}
.hero__card strong { display: block; font-family: var(--font-head); font-size: .95rem; }
.hero__card small { color: var(--muted); font-size: .8rem; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero__wave {
  position: absolute; bottom: -1px; left: 0; right: 0; height: 90px;
  background: #fff;
  clip-path: polygon(0 55%, 100% 0, 100% 100%, 0 100%);
  z-index: -1;
}

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section__head { text-align: center; max-width: 660px; margin: 0 auto 56px; }
.section__head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; margin-bottom: 14px; }
.section__head p { color: var(--ink-2); font-size: 1.05rem; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 1.5rem;
  color: var(--teal-700);
  background: var(--bg-mint);
  margin-bottom: 18px;
  transition: background .3s, color .3s;
}
.service-card:hover .service-card__icon { background: linear-gradient(135deg, var(--teal-500), var(--teal-700)); color: #fff; }
.service-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.service-card p { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }

/* ---------- About ---------- */
.about { background: var(--bg-soft); }
.about__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.about__media { position: relative; }
.about__media img { width: 100%; border-radius: 24px; aspect-ratio: 4/4; object-fit: cover; box-shadow: var(--shadow); }
.about__badge {
  position: absolute; right: -18px; bottom: 30px;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-900));
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 2rem;
  padding: 18px 22px; border-radius: 18px; line-height: 1;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 4px;
}
.about__badge small { font-size: .72rem; font-weight: 600; opacity: .85; letter-spacing: .04em; }
.about__content h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); font-weight: 800; margin-bottom: 16px; }
.about__content > p { color: var(--ink-2); font-size: 1.05rem; margin-bottom: 22px; }
.checklist { list-style: none; margin-bottom: 28px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; color: var(--ink-2); font-weight: 500; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal-500); color: #fff; font-size: .75rem; font-weight: 700;
  display: grid; place-items: center;
}

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 70px;
}
.stat {
  text-align: center;
  padding: 30px 16px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.stat strong { display: block; font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; color: var(--teal-700); }
.stat span { color: var(--muted); font-size: .92rem; font-weight: 600; }

/* ---------- Locations ---------- */
.locations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.location-card {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: linear-gradient(170deg, var(--teal-900), var(--teal-700));
  color: #d7f0ec;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease);
}
.location-card::after {
  content: ""; position: absolute; top: -40px; right: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,195,240,.35), transparent 70%);
}
.location-card:hover { transform: translateY(-6px); }
.location-card h3 { color: #fff; font-size: 1.2rem; margin-bottom: 10px; }
.location-card p { font-size: .95rem; margin-bottom: 18px; }
.location-card .link-arrow { color: var(--teal-400); }

/* ---------- Check-up ---------- */
.checkup { background: var(--bg-soft); }
.checkup-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: start; }
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.price-card--featured {
  border-color: var(--teal-500);
  box-shadow: 0 20px 50px rgba(29,154,214,.18);
}
.badge {
  position: absolute; top: -12px; left: 26px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  padding: 5px 14px; border-radius: 999px; text-transform: uppercase;
}
.price-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.price { font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; color: var(--ink); margin-bottom: 18px; }
.price span { font-size: 1rem; color: var(--muted); font-weight: 600; }
.price-card ul { list-style: none; margin-bottom: 22px; display: grid; gap: 10px; }
.price-card ul li { position: relative; padding-left: 24px; font-size: .9rem; color: var(--ink-2); }
.price-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--teal-500); font-weight: 700; }

/* ---------- Doctors ---------- */
.doctors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.doctor-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  padding-bottom: 24px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.doctor-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.doctor-card__photo { aspect-ratio: 1/1; overflow: hidden; background: var(--bg-mint); }
.doctor-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.doctor-card:hover .doctor-card__photo img { transform: scale(1.06); }
.doctor-card h3 { font-size: 1.1rem; margin: 20px 20px 4px; }
.doctor-card__role { color: var(--teal-600); font-weight: 700; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.doctor-card p { color: var(--muted); font-size: .88rem; margin: 12px 20px 0; }
.doctors__cta { text-align: center; margin-top: 44px; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(60% 120% at 80% 0%, rgba(79,195,240,.25), transparent 60%),
    linear-gradient(120deg, var(--teal-900), var(--teal-700));
  color: #fff;
}
.cta-band__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding: 60px 0; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 8px; }
.cta-band p { color: #cfeae6; max-width: 40em; }

/* ---------- Contact ---------- */
.contact__inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.contact__intro h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); font-weight: 800; margin-bottom: 14px; }
.contact__intro > p { color: var(--ink-2); margin-bottom: 26px; }
.contact__list { list-style: none; display: grid; gap: 16px; }
.contact__list li { display: flex; align-items: center; gap: 14px; font-weight: 600; color: var(--ink); }
.contact__list span {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-mint); color: var(--teal-700); font-size: 1.1rem;
}
.contact__form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: .95rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(29,154,214,.16);
}
.field input.invalid, .field select.invalid { border-color: #e05656; box-shadow: 0 0 0 4px rgba(224,86,86,.12); }
.field textarea { resize: vertical; }
.form-status { margin-top: 14px; font-weight: 600; font-size: .92rem; min-height: 1.2em; }
.form-status.success { color: var(--teal-700); }
.form-status.error { color: #e05656; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-card__img { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-mint); }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.news-card:hover .news-card__img img { transform: scale(1.06); }
.news-card__body { padding: 22px 24px 26px; }
.news-card__body time { font-size: .8rem; color: var(--teal-600); font-weight: 700; letter-spacing: .04em; }
.news-card__body h3 { font-size: 1.08rem; margin: 8px 0 16px; line-height: 1.3; }

/* ---------- Footer ---------- */
.footer { background: var(--teal-900); color: #b9d8d3; padding-top: 64px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer__brand p { margin: 16px 0 22px; font-size: .95rem; max-width: 30em; }
.newsletter { display: flex; gap: 10px; max-width: 360px; }
.newsletter input {
  flex: 1; padding: 12px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06); color: #fff; font-family: var(--font-body); font-size: .9rem;
}
.newsletter input::placeholder { color: #8fb7b1; }
.newsletter input:focus { outline: none; border-color: var(--teal-400); }
.footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer__col a { display: block; font-size: .92rem; padding: 6px 0; color: #b9d8d3; transition: color .2s, padding-left .2s; }
.footer__col a:hover { color: var(--teal-400); padding-left: 5px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 16px; font-size: .82rem; color: #7fa9a3; flex-wrap: wrap; }

/* ---------- Floating action button ---------- */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  padding: 14px 22px; border-radius: 999px;
  box-shadow: 0 14px 34px rgba(29,154,214,.45);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .35s, transform .35s;
}
.fab.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.fab:hover { transform: translateY(-3px); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 30px);
  background: var(--ink); color: #fff; padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Image fallback ---------- */
.img-fallback {
  background: linear-gradient(135deg, var(--teal-400), var(--teal-700)) !important;
  min-height: 200px;
  position: relative;
}
.img-fallback::after {
  content: "👁"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 3rem; opacity: .5;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===================================================================
   Responsive
=================================================================== */
@media (max-width: 1024px) {
  .services-grid, .checkup-grid, .doctors-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 460px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    background: #fff; flex-direction: column; padding: 100px 28px 40px; gap: 4px;
    transform: translateX(100%); transition: transform .35s var(--ease);
    box-shadow: var(--shadow-lg); z-index: 95;
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 1.05rem; padding: 12px 16px; }
  .nav-toggle { display: flex; z-index: 96; }
  .header__actions .btn { display: none; }
  .topbar__locations { display: none; }
  .about__inner, .contact__inner { grid-template-columns: 1fr; }
  .about__media { max-width: 480px; }
  .locations-grid, .news-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .services-grid, .checkup-grid, .doctors-grid, .stats { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero__trust { gap: 22px; }
  .hero__card { left: 0; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .fab { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
