/* Eamonn Zaouk Hockey - shared styles */
:root {
  --navy: #0b1f3a;
  --navy-2: #122b4d;
  --ice: #f4f7fb;
  --white: #ffffff;
  --ink: #1a2333;
  --muted: #5b6676;
  --line: #d9e0ea;
  --accent: #c8102e;
  --accent-2: #e8b923;
  --radius: 10px;
  --max: 1100px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", Impact, var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--ice);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--display); letter-spacing: 0.01em; line-height: 1.1; margin: 0 0 0.4em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; text-transform: uppercase; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.85rem; color: var(--accent); font-weight: 700; margin-bottom: 0.4rem; }

/* Header / nav */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky; top: 0; z-index: 20;
  border-bottom: 3px solid var(--accent);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); text-decoration: none; }
.brand .mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); color: var(--navy);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 1.05rem;
}
.brand .name { font-family: var(--display); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.04em; }
.brand .sub { display: block; font-family: var(--font); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: #b9c6d8; font-weight: 500; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: #dbe4f0; text-decoration: none; font-weight: 600; font-size: 0.92rem;
  padding: 8px 12px; border-radius: 6px;
}
.nav a:hover { background: var(--navy-2); color: var(--white); }
.nav a.active { color: var(--white); box-shadow: inset 0 -3px 0 var(--accent-2); border-radius: 0; }
.nav-toggle { display: none; background: none; border: 1px solid #6f82a0; color: var(--white); padding: 6px 10px; border-radius: 6px; font-size: 1.1rem; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #163a6b 60%, #1f4f8f 100%);
  color: var(--white);
  padding: 56px 0 48px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 80px);
  pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; position: relative; }
.hero .eyebrow { color: var(--accent-2); }
.hero h1 { color: var(--white); margin-bottom: 0.2em; }
.hero .tagline { font-size: 1.15rem; color: #d6e1f0; max-width: 34rem; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 6px;
  text-decoration: none; font-weight: 700; font-size: 0.95rem;
  background: var(--accent); color: var(--white); border: 2px solid var(--accent);
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.btn.dark { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* Facts bar */
.facts { background: var(--white); border-bottom: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0; }
.fact { padding: 18px 12px; text-align: center; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact .v { font-family: var(--display); font-size: 1.7rem; font-weight: 800; color: var(--navy); line-height: 1; }
.fact .k { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-top: 4px; }

/* Sections */
section { padding: 56px 0; scroll-margin-top: 72px; }
section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: 0 1px 2px rgba(11,31,58,0.04);
}
.card h3 { margin-bottom: 0.3em; }
.card .meta { color: var(--muted); font-size: 0.9rem; }
.stat-card { text-align: center; border-top: 4px solid var(--accent); }
.stat-card .v { font-family: var(--display); font-size: 2.8rem; font-weight: 800; color: var(--navy); line-height: 1; }
.stat-card .k { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; color: var(--muted); margin-top: 6px; }
.lead { font-size: 1.1rem; }
blockquote {
  margin: 0; padding: 20px 24px; border-left: 4px solid var(--accent-2);
  background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.05rem;
}
blockquote footer { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }

/* Definition list */
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.dl dt { font-weight: 700; color: var(--navy); }
.dl dd { margin: 0; }

/* Achievements */
.achievements { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.achievements li {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px 16px 56px; position: relative; font-weight: 600;
}
.achievements li::before {
  content: "\2605"; position: absolute; left: 18px; top: 13px;
  color: var(--accent-2); font-size: 1.4rem;
}
.achievements li span { display: block; font-weight: 400; color: var(--muted); font-size: 0.9rem; }

/* Media placeholders: drop files with the named path and the placeholder disappears */
.media {
  position: relative; background: #e3e9f2; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; border: 1px solid var(--line);
}
.media.wide { aspect-ratio: 16 / 9; }
.media.tall { aspect-ratio: 3 / 4; }
.media img, .media video, .media iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.media .ph {
  display: none; position: absolute; inset: 0; padding: 16px; text-align: center;
  align-items: center; justify-content: center; flex-direction: column; gap: 6px;
  color: var(--muted); font-size: 0.85rem;
  background: repeating-linear-gradient(45deg, #e3e9f2 0 12px, #d9e0ea 12px 24px);
}
.media .ph strong { color: var(--navy); font-size: 0.95rem; }
.media .ph code { background: var(--white); padding: 2px 6px; border-radius: 4px; font-size: 0.8rem; }
.media.missing .ph { display: flex; }
.media.missing img, .media.missing video { display: none; }
.caption { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }
.media.hero-photo { aspect-ratio: 4 / 3; box-shadow: 0 12px 40px rgba(0,0,0,0.35); border: 0; }
.media.hero-photo img { object-position: 55% center; }

/* Photo gallery: one landscape (2 cols, 4:3) + two portraits (2:3) share the same row height */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.gallery figure.span2 { grid-column: span 2; }
.gallery img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; flex: 1; }
.gallery figure.span2 img { aspect-ratio: 4 / 3; }
.gallery figcaption { font-size: 0.85rem; color: var(--muted); padding: 8px 12px; }
.honors-grid { display: grid; grid-template-columns: 1.2fr 1.2fr 0.8fr; gap: 28px; align-items: start; }
.photo-card { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.photo-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 40%; display: block; }
.photo-card figcaption { font-size: 0.85rem; color: var(--muted); padding: 8px 12px; }
.contact-grid { grid-template-columns: 0.8fr 1.1fr 1.1fr; align-items: start; }
.contact-photo { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.contact-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; display: block; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } .gallery figure.span2 { grid-column: span 2; } }
@media (max-width: 520px) { .gallery figure.span2 img { aspect-ratio: 4 / 3; } }

/* Schedule table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.sched { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.95rem; }
.sched th { background: var(--navy); color: var(--white); text-align: left; padding: 12px 14px; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.sched td { padding: 12px 14px; border-top: 1px solid var(--line); white-space: nowrap; }
.sched tr.home td { background: #eef3fa; }
.sched td:first-child { font-weight: 600; color: var(--navy); }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .who { font-weight: 700; }
.contact-list .role { color: var(--muted); font-size: 0.9rem; display: block; font-weight: 400; }
.contact-list a { font-weight: 600; }

/* Footer */
.site-footer { background: var(--navy); color: #b9c6d8; padding: 32px 0; font-size: 0.9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--white); }

/* Responsive */
@media (max-width: 860px) {
  .hero .wrap, .grid-2 { grid-template-columns: 1fr; }
  .contact-grid, .honors-grid { grid-template-columns: 1fr; }
  .honors-grid .photo-card { max-width: 360px; }
  .contact-grid .contact-photo { max-width: 360px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-block; }
  .nav { display: none; width: 100%; flex-direction: column; padding-bottom: 12px; }
  .nav.open { display: flex; }
  .site-header .wrap { flex-wrap: wrap; }
  .nav a.active { box-shadow: none; border-left: 3px solid var(--accent-2); border-radius: 0; }
}
@media (max-width: 520px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .dl { grid-template-columns: 1fr; gap: 2px 0; }
  .dl dd { margin-bottom: 10px; }
}
