/* ============================================================
   Φραγκιαδούλης TRX — Ηράκλειο
   Mobile-first. Καμία εξάρτηση από framework.
   Παλέτα & γραμματοσειρές: ΒΗΜΑ 2 του /website-build
   ============================================================ */

:root {
  /* Χρώματα */
  --primary:       #14453D;
  --primary-dark:  #002E27;
  --primary-soft:  #E3EDEA;
  --accent:        #D97534;
  --accent-dark:   #A8501B;
  --text:          #1C1F1E;
  --text-muted:    #4A5250;
  --bg:            #F7F4EF;
  --surface:       #FFFFFF;
  --surface-alt:   #EFEBE4;
  --border:        #D8D3CA;

  /* Τυπογραφία */
  --font-head: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  /* Αποστάσεις */
  --gutter: 20px;
  --max:    1120px;

  /* Ύψος του sticky CTA — για padding στο body */
  --cta-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(20, 69, 61, .15);
}

/* Τα ελληνικά έχουν μεγάλες λέξεις («φυσικοθεραπευτή») — να μην σπρώχνουν
   ποτέ τη σελίδα σε οριζόντιο scroll σε στενές οθόνες. */
body, p, li, h1, h2, h3, h4, summary, td, th, label, a {
  overflow-wrap: break-word;
  word-break: normal;
}

/* Τα anchors να μην κρύβονται κάτω από το sticky header */
[id] { scroll-margin-top: 76px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 2rem;    font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 1.65rem; font-weight: 800; letter-spacing: -.01em; color: var(--primary); }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0 0 1em; }
a  { color: var(--primary); }

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

/* ---------- Βοηθητικά ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 56px 0; }
.section--alt { background: var(--surface-alt); }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--accent-dark);
  margin: 0 0 .6em;
}
.lead { font-size: 1.1rem; color: var(--text-muted); }
.center { text-align: center; }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: #fff; padding: 12px 18px; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Κουμπιά ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 14px 26px;
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  text-decoration: none; border: 2px solid transparent; border-radius: 6px;
  cursor: pointer; transition: filter .18s ease, transform .12s ease;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { filter: brightness(1.15); }
.btn--outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--block { display: flex; width: 100%; }

/* ---------- Header ----------
   Στο mobile ΔΕΝ είναι sticky: δεν έχει πλοήγηση, μόνο λογότυπο, και θα
   έτρωγε 62px ύψους σε κάθε scroll. Το CTA το καλύπτει η κάτω μπάρα. */
.header {
  position: static;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 62px;
}
.logo {
  font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
  color: var(--primary); text-decoration: none; letter-spacing: -.01em;
}
.logo span { color: var(--accent-dark); }
.nav { display: none; gap: 6px; align-items: center; }
.nav a {
  padding: 9px 12px; border-radius: 6px; text-decoration: none;
  font-size: .95rem; color: var(--text-muted);
}
.nav a:hover { background: var(--surface-alt); color: var(--primary); }
.header__cta { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--primary-dark); color: #fff; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,32,27,.62) 0%, rgba(0,32,27,.86) 100%);
}
/* ΠΡΟΣΟΧΗ: το οριζόντιο padding πρέπει να επαναλαμβάνει το --gutter του .wrap.
   Με `padding: 64px 0 72px` η ίδια specificity ακύρωνε το padding του .wrap
   και ο τίτλος του hero κολλούσε στο αριστερό άκρο της οθόνης. */
