/* =============================================
   CURRIE FOR AMERICA - style.css
   Modeled on Talarico for Texas layout
   ============================================= */

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

:root {
  --navy: #1a2744;
  --red: #c0392b;
  --white: #ffffff;
  --off-white: #f7f5f0;
  --light-gray: #e8e6e1;
  --mid-gray: #999;
  --dark-gray: #333;
  --text: #1a1a1a;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-ui: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.1s;
  border: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: #a93226;
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  margin-right: 8px;
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-header {
  background: var(--red);
  color: var(--white);
  font-size: 0.8rem;
  padding: 10px 20px;
}

.btn-header:hover {
  background: #a93226;
}

.btn-donate {
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  font-size: 0.85rem;
}

.btn-donate:hover {
  background: #0f1a2e;
}

/* =============================================
   HEADER
   ============================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--navy);
  height: 64px;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--white);
  white-space: nowrap;
  flex-shrink: 0;
}

.main-nav {
  flex: 1;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
}

.main-nav a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white);
  opacity: 0.85;
  transition: opacity 0.2s;
  letter-spacing: 0.02em;
}

.main-nav a:hover,
.main-nav a.active {
  opacity: 1;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  margin-left: auto;
}

/* =============================================
   MOBILE NAV
   ============================================= */

.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--navy);
  z-index: 99;
  padding: 16px 24px 24px;
  transform: translateY(-110%);
  transition: transform 0.3s ease;
}

.mobile-nav.open {
  transform: translateY(0);
}

.mobile-nav ul {
  list-style: none;
}

.mobile-nav li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 500;
}

/* =============================================
   HERO
   ============================================= */

.hero {
  margin-top: 64px;
  background: var(--navy);
  overflow: hidden;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 58vh;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 48px 60px 8%;
  color: var(--white);
}

.hero-image {
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--white);
}

.hero-sub {
  font-family: var(--font-ui);
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 28px;
}

/* =============================================
   SIGNUP FORM
   ============================================= */

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 480px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.signup-form input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: var(--white);
  color: var(--text);
}

.signup-form input::placeholder {
  color: #888;
}

.signup-form input:focus {
  outline: 2px solid var(--red);
}

.signup-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: var(--white);
  color: var(--text);
  resize: vertical;
  min-height: 120px;
}

.signup-form textarea::placeholder {
  color: #888;
}

.signup-form textarea:focus {
  outline: 2px solid var(--red);
}

.signup-form .btn {
  align-self: flex-start;
  margin-top: 4px;
}

.form-success {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--white);
  padding: 12px 0;
}

.form-error {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: #e07070;
  margin-top: 8px;
}

/* Dark variant for hero */
.hero .signup-form input,
.hero .signup-form textarea {
  background: rgba(255,255,255,0.95);
}

/* =============================================
   BIO SECTION
   ============================================= */

.bio-section {
  padding: 80px 0;
  background: var(--white);
}

.bio-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  align-items: center;
}

.bio-text h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 20px;
}

.bio-text p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #444;
  margin-bottom: 16px;
}

.bio-text .btn {
  margin-top: 8px;
}

.bio-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--light-gray);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  color: var(--mid-gray);
  font-size: 0.9rem;
}

/* =============================================
   CONTRIBUTE SECTION
   ============================================= */

.contribute-section {
  padding: 80px 0;
  background: var(--off-white);
  text-align: center;
}

.contribute-section h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 16px;
}

.contribute-section p {
  font-size: 1.05rem;
  color: #555;
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.donate-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* =============================================
   VOLUNTEER SECTION
   ============================================= */

.volunteer-section {
  padding: 80px 0;
  background: var(--navy);
  text-align: center;
  color: var(--white);
}

.volunteer-section h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.volunteer-section p {
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* =============================================
   FOOTER SIGNUP
   ============================================= */

.footer-signup {
  padding: 80px 0;
  background: var(--red);
  color: var(--white);
}

.footer-signup h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 32px;
}

.footer-signup .signup-form input {
  background: rgba(255,255,255,0.95);
}

/* =============================================
   FOOTER
   ============================================= */

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: start;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--white);
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 16px 24px;
}

.footer-nav a {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-meta {
  text-align: right;
}

.footer-meta p {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */

.page-hero {
  margin-top: 64px;
  background: var(--navy);
  padding: 60px 0 50px;
  color: var(--white);
}

.page-hero.has-image {
  position: relative;
  background-size: cover;
  background-position: center;
}

.page-hero-bg {
  position: absolute;
  inset: 0 10% 0 10%;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.page-hero.has-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 39, 68, 0.72);
  z-index: 1;
}

.page-hero.has-image .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
}

