/* =============================================
   RAFOA — Senior-Friendly Stylesheet
   Large text, high contrast, easy navigation
   ============================================= */

:root {
  --navy:   #0d1f3c;
  --navy2:  #162d54;
  --gold:   #c9a227;
  --gold2:  #e6ba3a;
  --cream:  #f7f4ef;
  --white:  #ffffff;
  --text:   #1a1a2e;
  --muted:  #555566;
  --border: #d4c9b0;
  --green:  #2ecc71;
  --red:    #e74c3c;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.10);

  /* Comfortable reading sizes for 60+ users */
  --fs-sm:   1rem;
  --fs-body: 1.15rem;
  --fs-lead: 1.3rem;
  --fs-h3:   1.5rem;
  --fs-h2:   2rem;
  --fs-h1:   2.6rem;
  --lh:      1.8;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  font-size: var(--fs-body);
  line-height: var(--lh);
  color: var(--text);
  background: var(--cream);
}

a { color: var(--navy); }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1060px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Top Bar ── */
.top-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  font-size: 1rem;
  padding: 0.5rem 0;
}
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.top-bar-links { display: flex; gap: 0.75rem; align-items: center; }
.top-bar a { color: var(--gold2); text-decoration: none; }
.top-bar a:hover { text-decoration: underline; }

/* ── Header ── */
.site-header {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
  border-bottom: 3px solid var(--gold);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.5rem; gap: 1rem;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; }
.logo-emblem {
  width: 52px; height: 52px;
  background: var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0; position: relative;
}
.logo-emblem img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.logo-fallback { position: absolute; }
.logo-text { color: #fff; }
.logo-acronym { display: block; font-family: 'Merriweather', serif; font-size: 1.4rem; font-weight: 900; line-height: 1.1; }
.logo-full { display: block; font-size: 0.8rem; opacity: 0.7; line-height: 1.3; }

/* Nav */
.main-nav { display: flex; flex-wrap: wrap; gap: 0.1rem; }
.main-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { background: var(--gold); color: var(--navy); }
.nav-slaf { border: 1.5px solid var(--gold); margin-left: 0.4rem; }

.mobile-toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 0.3rem;
}
.mobile-toggle span { display: block; width: 28px; height: 3px; background: #fff; border-radius: 3px; margin: 5px 0; }

@media (max-width: 860px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy2); padding: 1rem 1.5rem; z-index: 200; }
  .main-nav.open { display: flex; }
  .main-nav a { font-size: 1.2rem; padding: 0.9rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.08); border-radius: 0; }
  .mobile-toggle { display: block; }
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: none;
  min-height: 52px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  line-height: 1.4;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.2); }
