/* ==========================================================================
   Rana Saba-Hekman for Eastvale City Council, District 1
   Built from the yard sign: a bold red field, a white rule, a blue band,
   heavy condensed white type and three stars. Colors are the exact values
   from the logo file.
   ========================================================================== */

:root {
  /* Exact logo colors */
  --brand-red: #C01C38;
  --brand-blue: #0001BB;
  --red-deep: #9A1630;   /* hover state for red surfaces */

  /* Neutrals */
  --canvas: #FFFFFF;
  --wash: #F5F3EF;       /* warm off-white for alternating sections */
  --border: #E2DED6;
  --ink: #10123A;        /* navy-black, tuned to sit with the blue */
  --muted: #4B4E6B;

  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1200px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --section-gap: clamp(3.5rem, 9vw, 7rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s var(--ease); }
a:hover { color: var(--brand-red); }
:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 3px; border-radius: 4px; }
.on-red :focus-visible, .on-blue :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-gap); }
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: 6px;
}
.skip-link:focus { top: 1rem; color: #fff; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.stars { display: inline-flex; gap: .3em; }
.stars svg { width: 1em; height: 1em; fill: currentColor; }

/* ---------- Type ---------- */
h1, h2, h3, .num, .eyebrow, .btn, .wordmark, .band-text {
  font-family: var(--font-display);
  text-transform: uppercase;
}
.eyebrow {
  display: inline-block;
  font-size: 1.125rem; font-weight: 700; letter-spacing: .14em;
  color: var(--brand-red);
  margin-bottom: 1rem;
}
h1 { font-size: clamp(3.25rem, 11vw, 7rem); font-weight: 800; line-height: .92; letter-spacing: -0.005em; }
h2 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; line-height: .98; color: var(--brand-blue); }
h3 { font-size: 1.75rem; font-weight: 700; line-height: 1.05; letter-spacing: .01em; }
.lede { font-size: clamp(1.125rem, 2.2vw, 1.375rem); color: var(--muted); max-width: 40ch; }
.prose p { max-width: 62ch; }
.prose p + p { margin-top: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: .6rem 2rem;
  font-size: 1.375rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; cursor: pointer;
  color: #fff; background: var(--brand-blue);
  border: 3px solid var(--brand-blue); border-radius: 4px;
  transition: transform .25s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn:hover { color: #fff; background: var(--ink); border-color: var(--ink); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
/* On red: white button with blue text */
.on-red .btn { background: #fff; color: var(--brand-blue); border-color: #fff; }
.on-red .btn:hover { background: var(--brand-blue); color: #fff; border-color: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 4px solid var(--brand-red);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; padding-block: .5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--brand-blue); }
.brand:hover { color: var(--brand-blue); }
.wordmark { font-size: clamp(1.4rem, 5.2vw, 1.9rem); font-weight: 800; letter-spacing: .03em; line-height: 1; white-space: nowrap; }
.brand .stars { color: var(--brand-red); font-size: .95rem; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0; cursor: pointer;
  background: var(--brand-blue); border: 0; border-radius: 4px; color: #fff;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 22px; height: 3px; background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 4px solid var(--brand-blue);
  padding: .5rem var(--gutter) 1.5rem;
  display: none;
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  display: flex; align-items: center; min-height: 52px;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--border);
}
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--brand-red); }
.site-nav .btn { margin-top: 1rem; width: 100%; }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: block; background: none; border: 0; padding: 0; }
  .site-nav ul { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
  .site-nav a:not(.btn) { border: 0; min-height: 44px; font-size: 1.25rem; }
  .site-nav .btn { margin: 0; width: auto; min-height: 44px; padding: .35rem 1.25rem; font-size: 1.25rem; }
}

