/*
Theme Name: Five Points Rotary
Theme URI: https://www.fivepointsrotary.com/
Author: Rotary Club of Five Points
Author URI: https://www.fivepointsrotary.com/
Description: A clean, professional WordPress theme for the Rotary Club of Five Points, Columbia, South Carolina. 
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fivepoints-rotary
Tags: rotary, club, nonprofit, blue, gold, responsive
*/

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  --rotary-gold: #F7A81B;
  --rotary-blue: #003F87;
  --rotary-navy: #002060;
  --rotary-light-blue: #17A3DC;
  --rotary-white: #FFFFFF;
  --rotary-light-gray: #F4F6F9;
  --rotary-mid-gray: #E0E4EA;
  --rotary-dark-gray: #333333;
  --rotary-text: #222222;
  --rotary-muted: #666666;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Helvetica Neue', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
  --radius: 6px;
  --transition: 0.25s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--rotary-text);
  background: var(--rotary-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rotary-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--rotary-gold); }
ul { list-style: none; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--rotary-navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.2rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.container--wide { max-width: 1400px; }

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  background: var(--rotary-navy);
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  padding: 6px 0;
}
.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.top-bar a { color: rgba(255,255,255,0.75); }
.top-bar a:hover { color: var(--rotary-gold); }
.top-bar__links { display: flex; gap: 20px; align-items: center; }
.top-bar__links span { opacity: 0.4; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: var(--rotary-blue);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 20px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.site-logo__icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}
.site-logo__text { color: var(--rotary-white); }
.site-logo__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.1;
  display: block;
}
.site-logo__tagline {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
  display: block;
  margin-top: 2px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-nav { position: relative; }
.main-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}
.main-nav__item { position: relative; }
.main-nav__link {
  color: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.main-nav__link:hover,
.main-nav__item.current-menu-item > .main-nav__link {
  color: var(--rotary-gold);
  background: rgba(255,255,255,0.08);
}
.main-nav__link .arrow {
  font-size: 0.6rem;
  opacity: 0.6;
  transition: transform var(--transition);
}
.main-nav__item:hover > .main-nav__link .arrow { transform: rotate(180deg); }

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--rotary-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  overflow: hidden;
  z-index: 200;
  border-top: 3px solid var(--rotary-gold);
}
.main-nav__item:hover > .dropdown { display: block; }
.dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 0.85rem;
  color: var(--rotary-dark-gray);
  border-bottom: 1px solid var(--rotary-mid-gray);
  transition: background var(--transition), color var(--transition);
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: var(--rotary-light-gray); color: var(--rotary-blue); }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--rotary-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================
   HERO / BANNER
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--rotary-navy) 0%, var(--rotary-blue) 55%, var(--rotary-light-blue) 100%);
  position: relative;
  overflow: hidden;
  padding: 70px 0 60px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}
.hero__inner {
  position: relative;
  text-align: center;
}
.hero__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rotary-gold);
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}
.hero__title {
  color: var(--rotary-white);
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 10px;
}
.hero__subtitle {
  color: rgba(255,255,255,0.75);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-family: var(--font-body);
  margin-bottom: 30px;
  font-weight: 300;
  letter-spacing: 0.04em;
}
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}
.btn--primary {
  background: var(--rotary-gold);
  color: var(--rotary-navy);
  border-color: var(--rotary-gold);
}
.btn--primary:hover { background: #e8960a; border-color: #e8960a; color: var(--rotary-navy); }
.btn--outline {
  background: transparent;
  color: var(--rotary-white);
  border-color: rgba(255,255,255,0.5);
}
.btn--outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.9); color: var(--rotary-white); }
.btn--blue {
  background: var(--rotary-blue);
  color: var(--rotary-white);
  border-color: var(--rotary-blue);
}
.btn--blue:hover { background: var(--rotary-navy); color: var(--rotary-white); }

/* ============================================
   INFO STRIP
   ============================================ */
