/* ============================================================
   Καιρός Ιωάννινα — main.css
   kairosioannina.com — Forest/Amber theme
   ============================================================ */

/* ── CSS VARIABLES ── */
:root {
  --forest: #1B4332;
  --forest-light: #2D6A4F;
  --forest-dark: #0B2920;
  --amber: #D4A017;
  --amber-light: #E8C547;
  --amber-dark: #A67C00;
  --stone: #F5F0E8;
  --stone-dark: #E8DFD0;
  --foam: #D4E8D9;
  --text: #1A1A1A;
  --subtle: #6B7280;
  --muted-bg: #F7F5F0;
  --white: #FFFFFF;
  --radius: 10px;
  --shadow: 0 2px 16px rgba(27,67,50,.08);
  --shadow-lg: 0 8px 32px rgba(27,67,50,.14);
  --transition: .18s ease;

  /* Legacy aliases (used by sub-page CSS files) */
  --greek-blue: #1B4332;
  --greek-blue-dark: #15372A;
  --greek-blue-deep: #0B2920;
  --greek-blue-light: #2D6A4F;
  --greek-foam: #D4E8D9;
  --gold: #D4A017;
}

/* ── RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--muted-bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--forest); color: var(--white);
  padding: 8px 16px; z-index: 9999; border-radius: 0 0 6px 0; font-size: 14px;
}
.skip-link:focus { left: 0; }

/* ══════════════════════════════════════
   SITE HEADER — single row
══════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: linear-gradient(90deg, #0B2920 0%, #1B4332 55%, #2D6A4F 100%);
  border-bottom: 3px solid var(--amber);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}

.hdr-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
}

/* Logo */
.hdr-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-right: 18px;
  border-right: 1px solid rgba(255,255,255,.12);
  flex-shrink: 0;
  text-decoration: none;
}
.hdr-logo-ic {
  width: 30px; height: 30px;
  background: var(--amber);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hdr-logo-ic svg { width: 16px; height: 16px; }
.hdr-logo-text { line-height: 1; }
.hdr-logo-name { font-size: 14px; font-weight: 900; color: #fff; letter-spacing: .04em; }
.hdr-logo-city { font-size: 7.5px; font-weight: 700; color: var(--amber); letter-spacing: .18em; text-transform: uppercase; margin-top: 1px; }

/* Centre nav */
.hdr-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: center;
  gap: 0;
  overflow: hidden;
}
.hdr-nav-link {
  padding: 0 12px;
  height: 56px;
  display: flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.hdr-nav-link:hover { color: #fff; }
.hdr-nav-link.on { color: #fff; border-bottom-color: var(--amber); }

/* Dropdown (Περιοχές) */
.hdr-dropdown {
  display: flex;
  align-items: stretch;
  position: relative;
}
.hdr-dropdown .hdr-nav-link {
  display: flex;
  align-items: center;
}
.hdr-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--stone-dark);
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(27,67,50,.18);
  min-width: 220px;
  padding: 6px 0;
  z-index: 600;
  margin-top: 3px;
}
.hdr-dropdown:hover .hdr-dropdown-menu,
.hdr-dropdown:focus-within .hdr-dropdown-menu {
  display: block;
}
.hdr-dd-item {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: background .14s;
}
.hdr-dd-item:hover { background: var(--stone); color: var(--forest); }
.hdr-dd-all { font-weight: 700; color: var(--forest); }
.hdr-dd-sep { height: 1px; background: var(--stone-dark); margin: 5px 0; }

/* Right side */
.hdr-right {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 18px;
  border-left: 1px solid rgba(255,255,255,.12);
  flex-shrink: 0;
}
.hdr-live {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hdr-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #68D391;
  animation: hdr-pulse 2s ease-in-out infinite;
}
@keyframes hdr-pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.hdr-live-lbl { font-size: 7px; font-weight: 900; letter-spacing: .16em; color: rgba(255,255,255,.3); }
.hdr-live-temp { font-size: 20px; font-weight: 700; color: #fff; line-height: 1; }
.hdr-live-icon { line-height: 1; }
.hdr-live-icon svg { width: 20px; height: 20px; vertical-align: middle; }

/* Hamburger */
.hdr-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hdr-hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: rgba(255,255,255,.7);
  border-radius: 1px;
  transition: .2s;
}

@media (max-width: 960px) {
  .hdr-nav { display: none; }
  .hdr-hamburger { display: flex; }
  .hdr-right { margin-left: auto; }
}

/* ══════════════════════════════════════
   MOBILE DRAWER
══════════════════════════════════════ */
.mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 600;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }

.mobile-drawer {
  position: fixed; top: 0; right: -300px; bottom: 0;
  width: 300px;
  background: var(--forest-dark);
  z-index: 700;
  transition: right .3s ease;
  overflow-y: auto;
}
.mobile-drawer.open { right: 0; }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.drawer-logo {
  font-size: 15px; font-weight: 900; color: #fff; text-decoration: none;
}
.drawer-logo span { color: var(--amber); font-size: 13px; }
.drawer-close {
  background: none; border: none; color: rgba(255,255,255,.5);
  font-size: 18px; cursor: pointer; padding: 4px;
}
.drawer-body { padding: 12px 0; }
.drawer-group { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.drawer-group-label {
  font-size: 8px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .16em; color: rgba(255,255,255,.25);
  padding: 6px 20px 8px;
}
.drawer-item {
  display: block; padding: 8px 20px;
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.55);
  transition: all .15s;
}
.drawer-item:hover { color: #fff; background: rgba(255,255,255,.04); }

/* ══════════════════════════════════════
   BREADCRUMB
══════════════════════════════════════ */
.page-breadcrumb {
  max-width: 1200px; margin: 0 auto;
  padding: 14px 32px 0;
  font-size: 12px; color: var(--subtle);
  display: flex; align-items: center; gap: 6px;
}
.page-breadcrumb a { color: var(--forest); font-weight: 600; text-decoration: none; }
.page-breadcrumb a:hover { text-decoration: underline; }
/* Dark variant for hero sections */
.kairos-breadcrumb-dark {
  color: rgba(255,255,255,.35);
  padding: 0 0 14px;
}
.kairos-breadcrumb-dark a { color: rgba(255,255,255,.5); }
.kairos-breadcrumb-dark a:hover { color: rgba(255,255,255,.8); }

/* ══════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════ */
.site-main { min-height: 60vh; }

/* ══════════════════════════════════════
   SECTION COMPONENTS (shared)
══════════════════════════════════════ */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.section-title {
  font-size: 10px; font-weight: 900; text-transform: uppercase;
  letter-spacing: .12em; color: var(--subtle);
}
.update-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--subtle);
}
.update-dot {
  width: 6px; height: 6px; background: #48BB78;
  border-radius: 50%; animation: hdr-pulse 2s ease-in-out infinite;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer {
  background: linear-gradient(180deg, var(--forest-dark) 0%, #071A12 100%);
  color: rgba(255,255,255,.5);
}
.footer-top {
  max-width: 1200px; margin: 0 auto;
  padding: 44px 32px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 28px;
}

/* Brand col */
.footer-logo-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-logo-svg { width: 40px; height: 40px; flex-shrink: 0; }
.footer-site-name { font-size: 15px; font-weight: 900; color: #fff; letter-spacing: .04em; }
.footer-tagline { font-size: 8px; color: var(--amber); letter-spacing: .18em; text-transform: uppercase; margin-top: 1px; }
.footer-about { font-size: 12px; line-height: 1.65; color: rgba(255,255,255,.3); margin-bottom: 14px; }
.footer-social { display: flex; gap: 8px; }
.social-btn {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: rgba(255,255,255,.4); text-decoration: none;
  transition: all .15s;
}
.social-btn:hover { background: var(--amber); color: var(--forest-dark); border-color: var(--amber); }

/* Nav cols */
.footer-col h4 {
  font-size: 8px; font-weight: 900; text-transform: uppercase;
  letter-spacing: .18em; color: rgba(255,255,255,.22); margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0; }
.footer-col a, .footer-col li a {
  display: block; font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,.35); margin-bottom: 9px; transition: color .15s;
}
.footer-col a:hover, .footer-col li a:hover { color: var(--amber); }
.footer-col li { list-style: none; }

/* Bottom bar */
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding: 18px 32px 24px;
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 32px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 11px; color: rgba(255,255,255,.18); }
.footer-copy a { color: rgba(255,255,255,.25); } .footer-copy a:hover { color: rgba(255,255,255,.5); }
.footer-legal-links, .footer-legal { display: flex; gap: 14px; }
.footer-legal-links a, .footer-legal a { font-size: 11px; color: rgba(255,255,255,.22); transition: color .15s; }
.footer-legal-links a:hover, .footer-legal a:hover { color: rgba(255,255,255,.5); }

/* ══════════════════════════════════════
   COOKIE BANNER
══════════════════════════════════════ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--forest-dark); color: rgba(255,255,255,.7);
  padding: 14px 24px; z-index: 800;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,.3);
  transform: translateY(100%);
  transition: transform .3s;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-text { font-size: 13px; flex: 1; min-width: 200px; }
.cookie-text a { color: var(--amber); text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; }
.btn-cookie-accept {
  padding: 8px 20px; background: var(--amber); color: var(--forest-dark);
  border: none; border-radius: 6px; font-size: 12px; font-weight: 700;
  cursor: pointer; font-family: inherit;
}
.btn-cookie-decline {
  padding: 8px 20px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.15); border-radius: 6px;
  font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
}

/* ══════════════════════════════════════
   NIGHT MODE
══════════════════════════════════════ */
body.is-night { background: #0d1a0f; }
body.is-night .site-header { background: linear-gradient(90deg, #050E0A, #0B2920, #132E22); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
  .footer-top { grid-template-columns: 1fr; padding: 32px 20px 0; }
  .footer-bottom { flex-direction: column; text-align: center; padding: 16px 20px 24px; }
  .footer-legal-links { justify-content: center; }
}

/* Hide WP admin bar spacing */
html { margin-top: 0 !important; }
#wpadminbar { display: none; }
