/*
Theme Name: ΕΤΕΓΕ
Theme URI: https://www.etege.gr
Author: ΕΤΕΓΕ
Description: Επεξεργάσιμος ιστότοπος της Εταιρείας Εργαστηριακής Γενετικής Ελλάδος. Οι σελίδες, το μενού και οι ανακοινώσεις αλλάζουν από το WordPress.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: etege
*/

:root {
  --navy: #0b3d91;
  --navy-deep: #06275e;
  --ink: #14233c;
  --gold: #b8893e;
  --bg: #f4f7fb;
  --paper: #ffffff;
  --muted: #5c6d86;
  --line: #d7e0ec;
  --sans: "Source Sans 3", "Noto Sans", "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

a {
  color: var(--navy);
}

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-140%);
  background: var(--navy-deep);
  color: #fff;
  padding: 0.55rem 0.8rem;
  z-index: 30;
}

.skip-link:focus {
  transform: none;
}

.container {
  width: min(1100px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy-deep);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 1.15rem;
}

.brand img {
  height: 52px;
  width: auto;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--navy-deep);
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li {
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a {
  color: var(--navy);
}

.site-nav a[aria-current="page"],
.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a {
  box-shadow: inset 0 -2px 0 var(--gold);
}

.hero {
  background:
    linear-gradient(90deg, var(--bg) 0 46%, rgba(244, 247, 251, 0.92) 62%, rgba(244, 247, 251, 0.28)),
    url("assets/hero-dna.png") right center / min(40vw, 460px) auto no-repeat;
}

.hero-grid,
.page-hero-inner {
  padding: 4.25rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.62fr);
  gap: 2.5rem;
  align-items: end;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--navy-deep);
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
}

.lede,
.intro {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  font: inherit;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-ghost:hover {
  background: #fff;
}

.btn-light {
  background: #fff;
  color: var(--navy-deep);
}

.principles {
  margin: 0;
  padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 3px solid var(--gold);
  list-style: none;
}

.principles li {
  font-family: var(--serif);
  font-size: 1.85rem;
  color: var(--navy-deep);
  line-height: 1.25;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: #fff;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}

.section-head p {
  margin: 0.4rem 0 0;
  max-width: 40rem;
  color: var(--muted);
}

.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 1rem;
}

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

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.card,
.event,
.role,
.org-node {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem 1.25rem 1.3rem;
}

.section-alt .card,
.section-alt .event,
.section-alt .role {
  background: var(--bg);
}

.card p,
.event p,
.role p,
.org-node p {
  margin: 0;
  color: var(--muted);
}

.card a.stretched {
  color: inherit;
  text-decoration: none;
}

.link-card {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.link-card:hover h3 {
  color: var(--navy);
}

.index {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.steps {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.85rem;
  align-items: start;
}

.steps b {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 0.95rem;
}

.steps p {
  margin: 0.15rem 0 0;
  color: var(--muted);
}

.org {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}

.org-node {
  width: min(100%, 420px);
  text-align: center;
}

.org-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
}

.page-hero {
  background:
    linear-gradient(180deg, #fff, var(--bg));
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
}

.events {
  display: grid;
  gap: 0.85rem;
}

.event {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  align-items: start;
}

.event time {
  color: var(--navy);
  font-weight: 700;
}

.band {
  background: var(--navy-deep);
  color: #e7eef8;
}

.band h2,
.band .eyebrow {
  color: #fff;
}

.band .eyebrow {
  color: #e3c889;
}

.band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.band p {
  margin: 0.4rem 0 0;
  max-width: 40rem;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.contact-list strong {
  display: block;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem;
  display: grid;
  gap: 0.85rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: 3px solid rgba(11, 61, 145, 0.25);
  border-color: var(--navy);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.form-note,
.form-error {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
}

.form-note {
  background: #e8eef9;
  color: var(--navy-deep);
}

.form-error {
  background: #fdecec;
  color: #8a2430;
}

.plain-list {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

.plain-list li + li {
  margin-top: 0.35rem;
}

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

.site-footer {
  background: var(--navy-deep);
  color: #d7e3f4;
  padding: 2.5rem 0 1.25rem;
}

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

.footer-brand img {
  height: 64px;
  width: auto;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 0.8rem;
}

.site-footer h2 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.site-footer a {
  color: #fff;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.footer-bottom {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
}

@media (max-width: 900px) {
  .hero {
    background-image: none;
  }

  .hero-grid,
  .grid-3,
  .grid-4,
  .grid-2,
  .org-row,
  .footer-grid,
  .event,
  .form-row,
  .band-inner,
  .section-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .section-head,
  .band-inner {
    align-items: start;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 1.25rem 0.9rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a[aria-current="page"],
  .site-nav .current-menu-item > a,
  .site-nav .current-menu-ancestor > a {
    box-shadow: inset 3px 0 0 var(--gold);
  }

  .site-nav li {
    width: 100%;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 5rem;
  }

  .brand img {
    height: 44px;
  }

  .hero-grid,
  .page-hero-inner {
    padding: 2.6rem 0 2.2rem;
  }

  .section {
    padding: 2.8rem 0;
  }
}

body.admin-bar .site-header {
  top: 32px;
}

.brand .custom-logo {
  height: 52px;
  width: auto;
}

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

.entry > :first-child {
  margin-top: 0;
}

.entry p {
  color: var(--ink);
}

.announce {
  display: grid;
  gap: 0.85rem;
}

.announce a.event {
  text-decoration: none;
  color: inherit;
}

.announce a.event h2 {
  color: var(--navy-deep);
}

.announce a.event p {
  color: var(--muted);
  text-decoration: none;
}

.announce a.event:hover h2 {
  color: var(--navy);
}

.announce time {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.92rem;
}

.edit-link {
  margin: 1.5rem 0 0;
  font-size: 0.92rem;
}

.edit-link a {
  color: var(--gold);
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.fluentform {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem;
}

.fluentform .ff-el-group {
  margin-bottom: 0.85rem;
}

.fluentform .ff-el-input--label label {
  font-weight: 600;
  color: var(--ink);
}

.fluentform .ff-el-form-control {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  box-shadow: none;
}

.fluentform .ff-el-form-control:focus {
  outline: 3px solid rgba(11, 61, 145, 0.25);
  border-color: var(--navy);
}

.fluentform .ff-btn-submit {
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.fluentform .ff-btn-submit:hover {
  background: var(--navy-deep);
}

.fluentform .ff-message-success {
  color: var(--navy-deep);
  background: #eef4ea;
  border-radius: 12px;
  padding: 0.85rem 1rem;
}
