/* =========================================================
   Sphere Analysis - Δαρκ theme stylesheet
   ========================================================= */
:root {
  --bg: #0a0f1a;
  --bg-soft: #0f1626;
  --surface: #121a2b;
  --surface-2: #182238;
  --border: #223049;
  --text: #e6ebf4;
  --muted: #9aa7bd;
  --accent: #38bdf8;
  --accent-2: #818cf8;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --danger: #f87171;
  --success: #34d399;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --transition: 0.25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at top, rgba(56, 189, 248, 0.08), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(129, 140, 248, 0.06), transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #7dd3fc; }

main { flex: 1; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}

.brand:hover { color: var(--accent); }

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 0.35rem;
  align-items: center;
}

.nav-list a {
  display: block;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--text);
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero .logo-hero {
  width: min(360px, 85%);
  height: auto;
  margin: 0 auto 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero h1 .grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
}

.btn-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
  font-size: 1rem;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #06121f;
}

.btn-primary:hover { color: #06121f; filter: brightness(1.1); }

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}

.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }

.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  margin-bottom: 0.75rem;
}

.section-head p { color: var(--muted); }

.section-alt { background: rgba(18, 26, 43, 0.55); border-block: 1px solid var(--border); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.5rem; }

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

.card p { color: var(--muted); font-size: 0.95rem; }

.card ul { list-style: none; color: var(--muted); font-size: 0.95rem; }
.card ul li { padding-left: 1.25rem; position: relative; margin-bottom: 0.4rem; }
.card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* ---------- Stats ---------- */
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  text-align: center;
  padding: 3rem 0;
}

.stat .num {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat .lbl { color: var(--muted); }

/* ---------- Forms ---------- */
.form-card {
  max-width: 640px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-group .req { color: var(--accent); }

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group textarea { min-height: 150px; resize: vertical; }

.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }

.form-note a { text-decoration: underline; }

.form-status {
  display: none;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  margin-top: 1rem;
  font-weight: 600;
}

.form-status.ok { background: rgba(52, 211, 153, 0.12); color: var(--success); border: 1px solid rgba(52, 211, 153, 0.4); }
.form-status.err { background: rgba(248, 113, 113, 0.12); color: var(--danger); border: 1px solid rgba(248, 113, 113, 0.4); }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- Contact info ---------- */
.contact-list { list-style: none; display: grid; gap: 1rem; }

.contact-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}

.contact-list .icon { font-size: 1.4rem; flex-shrink: 0; }

.contact-list strong { display: block; }
.contact-list span { color: var(--muted); }

/* ---------- Map ---------- */
.map-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.map-frame img { width: 100%; object-fit: cover; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 3rem 0 0;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }

.footer-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.site-footer p { color: var(--muted); font-size: 0.92rem; }

.site-footer h4 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 0.9rem;
}

.site-footer ul { list-style: none; }

.site-footer ul li { margin-bottom: 0.45rem; }

.site-footer ul a { color: var(--muted); font-size: 0.92rem; }
.site-footer ul a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  background: var(--surface-2);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  max-width: 720px;
  margin-inline: auto;
}

.cookie-banner p { font-size: 0.9rem; color: var(--muted); flex: 1 1 320px; }
.cookie-banner p a { text-decoration: underline; }

.cookie-banner .btn { white-space: nowrap; }

.cookie-banner[hidden] { display: none; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 3.5rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.6rem;
}

.page-hero p { color: var(--muted); max-width: 640px; margin-inline: auto; }

/* ---------- Legal pages ---------- */
.legal {
  max-width: 860px;
  margin-inline: auto;
  padding: 3rem 0 4rem;
}

.legal h2 {
  font-size: 1.35rem;
  margin: 2.2rem 0 0.8rem;
  color: var(--accent);
}

.legal h3 { font-size: 1.1rem; margin: 1.6rem 0 0.6rem; }

.legal p, .legal li { color: #c3cddd; font-size: 0.97rem; }

.legal ul, .legal ol { margin: 0.6rem 0 0.6rem 1.4rem; }
.legal li { margin-bottom: 0.35rem; }

.legal .updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

/* ---------- About page ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: center; }

.about-img {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-img img { width: 100%; }

.timeline { list-style: none; border-left: 2px solid var(--border); padding-left: 1.5rem; }

.timeline li { position: relative; margin-bottom: 1.5rem; color: var(--muted); }

.timeline li::before {
  content: "";
  position: absolute;
  left: -1.85rem;
  top: 0.45rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

.timeline strong { color: var(--text); }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 5%;
  }

  .nav-list.open { display: flex; }

  .nav-list a { width: 100%; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 2.5rem; }
  .cookie-banner { left: 0.5rem; right: 0.5rem; bottom: 0.5rem; padding: 1rem; }
}
