/* ==========================================================================
   European Mobility Symposium — unified stylesheet
   Palette: University of Exeter green + European Union blue & gold
   ========================================================================== */

:root {
  /* Brand core */
  --green-deep:      #003C3C;  /* Exeter deep green — primary */
  --green-highlight: #006A4D;  /* highlight green — links, accents */

  /* European accents */
  --eu-blue:         #003399;  /* EU reflex blue */
  --eu-blue-bright:  #3266ad;  /* brighter blue for lighter contexts */
  --eu-gold:         #FFCC00;  /* euro gold — primary CTA */
  --eu-gold-dark:    #B38F00;  /* gold for text on light backgrounds */

  /* Neutrals */
  --mist:            #F4F6F5;
  --slate:           #6B7672;
  --ink:             #1A2421;
  --white:           #FFFFFF;
  --green-tint:      #E1F0EC;  /* pale green surface */

  /* Typography */
  --font-sans: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  /* Layout */
  --maxw: 1140px;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow: 0 2px 10px rgba(0, 60, 60, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 60, 60, 0.12);
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
  color: var(--green-deep);
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

a {
  color: var(--green-highlight);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--green-deep); text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 4rem 0; }
.section--tint { background: var(--mist); }
.section--green {
  background: var(--green-deep);
  color: var(--white);
}
.section--green h2,
.section--green h3 { color: var(--white); }

.text-center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--slate); max-width: 60ch; }
.section--green .lead { color: var(--green-tint); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-highlight);
  margin-bottom: 0.5rem;
}
.section--green .eyebrow { color: var(--eu-gold); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn--primary {
  background: var(--eu-gold);
  color: var(--ink);
}
.btn--primary:hover { background: #ffd633; color: var(--ink); }

.btn--secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--eu-blue-bright);
}
.btn--secondary:hover { background: rgba(50, 102, 173, 0.2); color: var(--white); }

.btn--outline {
  background: transparent;
  color: var(--green-deep);
  border-color: var(--green-deep);
}
.btn--outline:hover { background: var(--green-deep); color: var(--white); }

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green-deep);
  color: var(--white);
  box-shadow: var(--shadow);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
}
.nav__brand:hover { color: var(--white); text-decoration: none; }
.nav__logo {
  background: var(--eu-gold);
  border-radius: 5px;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.nav__logo img { height: 28px; width: auto; display: block; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  display: block;
  color: var(--white);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.97rem;
  font-weight: 500;
  transition: background var(--transition);
}
.nav__links a:hover {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
  color: var(--white);
}
.nav__links a.is-active {
  background: var(--green-highlight);
  color: var(--white);
}
.nav__toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--green-deep);
    padding: 0.5rem 1rem 1rem;
    box-shadow: var(--shadow-lg);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }
  .nav__links.is-open { max-height: 24rem; }
  .nav__links a { padding: 0.75rem 0.85rem; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--green-deep) 0%, #02524a 100%);
  color: var(--white);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,204,0,0.18), transparent 70%);
  z-index: 1;
  pointer-events: none;
}
.hero__content { position: relative; z-index: 2; }
.hero__anim {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 60%;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 40%);
  mask-image: linear-gradient(to right, transparent 0%, #000 40%);
}
.hero__anim svg { width: 100%; height: 100%; display: block; }
@media (max-width: 900px) {
  .hero__anim { width: 100%; opacity: 0.3;
    -webkit-mask-image: none; mask-image: none; }
}
.hero h1 { color: var(--white); max-width: 18ch; }
.about-logo { display: block; width: 340px; max-width: 100%; height: auto; margin: 0 auto 1.5rem; }
.hero__lead { font-size: 1.25rem; color: var(--green-tint); max-width: 55ch; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}
.hero__meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}
.hero__meta-item span { color: var(--eu-gold); font-weight: 700; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* --------------------------------------------------------------------------
   Page header (interior pages)
   -------------------------------------------------------------------------- */
.page-head {
  background: linear-gradient(135deg, var(--green-deep) 0%, #02524a 100%);
  color: var(--white);
  padding: 3.5rem 0;
}
.page-head h1 { color: var(--white); margin-bottom: 0.25rem; }
.page-head p { color: var(--green-tint); font-size: 1.1rem; margin: 0; }

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--white);
  border: 1px solid rgba(0, 60, 60, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green-deep);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.card__icon-img {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
  margin: 0 0 1rem;
}
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Program / schedule
   -------------------------------------------------------------------------- */
.schedule { border-left: 3px solid var(--green-tint); margin-left: 0.5rem; }
.schedule__item {
  position: relative;
  padding: 0 0 2rem 2rem;
}
.schedule__item::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--eu-gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--green-highlight);
}
.schedule__time {
  font-weight: 700;
  color: var(--green-highlight);
  font-size: 0.95rem;
}
.schedule__title { margin: 0.15rem 0 0.25rem; font-size: 1.15rem; }
.schedule__meta { color: var(--slate); font-size: 0.9rem; margin: 0; }

