/* =========================================================
   Οδοντιατρείο Ηλία Μπίσια — Κηφισιά
   Design system + layout
   ========================================================= */

:root {
  /* Palette — warm ivory, deep emerald, muted gold */
  --bg:        #FBFAF6;
  --bg-tint:   #F3F0E8;
  --surface:   #FFFFFF;
  --ink:       #1B241F;
  --ink-soft:  #44504A;
  --muted:     #7A837D;
  --brand:     #1F473E;   /* deep emerald */
  --brand-2:   #2E6A5B;   /* lighter emerald */
  --brand-ink: #13302A;
  --gold:      #B68B4C;   /* muted gold */
  --gold-soft: #D9C49A;
  --line:      #E7E1D5;
  --line-2:    #EFEAE0;
  --cream:     #F3EAD6;

  --shadow-sm: 0 2px 10px rgba(27, 36, 31, .05);
  --shadow:    0 18px 50px -22px rgba(27, 36, 31, .28);
  --shadow-lg: 0 40px 90px -40px rgba(19, 48, 42, .45);

  --radius:   18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 56px);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.4; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--brand); color: var(--cream);
  padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: .76rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 .9rem;
}
.eyebrow::before {
  content: ""; display: inline-block;
  width: 26px; height: 1px; background: var(--gold);
  vertical-align: middle; margin-right: .7em;
  transform: translateY(-2px);
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 0 1rem;
  color: var(--ink);
}
.section-title em { font-style: italic; color: var(--brand); }

.section-lead {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 54ch;
  margin: 0 auto;
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(2.4rem, 5vw, 3.6rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .55em;
  padding: .92em 1.6em;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .01em;
  border: 1px solid transparent;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  will-change: transform;
}
.btn .ic { width: 18px; height: 18px; }
.btn-primary {
  background: var(--brand); color: var(--cream);
  box-shadow: 0 14px 30px -14px rgba(31, 71, 62, .7);
}
.btn-primary:hover { background: var(--brand-ink); transform: translateY(-2px); box-shadow: 0 20px 38px -16px rgba(31, 71, 62, .8); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn-block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 246, .72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; gap: 1.2rem;
  min-height: 78px;
  transition: min-height .4s var(--ease);
}
.site-header.scrolled .header-inner { min-height: 66px; }

.brand { display: inline-flex; align-items: center; gap: .7rem; margin-right: auto; }
.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--brand); color: var(--cream);
  font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 8px 18px -10px rgba(31,71,62,.8);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name { font-family: var(--font-serif); font-size: clamp(1.04rem, 2.3vw, 1.28rem); font-weight: 600; letter-spacing: .01em; line-height: 1.12; }
.brand-sub { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

.main-nav { display: flex; gap: 2rem; }
.main-nav a {
  position: relative; font-size: .92rem; font-weight: 500; color: var(--ink-soft);
  padding: .4rem 0; transition: color .25s var(--ease);
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1.5px; background: var(--gold);
  transition: width .3s var(--ease);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { width: 100%; }

.header-cta { margin-left: 1.4rem; padding: .62em 1.1em; font-size: .88rem; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface);
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin-inline: auto; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4.5rem); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 85% 0%, rgba(46,106,91,.10), transparent 60%),
    radial-gradient(50% 50% at 0% 90%, rgba(182,139,76,.08), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -.015em;
  margin: 0 0 1.3rem;
}
.hero-title em { font-style: italic; color: var(--brand); }
.hero-lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 46ch; margin: 0 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.hero-points li {
  position: relative; padding-left: 1.5rem; font-size: .92rem; color: var(--ink-soft);
}
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 3px rgba(182,139,76,.18);
}

