/* Πυροσβεστικό Κέντρο Ζακύνθου — static site styles */

:root {
  color-scheme: light dark;

  --brand: #c8102e;
  --brand-dark: #9b0c23;
  --brand-light: #e8405c;
  /* Button gradient kept dark enough for white text (WCAG AA). */
  --btn-from: #c8102e;
  --btn-to: #9b0c23;
  --flame: #ff8a00;
  --flame-2: #ffc107;

  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-card: #ffffff;
  --border: #e3e6ea;
  --text: #15181d;
  --text-soft: #4d5663;
  --shadow: 0 1px 2px rgba(16, 20, 28, .06), 0 8px 24px rgba(16, 20, 28, .06);
  --shadow-lg: 0 2px 6px rgba(16, 20, 28, .08), 0 18px 48px rgba(16, 20, 28, .12);

  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1140px;
  --header-h: 68px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", "Liberation Sans", sans-serif;
}

[data-theme="dark"] {
  --bg: #0d1117;
  --bg-soft: #141a22;
  --bg-card: #161d26;
  --border: #263040;
  --text: #e9edf3;
  --text-soft: #a3aebd;
  --brand: #ff4d5e;
  --brand-dark: #e03146;
  --brand-light: #ff7b88;
  --btn-from: #cf1b33;
  --btn-to: #9b0c23;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .55), 0 18px 48px rgba(0, 0, 0, .5);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.15rem); }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }

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

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.section { padding: clamp(48px, 7vw, 86px) 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 62ch; margin-bottom: clamp(24px, 3vw, 40px); }
.section__head p { color: var(--text-soft); margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .6rem;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  transform: translateY(-120%);
  transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 47px; }
.brand__name { font-weight: 800; font-size: .95rem; line-height: 1.15; letter-spacing: -.01em; }
.brand__sub { display: block; font-weight: 600; font-size: .72rem; color: var(--text-soft); letter-spacing: .02em; }

.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a {
  color: var(--text-soft);
  font-size: .92rem;
  font-weight: 600;
  padding: 8px 11px;
  border-radius: 8px;
}
.nav__links a:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.icon-btn svg { width: 19px; height: 19px; flex: 0 0 auto; }

.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav__toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn svg { width: 19px; height: 19px; flex: 0 0 auto; }
.btn--primary {
  background: linear-gradient(135deg, var(--btn-from) 0%, var(--btn-to) 100%);
  color: #fff;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--brand) 34%, transparent);
}
.btn--primary:hover { box-shadow: 0 10px 28px color-mix(in srgb, var(--brand) 42%, transparent); }
.btn--ghost { background: var(--bg-card); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--sm { padding: 9px 16px; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 5vw, 72px) 0 clamp(44px, 6vw, 80px); }
.hero::before {
  content: "";
  position: absolute;
  inset: -30% 40% 50% -10%;
  background: radial-gradient(circle at 30% 40%, color-mix(in srgb, var(--flame) 22%, transparent), transparent 62%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.hero h1 { margin-bottom: .45em; }
.hero h1 strong { color: var(--brand); }
.hero__lead { font-size: clamp(1.02rem, .98rem + .35vw, 1.2rem); color: var(--text-soft); max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 20px; }
.hero__note { font-size: .88rem; color: var(--text-soft); display: flex; align-items: center; gap: 8px; margin: 0; }
.hero__media { display: flex; justify-content: center; }
.hero__media picture {
  display: block;
  padding: 18px 22px;
  border-radius: 20px;
  background: transparent;
  transition: background .2s ease;
}
.hero__media img { width: min(340px, 78%); height: auto; filter: drop-shadow(0 18px 38px rgba(0, 0, 0, .22)); }

/* The logo contains dark lettering, so keep a light plate behind it in dark mode. */
[data-theme="dark"] .hero__media picture {
  background: #fff;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .55);
}
[data-theme="dark"] .hero__media img { filter: none; }
[data-theme="dark"] .brand img,
[data-theme="dark"] .footer__brand img {
  background: #fff;
  border-radius: 7px;
  padding: 2px;
}

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-soft);
}
.pill svg { width: 15px; height: 15px; color: var(--brand); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(265px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(215px, 100%), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid--split { align-items: start; gap: clamp(28px, 4vw, 56px); }
.grid--tight { gap: 16px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.mt-sm { margin-top: 14px; }
.subhead { margin: 34px 0 14px; }
.muted-sm { color: var(--text-soft); font-size: .9rem; }

/* ---------- error page ---------- */
.error-page { display: grid; place-items: center; min-height: 100vh; text-align: center; }
.error-page__wrap { max-width: 620px; }
.error-page img { margin: 0 auto 24px; }
.error-page p { color: var(--text-soft); }
.error-page .btn-row { justify-content: center; margin-top: 24px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .4em; }
.card p { color: var(--text-soft); font-size: .95rem; margin-bottom: 0; }
.card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 16%, transparent), color-mix(in srgb, var(--flame) 18%, transparent));
  color: var(--brand);
}
.card__icon svg { width: 24px; height: 24px; }
.card ul { margin: 12px 0 0; padding-inline-start: 1.1em; color: var(--text-soft); font-size: .92rem; }
.card ul li { margin-bottom: .3em; }

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-inline-start: 56px;
  margin-bottom: 22px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-weight: 800;
}
.steps strong { display: block; }
.steps p { color: var(--text-soft); font-size: .95rem; margin: 0; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 16px; }
.stat {
  text-align: center;
  padding: 20px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.stat__num { font-size: 1.85rem; font-weight: 800; color: var(--brand); line-height: 1.1; }
.stat__label { font-size: .86rem; color: var(--text-soft); font-weight: 600; }

/* ---------- areas ---------- */
.areas { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.areas li {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-soft);
}

/* ---------- legal / compliance ---------- */
.law-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 18px; }
.law {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-inline-start: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 20px 20px 18px;
  box-shadow: var(--shadow);
}
.law__ref {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.law h3 { font-size: 1.02rem; margin-bottom: .35em; }
.law p { color: var(--text-soft); font-size: .93rem; margin-bottom: 0; }
.law dl { margin: 12px 0 0; font-size: .9rem; }
.law dt { font-weight: 700; margin-top: 10px; }
.law dd { margin: 2px 0 0; color: var(--text-soft); }

/* responsive table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 520px; }
table.data caption { text-align: start; padding: 14px 16px 0; color: var(--text-soft); font-size: .88rem; }
table.data th, table.data td { padding: 12px 16px; text-align: start; border-bottom: 1px solid var(--border); vertical-align: top; }
table.data thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--text-soft); background: var(--bg-soft); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td strong { color: var(--brand); }

.note {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-soft);
  font-size: .88rem;
}
.note p { margin: 0; }
.note a { font-weight: 600; }
/* warning variant: solid brand-tinted edge for compliance caveats */
.note--warn {
  border-style: solid;
  border-color: color-mix(in srgb, var(--brand) 38%, var(--border));
  border-left: 4px solid var(--brand);
  background: color-mix(in srgb, var(--brand) 6%, var(--bg-card));
  color: var(--text);
}
.note--warn b { color: var(--brand); }

/* product catalogue */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(255px, 100%), 1fr)); gap: 16px; }
.prod {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.prod h3 { font-size: 1.02rem; margin-bottom: .3em; }
.prod__meta { font-size: .8rem; font-weight: 700; color: var(--brand); letter-spacing: .02em; margin-bottom: .6em; }
.prod p { color: var(--text-soft); font-size: .92rem; margin-bottom: 0; }
.prod ul { margin: 10px 0 0; padding-inline-start: 1.05em; color: var(--text-soft); font-size: .9rem; }
.prod ul li { margin-bottom: .25em; }

.classes { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.classes li {
  flex: 1 1 150px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  padding: 14px 16px;
}
.classes b {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--btn-from), var(--btn-to));
  color: #fff;
  font-size: .95rem;
  margin-bottom: 8px;
}
.classes span { display: block; font-size: .88rem; color: var(--text-soft); }
.classes em { display: block; font-size: .82rem; color: var(--text); font-style: normal; font-weight: 600; }