.hero__inner { position: relative; z-index: 2; padding: 64px var(--gutter) 72px; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero p { color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 42ch; }
.hero .btn--primary { background: var(--accent); color: #1C1F1E; }
.hero .btn--primary:hover { filter: brightness(1.08); }

/* ---------- Μπάρα εμπιστοσύνης ---------- */
.trust { background: var(--surface); border-bottom: 1px solid var(--border); }
/* Σε στενές οθόνες μία στήλη — σε 2 στήλες τα ελληνικά έσπαγαν σε 4 σειρές
   και η μπάρα έμοιαζε χαοτική. */
.trust__grid {
  display: grid; grid-template-columns: 1fr; gap: 12px; padding: 20px 0;
}
.trust__item { display: flex; align-items: center; gap: 10px; font-size: .92rem; font-weight: 600; }
.trust__item svg { flex: 0 0 22px; color: var(--primary); }

/* ---------- Πρόβλημα ---------- */
.problems { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.problem { display: flex; gap: 14px; align-items: flex-start; }
.problem__icon {
  flex: 0 0 44px; height: 44px; border-radius: 8px;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.problem h3 { margin-bottom: .2em; }
.problem p { margin: 0; color: var(--text-muted); font-size: .96rem; }

/* ---------- Διακύβευμα ---------- */
.stakes { background: var(--primary); color: #fff; }
.stakes h2 { color: #fff; }
.stakes p { color: rgba(255,255,255,.88); font-size: 1.12rem; max-width: 46ch; margin-inline: auto; }

/* ---------- Λύση ---------- */
.quote {
  margin: 22px 0 0; padding: 16px 18px;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  font-family: var(--font-head); font-weight: 700; font-size: 1.08rem;
  color: var(--primary);
}
.quote cite { display: block; margin-top: 8px; font: 400 .85rem/1.4 var(--font-body); color: var(--text-muted); font-style: normal; }

/* ---------- Βήματα ---------- */
.steps { display: grid; gap: 16px; margin-top: 32px; }
.step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 22px;
}
.step__num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step p { margin: 0; color: var(--text-muted); font-size: .96rem; }

/* ---------- Τιμές ---------- */
.plans { display: grid; gap: 18px; margin-top: 28px; }
.plan {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 26px 22px; display: flex; flex-direction: column;
}
.plan--featured { border: 2px solid var(--primary); }
.plan__price {
  font-family: var(--font-head); font-weight: 800; font-size: 2.2rem;
  color: var(--primary); line-height: 1; margin: 6px 0 4px;
}
.plan__per { color: var(--text-muted); font-size: .92rem; margin-bottom: 18px; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; }
.plan li svg { flex: 0 0 20px; color: var(--primary); margin-top: 3px; }
.plan .btn { margin-top: auto; }

/* ---------- Coach ---------- */
.coach__photo { border-radius: 10px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 24px; }
.coach__photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 28px auto 0; }
.faq details {
  border-bottom: 1px solid var(--border);
  background: transparent;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 34px 18px 0; position: relative;
  font-family: var(--font-head); font-weight: 700; font-size: 1.02rem;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 24px;
  width: 10px; height: 10px;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 28px; }
.faq .faq__body { padding: 0 0 18px; color: var(--text-muted); }
.faq .faq__body p:last-child { margin-bottom: 0; }

/* ---------- Τοποθεσία ---------- */
.map-embed {
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  margin-top: 22px; background: var(--surface-alt);
}
/* display:block στο iframe αντί για line-height:0 στον γονέα —
   αλλιώς το κείμενο του placeholder κληρονομεί μηδενικό line-height
   και οι γραμμές πέφτουν η μία πάνω στην άλλη. */
.map-embed iframe { display: block; width: 100%; height: 320px; border: 0; }
.map-consent { padding: 30px 20px; text-align: center; }
.map-consent p { max-width: 34ch; margin: 0 auto 16px; }
.place { display: grid; gap: 6px; }
.place__row { display: flex; gap: 10px; align-items: flex-start; }
.place__row svg { flex: 0 0 20px; color: var(--primary); margin-top: 4px; }

/* ---------- Φόρμα ---------- */
.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 26px 20px; max-width: 640px; margin: 0 auto;
}
.field { margin-bottom: 16px; }
.field label {
  display: block; margin-bottom: 6px;
  font-size: .82rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--text-muted);
}
.field input, .field select {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font-family: var(--font-body); font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
}
.field input:focus, .field select:focus { border-color: var(--primary); }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 20px; }
.consent input {
  flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--primary);
}
.consent label { font-size: .92rem; color: var(--text-muted); line-height: 1.5; }
.form-note { font-size: .85rem; color: var(--text-muted); margin: 14px 0 0; text-align: center; }
.form-status { margin-top: 14px; padding: 14px; border-radius: 6px; font-weight: 600; display: none; }
.form-status--ok  { display: block; background: var(--primary-soft); color: var(--primary-dark); }
.form-status--err { display: block; background: #FDE7E4; color: #8C1D13; }

/* ---------- Footer ---------- */
.footer {
  background: var(--primary-dark); color: rgba(255,255,255,.82);
  padding: 44px 0 calc(28px + var(--cta-h));
}
.footer h4 {
  font-size: .8rem; letter-spacing: .09em; text-transform: uppercase;
  color: #fff; margin: 0 0 12px;
}
.footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; gap: 30px; }
.footer__links { display: grid; gap: 9px; }
.footer__brand p { font-size: .95rem; max-width: 34ch; }
.footer__social { display: flex; gap: 12px; margin-top: 14px; }
.footer__social a {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
}
.footer__social a:hover { background: var(--accent); color: #1C1F1E; }
.footer__bottom {
  margin-top: 34px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: .85rem;
}
.linklike {
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  min-height: 32px; color: rgba(255,255,255,.82); font: inherit; text-align: left;
}
.linklike:hover { color: #fff; text-decoration: underline; }

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; gap: 10px; align-items: center;
  padding: 10px var(--gutter);
  background: var(--accent);
  border-top: 1px solid var(--accent-dark);
}
.sticky-cta__main {
  flex: 1; min-width: 0; min-height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; text-decoration: none;
  font-family: var(--font-head); font-weight: 700;
  /* Κλιμακώνεται με το πλάτος ώστε να μη σπάει σε δύο σειρές στα 320px */
  font-size: clamp(.82rem, 3.7vw, 1rem);
  white-space: nowrap; padding: 0 8px;
  border-radius: 6px;
}
.sticky-cta__call {
  flex: 0 0 52px; height: 52px; border-radius: 6px;
  background: rgba(0,0,0,.14); color: #1C1F1E;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  background: var(--surface); border-top: 2px solid var(--primary);
  padding: 18px var(--gutter) 20px;
  box-shadow: 0 -6px 24px rgba(0,0,0,.14);
}
.cookie[hidden] { display: none; }
.cookie__inner { max-width: var(--max); margin: 0 auto; }
.cookie p { font-size: .93rem; margin: 0 0 14px; }
.cookie__actions { display: grid; gap: 10px; }
.cookie__actions .btn { min-height: 50px; font-size: .96rem; }

/* ---------- Νομικές σελίδες ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: 40px var(--gutter) 60px; }
.legal h1 { font-size: 1.8rem; color: var(--primary); }
.legal h2 { font-size: 1.25rem; margin-top: 1.8em; }
.legal .updated { color: var(--text-muted); font-size: .9rem; margin-bottom: 2em; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: .5em; }
/* min-width ώστε στο κινητό να κυλάει οριζόντια ΜΕΣΑ στο κουτί της,
   αντί να στριμώχνεται σε δύο λέξεις ανά σειρά. */
.legal table { width: 100%; min-width: 460px; border-collapse: collapse; margin: 1em 0; font-size: .93rem; }
.legal th, .legal td { border: 1px solid var(--border); padding: 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--surface-alt); font-family: var(--font-head); }
.legal .back { display: inline-block; margin-bottom: 24px; font-weight: 700; }
.legal .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.legal .table-scroll table { margin-top: .4em; }
.todo {
  background: #FFF4E0; border-left: 4px solid var(--accent);
  padding: 14px 16px; font-size: .93rem;
}

/* ============================================================
   Breakpoints
   ============================================================ */
@media (min-width: 480px) {
  .cookie__actions { grid-template-columns: 1fr 1fr; }
  .trust__grid { grid-template-columns: 1fr 1fr; gap: 14px 20px; }
}

@media (min-width: 768px) {
  body { font-size: 18px; }
  h1 { font-size: 3rem; }
  h2 { font-size: 2.1rem; }
  .section { padding: 76px 0; }
  .hero__inner { padding: 104px var(--gutter) 116px; }
  .trust__grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
  .split--rev .split__media { order: -1; }
  .coach__photo { margin-bottom: 0; }
  .form-card { padding: 34px; }
  .map-embed iframe { height: 380px; }
}

@media (min-width: 1024px) {
  /* Από εδώ και πάνω ο header έχει νόημα να κολλάει: έχει πλοήγηση + CTA */
  .header { position: sticky; top: 0; z-index: 100; }
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
  /* Το sticky CTA είναι μόνο για mobile */
  .sticky-cta { display: none; }
  .footer { padding-bottom: 28px; }
}

/* ---------- Σεβασμός στις ρυθμίσεις κίνησης ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