.btn-primary  { background: var(--gold);  color: var(--navy); }
.btn-primary:hover { background: var(--gold2); color: var(--navy); }
.btn-navy     { background: var(--navy);  color: #fff; }
.btn-navy:hover { background: var(--navy2); color: #fff; }
.btn-outline  { background: transparent; border: 2px solid rgba(255,255,255,0.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ── Section ── */
section { padding: 3.5rem 0; }

.section-eyebrow {
  display: inline-block;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
h2.section-title {
  font-family: 'Merriweather', serif;
  font-size: var(--fs-h2);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 1.25rem;
}
h2.section-title span { color: var(--gold); }

/* ── Page Header ── */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  color: #fff;
  padding: 2.5rem 0;
  border-bottom: 3px solid var(--gold);
}
.page-header h1 {
  font-family: 'Merriweather', serif;
  font-size: var(--fs-h1);
  font-weight: 900;
  line-height: 1.2;
  margin-top: 0.5rem;
}
.breadcrumb { font-size: 1rem; opacity: 0.65; margin-bottom: 0.4rem; }
.breadcrumb a { color: var(--gold2); text-decoration: none; }

/* ── Content cards ── */
.card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 1.5rem; }
.card h2 { font-family: 'Merriweather', serif; font-size: var(--fs-h3); color: var(--navy); margin-bottom: 1rem; }
.card p  { color: var(--muted); margin-bottom: 0.85rem; }

/* ── Alerts ── */
.alert {
  padding: 1.1rem 1.5rem;
  border-radius: var(--radius);
  font-size: var(--fs-body);
  font-weight: 600;
  margin-bottom: 1.5rem;
  border-left: 5px solid;
}
.alert-success { background: #e8f7ed; color: #1a6b3a; border-color: var(--green); }
.alert-error   { background: #fde8e8; color: #7a1a1a; border-color: var(--red); }
.alert-info    { background: #e8f0fd; color: #1a3a7a; border-color: var(--navy2); }

/* ── Forms ── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 1.4rem; }
label {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.45rem;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.1rem;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--cream);
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); background: #fff; }
textarea { min-height: 120px; resize: vertical; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%23555'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.required { color: var(--red); }

/* ── Tables ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-body); }
thead th {
  background: var(--navy);
  color: var(--gold2);
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
tbody tr:nth-child(even) { background: var(--cream); }
tbody tr:hover { background: #eee8d8; }
tbody td { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.rank-badge {
  display: inline-block;
  background: var(--navy);
  color: var(--gold2);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  white-space: nowrap;
}
.status-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}
.status-active  { background: #d4edda; color: #155724; }
.status-pending { background: #fff3cd; color: #856404; }
.status-expired { background: #f8d7da; color: #721c24; }

/* ── Hero ── */
.hero {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 55%, #1a3a6e 100%);
  padding: 5rem 0 4.5rem;
}
.hero::before {
  content: "✈";
  position: absolute;
  font-size: 20rem;
  opacity: 0.04;
  top: -3rem; right: -3rem;
  line-height: 1;
  pointer-events: none;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(11, 19, 37, 0.7), rgba(11, 19, 37, 0.9));
  z-index: 2;
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 3;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.hero-badge {
  display: inline-block;
  background: rgba(201,162,39,0.18);
  border: 1px solid var(--gold);
  color: var(--gold2);
  font-size: 0.9rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.35rem 1.2rem; border-radius: 30px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: 'Merriweather', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900; line-height: 1.2;
  margin-bottom: 1rem;
}
.hero h1 span { color: var(--gold2); }
.hero-subtitle { font-size: var(--fs-lead); opacity: 0.85; margin-bottom: 2.5rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Optional rotating background slider behind the hero content.
   Namespaced with .hero- so it can't collide with the standalone
   .slider-container/.slide gallery component used elsewhere on the site. */
.hero-slider-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  overflow: hidden;
}
.hero-slider-track {
  display: flex;
  gap: 16px;
  width: 100%; height: 100%;
  box-sizing: border-box;
  padding: 20px;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.hero-slide {
  flex: 0 0 calc(33.333% - 11px);
  min-width: calc(33.333% - 11px);
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ── Highlight strip ── */
.highlight-strip { background: var(--gold); color: var(--navy); padding: 1.25rem 0; }
.highlight-strip p { font-size: 1.05rem; font-weight: 600; line-height: 1.7; max-width: 860px; margin: 0 auto; text-align: center; }

/* ── Welcome grid ── */
.welcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.welcome-content p { color: var(--muted); margin-bottom: 1rem; }
@media (max-width: 720px) { .welcome-grid { grid-template-columns: 1fr; } }

.img-block { background: var(--navy); border-radius: var(--radius); overflow: hidden; }
.img-placeholder { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--navy2), #1a3a6e); display: flex; align-items: center; justify-content: center; flex-direction: column; color: rgba(255,255,255,0.2); font-size: 4rem; gap: 0.5rem; }
.img-placeholder span { font-size: 0.95rem; font-style: italic; }

.welcome-stats { display: flex; border-top: 1px solid rgba(255,255,255,0.1); }
.stat-item { flex: 1; padding: 1.25rem; text-align: center; border-right: 1px solid rgba(255,255,255,0.1); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Merriweather', serif; font-size: 1.8rem; font-weight: 900; color: var(--gold2); line-height: 1; }
.stat-lbl { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-top: 0.25rem; }

/* ── Services grid ── */
.services-section { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; margin-top: 2.5rem; }
@media (max-width: 860px) { .services-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px) { .services-grid { grid-template-columns: 1fr; } }

.svc-card {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: 0.4rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.svc-card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-3px); color: var(--text); text-decoration: none; }
.svc-icon  { font-size: 2.4rem; line-height: 1; }
.svc-title { font-family: 'Merriweather', serif; font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-top: 0.2rem; }
.svc-desc  { font-size: 1rem; color: var(--muted); line-height: 1.55; }
.svc-arrow { font-size: 1.3rem; color: var(--gold); margin-top: auto; padding-top: 0.75rem; }

/* ── Events ── */
.events-list { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; }
.event-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.75rem 2rem; display: grid; grid-template-columns: 90px 1fr; gap: 2rem; align-items: start; }
@media (max-width: 560px) { .event-card { grid-template-columns: 1fr; gap: 0.75rem; } }
.event-date { background: var(--navy); color: var(--gold2); border-radius: 6px; padding: 1rem 0.75rem; text-align: center; }
.event-month { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.event-year  { font-family: 'Merriweather', serif; font-size: 1.5rem; font-weight: 900; line-height: 1.1; }
.event-title { font-family: 'Merriweather', serif; font-size: 1.2rem; color: var(--navy); margin-bottom: 0.3rem; }
.event-location { font-size: 0.92rem; color: var(--gold); font-weight: 700; margin-bottom: 0.6rem; }
.event-desc { font-size: 1rem; color: var(--muted); }

/* ── Gallery ── */
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; margin-top: 2rem; }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: repeat(2,1fr); } }
.gallery-item { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--navy2), #1a3a6e); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-direction: column; color: rgba(255,255,255,0.25); font-size: 2.5rem; gap: 0.4rem; }
.gallery-item span { font-size: 0.85rem; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 2.5rem; margin-top: 2rem; }
@media (max-width: 680px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 2.5rem 2rem; }
.contact-info h3 { font-family: 'Merriweather', serif; font-size: 1.4rem; color: var(--gold2); margin-bottom: 1.75rem; }
.contact-detail { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.contact-icon { font-size: 1.5rem; flex-shrink: 0; }
.contact-detail-text strong { display: block; font-size: 0.82rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--gold2); margin-bottom: 0.2rem; }
.contact-detail-text span { font-size: 1.05rem; opacity: 0.9; line-height: 1.5; }

/* ── Member lookup result ── */
.lookup-result {
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  margin-top: 1.5rem;
}
.lookup-result h3 { font-family: 'Merriweather', serif; font-size: 1.5rem; color: var(--navy); margin-bottom: 1.25rem; border-bottom: 2px solid var(--border); padding-bottom: 0.75rem; }
.lookup-field { display: grid; grid-template-columns: 160px 1fr; gap: 0.5rem 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: var(--fs-body); }
.lookup-field:last-child { border-bottom: none; }
.lookup-label { font-weight: 700; color: var(--navy); }
.lookup-value { color: var(--muted); }

/* ── Eligibility box ── */
.eligibility-box {
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
}
.eligibility-box p { color: var(--muted); font-size: var(--fs-lead); margin-bottom: 1rem; }
.eligibility-box ul { list-style: disc; padding-left: 1.5rem; color: var(--muted); line-height: 2.2; font-size: var(--fs-body); }

/* ── Footer ── */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.8); }
.footer-top { padding: 3rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo-text { font-family: 'Merriweather', serif; font-size: 1.6rem; font-weight: 900; color: var(--gold2); display: block; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.95rem; opacity: 0.65; line-height: 1.65; }
.footer-address { margin-top: 0.75rem; font-size: 0.9rem; opacity: 0.5; }
.footer-col h4 { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold2); margin-bottom: 1rem; font-weight: 700; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.98rem; }
.footer-col ul li a:hover { color: var(--gold2); }
.footer-col ul li:not(:has(a)) { color: rgba(255,255,255,0.5); font-size: 0.95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 1.2rem 0; text-align: center; font-size: 0.9rem; opacity: 0.5; }
.footer-bottom a { color: inherit; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }

/* ── Back to top ── */
#back-top {
  position: fixed; bottom: 2rem; right: 2rem;
  background: var(--gold); color: var(--navy);
  border: none; border-radius: 50%;
  width: 54px; height: 54px;
  font-size: 1.5rem; font-weight: 900;
  cursor: pointer; display: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  z-index: 99; align-items: center; justify-content: center;
  transition: background 0.2s;
}
#back-top:hover { background: var(--gold2); }

/* ── Focus ring (accessibility) ── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ── About page ── */
/* .about-box { max-width: 800px; } */
.about-box h3 { font-family: 'Merriweather', serif; font-size: 1.35rem; color: var(--navy); margin: 1.75rem 0 0.75rem; }
.about-box p, .about-box li { color: var(--muted); margin-bottom: 0.85rem; }
.about-box ul { list-style: disc; padding-left: 1.5rem; line-height: 2; color: var(--muted); }

.site-logo:hover {
  /* transform: scale(1.05) !important; */
}

/* Standalone gallery slider component (e.g. testimonials / photo strip) */
.slider-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.slider-track {
    display: flex;
    gap: 16px;
    padding: 10px 0;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide {
    flex: 0 0 calc(33.333% - 11px);
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.slide:hover {
    transform: scale(1.02);
}