/* ============================================================
   ΣΥΝΕΤΑΙΡΙΣΤΙΚΑ ΣΟΥΠΕΡΜΑΡΚΕΤ Α.Ε. — synsuper.gr
   Main Stylesheet  v1.0
   HTML5 / CSS3 — No framework dependencies
   ============================================================ */

/* ── CSS Variables ── */
:root {
  --primary:       #1a6b2a;
  --primary-dark:  #0f4018;
  --primary-light: #2d8a3e;
  --accent:        #d4a017;
  --accent-light:  #f5c518;
  --accent-dark:   #7a5200;   /* WCAG AA on white: ~6.9:1 */
  --white:         #ffffff;
  --text:          #1a1a1a;
  --text-light:    #555555;
  --text-muted:    #888888;
  --bg:            #ffffff;
  --bg-light:      #f5f8f5;
  --bg-hero:       #0d3b1a;
  --border:        #dde0d8;
  --shadow-sm:     0 2px 8px rgba(0,0,0,.08);
  --shadow-md:     0 4px 20px rgba(0,0,0,.12);
  --radius:        10px;
  --radius-lg:     16px;
  --transition:    .2s ease;
  --max-w:         1100px;
  --header-h:      68px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a  { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); text-decoration: underline; }
ul { list-style: none; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 2px solid var(--primary);
  box-shadow: var(--shadow-sm);
  height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}
.site-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.site-logo .logo-name {
  font-size: .78rem;
  font-weight: 800;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.site-logo .logo-slogan {
  font-size: .66rem;
  font-weight: 600;
  color: #1a1a1a; /* μαύρο — 19.1:1 on white ✓ WCAG AAA */
}

/* Main navigation */
.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a {
  display: block;
  padding: .45rem .85rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  border-radius: 7px;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.site-nav a:hover,
.site-nav a.active {
  background: var(--bg-light);
  color: var(--primary);
  text-decoration: none;
}
.site-nav a.active {
  border-bottom: 2px solid var(--primary);
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.lang-switch a {
  padding: .3rem .6rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-light);
  border: 1.5px solid var(--border);
  border-radius: 5px;
  transition: all var(--transition);
}
.lang-switch a:hover,
.lang-switch a.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  text-decoration: none;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  height: 2.5px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.75px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.75px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 999;
  padding: 1.5rem 1.25rem;
  flex-direction: column;
  gap: .5rem;
  overflow-y: auto;
  animation: slideDown .2s ease;
}
.mobile-menu.open { display: flex; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.mobile-menu a {
  display: block;
  padding: .9rem 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.mobile-menu a:hover { color: var(--primary); text-decoration: none; }
.mobile-menu .lang-switch { padding: 1rem 0; }
.mobile-menu .lang-switch a { font-size: .88rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(150deg, var(--bg-hero) 0%, var(--primary) 70%, var(--primary-light) 100%);
  color: var(--white);
  padding: 4.5rem 1.25rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.hero-logo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,.35);
  margin: 0 auto 1.5rem;
  box-shadow: 0 6px 24px rgba(0,0,0,.3);
}
.hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: .6rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.3);
  letter-spacing: .02em;
}
.hero .hero-sub {
  font-size: clamp(1rem, 3vw, 1.25rem);
  opacity: .88;
  margin-bottom: 2rem;
  font-style: italic;
}
.btn {
  display: inline-block;
  padding: .75rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border: none;
}
.btn-white {
  background: var(--white);
  color: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.btn-white:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ============================================================
   SECTIONS — general
   ============================================================ */
.section {
  padding: 4rem 1.25rem;
}
.section-light { background: var(--bg-light); }
.section-dark  { background: var(--primary-dark); color: var(--white); }

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-header h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: .5rem;
}
.section-dark .section-header h2 { color: var(--white); }
.section-header p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 580px;
  margin: 0 auto;
}
.section-dark .section-header p { color: rgba(255,255,255,.8); }
.section-header .accent-line {
  width: 50px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: .75rem auto 0;
}

/* ============================================================
   PRODUCTS — τμήματα καταστήματος
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.product-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
}
.product-card h3 {
  font-size: .98rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.3;
}

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.5rem;
}
.why-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  text-align: center;
}
.why-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}
.why-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-light);
  margin-bottom: .5rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.why-card p {
  font-size: .9rem;
  color: rgba(255,255,255,.82);
  line-height: 1.6;
}

/* ============================================================
   STORES PREVIEW (Homepage)
   ============================================================ */
.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.store-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.store-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.store-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  border-left: 3px solid var(--accent);
  padding-left: .6rem;
}
.store-detail {
  font-size: .88rem;
  color: var(--text-light);
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  line-height: 1.4;
}
.store-detail svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  fill: var(--primary);
  margin-top: 1px;
}
.store-tel a {
  font-size: .9rem;
  font-weight: 700;
  color: var(--primary);
}
.store-tel a:hover { color: var(--primary-dark); }

