/* ==========================================================================
   Η Ιστορία μας (page-history)
   ========================================================================== */

/* Hero media (photo + script + olive branch)
   -------------------------------------------------------------------------- */
.history-hero__grid { display: grid; grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); gap: clamp(32px, 3vw, 64px); align-items: center; }
.history-hero__media { position: relative; }
.history-hero__photo { width: min(100%, 700px); filter: sepia(0.15); }
.history-hero__script { position: absolute; right: 0; top: 20%; margin: 0; font-size: clamp(30px, 2vw + 10px, 50px); text-align: right; transform: rotate(-4deg); }
.history-hero__olive { position: absolute; width: clamp(140px, 13vw, 250px); left: 52%; bottom: -18%; transform: rotate(-8deg); pointer-events: none; }

/* Family
   -------------------------------------------------------------------------- */
.family__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 4vw, 96px); row-gap: clamp(28px, 3vw, 48px); align-items: start; }
.family__head { grid-column: 1 / -1; }
.family__text { max-width: 72ch; margin-top: calc((1em - 1lh) / 2); }
.family__text > :first-child { margin-top: 0; }
.family__text p + p { margin-top: 1em; }
.family__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: 0 18px 40px rgba(0, 25, 50, 0.16); }

/* Timeline
   -------------------------------------------------------------------------- */
.timeline .section-head { margin-bottom: clamp(36px, 4vw, 64px); }
.timeline .section-head p { color: var(--muted); max-width: 60ch; margin-top: 16px; }
.timeline__track { list-style: none; margin: 0; padding: 0 0 8px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, calc((100% - 3 * 48px) / 4)); gap: 48px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.timeline__track::-webkit-scrollbar { display: none; }
.milestone { scroll-snap-align: start; position: relative; padding-top: 44px; }
.milestone::before { content: ""; position: absolute; top: 9px; left: 0; right: -48px; height: 1px; background: rgba(214, 167, 82, 0.55); }
.milestone:last-child::before { right: 0; }
.milestone::after { content: ""; position: absolute; top: 3px; left: 0; width: 13px; height: 13px; background: var(--gold-500); transform: rotate(45deg); }
.milestone__year { font-family: var(--font-serif); font-weight: 800; font-size: clamp(34px, 2vw + 14px, 56px); line-height: 1; color: var(--gold-500); margin-bottom: 16px; }
.milestone h3 { font-family: var(--font-sans); font-weight: 600; font-size: 21px; color: var(--white); margin-bottom: 10px; }
.milestone p { color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 34ch; }

/* Values (split component, taller variant)
   -------------------------------------------------------------------------- */
.values { --split-min: clamp(520px, 38vw, 720px); }
.values .h-section { margin-bottom: clamp(28px, 3vw, 48px); }
.values__list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(20px, 2vw, 32px); counter-reset: value; }
.values__list li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: baseline; }
.values__list li::before { counter-increment: value; content: "0" counter(value); font-family: var(--font-serif); font-weight: 800; font-size: 22px; color: var(--gold-600); border-top: 1px solid var(--gold-500); padding-top: 6px; }
.values__list strong { display: block; font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.values__list span { display: block; max-width: 46ch; color: var(--muted-on-cream); font-size: 16px; line-height: 1.55; }

/* Closing CTA
   -------------------------------------------------------------------------- */
.history-cta__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.history-cta .h-section { max-width: 22ch; }
.history-cta p { color: var(--muted); margin-top: 16px; max-width: 58ch; }
.history-cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

/* Tablet / mobile
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .history-hero__grid, .family__grid, .history-cta__grid { grid-template-columns: 1fr; }
  .history-hero__media { margin-top: 8px; }
  .history-hero__script { top: auto; bottom: -6px; right: 4px; }
  .history-hero__olive { left: auto; right: 38%; bottom: -26%; }
  .timeline__track { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; gap: 0; padding-left: 28px; }
  .milestone { padding: 0 0 36px; }
  .milestone::before { top: 10px; bottom: -10px; left: -22px; right: auto; width: 1px; height: auto; }
  .milestone:last-child::before { display: none; }
  .milestone::after { top: 4px; left: -28px; }
  .timeline .arrow-group { display: none; }
  .values__list li::before { color: var(--gold-700); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .history-hero__script { position: static; font-size: 30px; text-align: left; transform: rotate(-3deg); margin-top: 12px; }
  .history-hero__script span { padding-left: 1.2em; }
  .history-hero__olive { width: 120px; right: 0; bottom: 18px; }
  .timeline .section-head { flex-direction: column; align-items: flex-start; }
}

/* Brand evolution: five logos on white cards, oldest first
   -------------------------------------------------------------------------- */
.brand-evo { background: var(--cream-50); }
.brand-evo__list { list-style: none; margin: clamp(32px, 3vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 28px); }
.brand-evo__item { display: grid; gap: 16px; justify-items: center; text-align: center; }
.brand-evo__logo { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; background: var(--white); padding: clamp(14px, 1.6vw, 28px); box-shadow: 0 0 0 1px var(--line-ink); }
.brand-evo__logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-evo__year { font-family: var(--font-serif); font-weight: 800; font-size: clamp(24px, 1vw + 14px, 34px); line-height: 1; color: var(--gold-600); }
@media (max-width: 1024px) {
  .brand-evo__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-evo__item:last-child { grid-column: 1 / -1; width: calc(50% - 6px); justify-self: center; }
  .brand-evo__year { color: var(--gold-700); }
}
