/* ============================================================
   ISAIAH RHODES CAMPAIGN — ITERATION 2
   Jack and Jill of America, Inc.
   Brand Colors:
     Primary   #2b2d42 (deep navy)
     Secondary #0080c8 (blue)
     Tertiary  #faf7f9 (off-white)
   ============================================================ */

:root {
  --primary: #2b2d42;
  --secondary: #0080c8;
  --tertiary: #faf7f9;
  --primary-light: #3a3d57;
  --text-light: #e8e8e8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--primary);
  background: var(--tertiary);
  line-height: 1.6;
}

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

/* ===================== HEADER / NAV ===================== */
/* Reversed colors: light background, dark text */
header {
  background: var(--tertiary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

header .logo {
  color: var(--primary);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  letter-spacing: 1.5px;
  text-align: center;
  /* Flashing + subtle scale pulse to grab attention */
  animation: logoFlash 1.6s ease-in-out infinite;
  transform-origin: center;
  will-change: transform, opacity;
}

@keyframes logoFlash {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    color: var(--primary);
  }
  50% {
    transform: scale(1.08);
    opacity: 0.85;
    color: var(--secondary);
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  header .logo {
    animation: none;
  }
}

/* ===================== HERO ===================== */
/* Compact spacing so CTA buttons sit above the fold */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--tertiary);
  /* Account for sticky header (~58px) so content fits one screen */
  min-height: calc(100vh - 58px);
  display: flex;
  align-items: center;
  padding: 1.5rem 0;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1 1 460px;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 0.6rem;
}

.hero-position {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.hero-headline {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ===================== BUTTONS ===================== */
.cta-button,
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  border: 2px solid var(--secondary);
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}

.cta-button,
.btn-primary {
  background: var(--secondary);
  color: var(--tertiary);
}

.cta-button:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  background: #0093e6;
}

.btn {
  background: transparent;
  color: var(--tertiary);
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--secondary);
  color: var(--tertiary);
}

/* In light sections, outline buttons need dark text */
.story-section .btn {
  color: var(--primary);
  border-color: var(--secondary);
}

.story-section .btn:hover {
  color: var(--tertiary);
}

/* ===================== HERO IMAGE / PROFILE CIRCLE ===================== */
.hero-image {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}

.profile-circle {
  width: clamp(220px, 32vw, 340px);
  height: clamp(220px, 32vw, 340px);
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--secondary);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  background: var(--primary-light);
}

.profile-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

/* ===================== SECTION TITLES ===================== */
.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
}

.section-subtitle {
  color: var(--secondary);
  font-weight: 600;
  margin-top: 0.4rem;
}

/* ===================== FLYER SECTION ===================== */
.flyer-section {
  background: var(--tertiary);
  padding: 3.5rem 0;
}

.flyer-wrapper {
  max-width: 720px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(43, 45, 66, 0.25);
}

.flyer-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===================== COMMITMENT QUOTE ===================== */
.quote-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--tertiary);
  padding: 4.5rem 0;
  text-align: center;
}

.commitment-quote {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

.commitment-quote p {
  font-size: clamp(1.3rem, 3.2vw, 2rem);
  font-weight: 600;
  line-height: 1.5;
  font-style: italic;
}

.quote-mark {
  color: var(--secondary);
  font-size: 2rem;
  opacity: 0.8;
}

.quote-mark-right {
  margin-top: 0.5rem;
}

.quote-attribution {
  margin-top: 1.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--secondary);
  letter-spacing: 1px;
}

/* ===================== STORY SECTION ===================== */
.story-section {
  background: var(--tertiary);
  padding: 4rem 0;
}

.story-content {
  max-width: 820px;
  text-align: center;
}

.story-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.story-text p {
  font-size: 1.05rem;
  color: #333;
  margin-bottom: 1.2rem;
}

.story-highlight {
  color: var(--secondary);
  font-weight: 700;
  font-style: italic;
}

.buttons-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ===================== FOOTER ===================== */
footer {
  background: var(--primary);
  color: var(--tertiary);
  padding: 2.5rem 0;
  text-align: center;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-text {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-light);
}

.footer-text strong {
  color: var(--tertiary);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.25rem;
}

.footer-links a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--tertiary);
  text-decoration: underline;
}

.footer-links i {
  font-size: 0.8rem;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 2.5rem 0;
  }

  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-headline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .cta-button,
  .btn {
    width: 100%;
    justify-content: center;
  }
}
