/* ============================================================
   OAKLANDERS TOGETHER — Custom Theme CSS
   Modern, bold civic campaign aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --oak-gold:     #F5A623;
  --oak-gold-dk:  #D4861A;
  --oak-navy:     #1A2E4A;
  --oak-navy-lt:  #243D5E;
  --oak-green:    #2E7D32;
  --oak-white:    #FAFAF7;
  --oak-gray:     #F2F1EE;
  --oak-text:     #1C1C1E;
  --oak-muted:    #5A5F6B;
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --shadow-card:  0 4px 24px rgba(26,46,74,0.10);
  --shadow-hover: 0 8px 40px rgba(26,46,74,0.18);
  --transition:   0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Base Reset & Typography ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--oak-white);
  color: var(--oak-text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--oak-navy);
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.75rem); }

p { margin-bottom: 1rem; color: var(--oak-text); }

a {
  color: var(--oak-navy);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--oak-gold-dk); }

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

/* ── HEADER / NAVBAR ── */
#header,
header.navbar {
  background: var(--oak-white) !important;
  border-bottom: 3px solid var(--oak-gold);
  box-shadow: 0 2px 16px rgba(26,46,74,0.08);
  padding: 0.5rem 0 !important;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition);
}

#header .container,
header .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Logo disk */
.logo-disk img {
  height: 64px;
  width: auto;
  transition: transform var(--transition);
}
.logo-disk img:hover { transform: scale(1.05); }

/* Nav links */
.navbar-nav .nav-link {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--oak-navy) !important;
  padding: 0.4rem 1rem !important;
  border-radius: var(--radius-sm);
  position: relative;
  transition: all var(--transition);
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%; right: 50%;
  height: 3px;
  background: var(--oak-gold);
  border-radius: 2px;
  transition: all var(--transition);
}
.navbar-nav .nav-link:hover {
  color: var(--oak-gold-dk) !important;
  background: rgba(245,166,35,0.08);
}
.navbar-nav .nav-link:hover::after {
  left: 10%; right: 10%;
}

/* Donate nav link — highlighted */
.navbar-nav .nav-item:last-child .nav-link,
.navbar-nav a[href="/donate"] {
  background: var(--oak-gold) !important;
  color: var(--oak-navy) !important;
  border-radius: var(--radius-sm);
  padding: 0.4rem 1.2rem !important;
}
.navbar-nav a[href="/donate"]:hover {
  background: var(--oak-gold-dk) !important;
  color: #fff !important;
}
.navbar-nav a[href="/donate"]::after { display: none; }

/* Mobile toggler */
.navbar-toggler {
  border: 2px solid var(--oak-gold);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.6rem;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='%231A2E4A' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── CAROUSEL / HERO BANNER ── */
#page-features,
.carousel {
  border-radius: 0;
  overflow: hidden;
}
#page-features img,
.carousel-item img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center;
}
.carousel-indicators li {
  background: var(--oak-gold);
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
}

/* ── PANEL OF ICONS HEADER ── */
.panel-of-icons-header.wood {
  background: linear-gradient(135deg, var(--oak-navy) 0%, var(--oak-navy-lt) 100%);
  border-left: 6px solid var(--oak-gold);
  padding: 1.5rem 0;
}
.panel-of-icons-header.wood h3 {
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin: 0;
}

/* ── YOUTUBE EMBED ── */
.youtube-video {
  display: flex;
  justify-content: center;
  background: var(--oak-navy);
  padding: 2.5rem 1rem;
}
.youtube-video iframe {
  width: 100%;
  max-width: 800px;
  height: 450px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
}
@media (max-width: 576px) {
  .youtube-video iframe { height: 220px; }
}

/* ── PANEL OF ICONS ── */
.panel-of-icons {
  background: var(--oak-gray);
  padding: 2.5rem 0;
}
.panel-of-icons .col-md-3 {
  text-align: center;
  transition: transform var(--transition);
}
.panel-of-icons .col-md-3:hover { transform: translateY(-4px); }
.panel-of-icons img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 1rem;
  transition: transform var(--transition);
}
.panel-of-icons .col-md-3:hover img { transform: scale(1.1); }
.panel-of-icons h6 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--oak-navy);
  line-height: 1.4;
}
.panel-of-icons h6 a {
  color: var(--oak-navy);
  text-decoration: none;
}
.panel-of-icons h6 a:hover { color: var(--oak-gold-dk); }

/* ── YELLOW STRIPE ── */
.yellow-stripe {
  height: 6px;
  background: linear-gradient(90deg, var(--oak-gold) 0%, var(--oak-gold-dk) 100%);
}

/* ── HOME SECONDARY TEXT PANEL ── */
.home-secondary-text-panel {
  background: var(--oak-white);
  padding: 3rem 0;
}
.home-secondary-text-panel img.w-75 {
  height: 48px;
  width: auto !important;
  object-fit: contain;
  margin-bottom: 1.25rem;
}
.home-secondary-text-panel ul {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}
.home-secondary-text-panel ul li {
  margin-bottom: 0.6rem;
  color: var(--oak-text);
}
.home-secondary-text-panel ul li strong { color: var(--oak-navy); }

/* Blue bg variant (sign-up section) */
.home-secondary-text-panel.bg-primary {
  background: linear-gradient(135deg, var(--oak-navy) 0%, var(--oak-navy-lt) 100%) !important;
}
.home-secondary-text-panel.bg-primary h3 {
  color: #fff;
}
.home-secondary-text-panel.bg-primary p {
  color: rgba(255,255,255,0.85);
}