/* ============================================================
   STORES PAGE — full page
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--bg-hero) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 3rem 1.25rem 2.5rem;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 900;
  margin-bottom: .5rem;
}
.page-hero p { font-size: 1rem; opacity: .85; }
.breadcrumb {
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  margin-bottom: .75rem;
}
.breadcrumb a { color: rgba(255,255,255,.65); text-decoration: underline; }

.stores-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: .5rem;
}
.store-full-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border);
}
.store-full-card-header {
  background: var(--primary);
  color: var(--white);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.store-full-card-header svg { width: 22px; height: 22px; fill: rgba(255,255,255,.8); flex-shrink: 0; }
.store-full-card-header h2 { font-size: 1rem; font-weight: 700; }
.store-full-card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .75rem; }
.store-full-detail {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .9rem;
  color: var(--text-light);
}
.store-full-detail svg { flex-shrink: 0; width: 17px; height: 17px; fill: var(--primary); margin-top: 2px; }
.store-full-detail strong { color: var(--text); }
.store-phone-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
  font-weight: 700;
  color: var(--primary);
  padding: .6rem 1rem;
  border: 2px solid var(--primary);
  border-radius: 8px;
  margin-top: .25rem;
  transition: all var(--transition);
}
.store-phone-link:hover {
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
}
.store-phone-link svg { width: 17px; height: 17px; fill: currentColor; }

/* ============================================================
   ESPA PAGES
   ============================================================ */
.espa-section { padding: 3rem 1.25rem; }
.espa-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}
.espa-card h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--bg-light);
}
.espa-card p { color: var(--text-light); margin-bottom: .75rem; line-height: 1.75; }
.espa-card p:last-child { margin-bottom: 0; }
.espa-card strong { color: var(--text); }
.espa-images {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  margin-top: 1.5rem;
}
.espa-images img {
  max-width: 280px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.espa-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .5rem 1rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-top: 1rem;
}

/* ============================================================
   ESPA FOOTER BANNER
   ============================================================ */
.espa-banner-bar {
  background: #f0f4ff;
  border-top: 2px solid #c8d8ff;
  padding: 1.25rem 1.25rem;
}
.espa-banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.espa-banner-inner img {
  height: 44px;
  width: auto;
  object-fit: contain;
}
.espa-banner-text {
  font-size: .8rem;
  color: #446;
  line-height: 1.5;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.75);
  padding: 3rem 1.25rem 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-col h3 {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent-light);
  margin-bottom: .9rem;
}
.footer-col p, .footer-col a {
  font-size: .88rem;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
}
.footer-col a:hover { color: var(--white); text-decoration: underline; }
.footer-col .footer-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: .75rem;
  border: 2px solid rgba(255,255,255,.25);
}
.footer-col .footer-company {
  font-size: .85rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: .35rem;
}
.footer-col .footer-slogan {
  font-size: .78rem;
  font-style: italic;
  color: var(--accent-light);
}
.footer-links { display: flex; flex-direction: column; gap: .25rem; }
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .8rem;
  color: #ffffff; /* 9.24:1 on #0f4018 ✓ WCAG AAA */
}
.footer-bottom a {
  color: #ffffff; /* 9.24:1 on #0f4018 ✓ WCAG AAA */
  transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--accent-light); text-decoration: none; }
.footer-powered {
  font-size: .78rem;
  color: #ffffff; /* 9.24:1 on #0f4018 ✓ WCAG AAA */
}
.footer-powered a {
  color: var(--accent-light);
  font-weight: 600;
}
.footer-powered a:hover { color: var(--white); }

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
#scroll-top {
  position: fixed;
  bottom: 88px; /* above a11y widget */
  right: 16px;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
  z-index: 900;
}
#scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
#scroll-top:hover { background: var(--primary-dark); }
#scroll-top:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
#scroll-top svg { width: 18px; height: 18px; fill: var(--white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .site-nav, .lang-switch { display: none; }
  .hamburger { display: flex; }

  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .stores-grid { grid-template-columns: 1fr; }
  .stores-full-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .espa-images { flex-direction: column; }
  .espa-images img { max-width: 100%; }
}
@media (max-width: 480px) {
  :root { --header-h: 60px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 1rem 2.5rem; }
  .section { padding: 2.5rem 1rem; }
  .site-logo .logo-text { display: none; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, #scroll-top, .espa-banner-bar { display: none; }
  body { font-size: 12pt; color: #000; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 10pt; color: #555; }
}

/* ============================================================
   FOCUS / KEYBOARD NAVIGATION (WCAG 2.2)
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}