/* =============================================
   PLATFORM PAGE
   ============================================= */

.platform-section {
  padding: 60px 0 80px;
  background: var(--white);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.platform-card {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--navy);
  text-decoration: none;
}

.platform-card:hover .platform-card-img {
  transform: scale(1.04);
  opacity: 0.5;
}

.platform-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.3s ease;
  opacity: 0.65;
}

.placeholder-img {
  background: linear-gradient(135deg, #1a2744, #2c3e6b);
}

.platform-card h2 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 20px 20px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  z-index: 2;
}

.complete-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 900px) {
  .main-nav,
  .btn-header {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .mobile-nav {
    display: block;
  }

  .bio-grid {
    grid-template-columns: 1fr;
  }

  .bio-photo {
    order: -1;
    max-width: 300px;
    margin: 0 auto;
  }

  .bio-photo-placeholder {
    aspect-ratio: 1/1;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-meta {
    text-align: left;
  }

  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .hero-split {
    grid-template-columns: 1fr;
  }

  .hero-image {
    height: 340px;
  }

  .hero-content {
    padding: 40px 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .platform-grid {
    grid-template-columns: 1fr 1fr;
  }

  .donate-buttons {
    gap: 8px;
  }
}

/* =============================================
   CONTENT SECTION (detail + inner pages)
   ============================================= */

.content-section {
  max-width: 740px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.content-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 20px;
}

.content-section--centered {
  text-align: center;
}

.signup-form--constrained {
  margin: 32px auto 0;
  max-width: 480px;
  text-align: left;
}

.support-block {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 48px auto 0;
  max-width: 480px;
  padding-top: 40px;
  border-top: 1px solid #e0e0e0;
}

.support-qr {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 4px;
}

.support-block-text p {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

@media (max-width: 480px) {
  .support-block {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =============================================
   WHY / BELIEFS SPLIT LAYOUT
   ============================================= */

.why-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.why-split-image img {
  width: 100%;
  display: block;
  position: sticky;
  top: 64px;
}

.why-split-text {
  padding: 60px 48px 80px;
}

.why-split-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .why-split {
    grid-template-columns: 1fr;
  }

  .why-split-image img {
    position: static;
  }

  .why-split-text {
    padding: 40px 24px 60px;
  }
}

.back-link {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 32px;
  opacity: 0.7;
}

.back-link:hover {
  opacity: 1;
}

/* =============================================
   PHOTO PLACEHOLDERS
   ============================================= */

.photo-placeholder {
  background: #d0d0d0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}

.photo-placeholder .placeholder-key {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #555;
  line-height: 1.5;
}

.photo-placeholder .placeholder-dims {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  color: #888;
  margin-top: 4px;
}

/* Platform card placeholders — dark bg, white text */
.platform-card-img.placeholder-img {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}

.platform-card-img .placeholder-key {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

.platform-card-img .placeholder-dims {
  font-family: var(--font-ui);
  font-size: 0.58rem;
  color: rgba(255,255,255,0.35);
  margin-top: 3px;
}

/* =============================================
   PROJECTS SECTION (homepage teaser)
   ============================================= */

.projects-section {
  background: var(--off-white);
  padding: 80px 0;
}

.projects-section h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.projects-section .section-intro {
  font-size: 1.05rem;
  color: var(--dark-gray);
  margin-bottom: 40px;
  max-width: 600px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-card__status {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-card__status--live   { color: #1a7a4a; }
.project-card__status--soon   { color: var(--navy); }
.project-card__status--roadmap { color: var(--mid-gray); }

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--navy);
  font-weight: 700;
}

.project-card__desc {
  font-size: 0.95rem;
  color: var(--dark-gray);
  line-height: 1.5;
  flex: 1;
}

.project-card__link {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.04em;
  text-decoration: underline;
  text-underline-offset: 3px;
  align-self: flex-start;
}

.project-card__link:hover { color: #a93226; }

/* =============================================
   PROJECTS PAGE
   ============================================= */

.projects-page {
  padding: 100px 0 80px;
}

.projects-page h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--navy);
  margin-bottom: 16px;
}

.projects-page .page-intro {
  font-size: 1.1rem;
  color: var(--dark-gray);
  max-width: 640px;
  margin-bottom: 60px;
  line-height: 1.7;
}

.projects-page-group {
  margin-bottom: 56px;
}

.projects-page-group h2 {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid-gray);
  border-bottom: 1px solid var(--light-gray);
  padding-bottom: 10px;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .projects-page h1 { font-size: 2rem; }
  .projects-grid { grid-template-columns: 1fr; }
}
