/* ACP Summer School 2027 — Thessaloniki */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0d2340;
  --navy-2: #163a63;
  --sea: #1a6b7b;
  --sea-light: #e6f2f4;
  --sand: #f7f4ee;
  --acp-red: #ef363a;
  --text: #1d2733;
  --muted: #5b6878;
  --line: #dde3ea;
  --white: #ffffff;
  --radius: 12px;
  --max: 1080px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

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

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

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #fff;
  border-radius: 6px;
}
.hero :focus-visible,
.contact-box :focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 5px var(--navy);
}
main:focus { outline: none; }

.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s;
}
.site-header.scrolled { box-shadow: 0 2px 12px rgba(13, 35, 64, 0.08); }

.site-header .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.brand img { height: 41px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; white-space: nowrap; }
.brand-acp { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em; color: #d0242a; }
.brand-name { font-size: 1rem; font-weight: 700; color: var(--navy); }
.brand:hover { color: var(--navy); }

.nav { display: flex; gap: 4px; }
.nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 0.15s, color 0.15s;
}
.nav a:hover { background: var(--sea-light); color: var(--navy); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 42px;
  height: 38px;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--navy);
  cursor: pointer;
}
.nav-toggle .icon-close { display: none; font-size: 1.6rem; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: inline; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background-color: var(--navy);
  background-image:
    linear-gradient(90deg, rgba(13, 35, 64, 0.92) 0%, rgba(13, 35, 64, 0.74) 45%, rgba(13, 35, 64, 0.45) 100%),
    url("../img/thessaloniki-hero.webp");
  background-size: cover;
  background-position: center 45%;
  padding: 104px 0 160px;
}

.hero .container { position: relative; z-index: 2; }
.hero h1, .hero .theme, .hero .eyebrow { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #bfe3ea;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--acp-red);
  flex: none;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.3rem, 4.6vw, 3.3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.hero .theme {
  margin: 0 0 32px;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 350;
  color: #e3f1f4;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}
.hero-facts li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(13, 35, 64, 0.35);
  font-weight: 500;
}
.hero-facts svg { width: 18px; height: 18px; flex: none; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  background: var(--white);
  color: var(--navy);
  border: 1px solid transparent;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--sea-light); color: var(--navy); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.btn-outline {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.hero-note { margin: 20px 0 0; color: #d6eaee; font-size: 0.95rem; }

.waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(40px, 8vw, 120px);
  z-index: 1;
}

/* ---------- Sections ---------- */

section { padding: 76px 0; }
section.alt { background: var(--sand); }

h2 {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 12px;
  border-radius: 2px;
  background: var(--acp-red);
}
.contact-box h2::after { display: none; }

.section-lead { margin: 0 0 36px; color: var(--muted); max-width: 760px; }

.prose { max-width: 760px; }
.prose p { margin: 0 0 16px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.stack { display: grid; gap: 20px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.card h3 { margin: 0 0 10px; color: var(--navy); font-size: 1.1rem; }
.card p { margin: 0 0 12px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .note { margin-top: 12px; font-size: 0.85rem; color: var(--muted); }

.facts { list-style: none; margin: 0; padding: 0; }
.facts li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.facts li:last-child { border-bottom: none; }
.facts span:first-child { color: var(--muted); }
.facts span:last-child { font-weight: 600; text-align: right; }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.ticks li:last-child { margin-bottom: 0; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--sea);
  border-bottom: 2.5px solid var(--sea);
  transform: rotate(-45deg);
}

/* Theme topics */
.topics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.topics li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  box-shadow: inset 0 4px 0 var(--sea);
}
.topics strong { display: block; color: var(--navy); font-size: 1.05rem; margin-bottom: 6px; }
.topics span { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.topics-note { margin: 28px 0 0; max-width: 760px; }

/* Organizers */
.people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  gap: 20px;
  margin-bottom: 40px;
}
.person .role {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sea);
  margin: 0 0 6px;
}
.person .name { margin: 0 0 2px; font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.person .aff { margin: 0; color: var(--muted); }

.logo-strip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 32px 30px;
}
.logos-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
  text-align: center;
}
.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px 56px;
}
.logos a { display: block; border-radius: 6px; }
.logos img { width: auto; }
.logos .logo-uowm { height: 44px; }
.logos .logo-auth { height: 58px; }
.logos .logo-acp { height: 42px; }

/* Sponsors */
.sponsor-call {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sea);
  border-radius: var(--radius);
  padding: 26px 30px;
}
.sponsor-call h3 { margin: 0 0 6px; color: var(--navy); font-size: 1.1rem; }
.sponsor-call p { margin: 0; color: var(--muted); max-width: 640px; }

