/* FoodCheck — Σύμβουλοι Ποιότητας & Ασφάλειας Τροφίμων
   Mobile-first. No frameworks, no external fonts, no tracking. */

/* ---------- Tokens ---------- */
:root {
  --navy: #1b3a5f;
  --navy-dark: #12283f;
  --navy-soft: #2f5a85;
  --green: #8cb63c;
  --green-dark: #74992d;   /* icons / decoration only */
  --green-text: #5d7724;   /* passes 4.5:1 on white and on --green-tint */
  --green-tint: #f1f6e6;

  --ink: #1d2830;
  --muted: #5c6b77;
  --line: #e2e7ec;
  --bg: #ffffff;
  --bg-alt: #f6f8fa;

  --wrap: 1120px;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgb(18 40 63 / 6%), 0 2px 8px rgb(18 40 63 / 6%);
  --shadow-md: 0 8px 28px rgb(18 40 63 / 10%);

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

  --header-h: 68px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-wrap: break-word;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--navy-soft); }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(1.9rem, 5.2vw, 3.05rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.15rem); }
h3 { font-size: 1.075rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout ---------- */
.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.section { padding: clamp(3.25rem, 8vw, 5.75rem) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }

.eyebrow {
  display: inline-block;
  margin: 0 0 .75rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-text);
}

.lead { font-size: 1.1rem; color: var(--muted); }

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: .75rem 1.25rem;
  background: var(--navy);
  color: #fff;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; top: 0; }

/* ---------- Icons ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: inherit;
}
.logo__mark { width: 30px; flex: none; }
.logo__text { display: grid; }
.logo__name {
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.015em;
}
.logo__name b { font-weight: 800; }
.logo__tag {
  /* Sized to stay on one line next to the hamburger on a 360px phone;
     bumped up at 900px where the header has room. */
  font-size: .55rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
  margin-top: 2px;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.header.is-stuck { box-shadow: var(--shadow-sm); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 19px;
  height: 2px;
  background: currentcolor;
  border-radius: 2px;
  transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; inset-inline: 0; }
.nav-toggle__bars::before { transform: translateY(-6px); }
.nav-toggle__bars::after { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: rotate(-45deg); }