/* ---------- gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery li { margin: 0; }
.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

/* ---------- faq ---------- */
.faq { max-width: 820px; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 16px 48px 16px 18px;
  font-weight: 700;
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  inset-inline-end: 20px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .15s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 18px 16px; color: var(--text-soft); font-size: .95rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- contact ---------- */
.contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 20px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list svg { width: 21px; height: 21px; color: var(--brand); flex: 0 0 auto; margin-top: 3px; }
.contact-list dt, .contact-list b { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-soft); font-weight: 700; }
.contact-list > li > div { min-width: 0; }
.contact-list a, .contact-list span { font-weight: 600; color: var(--text); }
/* long email addresses must not push the layout wider than the viewport */
.contact-list a[href^="mailto:"] { overflow-wrap: anywhere; }
.footer a[href^="mailto:"] { overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--brand); }

.map-col { display: flex; flex-direction: column; gap: 12px; }
.map-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  min-height: 280px;
  flex: 1 1 auto;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 280px; border: 0; display: block; }
.map-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.map-note { font-size: .82rem; color: var(--text-soft); margin: 0; }

.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(24px, 3.4vw, 40px);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
}
.callout h2 { color: #fff; margin-bottom: .25em; }
.callout p { color: rgba(255, 255, 255, .9); margin: 0; max-width: 52ch; }
.callout .btn--ghost { background: #fff; color: var(--brand-dark); border-color: #fff; }
.callout .btn--ghost:hover { background: rgba(255, 255, 255, .9); color: var(--brand-dark); }

/* ---------- footer ---------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 44px 0 26px; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 28px; }
.footer h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-soft); margin-bottom: 1em; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .5em; }
.footer a { color: var(--text-soft); }
.footer a:hover { color: var(--brand); }
.footer__bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  color: var(--text-soft);
  font-size: .85rem;
}
.footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer__brand img { width: 38px; height: 44px; }

/* ---------- sticky mobile call bar ---------- */
.callbar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta, .pill-row { justify-content: center; }
  .hero__note { justify-content: center; }
  .hero__media { order: -1; }
  .hero__media img { width: min(230px, 56%); }
}

@media (max-width: 1060px) {
  .nav__links {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    transition: transform .22s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav__links[data-open="true"] { transform: translateY(0); }
  .nav__links a { padding: 13px 12px; font-size: 1rem; border-radius: 10px; }
  .nav__toggle { display: inline-flex; order: 3; }
  .nav { gap: 6px; flex: 0 0 auto; }
  .brand { min-width: 0; flex: 1 1 auto; }
  .brand__name { font-size: .78rem; min-width: 0; }
  .brand__sub { display: none; }
  .icon-btn { min-width: 38px; height: 38px; padding: 0 7px; font-size: .8rem; }
  .header__inner { gap: 8px; }
  body { padding-bottom: 72px; }
  .callbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 60;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 420px) {
  .btn { padding: 12px 18px; font-size: .95rem; }
  .card { padding: 20px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

@media print {
  .header, .callbar, .hero__cta, .map-frame, .nav { display: none !important; }
  body { color: #000; background: #fff; }
}
