/*
  Clubs at SNG — Global Styles
  Designed to match SS. Neumann Goretti High School's visual identity.
  Dark navy header, gold accents, white content, institutional serif headings.
*/

@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;0,900;1,400&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

/* ── VARIABLES ──────────────────────────────────────────── */
:root {
  --sng-gold:        #D6B049;
  --sng-gold-dark:   #b89535;
  --sng-gold-light:  #f0d98a;
  --sng-navy:        #0f223d;
  --sng-navy-mid:    #162e52;
  --sng-navy-light:  #1e3d6b;
  --sng-blue:        #1a3a63;
  --sng-slate:       #425466;
  --sng-white:       #ffffff;
  --sng-off:         #f5f6f8;
  --sng-light:       #edf0f5;
  --sng-border:      #d0d8e4;
  --sng-text:        #0f223d;
  --sng-text-mid:    #2d4060;
  --sng-text-muted:  #5a6e86;
  --sng-success:     #2f6f3e;

  /* Sharp corners — school sites, not SaaS apps */
  --radius:    5px;
  --radius-sm: 3px;

  /* Subtle shadows */
  --shadow:    0 1px 4px rgba(15, 34, 61, 0.10);
  --shadow-md: 0 2px 10px rgba(15, 34, 61, 0.12);

  --max-width: 1180px;
  --header-h:  78px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--sng-text);
  background: var(--sng-white); /* flat white — no body gradient */
}

/* ── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.65rem;
  font-family: "Merriweather", Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--sng-navy);
}

h1 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.9rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); }
h4 { font-size: 1rem; }

p { margin: 0 0 1rem; color: var(--sng-text-mid); }

a { color: var(--sng-navy-light); text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: var(--sng-gold-dark); text-decoration: underline; }

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

/* ── LAYOUT ─────────────────────────────────────────────── */
.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

.section { padding: 3rem 0; }

.section-alt {
  background: var(--sng-off);
  border-top: 1px solid var(--sng-border);
  border-bottom: 1px solid var(--sng-border);
}

/* Gold rule under section headings — classic school/newspaper style */
.section-title {
  margin-bottom: 0.6rem;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--sng-gold);
  display: inline-block;
}

.section-subtitle {
  margin-bottom: 2rem;
  max-width: 760px;
  color: var(--sng-text-muted);
}

/* ── ACCESSIBILITY ───────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -999px; top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 1rem; top: 1rem;
  width: auto; height: auto;
  background: var(--sng-white);
  border: 2px solid var(--sng-gold);
  padding: 0.5rem 0.8rem;
  z-index: 1000;
  border-radius: var(--radius-sm);
}

/* ── HEADER — dark navy, gold bottom border ─────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--sng-navy);         /* NOT white */
  border-bottom: 3px solid var(--sng-gold);
}

.header-bar {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ── BRAND ──────────────────────────────────────────────── */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--sng-white);
  text-decoration: none;
}

.brand:hover { text-decoration: none; color: var(--sng-gold-light); }

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand-text strong {
  display: block;
  font-family: "Merriweather", Georgia, serif;
  font-size: 1rem;
  color: var(--sng-white);
  line-height: 1.2;
}