/* Contact */
.contact-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px 36px;
}
.contact-box h2 { color: var(--white); margin-bottom: 8px; }
.contact-box p { margin: 0; color: #cfe0ec; max-width: 640px; }
.contact-box p a { color: #ffffff; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #c9d6e3;
  font-size: 0.92rem;
  padding: 44px 0 0;
}
.site-footer p { margin: 0; }
.site-footer a { color: #ffffff; }
.site-footer a:hover { color: #bfe3ea; }
.site-footer :focus-visible { outline-color: #fff; box-shadow: 0 0 0 5px var(--navy); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 28px;
  padding-bottom: 32px;
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { flex: none; }
.footer-title { color: #fff; font-weight: 700; font-size: 1.05rem; margin-bottom: 4px !important; }
.footer-head {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8fb3c9;
  margin-bottom: 8px !important;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 18px 0 26px;
  font-size: 0.8rem;
  color: #9fb4c6;
}
.footer-bottom .credit { flex-basis: 100%; }
.footer-bottom a { color: #c9d6e3; }

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

/* Countdown */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.countdown {
  background: rgba(13, 35, 64, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 20px 22px 22px;
  backdrop-filter: blur(6px);
  text-align: center;
}
.countdown[hidden] { display: none; }
.countdown-label {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #bfe3ea;
}
.countdown-units { display: grid; grid-template-columns: repeat(4, auto); gap: 10px; }
.countdown-units[hidden] { display: none; }
.countdown-units div {
  min-width: 64px;
  padding: 10px 6px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
}
.countdown-units span {
  display: block;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.countdown-units small { font-size: 0.72rem; color: #cfe6eb; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .topics { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .countdown { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 28px; }
  .hero {
    background-image:
      linear-gradient(90deg, rgba(13, 35, 64, 0.92) 0%, rgba(13, 35, 64, 0.8) 60%, rgba(13, 35, 64, 0.6) 100%),
      url("../img/thessaloniki-hero.webp");
  }
}

@media (max-width: 860px) {
  .js .nav-toggle { display: block; }
  .js .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: -20px;
    right: -20px;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(13, 35, 64, 0.12);
    padding: 6px 20px 12px;
  }
  .js .nav.open { display: flex; }
  .js .nav a { padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .js .nav a:last-child { border-bottom: none; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero {
    padding: 64px 0 88px;
    background-image:
      linear-gradient(180deg, rgba(13, 35, 64, 0.86) 0%, rgba(13, 35, 64, 0.58) 100%),
      url("../img/thessaloniki-hero-1000.webp");
    background-position: 45% center;
  }
  .hero-facts li { padding: 8px 14px; font-size: 0.95rem; }
  .people { grid-template-columns: 1fr; }
  .topics { grid-template-columns: 1fr; gap: 10px; }
  .topics li { padding: 16px 18px; box-shadow: inset 4px 0 0 var(--sea); }
  .logo-strip { padding: 20px 20px 24px; }
  .logos { gap: 20px 32px; }
  .logos .logo-uowm { height: 38px; }
  .logos .logo-auth { height: 50px; }
  .logos .logo-acp { height: 36px; }
  section { padding: 56px 0; }
  .contact-box, .sponsor-call { padding: 24px; }
  .countdown { justify-self: stretch; padding: 16px; }
  .countdown-units { gap: 8px; }
  .countdown-units div { min-width: 0; }
  .countdown-units span { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Print ---------- */

@media print {
  .site-header, .nav-toggle, .waves, .hero-actions, .skip-link, .countdown { display: none !important; }
  body { font-size: 11pt; }
  .hero, .contact-box { background: none !important; color: #000; padding: 0 0 16px; }
  .hero *, .contact-box * { color: #000 !important; text-shadow: none !important; }
  section { padding: 16px 0; }
  section.alt { background: none; }
  .card, .topics li, .sponsor-call, .logo-strip { break-inside: avoid; box-shadow: none; }
}

/* ---------- Sign-up form ---------- */

section.updates { background: var(--sea-light); }
.signup {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  align-items: start;
}
.signup-intro p { margin: 0; color: var(--muted); }
.signup-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--navy); }
.field .req { color: var(--acp-red); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input[type="text"],
.field input[type="email"] {
  font: inherit;
  font-size: 1rem;
  padding: 11px 13px;
  border: 1px solid #b9c4d0;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}
.field input[type="text"]:focus,
.field input[type="email"]:focus {
  outline: 3px solid rgba(26, 107, 123, 0.35);
  outline-offset: 0;
  border-color: var(--sea);
  box-shadow: none;
}
.field.check { flex-direction: row; align-items: flex-start; gap: 10px; }
.field.check input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--sea); }
.field.check label { font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.btn-primary {
  background: var(--navy);
  color: var(--white);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary:hover { background: var(--navy-2); color: var(--white); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }
.form-status { margin: 0; font-size: 0.95rem; color: var(--muted); }
.form-status.ok { color: #1b6b3a; font-weight: 600; }

@media (max-width: 900px) {
  .signup { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .signup-form { grid-template-columns: 1fr; padding: 20px; }
}
@media print {
  section.updates { display: none; }
}

/* ---------- Thessaloniki gallery ---------- */

.gallery {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 3 / 2;
  background: var(--sea-light);
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 10px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  background: linear-gradient(180deg, rgba(13, 35, 64, 0) 0%, rgba(13, 35, 64, 0.85) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .gallery img { transition: none; }
  .gallery figure:hover img { transform: none; }
}
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .gallery { gap: 10px; margin-top: 28px; }
  .gallery figcaption { font-size: 0.8rem; padding: 22px 10px 8px; }
}
@media print {
  .gallery { display: none; }
}

/* ---------- Important dates, calendar links, chair links ---------- */

.facts .tba { color: var(--muted); font-style: italic; font-weight: 500; }
.cal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.cal-label { color: var(--muted); }
.cal-links a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  transition: background-color 0.15s, border-color 0.15s;
}
.cal-links a:hover { background: var(--sea-light); border-color: var(--sea); }
.person .name a { color: var(--navy); text-decoration: none; border-bottom: 2px solid var(--sea-light); }
.person .name a:hover { border-bottom-color: var(--sea); }
@media (max-width: 560px) {
  .cal-label { flex-basis: 100%; }
  .facts span:last-child { white-space: nowrap; }
  .facts li { flex-wrap: wrap; }
}
