/* =====================================================================
   Friends of Katie Duncan — duncanfornevada.com
   Brand: Purple #622E96 (primary) · Gold #F9D606 (accent) · White
   Fonts: Montserrat (UI/body) · Libre Baskerville (display serif)
   Type is intentionally LARGE and high-contrast for readability
   (seniors and a district with above-average literacy needs).
   ===================================================================== */

:root {
  --purple: #622E96;
  --purple-dark: #4f2580;
  --purple-deep: #3d1c63;
  --gold: #F9D606;
  --gold-dark: #d9b900;
  --ink: #1f1830;
  --slate: #463f57;
  --line: #e6e1ee;
  --bg-soft: #f5f1fb;
  --white: #ffffff;
  --maxw: 1180px;
  --radius: 16px;
  --shadow: 0 14px 38px rgba(56, 25, 90, 0.14);
}

* { box-sizing: border-box; }
/* Always reserve the vertical scrollbar so the header/nav never shifts width
   between pages of different heights. */
html { scroll-behavior: smooth; overflow-y: scroll; }

body {
  margin: 0;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 19px;                /* larger base for readability */
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  color: var(--purple);
  line-height: 1.18;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1.15em; }
a { color: var(--purple); }
img { max-width: 100%; display: block; }
strong { color: var(--purple-dark); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ----------  Buttons (large, tap-friendly)  ---------- */
.btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-gold { background: var(--gold); color: var(--purple-deep); }
.btn-gold:hover { background: var(--gold-dark); box-shadow: var(--shadow); }
.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { background: var(--purple-dark); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.85); }
.btn-outline:hover { background: rgba(255,255,255,0.14); }
.btn-outline-purple { background: transparent; color: var(--purple); border-color: var(--purple); }
.btn-outline-purple:hover { background: var(--purple); color: #fff; }
.btn-lg { font-size: 1.15rem; padding: 18px 38px; }

/* ----------  Header / Nav  ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgba(56,25,90,0.05); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 24px; max-width: var(--maxw); margin: 0 auto; }
.nav-logo img { height: 60px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-weight: 600; font-size: 1.05rem; text-decoration: none; color: var(--ink); padding: 8px 2px; border-bottom: 3px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--purple); border-bottom-color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 28px; height: 3px; background: var(--purple); border-radius: 2px; margin: 6px 0; transition: 0.2s; }

/* ----------  Language toggle (English / Español)  ---------- */
.lang-wrap { display: flex; align-items: center; gap: 8px; }
.lang-toggle {
  display: inline-flex; border: 1.5px solid var(--purple);
  border-radius: 999px; overflow: hidden; background: #fff;
}
.lang-btn {
  background: #fff; color: var(--purple); border: 0;
  padding: 8px 15px; font-family: 'Montserrat', sans-serif;
  font-weight: 600; font-size: 0.92rem; line-height: 1; cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.lang-btn + .lang-btn { border-left: 1.5px solid var(--purple); }
.lang-btn:hover { background: var(--bg-soft); }
.lang-btn.active { background: var(--purple); color: #fff; }
.lang-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Keep Google's widget in the DOM (it powers the toggle) but fully out of sight */
#google_translate_element { position: absolute !important; left: -9999px !important; top: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
body { top: 0 !important; }
.goog-te-banner-frame.skiptranslate, .skiptranslate iframe { display: none !important; }
#goog-gt-tt, .goog-tooltip { display: none !important; }
.goog-te-gadget-icon, img.goog-te-gadget-icon, .goog-logo-link, .goog-te-gadget img { display: none !important; }

/* ----------  HERO (bold cutout)  ---------- */
.hero {
  background:
    radial-gradient(900px 520px at 78% 120%, rgba(249,214,6,0.22), transparent 60%),
    linear-gradient(150deg, var(--purple) 0%, var(--purple-deep) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero::after {  /* gold baseline strip */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--gold);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 30px; align-items: end; }
.hero-copy { padding: 76px 0 96px; }
.hero .eyebrow { display: inline-block; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.85rem; color: var(--gold); margin-bottom: 16px; }
.hero h1 { color: #fff; font-size: 3.5rem; margin-bottom: 0.2em; letter-spacing: -0.01em; }
.hero h1 .accent { color: var(--gold); }
.hero .tagline { font-family: 'Montserrat', sans-serif; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); font-size: 1.25rem; margin: 0 0 20px; }
.hero .positioning { font-size: 1.3rem; max-width: 30ch; color: #f4eefc; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.hero-figure { position: relative; display: flex; justify-content: center; align-items: flex-end; }
.hero-figure img { width: 100%; max-width: 460px; height: auto; align-self: flex-end; filter: drop-shadow(0 22px 30px rgba(0,0,0,0.4)); }

/* ----------  Generic sections  ---------- */
.section { padding: 86px 0; }
.section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.section-head .kicker { display: inline-block; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.85rem; color: var(--purple); background: rgba(249,214,6,0.4); padding: 7px 16px; border-radius: 999px; margin-bottom: 16px; }
.section-head h2 { font-size: 2.6rem; }
.section-head p { color: var(--slate); font-size: 1.2rem; }

/* ----------  Pillar cards  ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); border-top: 6px solid var(--gold); transition: transform 0.15s ease; }
.pillar:hover { transform: translateY(-5px); }
.pillar .num { font-family: 'Libre Baskerville', serif; color: var(--gold-dark); font-size: 1.7rem; font-weight: 700; }
.pillar h3 { font-size: 1.4rem; margin: 8px 0 12px; }
.pillar p { color: var(--slate); font-size: 1.05rem; margin: 0; }

/* ----------  Photo section (bg image + gradient overlay)  ---------- */
.photo-section { position: relative; color: #fff; padding: 110px 0; background-size: cover; background-position: center; }
.photo-section::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(61,28,99,0.93) 0%, rgba(98,46,150,0.82) 55%, rgba(61,28,99,0.6) 100%); }
.photo-section .container { position: relative; z-index: 1; }
.photo-section h2 { color: #fff; font-size: 2.6rem; }
.photo-section p { color: #f1e9fb; font-size: 1.2rem; }
.photo-section .kicker { color: var(--purple-deep); background: var(--gold); }

/* ----------  How Katie Works (BIG, single column so D-U-N-C-A-N reads top to bottom)  ---------- */
.duncan-grid { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 760px; margin: 0 auto; }
.duncan-item { display: flex; gap: 22px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--purple); border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow); }
.duncan-letter { flex: 0 0 auto; width: 76px; height: 76px; border-radius: 18px; background: linear-gradient(150deg, var(--purple), var(--purple-deep)); color: var(--gold); font-family: 'Libre Baskerville', serif; font-weight: 700; font-size: 2.4rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px rgba(61,28,99,0.3); }
.duncan-item h4 { font-size: 1.3rem; margin: 2px 0 6px; font-family: 'Libre Baskerville', serif; color: var(--purple); }
.duncan-item p { margin: 0; font-size: 1.08rem; color: var(--slate); }

/* ----------  CTA band  ---------- */
.cta-band { background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 100%); color: #fff; text-align: center; padding: 76px 0; }
.cta-band h2 { color: #fff; font-size: 2.5rem; }
.cta-band p { color: #efe7fb; max-width: 660px; margin: 0 auto 30px; font-size: 1.2rem; }
.cta-band .hero-cta { justify-content: center; }

/* ----------  About / prose  ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 2rem; margin-top: 1.4em; }
.prose p { color: #2a2338; font-size: 1.18rem; }
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px; align-items: start; }
.about-figure { position: relative; }
.about-figure .photo-frame { background: linear-gradient(150deg, var(--purple), var(--purple-deep)); border-radius: 20px; padding-top: 16px; overflow: hidden; box-shadow: var(--shadow); }
.about-figure .photo-frame img { width: 100%; display: block; }
.about-card { background: var(--bg-soft); border-left: 6px solid var(--gold); border-radius: 12px; padding: 22px 26px; margin: 20px 0 0; font-size: 1.05rem; }
.about-card strong { color: var(--purple); }

/* ----------  Issues long-form  ---------- */
.issue-block { display: grid; grid-template-columns: 76px 1fr; gap: 28px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.issue-block:last-child { border-bottom: 0; }
.issue-icon { width: 76px; height: 76px; border-radius: 18px; background: linear-gradient(150deg, var(--purple), var(--purple-deep)); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: 'Libre Baskerville', serif; font-size: 1.9rem; font-weight: 700; box-shadow: 0 8px 18px rgba(61,28,99,0.25); }
.issue-block h3 { font-size: 1.9rem; margin-bottom: 0.35em; }
.issue-block p { color: #2a2338; font-size: 1.15rem; }
.issue-block .policy-tag { display: inline-block; background: rgba(249,214,6,0.35); color: var(--purple-dark); font-weight: 700; font-size: 0.95rem; padding: 5px 14px; border-radius: 999px; margin-bottom: 12px; }

/* ----------  Forms  ---------- */
.forms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-card h3 { font-size: 1.7rem; }
.form-card.donate { background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 100%); color: #fff; text-align: center; }
.form-card.donate h3 { color: #fff; }
.form-card.donate p { color: #efe7fb; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 1rem; margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; font-family: inherit; font-size: 1.05rem; border: 1px solid #cfc6e0; border-radius: 11px; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(98,46,150,0.18); }
.field textarea { min-height: 120px; resize: vertical; }
.checks { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.checks label { font-weight: 500; font-size: 1.02rem; display: flex; align-items: center; gap: 8px; }
.checks input { width: auto; transform: scale(1.2); }
.amount-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 22px 0 24px; }
.amount-row a { background: rgba(255,255,255,0.12); color: #fff; border: 2px solid rgba(249,214,6,0.75); border-radius: 999px; padding: 15px 0; flex: 1 1 72px; text-align: center; text-decoration: none; font-weight: 700; font-size: 1.1rem; }
.amount-row a:hover { background: var(--gold); color: var(--purple-deep); }

/* ----------  Draft badge  ---------- */
.draft-badge { display: inline-block; background: #fff4c2; color: #8a6d00; border: 1px dashed var(--gold-dark); border-radius: 8px; padding: 9px 16px; font-size: 0.95rem; font-weight: 600; margin-bottom: 24px; }

/* ----------  Page hero (interior)  ---------- */
.page-hero { position: relative; color: #fff; padding: 72px 0; background-size: cover; background-position: center; }
.page-hero.plain { background: linear-gradient(135deg, var(--purple) 0%, var(--purple-deep) 100%); }
.page-hero.photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(61,28,99,0.92), rgba(98,46,150,0.78)); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: 3rem; margin: 0; }
.page-hero p { color: #ece1fb; margin: 12px 0 0; font-size: 1.25rem; }

/* ----------  Footer (brand purple matches logo block)  ---------- */
.site-footer { background: var(--purple); color: #efe7fb; padding: 58px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; margin-bottom: 34px; }
.site-footer img { height: 64px; margin-bottom: 16px; }
.site-footer p { font-size: 1.05rem; }
.site-footer h4 { color: #fff; font-family: 'Montserrat', sans-serif; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #efe7fb; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; font-size: 1.05rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.22); padding-top: 22px; font-size: 0.95rem; color: #e0d3f5; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom .paid { font-weight: 700; color: var(--gold); }

/* ----------  Responsive  ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { padding: 60px 0 0; }
  .hero-figure { margin-top: 24px; }
  .hero-figure img { max-width: 360px; }
  .hero .positioning { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero h1 { font-size: 2.9rem; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-figure { max-width: 380px; margin: 0 auto; }
  .forms-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* --- Mobile header: utility bar (language + Donate) on top,
         logo + hamburger below, full-width menu that pushes content down --- */
  .nav { position: relative; flex-wrap: wrap; row-gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .nav-right {
    order: -1; width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
  }
  .nav-logo { order: 1; }
  .nav-logo img { height: 54px; }
  .nav-toggle { display: block; order: 2; margin-left: auto; }
  .nav-links {
    order: 3; width: 100%;
    position: static; flex-direction: column; align-items: stretch; gap: 0;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 1.2rem; }
  .nav-links a:last-child { border-bottom: 0; }

  /* Bigger, easier-to-tap language toggle on mobile */
  .lang-btn { padding: 11px 20px; font-size: 1.05rem; }
}
@media (max-width: 600px) {
  body { font-size: 18px; }
  .hero h1 { font-size: 2.4rem; }
  .hero .positioning { font-size: 1.15rem; }
  .section { padding: 60px 0; }
  .section-head h2, .photo-section h2, .cta-band h2 { font-size: 2rem; }
  .page-hero h1 { font-size: 2.2rem; }
  .pillars { grid-template-columns: 1fr; }
  .duncan-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .issue-block { grid-template-columns: 1fr; gap: 14px; }
  .btn { display: block; width: 100%; }
  .hero-cta .btn, .cta-band .btn { width: 100%; }
}