.nav {
  display: none;
  position: absolute;
  inset: var(--header-h) 0 auto;
  padding: .5rem 1.25rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.nav.is-open { display: block; }

.nav__list {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__link {
  display: block;
  padding: .7rem .25rem;
  font-weight: 600;
  font-size: .975rem;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.nav__link[aria-current="true"] { color: var(--green-text); }

.nav__aside {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-top: 1.1rem;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.lang__current { color: var(--navy); }
.lang__sep { color: var(--line); }
.lang__link { color: var(--muted); text-decoration: none; }
.lang__link:hover { color: var(--green-text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); }
.btn--ghost { border-color: rgb(255 255 255 / 45%); color: #fff; }
.btn--ghost:hover { background: rgb(255 255 255 / 12%); }
.btn--outline { border-color: var(--line); color: var(--navy); background: #fff; }
.btn--outline:hover { border-color: var(--green); color: var(--green-text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-dark) 58%, #0d1f33 100%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -14%;
  bottom: -38%;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(140 182 60 / 26%) 0%, transparent 68%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding: clamp(3.5rem, 11vw, 7rem) 0 clamp(3rem, 9vw, 6rem);
  max-width: 48rem;
}
.hero h1 { color: #fff; }
.hero__eyebrow { color: var(--green); }
.hero__text {
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  color: rgb(255 255 255 / 84%);
  max-width: 40rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  margin: 2.5rem 0 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid rgb(255 255 255 / 16%);
  list-style: none;
  font-size: .88rem;
  color: rgb(255 255 255 / 72%);
}
.hero__meta li { display: flex; align-items: center; gap: .45rem; }
.hero__meta svg { width: 15px; height: 15px; color: var(--green); flex: none; }

/* ---------- About ---------- */
.about__grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.about__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg-alt);
}
.about__media img { width: 100%; height: auto; }

/* Set by main.js when the photo file is missing, so no broken icon shows. */
.about__grid--no-media .about__media { display: none; }
.about__grid--no-media > div { max-width: 68ch; }

.pillars {
  display: grid;
  gap: 1.1rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}
.pillar {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
}
.pillar__icon {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--green-tint);
  color: var(--green-dark);
}
.pillar__icon svg { width: 18px; height: 18px; }
.pillar h3 { margin: 0 0 .15rem; font-size: 1rem; }
.pillar p { font-size: .925rem; color: var(--muted); margin: 0; }

.quote {
  margin: 2.25rem 0 0;
  padding: 1.25rem 1.4rem;
  border-left: 4px solid var(--green);
  background: var(--green-tint);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- Services ---------- */
.svc-group + .svc-group { margin-top: clamp(2.5rem, 5vw, 3.75rem); }

.svc-group__head {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1.5rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}
.svc-group__head svg { width: 22px; height: 22px; flex: none; color: var(--green-dark); }
.svc-group__head h3 {
  margin: 0;
  font-size: .82rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--navy);
}

.cards {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  padding: 1.5rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card:hover {
  border-color: #cfe0a8;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--green-tint);
  color: var(--green-dark);
}
.card__icon svg { width: 21px; height: 21px; }
.card h4 {
  margin: 0 0 .5rem;
  font-size: 1.035rem;
  line-height: 1.35;
  color: var(--navy);
}
.card p { margin: 0; font-size: .925rem; color: var(--muted); }

.areas {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: 1.5rem 1.5rem;
  border: 1px dashed #cdd8c2;
  border-radius: var(--radius);
  background: var(--green-tint);
  font-size: .95rem;
  color: var(--navy);
}
.areas strong { display: block; margin-bottom: .2rem; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; gap: 1rem; margin-bottom: 2rem; }

.contact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.35rem 1.3rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.contact-card:hover { border-color: var(--green); box-shadow: var(--shadow-sm); }
.contact-card__icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--navy);
  color: #fff;
}
.contact-card__icon svg { width: 18px; height: 18px; }
.contact-card__label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .15rem;
}
.contact-card__value {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.02rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.contact-card__note { display: block; font-size: .84rem; color: var(--muted); font-weight: 400; }

.contact__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Footer ---------- */
.footer {
  padding: 2.75rem 0 2rem;
  background: var(--navy-dark);
  color: rgb(255 255 255 / 70%);
  font-size: .89rem;
}
.footer .logo__name { color: #fff; }
.footer .logo__tag { color: rgb(255 255 255 / 55%); }
.footer__top {
  display: grid;
  gap: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer__links a { color: rgb(255 255 255 / 78%); text-decoration: none; }
.footer__links a:hover { color: var(--green); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  font-size: .82rem;
  color: rgb(255 255 255 / 55%);
}
.footer__bottom a { color: inherit; }

/* ---------- Legal page ---------- */
.legal { padding: clamp(2.5rem, 7vw, 4.5rem) 0; }
.legal__body { max-width: 46rem; }
.legal__body h2 { font-size: 1.3rem; margin-top: 2.25rem; }
.legal__body h2:first-of-type { margin-top: 1.5rem; }
.legal__body ul { padding-left: 1.2rem; color: var(--muted); }
.legal__body li { margin-bottom: .4rem; }
.legal__meta { font-size: .88rem; color: var(--muted); }
.legal__box {
  padding: 1.2rem 1.35rem;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.legal__box p { margin: 0; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 2.5rem;
  font-weight: 600;
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (min-width: 680px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: auto 1fr; align-items: center; }
  .footer__links { justify-content: flex-end; }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    position: static;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav__list { flex-direction: row; gap: 1.6rem; }
  .nav__link { padding: .35rem 0; border-bottom: 2px solid transparent; }
  .nav__link:hover { color: var(--green-text); }
  .nav__link[aria-current="true"] { border-bottom-color: var(--green); }
  .nav__aside { margin-top: 0; padding-left: 1.6rem; border-left: 1px solid var(--line); }
  .logo__name { font-size: 1.3rem; }
  .logo__tag { font-size: .64rem; }

  .about__grid { grid-template-columns: 1.05fr .95fr; align-items: start; }
  .about__grid--no-media { grid-template-columns: 1fr; }
  /* The text column is only half-width here, so three pillars would be far too
     narrow. Stack them instead. */
  .about__grid:not(.about__grid--no-media) .pillars { grid-template-columns: 1fr; }
  .about__media { position: sticky; top: calc(var(--header-h) + 2rem); }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .svc-group--production .cards { grid-template-columns: repeat(3, 1fr); }
}

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

@media print {
  .header, .nav, .hero__actions, .footer__links { display: none; }
}