.info-strip {
  background: var(--rotary-gold);
  padding: 18px 0;
}
.info-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.info-strip__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--rotary-navy);
}
.info-strip__icon { font-size: 1.3rem; }
.info-strip__label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; opacity: 0.7; display: block; }
.info-strip__value { font-size: 0.95rem; font-weight: 700; display: block; }

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.section { padding: 60px 0; }
.section--gray { background: var(--rotary-light-gray); }
.section--blue { background: var(--rotary-blue); color: var(--rotary-white); }
.section--blue h2, .section--blue h3 { color: var(--rotary-white); }
.section__header { text-align: center; margin-bottom: 44px; }
.section__eyebrow {
  display: inline-block;
  background: var(--rotary-gold);
  color: var(--rotary-navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.section__title { margin-bottom: 12px; }
.section__subtitle { color: var(--rotary-muted); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }
.section--blue .section__subtitle { color: rgba(255,255,255,0.7); }

/* ============================================
   GRID SYSTEM
   ============================================ */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--sidebar { grid-template-columns: 1fr 340px; gap: 40px; }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--rotary-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--rotary-mid-gray);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__img { height: 200px; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 24px; }
.card__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rotary-light-blue);
  margin-bottom: 8px;
  display: block;
}
.card__title { font-size: 1.1rem; margin-bottom: 10px; color: var(--rotary-navy); }
.card__title a { color: var(--rotary-navy); }
.card__title a:hover { color: var(--rotary-blue); }
.card__excerpt { font-size: 0.9rem; color: var(--rotary-muted); margin-bottom: 16px; }
.card__meta { font-size: 0.8rem; color: var(--rotary-muted); }
.card__footer { padding: 14px 24px; border-top: 1px solid var(--rotary-mid-gray); background: var(--rotary-light-gray); }

/* ============================================
   NEWS POSTS LIST
   ============================================ */
.post-list { display: flex; flex-direction: column; gap: 0; }
.post-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--rotary-mid-gray);
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  align-items: start;
}
.post-item:last-child { border-bottom: none; }
.post-item__date {
  background: var(--rotary-blue);
  color: var(--rotary-white);
  text-align: center;
  border-radius: var(--radius);
  padding: 10px 8px;
  flex-shrink: 0;
}
.post-item__month { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.8; }
.post-item__day { font-size: 1.8rem; font-family: var(--font-heading); font-weight: 700; line-height: 1; }
.post-item__year { font-size: 0.7rem; opacity: 0.7; }
.post-item__title { font-size: 1.05rem; margin-bottom: 6px; }
.post-item__title a { color: var(--rotary-navy); }
.post-item__title a:hover { color: var(--rotary-blue); }
.post-item__excerpt { font-size: 0.88rem; color: var(--rotary-muted); }

/* ============================================
   SIDEBAR WIDGETS
   ============================================ */
.sidebar { }
.widget {
  background: var(--rotary-white);
  border: 1px solid var(--rotary-mid-gray);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.widget__title {
  background: var(--rotary-blue);
  color: var(--rotary-white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 18px;
  margin: 0;
  font-family: var(--font-body);
}
.widget__body { padding: 18px; }
.widget__list { }
.widget__list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--rotary-mid-gray);
  font-size: 0.88rem;
}
.widget__list li:last-child { border-bottom: none; }
.widget__list a { color: var(--rotary-dark-gray); }
.widget__list a:hover { color: var(--rotary-blue); }

/* ============================================
   MEETING INFO BOX
   ============================================ */
.meeting-box {
  background: linear-gradient(135deg, var(--rotary-navy), var(--rotary-blue));
  color: var(--rotary-white);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 24px;
}
.meeting-box h3 { color: var(--rotary-gold); margin-bottom: 16px; font-size: 1.1rem; }
.meeting-box__item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 0.9rem; }
.meeting-box__icon { opacity: 0.7; flex-shrink: 0; margin-top: 2px; }
.meeting-box__text strong { display: block; color: var(--rotary-white); }
.meeting-box__text span { color: rgba(255,255,255,0.65); font-size: 0.85rem; }

/* ============================================
   FOUR WAY TEST SECTION
   ============================================ */
.four-way { }
.four-way__item {
  background: var(--rotary-white);
  border-left: 4px solid var(--rotary-gold);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
}
.four-way__number {
  font-size: 2.5rem;
  font-family: var(--font-heading);
  color: var(--rotary-gold);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}