.brand-text span {
  display: block;
  font-size: 0.8rem;
  color: var(--sng-gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ── NAV ────────────────────────────────────────────────── */
.nav-toggle {
  display: none;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: var(--sng-white);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.65rem;
  font-size: 1rem;
  cursor: pointer;
}

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

.main-nav a {
  display: inline-block;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.82);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a.active {
  background: rgba(214,176,73,0.18);
  color: var(--sng-gold-light);
  text-decoration: none;
}

/* ── HERO — solid navy, no radial gradients ─────────────── */
.hero {
  padding: 4rem 0 3rem;
  background: var(--sng-navy);
  border-bottom: 3px solid var(--sng-gold);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  color: var(--sng-white);
  margin-bottom: 0.8rem;
}

.hero h1 span { color: var(--sng-gold); }

.hero p {
  color: #c2cfe0;
  font-size: 1.05rem;
  max-width: 600px;
}

.hero-panel {
  border: 1px solid rgba(214,176,73,0.2);
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.hero-panel img {
  width: 110px;
  margin-bottom: 0.75rem;
}

.hero-meta {
  margin-top: 1rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Rectangular tags, not pill badges */
.hero-meta span {
  background: rgba(214,176,73,0.12);
  border: 1px solid rgba(214,176,73,0.28);
  border-radius: var(--radius-sm);
  padding: 0.28rem 0.6rem;
  font-size: 0.8rem;
  color: var(--sng-gold-light);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── BUTTONS — sharp, uppercase ─────────────────────────── */
.btn-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.62rem 1.1rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn:hover, .btn:focus { text-decoration: none; }

.btn-primary {
  background: var(--sng-gold);
  color: var(--sng-navy);
  border-color: var(--sng-gold);
}

.btn-primary:hover, .btn-primary:focus {
  background: var(--sng-gold-dark);
  border-color: var(--sng-gold-dark);
  color: var(--sng-navy);
}

.btn-secondary {
  background: var(--sng-navy-mid);
  color: var(--sng-white);
  border-color: var(--sng-navy-light);
}

.btn-secondary:hover, .btn-secondary:focus {
  background: var(--sng-navy-light);
  color: var(--sng-white);
}

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

.btn-outline:hover, .btn-outline:focus {
  background: var(--sng-off);
  border-color: var(--sng-navy);
  color: var(--sng-navy);
}

.btn-sm {
  padding: 0.38rem 0.7rem;
  font-size: 0.8rem;
}

/* ── GRIDS ──────────────────────────────────────────────── */
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ── CARDS — flat, minimal shadow, sharp corners ────────── */
.card {
  background: var(--sng-white);
  border: 1px solid var(--sng-border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.card:hover { border-color: var(--sng-gold); }
.card h3, .card h4 { margin-bottom: 0.45rem; }
.card p:last-child { margin-bottom: 0; }

.quick-card { border-top: 4px solid var(--sng-gold); }

/* ── BADGE ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  border-radius: var(--radius-sm);
  border: 1px solid var(--sng-border);
  background: var(--sng-light);
  color: var(--sng-navy);
  padding: 0.18rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── CONTROLS ───────────────────────────────────────────── */
.controls {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
}

/* ── FORM ELEMENTS ──────────────────────────────────────── */
.input, select, textarea {
  width: 100%;
  border: 1px solid var(--sng-border);
  border-radius: var(--radius-sm);
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.95rem;
  padding: 0.6rem 0.75rem;
  background: var(--sng-white);
  color: var(--sng-text);
  transition: border-color 0.2s;
}

.input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--sng-gold);
  box-shadow: 0 0 0 2px rgba(214,176,73,0.15);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sng-navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group.full { grid-column: 1 / -1; }

/* ── READ MORE ──────────────────────────────────────────── */
.read-more {
  margin-top: 0.5rem;
  background: none;
  border: 0;
  color: var(--sng-navy-light);
  padding: 0;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.read-more:hover { color: var(--sng-gold-dark); }
.hidden-text { display: none; margin-top: 0.45rem; }
.hidden-text.show { display: block; }

/* ── LIST ───────────────────────────────────────────────── */
.list-clean { list-style: none; margin: 0; padding: 0; }
.list-clean li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--sng-border);
  color: var(--sng-text-mid);
}
.list-clean li:last-child { border-bottom: 0; }

/* ── PHOTO GRID ─────────────────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.photo-slot {
  border: 1px solid var(--sng-border);
  border-radius: var(--radius-sm);
  min-height: 120px;
  background: var(--sng-light);       /* flat, no gradient */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--sng-text-muted);
  font-size: 0.9rem;
  padding: 0.4rem;
}

/* ── TABLE ──────────────────────────────────────────────── */
.table-like {
  border: 1px solid var(--sng-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 0.6rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--sng-border);
  background: var(--sng-white);
  font-size: 0.92rem;
}

.table-row.header {
  background: var(--sng-navy);         /* navy header row */
  color: var(--sng-white);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.table-row:last-child { border-bottom: 0; }
.table-row:not(.header):hover { background: var(--sng-off); }

/* ── EMPTY STATE ────────────────────────────────────────── */
.empty-state {
  border: 1px dashed var(--sng-border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  background: var(--sng-off);
  color: var(--sng-text-muted);
  text-align: center;
}

.empty-state p { margin-bottom: 0; }

/* ── FOOTER — full navy, gold top border ────────────────── */
.site-footer {
  margin-top: 2.5rem;
  background: var(--sng-navy);
  border-top: 3px solid var(--sng-gold);
  color: #c8daf0;
  padding: 2rem 0 1rem;
}

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

.footer-brand {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 0.6rem;
}

.footer-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 0.2rem;
}

.footer-title {
  margin: 0;
  color: var(--sng-white);
  font-size: 1rem;
  font-family: "Merriweather", Georgia, serif;
}

.footer-sub {
  margin: 0;
  color: var(--sng-gold);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

.footer-col h4 {
  color: var(--sng-gold);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
}

.site-footer a { color: #c8daf0; text-decoration: none; transition: color 0.2s; }
.site-footer a:hover, .site-footer a:focus { color: var(--sng-gold-light); text-decoration: underline; }

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.38rem; font-size: 0.9rem; }

.footer-note {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(214,176,73,0.15);
  padding-top: 0.75rem;
  font-size: 0.88rem;
  color: #7a92ad;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .table-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 0.5rem 0; gap: 0; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn-row { flex-direction: column; }
  .footer-note { flex-direction: column; text-align: center; }
}
