/* UD College Republicans — site styles */

:root {
  --ud-blue: #00539f;
  --ud-blue-dark: #003a70;
  --ud-blue-darker: #002a52;
  --gop-red: #c8102e;
  --gop-red-dark: #9e0c24;
  --ink: #1a2330;
  --muted: #5a6573;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --border: #e2e8f0;
  --gold: #ffd200;
  --maxw: 1120px;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(0, 42, 82, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  color: var(--ud-blue-dark);
  margin: 0 0 0.5em;
}

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

p { margin: 0 0 1rem; }

a { color: var(--ud-blue); }

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

.section { padding: 4rem 0; }
.section--alt { background: var(--bg-alt); }
.section__lead {
  max-width: 960px;
  color: var(--muted);
  font-size: 1.1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
  font-size: 1rem;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--gop-red); color: #fff; }
.btn--primary:hover { background: var(--gop-red-dark); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); }
.btn--blue { background: var(--ud-blue); color: #fff; }
.btn--blue:hover { background: var(--ud-blue-dark); box-shadow: var(--shadow); }
.btn--ig {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
}
.btn--ig:hover { box-shadow: var(--shadow); filter: brightness(1.06); }
.btn__ig-icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ud-blue);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 42, 82, 0.25);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}
.brand__mark {
  width: 44px;
  height: 44px;
  flex: none;
  background: #fff;
  border-radius: 8px;
  padding: 3px;
  object-fit: contain;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-size: 1.05rem; letter-spacing: 0.02em; }
.brand__text span { font-size: 0.72rem; opacity: 0.85; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
.nav__links a:hover,
.nav__links a.active { border-bottom-color: var(--gold); }
.nav__cta { padding: 0.5rem 1.1rem !important; border-radius: 8px; background: var(--gop-red); border-bottom: none !important; }
.nav__cta:hover { background: var(--gop-red-dark); }

.nav__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  font-size: 0; /* hide the fallback glyph; bars drawn below */
  cursor: pointer;
  flex: none;
}
.nav__toggle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 2px;
  margin: -1px 0 0 -11px;
  background: #fff;
  box-shadow: 0 -7px 0 #fff, 0 7px 0 #fff;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(rgba(0, 42, 82, 0.42), rgba(0, 42, 82, 0.58)),
    url("../assets/hero.jpg") center 40% / cover no-repeat,
    var(--ud-blue-darker);
  color: #fff;
  padding: 5.5rem 0;
  border-bottom: 5px solid var(--gop-red);
  text-shadow: 0 2px 10px rgba(0, 20, 45, 0.55);
}
.hero__inner { max-width: 760px; }
.hero h1 { color: #fff; }
.hero .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
}
.hero p { font-size: 1.2rem; color: #e6eef7; max-width: 620px; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; }
.hero .btn { text-shadow: none; }

/* ---------- Cards / grid ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 2rem;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.card__icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--ud-blue);
  color: #fff;
  display: grid; place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.card h3 { color: var(--ud-blue-dark); }
.card p { color: var(--muted); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gop-red);
  color: #fff;
  text-align: center;
  padding: 3.5rem 1.25rem;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #ffe3e7; max-width: 560px; margin: 0 auto 1.5rem; }

/* ---------- About ---------- */
.values { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.75rem; }
.values li {
  padding: 0.9rem 1.1rem;
  background: #fff;
  border-left: 4px solid var(--gop-red);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 8px rgba(0,42,82,0.05);
}
.alumni { font-style: italic; color: var(--muted); }

/* ---------- Forms / contact ---------- */
.contact-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1.2fr 1fr;
  align-items: start;
}
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: 0.35rem; color: var(--ud-blue-dark); }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--ud-blue);
  box-shadow: 0 0 0 3px rgba(0, 83, 159, 0.15);
}
.form-note { font-size: 0.85rem; color: var(--muted); }

.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.info-list li { display: flex; gap: 0.8rem; align-items: flex-start; }
.info-list .ico { font-size: 1.3rem; line-height: 1; }
.info-list a { font-weight: 600; }
.social-links { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.social-links a {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px;
  background: var(--ud-blue); color: #fff;
  border-radius: 50%; text-decoration: none; font-weight: 700;
  transition: background 0.15s ease;
}
.social-links a:hover { background: var(--gop-red); }

/* ---------- Statements ---------- */
.statement { margin-bottom: 1rem; }
.statement h2 { margin-bottom: 0.25rem; }
.statement__date {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gop-red);
  margin-bottom: 1rem;
}
.statement p { color: var(--ink); }
.statement__quote {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--ud-blue);
  background: var(--bg-alt);
  border-radius: 0 8px 8px 0;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ud-blue-dark);
}
.statement__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.faq__item {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--ud-blue);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 42, 82, 0.05);
}
.faq__item h3 { margin-bottom: 0.4rem; color: var(--ud-blue-dark); }
.faq__item p { margin: 0; color: var(--muted); }
.statement__signoff {
  margin-top: 1.5rem;
  color: var(--ink);
  line-height: 1.5;
}
.statement__rule {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ud-blue-darker);
  color: #cdd9e6;
  padding: 2.5rem 0 1.5rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.footer-grid nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  text-align: center;
  color: #9fb3c8;
}

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

/* Condense the horizontal nav as we approach mobile, so the full menu
   survives to a narrower width before switching to the hamburger. */
@media (max-width: 940px) {
  .nav__links { gap: 1.1rem; }
  .nav__links a { font-size: 0.92rem; }
  .nav__cta { padding: 0.45rem 0.9rem !important; }
}
@media (max-width: 780px) {
  .nav__links { gap: 0.8rem; }
  .nav__links a { font-size: 0.86rem; }
  .brand__text strong { font-size: 0.95rem; }
  .brand__text span { font-size: 0.66rem; }
}

/* Stack the contact columns before the form gets too narrow. */
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Mobile: switch to the hamburger menu. */
@media (max-width: 680px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ud-blue-dark);
    padding: 0.5rem 1.25rem 1rem;
  }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a {
    display: block;
    width: 100%;
    font-size: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .nav__links a.active { color: var(--gold); }
  .nav__links a.nav__cta {
    display: inline-block;
    width: auto;
    text-align: center;
    background: var(--gop-red);
    border-radius: 8px;
    margin: 0.85rem 0 0.25rem;
    padding: 0.6rem 1.4rem !important;
    border-bottom: none;
  }
  .nav__links li:last-child { text-align: center; }
  .nav__cta:hover { background: var(--gop-red-dark); }
}
