/* Gateway Rotary Club of Staten Island. Rotary brand colors: Royal Blue #17458f, Gold #f7a81b. */
:root {
  --blue: #17458f;
  --blue-dark: #0f2f63;
  --gold: #f7a81b;
  --ink: #1c2433;
  --muted: #55607a;
  --tint: #f3f6fb;
  --line: #dbe2ee;
  --white: #ffffff;
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; text-align: center; }
.narrow-left { max-width: 800px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--white); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand img { width: 128px; }
.site-header nav { display: none; gap: 26px; }
.site-header nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-header nav a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 6px; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 17px; line-height: 1.2;
  padding: 15px 28px; border-radius: 999px; border: 2px solid transparent; text-align: center;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15, 47, 99, .22); }
.btn-gold { background: var(--gold); color: var(--blue-dark); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-outline { background: var(--white); color: var(--blue); border-color: var(--blue); }
.btn-small { font-size: 15px; padding: 11px 20px; white-space: nowrap; }
.btn-block { display: block; width: 100%; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--blue) 0%, var(--blue-dark) 100%); color: var(--white); padding: 56px 0 64px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.eyebrow { color: var(--gold); font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.eyebrow-blue { color: var(--blue); }
h1 { font-size: clamp(38px, 7vw, 62px); line-height: 1.06; font-weight: 800; letter-spacing: -.01em; }
.lede { font-size: 19px; color: #e3ebf8; margin: 20px 0 30px; max-width: 34em; }

.when-card { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 28px; border-top: 6px solid var(--gold); box-shadow: 0 18px 40px rgba(0, 0, 0, .22); }
.when-label { font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .1em; font-size: 14px; }
.when-time { font-size: 46px; font-weight: 800; line-height: 1.1; color: var(--blue-dark); margin: 4px 0 12px; }
.when-place { font-weight: 600; }
.when-note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-weight: 600; }

/* Sections */
.section { padding: 64px 0; }
.section-tint { background: var(--tint); }
.section-blue { background: var(--blue); color: var(--white); }
.section-blue p { color: #e3ebf8; margin-bottom: 28px; }
h2 { font-size: clamp(27px, 4.4vw, 38px); line-height: 1.15; font-weight: 800; color: var(--blue-dark); margin-bottom: 18px; }
.section-blue h2 { color: var(--white); }
h3 { font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--blue-dark); }
.section p + p { margin-top: 14px; }
.section-intro { color: var(--muted); max-width: 40em; margin-bottom: 32px; }
.text-link { font-weight: 700; text-underline-offset: 4px; }
.sub-h { margin: 26px 0 8px; }

.two-col { display: grid; gap: 36px; align-items: start; }
.two-col-media { align-items: center; }
.two-col-media img, .photo-row img { border-radius: var(--radius); width: 100%; }

.contact-card { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card h3 { margin-bottom: 18px; }
.contact-card .btn + .btn { margin-top: 12px; }
.contact-plain { margin-top: 18px; color: var(--muted); font-size: 16px; overflow-wrap: anywhere; }

.cards { display: grid; gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--gold); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-bottom: 10px; }
.card .text-link { display: inline-block; margin-top: 14px; }
.card-when { color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.card-cta { background: var(--blue); border-color: var(--blue); border-top-color: var(--gold); }
.card-cta h3, .card-cta p, .card-cta a { color: var(--white); }
.photo-caption { margin-top: 14px; color: var(--muted); font-size: 15px; }

.photo-row { display: grid; gap: 20px; margin-top: 36px; }
.photo-row img { aspect-ratio: 16 / 9; object-fit: cover; }

.roster { list-style: none; display: grid; gap: 14px; margin-top: 8px; }
.roster li { border-left: 4px solid var(--gold); background: var(--white); border-radius: 8px; padding: 14px 18px; font-weight: 700; font-size: 18px; color: var(--blue-dark); }
.roster span { display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

#faq h3 { margin-top: 26px; }
#faq h3 + p { margin-top: 6px; }

.nf-title { color: var(--blue-dark); margin-bottom: 18px; }
.nf-text { margin-bottom: 28px; }

/* Footer */
.site-footer { background: var(--blue-dark); color: #d5def0; padding: 52px 0 24px; font-size: 15.5px; }
.site-footer a { color: var(--white); text-underline-offset: 3px; }
.footer-grid { display: grid; gap: 30px; }
.footer-plate { background: var(--white); border-radius: 10px; padding: 14px 20px; display: inline-block; margin-bottom: 14px; }
.footer-plate img { width: 150px; }
.footer-h { color: var(--gold); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.footer-base { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .16); color: #aebcd8; font-size: 14px; }
.site-footer p { overflow-wrap: anywhere; }
.footer-base .charity { margin-bottom: 8px; color: #c4d0e6; }

@media (min-width: 640px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .photo-row { grid-template-columns: 1fr 1fr; }
  .photo-row-3 { grid-template-columns: repeat(3, 1fr); }
  .roster { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .site-header nav { display: flex; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .brand img { width: 150px; }
  .hero { padding: 84px 0 92px; }
  .hero-grid { grid-template-columns: 1.5fr 1fr; gap: 56px; }
  .two-col { grid-template-columns: 1.5fr 1fr; gap: 56px; }
  .two-col-media { grid-template-columns: 1fr 1fr; }
  .section { padding: 84px 0; }
  .roster { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.1fr .9fr 1.4fr 1.1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