.schedule__item--break .schedule__title {
  display: inline-block;
  background: #FFF3CC;
  color: #7A5C00;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
}
.schedule__item--break::before { background: #E0A800; }

.day-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.day-tab {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  background: var(--mist);
  color: var(--green-deep);
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}
.day-tab.is-active {
  background: var(--green-deep);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Speakers / attendees
   -------------------------------------------------------------------------- */
.person {
  text-align: center;
}
.person__photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  object-fit: cover;
  background: var(--green-tint);
  border: 4px solid var(--white);
  box-shadow: var(--shadow);
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}
.person:hover .person__photo { filter: grayscale(0%); }
.person__name { margin: 0; font-size: 1.1rem; }
.person__role { color: var(--green-highlight); font-weight: 600; font-size: 0.92rem; margin: 0.1rem 0; }
.person__org { color: var(--slate); font-size: 0.88rem; margin: 0; }

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stat__num {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--eu-gold);
  line-height: 1;
}
.section:not(.section--green) .stat__num { color: var(--green-highlight); }
.stat__label { color: inherit; font-size: 0.95rem; margin: 0.35rem 0 0; opacity: 0.9; }

/* --------------------------------------------------------------------------
   Venue
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 60, 60, 0.1);
  display: flex;
  gap: 0.75rem;
}
.info-list li:last-child { border-bottom: 0; }
.info-list strong { color: var(--green-deep); min-width: 120px; display: inline-block; }

.map-embed {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* --------------------------------------------------------------------------
   Past editions
   -------------------------------------------------------------------------- */
.edition {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid rgba(0, 60, 60, 0.1);
  box-shadow: var(--shadow);
}
.edition__year {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--green-deep);
  text-align: center;
  border-right: 2px solid var(--green-tint);
  padding-right: 1rem;
}
.edition h3 { margin: 0 0 0.25rem; }
.edition p { margin: 0; color: var(--slate); }
@media (max-width: 560px) {
  .edition { grid-template-columns: 1fr; }
  .edition__year { border-right: 0; border-bottom: 2px solid var(--green-tint); padding: 0 0 0.5rem; }
}

/* --------------------------------------------------------------------------
   Institutions / logos
   -------------------------------------------------------------------------- */
.host-logo {
  max-width: 320px;
  height: auto;
  margin: 1.5rem auto 0;
}
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  margin-top: 2rem;
}
.logo-placeholder {
  width: 180px;
  height: 90px;
  border: 1px dashed rgba(0, 60, 60, 0.3);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--slate);
  font-size: 0.85rem;
  background: var(--white);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
  padding: 1.5rem 0;
}
.site-footer a { color: rgba(255, 255, 255, 0.85); }
.site-footer a:hover { color: var(--eu-gold); text-decoration: none; }
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  cursor: pointer;
}
.footer-email:hover { color: var(--eu-gold); text-decoration: none; }
.footer-email svg { flex-shrink: 0; }
.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* Accessibility */
.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;
}
:focus-visible { outline: 3px solid var(--eu-gold); outline-offset: 2px; }