.four-way__text { font-size: 0.95rem; color: var(--rotary-dark-gray); font-style: italic; }

/* ============================================
   STAT CARDS
   ============================================ */
.stat-card { text-align: center; padding: 30px 20px; }
.stat-card__number {
  font-size: 3rem;
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--rotary-gold);
  line-height: 1;
  display: block;
}
.stat-card__label { font-size: 0.85rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 8px; }

/* ============================================
   PAGE HERO (interior pages)
   ============================================ */
.page-hero {
  background: linear-gradient(90deg, var(--rotary-navy) 0%, var(--rotary-blue) 100%);
  padding: 40px 0;
}
.page-hero__title { color: var(--rotary-white); margin-bottom: 6px; font-size: 2rem; }
.breadcrumb { font-size: 0.8rem; color: rgba(255,255,255,0.6); }
.breadcrumb a { color: var(--rotary-gold); }
.breadcrumb a:hover { color: var(--rotary-white); }

/* ============================================
   ENTRY CONTENT (single posts/pages)
   ============================================ */
.entry-content {
  line-height: 1.75;
  font-size: 1rem;
}
.entry-content h2 { margin: 2rem 0 1rem; }
.entry-content h3 { margin: 1.5rem 0 0.75rem; }
.entry-content p { margin-bottom: 1.1rem; }
.entry-content ul, .entry-content ol { padding-left: 2rem; margin-bottom: 1rem; }
.entry-content ul li { list-style: disc; margin-bottom: 0.4rem; }
.entry-content ol li { list-style: decimal; margin-bottom: 0.4rem; }
.entry-content blockquote {
  border-left: 4px solid var(--rotary-gold);
  padding: 12px 20px;
  margin: 1.5rem 0;
  background: var(--rotary-light-gray);
  font-style: italic;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.entry-meta { font-size: 0.85rem; color: var(--rotary-muted); margin-bottom: 20px; }
.entry-meta a { color: var(--rotary-blue); }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--rotary-navy);
  color: rgba(255,255,255,0.75);
  padding: 50px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col__title {
  color: var(--rotary-gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-family: var(--font-body);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col p { font-size: 0.9rem; color: rgba(255,255,255,0.6); margin-bottom: 12px; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { color: rgba(255,255,255,0.65); font-size: 0.88rem; }
.footer-nav a:hover { color: var(--rotary-gold); }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 0.88rem; }
.footer-contact-icon { opacity: 0.5; flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}
.footer-bottom__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--rotary-gold); }
.footer-rotary-badge { display: flex; align-items: center; gap: 8px; }

/* ============================================
   ROTARY WHEEL SVG
   ============================================ */
.rotary-wheel { fill: currentColor; }

/* ============================================
   PAGINATION
   ============================================ */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--rotary-mid-gray);
  color: var(--rotary-dark-gray);
  transition: all var(--transition);
}
.pagination a:hover { background: var(--rotary-blue); color: var(--rotary-white); border-color: var(--rotary-blue); }
.pagination .current { background: var(--rotary-blue); color: var(--rotary-white); border-color: var(--rotary-blue); }

/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--rotary-navy);
  z-index: 2000;
  overflow-y: auto;
  padding: 20px;
  flex-direction: column;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu__close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--rotary-white);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 4px 10px;
  margin-bottom: 20px;
}
.mobile-menu__list { padding-top: 10px; }
.mobile-menu__list a {
  display: block;
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  letter-spacing: 0.04em;
}
.mobile-menu__list a:hover { color: var(--rotary-gold); }
.mobile-menu__sub a { padding-left: 20px; font-size: 0.95rem; font-weight: 400; color: rgba(255,255,255,0.6); }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-gold { color: var(--rotary-gold); }
.text-blue { color: var(--rotary-blue); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid--sidebar { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .info-strip__inner { gap: 20px; }
  .hero { padding: 50px 0 44px; }
  .section { padding: 44px 0; }
  .top-bar__links { gap: 12px; }
}

@media (max-width: 480px) {
  .post-item { grid-template-columns: 1fr; gap: 12px; }
  .post-item__date { display: inline-flex; gap: 8px; padding: 8px 14px; width: auto; }
}