/* ── TAXPAYER PROTECTION PANEL ── */
.floral-white-bg {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.floral-white-bg h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.floral-white-bg ul { padding-left: 1.4rem; }
.floral-white-bg ul li { margin-bottom: 0.5rem; }
.floral-white-bg em {
  display: block;
  background: var(--oak-gray);
  border-left: 4px solid var(--oak-gold);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--oak-muted);
}

/* ── SIGNUP FORM ── */
.form .form-control {
  border: 2px solid #D8D8D8;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.9rem;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: #fff;
}
.form .form-control:focus {
  border-color: var(--oak-gold);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.2);
  outline: none;
}
.form label {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.3rem;
}

/* Submit button */
.form .submit-button,
.btn-secondary.submit-button,
input[type="submit"].submit-button {
  background: var(--oak-gold) !important;
  border: none !important;
  color: var(--oak-navy) !important;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.75rem 2rem !important;
  border-radius: var(--radius-sm) !important;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(245,166,35,0.35);
}
.form .submit-button:hover,
input[type="submit"].submit-button:hover {
  background: var(--oak-gold-dk) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,166,35,0.45);
}

/* ── FOOTER ── */
footer {
  background: var(--oak-navy) !important;
  color: rgba(255,255,255,0.85) !important;
  padding: 3rem 0 !important;
  border-top: 4px solid var(--oak-gold);
}
footer p { color: rgba(255,255,255,0.8); font-size: 0.9rem; }
footer a {
  color: var(--oak-gold) !important;
  font-weight: 600;
  transition: color var(--transition);
}
footer a:hover { color: #fff !important; }
footer strong { color: #fff; }
footer img {
  opacity: 0.7;
  filter: brightness(0) invert(1);
  transition: opacity var(--transition);
  max-height: 36px;
}
footer img:hover { opacity: 1; }

/* ── BUTTONS (global) ── */
.btn, button, input[type="submit"], input[type="button"] {
  font-family: 'DM Sans', sans-serif;
}
.btn-primary {
  background: var(--oak-navy) !important;
  border-color: var(--oak-navy) !important;
  color: #fff !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600;
  transition: all var(--transition);
}
.btn-primary:hover {
  background: var(--oak-navy-lt) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

/* ── CARDS / CONTENT PANELS ── */
.card {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}
.card-body { padding: 1.5rem; }

/* ── PAGE CONTENT AREA ── */
.page-content, .main-content, #content {
  padding: 2rem 0;
}

/* Sub-pages common styles */
.page-content h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--oak-gold);
  display: inline-block;
}
.page-content p { color: var(--oak-text); line-height: 1.7; }
.page-content ul li { margin-bottom: 0.5rem; }

/* ── ENDORSEMENTS ── */
.endorsements-list .endorser {
  padding: 1rem 0;
  border-bottom: 1px solid #E8E8E8;
}

/* ── MEDIA GALLERY ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.gallery-item img {
  border-radius: var(--radius-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-item img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-hover);
}

/* ── FAQ ── */
.faq-item {
  border: 1px solid #E8E8E8;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-question {
  font-weight: 700;
  padding: 1rem 1.25rem;
  background: var(--oak-gray);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--oak-navy);
}
.faq-question:hover { background: #E8E7E3; }
.faq-answer {
  padding: 1rem 1.25rem;
  border-top: 1px solid #E8E8E8;
  color: var(--oak-text);
  line-height: 1.7;
}

/* ── CONTACT PAGE ── */
.contact-info {
  background: var(--oak-gray);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 2rem;
}

/* ── JOIN / VOLUNTEER FORM ── */
.join-form-wrap, .volunteer-form-wrap {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 2.5rem;
}

/* ── BACK-TO-TOP ── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--oak-navy);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  display: none;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 999;
}
#back-to-top:hover {
  background: var(--oak-gold);
  color: var(--oak-navy);
  transform: translateY(-3px);
}
#back-to-top.show { display: flex; }

/* ── ANNOUNCEMENT BANNER ── */
.site-banner {
  background: var(--oak-gold);
  color: var(--oak-navy);
  text-align: center;
  padding: 0.6rem 1rem;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}
.site-banner a { color: var(--oak-navy); text-decoration: underline; }

/* ── UTILITIES ── */
.text-gold { color: var(--oak-gold) !important; }
.text-navy { color: var(--oak-navy) !important; }
.bg-gold { background: var(--oak-gold) !important; }
.bg-navy { background: var(--oak-navy) !important; }
.section-divider { height: 4px; background: var(--oak-gray); border: none; margin: 2.5rem 0; }

/* Override Bootstrap primary color */
.bg-primary { background: var(--oak-navy) !important; }
.text-primary { color: var(--oak-navy) !important; }
.btn-primary { background: var(--oak-navy) !important; border-color: var(--oak-navy) !important; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .panel-of-icons .col-md-3 { text-align: center; padding: 1.5rem 1rem; }
  .home-secondary-text-panel { padding: 2rem 0; }
  .youtube-video { padding: 1.5rem 0.75rem; }
  .floral-white-bg { padding: 1.5rem !important; }
  footer { padding: 2rem 0 !important; }
  #header { position: sticky; top: 0; }
}

@media (max-width: 576px) {
  .logo-disk img { height: 48px; }
  .panel-of-icons img { width: 60px; height: 60px; }
}

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  animation: fadeInUp 0.55s cubic-bezier(0.4,0,0.2,1) both;
}

/* Page load stagger for key sections */
.panel-of-icons-header { animation: fadeInUp 0.4s ease both; }
.panel-of-icons        { animation: fadeInUp 0.5s 0.1s ease both; }
.home-secondary-text-panel { animation: fadeInUp 0.5s 0.15s ease both; }

/* Subtle scroll-triggered reveal (JS adds .is-visible) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