/* ---------- Hero: the sign, as a page ---------- */
.hero-red { background: var(--brand-red); color: #fff; padding-block: clamp(2.5rem, 7vw, 5rem); }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; align-items: center; }
.hero-copy .eyebrow { color: #fff; opacity: .92; }
.hero-copy .for-line { margin-top: 1.25rem; font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 500; line-height: 1.3; }
.hero-copy .btn { margin-top: 2rem; }
.hero-art { display: grid; justify-items: center; }
.badge-card { width: min(70%, 300px); }
.badge-card img { width: 100%; }
.hero-rule { height: 10px; background: #fff; }
.hero-band { background: var(--brand-blue); color: #fff; padding-block: 1.1rem; }
.hero-band .container { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; text-align: center; }
.band-text { font-size: clamp(1.25rem, 3.4vw, 1.9rem); font-weight: 700; letter-spacing: .08em; }
.hero-band .stars { font-size: 1.4rem; }
@media (min-width: 640px) { .hero-band .container { flex-direction: row; gap: 1.5rem; } }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.35fr 1fr; }
  .hero-art { justify-items: end; }
  .badge-card { width: min(100%, 340px); }
}

/* ---------- Meet Rana ---------- */
.about-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.pull-quote {
  margin-top: 1.5rem; padding-left: 1.25rem; border-left: 6px solid var(--brand-red);
  font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; line-height: 1.15; color: var(--ink); max-width: 20ch;
}
@media (min-width: 768px) { .about-grid { grid-template-columns: 1fr 1.5fr; gap: 4.5rem; } }

/* ---------- Platform ---------- */
.platform { background: var(--wash); }
.section-head { margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head p:not(.eyebrow) { margin-top: 1rem; color: var(--muted); max-width: 52ch; }
.cards { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.card {
  background: #fff; border: 1px solid var(--border); border-top: 8px solid var(--brand-blue);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: border-top-color .25s, transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { border-top-color: var(--brand-red); transform: translateY(-4px); box-shadow: 0 14px 30px rgba(16, 18, 58, .12); }
.card .num { display: block; font-size: 2.5rem; font-weight: 800; line-height: 1; color: var(--brand-red); margin-bottom: 1rem; }
.card h3 { color: var(--brand-blue); }
.card p { margin-top: .75rem; color: var(--muted); max-width: 52ch; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Announcements (blue band) ---------- */
.announcements { background: var(--brand-blue); color: #fff; }
.announcements h2 { color: #fff; }
.announcements .eyebrow { color: #fff; opacity: .9; }
.ann-grid { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); align-items: center; }
.ann-grid > * { min-width: 0; }
.ann-grid .section-head { margin-bottom: 0; }
.carousel { width: 100%; max-width: 600px; justify-self: center; }
@media (min-width: 900px) { .ann-grid { grid-template-columns: 1fr minmax(0, 600px); gap: 4rem; } .carousel { justify-self: end; } }
.carousel-viewport { overflow: hidden; border: 8px solid #fff; background: #fff; touch-action: pan-y; }
.carousel-track { display: flex; transition: transform .6s var(--ease); will-change: transform; }
.carousel-track.is-dragging { transition: none; }
.slide { flex: 0 0 100%; min-width: 0; margin: 0; }
.slide img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.slide figcaption {
  padding: 1rem 1.25rem; font-weight: 600; line-height: 1.4; color: var(--ink); background: #fff;
}
.carousel-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; gap: 1rem; }
.carousel-btn {
  width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--brand-blue); border: 0; border-radius: 4px; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, color .2s;
}
.carousel-btn:hover { background: var(--brand-red); color: #fff; }
.carousel-btn:active { transform: scale(.94); }
.carousel-btn svg { width: 22px; height: 22px; }
.dots { display: flex; gap: .25rem; }
.dot { width: 28px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; position: relative; }
.dot::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 2px #fff; transition: background .2s, transform .2s;
}
.dot[aria-current="true"]::after { background: #fff; transform: scale(1.25); }

/* ---------- Contact ---------- */
.page-head { background: var(--brand-red); color: #fff; padding-block: clamp(2.25rem, 6vw, 4rem); }
.page-head .eyebrow { color: #fff; opacity: .92; }
.page-head h1 { font-size: clamp(3rem, 9vw, 5.5rem); }
.page-head .lede { margin-top: 1rem; color: #fff; }
.page-contact main > .container { padding-block: clamp(2.5rem, 6vw, 4rem) var(--section-gap); }
.contact-wrap { max-width: 760px; }
.form { display: grid; gap: 1.25rem; }
.field label { display: block; font-weight: 700; margin-bottom: .4rem; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: .75rem 1rem;
  font: inherit; color: var(--ink); background: #fff;
  border: 2px solid #8A8DA8; border-radius: 4px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 10rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 4px rgba(0, 1, 187, .2); }
.field [aria-invalid="true"] { border-color: #B3261E; }
.error { display: block; min-height: 0; margin-top: .35rem; font-size: .9375rem; color: #A3201A; }
.form-note { padding: 1rem 1.25rem; border-radius: 4px; background: var(--wash); border: 1px solid var(--border); }
.form-note.is-error { border-color: #B3261E; color: #A3201A; }
.success { padding: 2rem; background: var(--wash); border: 1px solid var(--border); border-top: 8px solid var(--brand-blue); }
.success h2 { font-size: 2.25rem !important; }
.success p { margin-top: .5rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer (red, closing the page like the sign opens it) ---------- */
.site-footer { background: var(--brand-red); color: #fff; padding-block: 2.5rem; border-top: 10px solid #fff; outline: 0; }
.footer-inner { display: grid; justify-items: center; }
.social { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; color: #fff; text-decoration: none; font-weight: 600; }
.social:hover { color: #fff; text-decoration: underline; }
.social svg { width: 24px; height: 24px; }

/* ---------- Reveal motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .carousel-track, .card, .btn { transition: none; }
}