.hero-media { position: relative; }
.hero-frame {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(255,255,255,.5);
}
.hero-frame::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(31,71,62,.08);
  border-radius: inherit;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: -22px; bottom: 34px;
  background: var(--surface); color: var(--ink);
  border-radius: 16px; padding: .9rem 1.2rem;
  display: flex; align-items: center; gap: .7rem;
  box-shadow: var(--shadow); border: 1px solid var(--line-2);
}
.hero-badge .num { font-family: var(--font-serif); font-size: 2.5rem; font-weight: 600; color: var(--brand); line-height: 1; }
.hero-badge .num .plus { color: var(--gold); }
.hero-badge .lbl { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); line-height: 1.3; }

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: var(--bg-tint); }
.trust-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  divide: 1px;
}
.trust-item {
  text-align: center; padding: 1.6rem 1rem;
  display: flex; flex-direction: column; gap: .2rem;
  border-left: 1px solid var(--line);
}
.trust-item:first-child { border-left: 0; }
.t-k { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; color: var(--brand); }
.t-v { font-size: .82rem; letter-spacing: .04em; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.6rem, 8vw, 7rem) 0; }
.about { background: var(--bg-tint); }
.results { background:
    linear-gradient(180deg, var(--bg) 0%, #F7F4ED 100%); }

/* ---------- Services ---------- */
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  transition: width .45s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { width: 100%; }
.service-ic {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--bg-tint); color: var(--brand);
  margin-bottom: 1.2rem;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.service-ic svg { width: 28px; height: 28px; }
.service-card:hover .service-ic { background: var(--brand); color: var(--cream); }
.service-card h3 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; margin: 0 0 .5rem; letter-spacing: .005em; }
.service-card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

/* ---------- Before / After ---------- */
.ba-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
}
.ba { margin: 0; }
.ba-stage {
  position: relative; border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 16 / 9;
  box-shadow: var(--shadow); user-select: none;
  background: #ddd; touch-action: pan-y;
}
.ba-stage img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  pointer-events: none;
}
.ba-before-wrap {
  position: absolute; inset: 0;
  width: 100%; overflow: hidden;
  /* clip-path keeps the before image full-size & aligned with the after image;
     only a vertical slice is revealed, so nothing squashes as the slider moves */
  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
}
.ba-before-wrap .ba-before { width: 100%; height: 100%; object-fit: cover; }
.ba-tag {
  position: absolute; top: 14px; z-index: 4;
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  padding: .35em .8em; border-radius: 999px;
  background: rgba(19,48,42,.72); color: #fff;
  backdrop-filter: blur(4px);
}
.ba-tag-before { left: 14px; }
.ba-tag-after { right: 14px; background: rgba(182,139,76,.82); }
.ba-range {
  /* keyboard-accessible control; pointer drag is handled on the stage in JS */
  position: absolute; inset: 0; z-index: 5;
  width: 100%; height: 100%; margin: 0;
  -webkit-appearance: none; appearance: none;
  background: transparent; opacity: 0; pointer-events: none;
}
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 44px; height: 100%; }
.ba-range::-moz-range-thumb { width: 44px; height: 300px; border: 0; background: transparent; }
.ba-range:focus-visible ~ .ba-handle { outline: 3px solid var(--brand-2); outline-offset: 3px; }
.ba-stage { cursor: ew-resize; }
.ba-handle {
  position: absolute; top: 50%; left: 50%; z-index: 4;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); color: var(--brand);
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
  pointer-events: none;
}
.ba-handle svg { width: 20px; height: 20px; stroke-width: 2; }
.ba-handle::before, .ba-handle::after {
  content: ""; position: absolute; left: 50%; width: 2px; height: 100vh;
  background: rgba(255,255,255,.9); transform: translateX(-50%);
}
.ba-handle::before { bottom: 100%; }
.ba-handle::after  { top: 100%; }
.ba figcaption {
  margin-top: .9rem; text-align: center;
  font-size: .9rem; color: var(--muted); letter-spacing: .02em;
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.about-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; }
.about-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(31,71,62,.08); border-radius: inherit; }
.about-copy p { color: var(--ink-soft); margin: 0 0 1.1rem; }
.about-list { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.4rem; }
.about-list li { position: relative; padding-left: 1.8rem; font-size: .95rem; color: var(--ink); }
.about-list li::before {
  content: ""; position: absolute; left: 0; top: .15em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F3EAD6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: stretch; }
.contact-info {
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: clamp(1.6rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-sm);
}
.info-list { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 1.3rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-ic {
  flex: none; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--bg-tint); color: var(--brand);
}
.info-ic svg { width: 22px; height: 22px; }
.info-list strong { display: block; font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; margin-bottom: .1rem; }
.info-list a { color: var(--ink-soft); transition: color .25s var(--ease); }
.info-list a:hover { color: var(--brand); }
.contact-note { font-size: .85rem; color: var(--muted); margin: 1rem 0 0; text-align: center; }

.contact-map {
  position: relative;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line-2);
  min-height: 380px;
  background:
    radial-gradient(120% 120% at 70% 20%, rgba(46,106,91,.10), transparent 55%),
    repeating-linear-gradient(135deg, var(--bg-tint) 0 22px, #EDE8DD 22px 44px);
}
.contact-map iframe { position: relative; width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: saturate(.92); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-ink); color: #D8E2DD; padding-top: clamp(2.6rem, 5vw, 4rem); }
.footer-inner {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; align-items: start;
  padding-bottom: 2.4rem; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand { display: flex; gap: .9rem; align-items: center; }
.footer-brand .brand-mark { box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.footer-name { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; margin: 0; color: #fff; }
.footer-sub { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: #9FB3AC; margin: .15rem 0 0; }
.footer-nav { display: flex; flex-direction: column; gap: .6rem; }
.footer-nav a, .footer-contact a { color: #C6D3CE; transition: color .25s var(--ease); font-size: .95rem; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--gold-soft); }
.footer-contact { display: flex; flex-direction: column; gap: .6rem; }
.footer-bottom { padding: 1.3rem 0; }
.footer-bottom p { margin: 0; font-size: .82rem; color: #8DA199; }

/* ---------- Scroll reveal ---------- */
/* Hidden initial state applies only when JS is active, so the site stays
   fully visible if JavaScript is disabled or fails to load. */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 440px; margin-inline: auto; order: -1; }
  .hero-frame { aspect-ratio: 16/11; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 460px; margin-inline: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: 78px 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--bg);
    padding: .6rem var(--gutter) 1.4rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-14px); opacity: 0; visibility: hidden;
    transition: transform .35s var(--ease), opacity .3s var(--ease), visibility .3s;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: .95rem 0; border-bottom: 1px solid var(--line-2); font-size: 1.05rem; }
  .main-nav a::after { display: none; }

  .trust-inner { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .trust-item:nth-child(odd) { border-left: 0; }

  .ba-grid { grid-template-columns: 1fr; }
  .about-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.6rem; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .service-grid { grid-template-columns: 1fr; }
  .hero-badge { left: 12px; bottom: 12px; padding: .7rem .9rem; }
  .hero-badge .num { font-size: 2rem; }
}

/* ---------- Motion / a11y ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
}

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