
/* Basic reset and variables */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f3a63;           /* deep UCD blue tone fallback */
  --text: #ffffff;
  --muted: rgba(255,255,255,0.85);
  --accent: #12a39e;       /* teal accent hinting Met Éireann */
  --link: #e6f2ff;
  --maxw: 1200px;
}

/* System font stack for performance and a modern feel */
html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
               Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background: var(--bg) url('assets/slide_bg_blue.jpg') center/cover no-repeat fixed;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

a { color: var(--link); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

/* Header / Nav */
.header {
  width: 100%;
  backdrop-filter: blur(4px);
  background: linear-gradient(180deg, rgba(0,0,0,0.24), rgba(0,0,0,0));
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}

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

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

.brand .title {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.125rem;
  line-height: 1;
}

.menu {
  display: flex;
  gap: 0.5rem;
}

.menu a {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.15);
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.menu a:hover, .menu a:focus {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.35);
}

/* Hero */
.hero {
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(2rem, 4vw, 4rem) 1.25rem;
}

.hero-inner {
  max-width: var(--maxw);
  width: 100%;
  display: grid;
  gap: 1.25rem;
  align-items: center;
  justify-items: center;
}

.hero .centre-logo {
  width: min(680px, 85vw);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35));
}

/* Partner logos — centred strip beneath the main logo */
.partner-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 3vw, 2rem);
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  padding: 0.75rem 1rem;
  backdrop-filter: blur(2px);
}

.partner-logos img {
  height: clamp(224px, 10vw, 88px);
  width: auto;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.45));
}

.partner-logos .divider {
  width: 1px;
  height: clamp(40px, 8vw, 72px);
  background: rgba(255,255,255,0.35);
}

.partner-logos a {
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  padding: 4px;                 /* slight hit area */
  transition: transform 150ms ease, filter 150ms ease;
}

.partner-logos a:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 8px 22px rgba(0,0,0,0.45));
}

.partner-logos a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  transform: translateY(-1px);
}

/* Placeholder strapline / description */
.tagline {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.6;
  text-wrap: balance;
}

/* Footer (now minimal) */
.footer {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.25);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
}

.credits {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Small screens */
@media (max-width: 520px) {
  .brand .title { display: none; }
}

/* High contrast focus ring */
:where(a, button):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---- Shared components for inner pages ---- */

.page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) 1.25rem 3rem;
}

.page h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
  letter-spacing: .01em;
}

.section {
  margin-top: clamp(1.5rem, 3vw, 3rem);
}

.section h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  margin-bottom: 1rem;
  font-weight: 700;
}

.leadership {
  display: grid;
  gap: 1.25rem;
}

.card {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

.card .row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: center;
}

.card .avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  filter: grayscale(100%);
  border: 2px solid rgba(255,255,255,0.3);
}

.card .avatar img { width: 100%; height: 100%; object-fit: cover; }

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

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

/* Deputy and Ops Manager sizes */
.card.small .row { grid-template-columns: 96px 1fr; }
.card.small .avatar { width: 96px; height: 96px; }

/* Grids */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.person-tile {
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 0.75rem;
  text-align: center;
}

.person-tile .avatar {
  width: 112px;
  height: 112px;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
  overflow: hidden;
  filter: grayscale(100%);
  border: 2px solid rgba(255,255,255,0.25);
}

.person-tile .avatar img { width: 100%; height: 100%; object-fit: cover; }

.person-tile .name { font-weight: 600; }
.person-tile .role { font-size: 0.9rem; color: var(--muted); }

/* News cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.news-item {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
}

.news-item img, .news-item iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.news-item .content { padding: 0.75rem 0.85rem 1rem; display: grid; gap: 0.5rem; }
.news-item .date { font-size: 0.9rem; color: var(--muted); }

/* Research tiles */
.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.research-item {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
}

.research-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.research-item .content { padding: 0.75rem 0.85rem 1rem; display: grid; gap: 0.35rem; }

/* Breadcrumb-ish header on inner pages */
.subheader {
  background: linear-gradient(180deg, rgba(0,0,0,0.22), rgba(0,0,0,0));
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.subheader .nav { padding-top: 0.75rem; padding-bottom: 0.75rem; }
