/*
Theme Name: Rock Hall Alumni
Theme URI: https://rockhallprimaryschoolalumni.org
Author: Samora Robertson
Author URI: https://bestjamaicanexperience.com
Description: Custom theme for the Rock Hall Primary School Alumni Association — connecting past students, celebrating legacy, and supporting sustainable development.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rockhall-alumni
Tags: alumni, school, community, one-column, custom-menu, featured-images, theme-options
*/

/* ===== CSS VARIABLES ===== */
:root {
  /* RHPS alumni blue and red */
  --rh-green: #1E33A8;
  --rh-green-light: #3852C8;
  --rh-green-dark: #0F1F66;
  --rh-gold: #C32026;
  --rh-gold-light: #E24B4F;
  --rh-gold-dark: #9C1820;

  /* Neutrals */
  --rh-white: #FFFFFF;
  --rh-off-white: #F5F5F0;
  --rh-gray-light: #E8E8E3;
  --rh-gray: #9E9E9E;
  --rh-gray-dark: #424242;
  --rh-black: #1A1A1A;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-padding: 80px 0;
  --container-width: 1200px;
  --gap: 24px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--rh-black);
  background: var(--rh-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--rh-green);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--rh-gold-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--rh-green-dark);
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.35rem; }

p { margin-bottom: 1em; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--rh-white);
  border-bottom: 3px solid var(--rh-green);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-top {
  background: var(--rh-green-dark);
  color: var(--rh-white);
  padding: 6px 0;
  font-size: 0.85rem;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.header-top a {
  color: var(--rh-gold-light);
}

.header-main {
  padding: 12px 0;
}

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-branding img {
  height: 55px;
  width: auto;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--rh-green-dark);
  line-height: 1.2;
  margin: 0;
}

.site-title span {
  display: block;
  font-size: 0.75rem;
  color: var(--rh-gray-dark);
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Navigation */
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 4px;
}

.main-navigation a {
  display: block;
  padding: 8px 16px;
  color: var(--rh-gray-dark);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: var(--rh-white);
  background: var(--rh-green);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--rh-green);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
  color: var(--rh-green);
  font-size: 1.2rem;
}

/* Header CTA */
.header-cta .btn {
  font-size: 0.9rem;
  padding: 8px 20px;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--rh-green-dark) 0%, var(--rh-green) 50%, var(--rh-green-light) 100%);
  color: var(--rh-white);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('assets/images/pattern.svg') repeat;
  opacity: 0.05;
}

.hero h1 {
  color: var(--rh-white);
  font-size: 3rem;
  margin-bottom: 0.3em;
}

.hero .tagline {
  font-size: 1.3rem;
  color: var(--rh-gold-light);
  font-style: italic;
  margin-bottom: 1.5em;
  font-family: var(--font-heading);
}

.hero p {
  max-width: 680px;
  margin: 0 auto 2em;
  font-size: 1.1rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== PAGE HEADER (interior pages) ===== */
.page-header {
  background: linear-gradient(135deg, var(--rh-green-dark), var(--rh-green));
  color: var(--rh-white);
  padding: 60px 0 50px;
  text-align: center;
}

.page-header h1 {
  color: var(--rh-white);
  margin-bottom: 0.3em;
}

.page-header .breadcrumbs {
  font-size: 0.9rem;
  opacity: 0.8;
}

.page-header .breadcrumbs a {
  color: var(--rh-gold-light);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--rh-gold);
  color: var(--rh-green-dark);
  border-color: var(--rh-gold);
}
.btn-primary:hover {
  background: var(--rh-gold-dark);
  border-color: var(--rh-gold-dark);
  color: var(--rh-white);
}

.btn-secondary {
  background: transparent;
  color: var(--rh-white);
  border-color: var(--rh-white);
}
.btn-secondary:hover {
  background: var(--rh-white);
  color: var(--rh-green-dark);
}

.btn-green {
  background: var(--rh-green);
  color: var(--rh-white);
  border-color: var(--rh-green);
}
.btn-green:hover {
  background: var(--rh-green-dark);
  border-color: var(--rh-green-dark);
}

/* ===== SECTIONS ===== */
.section {
  padding: var(--section-padding);
}

.section-alt {
  background: var(--rh-off-white);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--rh-gold);
}

.section-header p {
  max-width: 640px;
  margin: 16px auto 0;
  color: var(--rh-gray-dark);
}

/* ===== CARDS ===== */
.card {
  background: var(--rh-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5em;
}

.card-body p {
  color: var(--rh-gray-dark);
  font-size: 0.95rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--gap);
}

/* ===== LEADERSHIP / TEAM ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gap);
}

.team-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--rh-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--rh-green);
}

.team-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--rh-gold);
}

.team-card .placeholder-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--rh-green);
  color: var(--rh-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-family: var(--font-heading);
  margin: 0 auto 16px;
  border: 3px solid var(--rh-gold);
}

.team-card h4 {
  color: var(--rh-green-dark);
  margin-bottom: 4px;
}

.team-card .role {
  color: var(--rh-gold-dark);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== VALUES ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}

.value-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--rh-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.value-card .icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.value-card h3 {
  color: var(--rh-green);
  font-size: 1.3rem;
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--rh-white);
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

/* ===== EVENTS ===== */
.event-item {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: var(--rh-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  border-left: 4px solid var(--rh-green);
}

.event-date {
  text-align: center;
  min-width: 70px;
  padding: 12px;
  background: var(--rh-green);
  color: var(--rh-white);
  border-radius: var(--radius-sm);
}

.event-date .month {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.event-date .day {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.event-past {
  border-left-color: var(--rh-gray);
  opacity: 0.85;
}

.event-past .event-date {
  background: var(--rh-gray-dark);
}

.event-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-upcoming {
  background: var(--rh-green);
  color: var(--rh-white);
}

.badge-past {
  background: var(--rh-gray-light);
  color: var(--rh-gray-dark);
}

/* ===== DONATE / CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--rh-green-dark), var(--rh-green));
  color: var(--rh-white);
  padding: 60px 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--rh-white);
  margin-bottom: 0.5em;
}

.cta-banner p {
  max-width: 600px;
  margin: 0 auto 1.5em;
  opacity: 0.95;
}

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-item .icon {
  font-size: 1.5rem;
  color: var(--rh-green);
  min-width: 40px;
  text-align: center;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--rh-gray-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--rh-green);
  box-shadow: 0 0 0 3px rgba(27,94,32,0.1);
}

/* ===== MEMBERSHIP FORM ===== */
.membership-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--gap);
  margin-bottom: 40px;
}

.benefit-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.benefit-item .check {
  color: var(--rh-green);
  font-size: 1.2rem;
  margin-top: 3px;
}

/* ===== FAQ ===== */
.faq-item {
  border: 1px solid var(--rh-gray-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--rh-off-white);
}

.faq-question:hover {
  background: var(--rh-gray-light);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 16px 20px;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--rh-green-dark);
  color: var(--rh-white);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-about p {
  opacity: 0.85;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-col h4 {
  color: var(--rh-gold);
  font-size: 1.1rem;
  margin-bottom: 16px;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--rh-gold);
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--rh-white);
  transition: background 0.2s;
}

.footer-social a:hover {
  background: var(--rh-gold);
  color: var(--rh-green-dark);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.85rem; }
  .hero { padding: 70px 0; }
  .hero h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  .header-main .container {
    flex-wrap: wrap;
  }
  .menu-toggle {
    display: block;
  }
  .main-navigation {
    display: none;
    width: 100%;
    order: 3;
  }
  .main-navigation.active {
    display: block;
  }
  .main-navigation ul {
    flex-direction: column;
  }
  .main-navigation a {
    padding: 10px 16px;
  }
  .header-cta {
    display: none;
  }
  .hero h1 { font-size: 2rem; }
  .hero .tagline { font-size: 1.1rem; }
  .section { padding: 50px 0; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .event-item {
    flex-direction: column;
    gap: 12px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
}
