/* Kiran Agrarahara for Town Council — mobile-first campaign */

:root {
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --canvas: #faf8f5;
  --card: #ffffff;
  --brand: #1e3a5f;
  --brand-light: #2563eb;
  --accent: #b45309;
  --focus: #1d4ed8;
  --radius: 12px;
  --shadow: 0 1px 3px rgb(15 23 42 / 0.08),
    0 8px 24px rgb(15 23 42 / 0.06);
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-display: "Fraunces", "Georgia", serif;
  --tap: min(44px, 48px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2.8vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--canvas);
}

/* Temporary holding page */
.hold {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2.5rem 1.25rem;
}

.hold-inner {
  width: 100%;
  max-width: 46rem;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.75rem, 5vw, 2.75rem);
}

.brand-mini {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 1.25rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(160deg, var(--brand-light), var(--brand));
}

.hold h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

.hold-sub {
  margin: 0;
  color: var(--muted);
  font-size: 1.125rem;
  font-weight: 600;
}

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

a {
  color: var(--brand-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 1rem 1.25rem;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.75rem clamp(1rem, 4vw, 1.75rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand-badge {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  background: linear-gradient(
    145deg,
    var(--brand) 0%,
    #1e40af 55%,
    var(--brand-light) 100%
  );
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.brand-text small {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.brand-text strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.2;
}

.nav-toggle-label {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: var(--tap);
  min-height: var(--tap);
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--brand);
}

.nav-toggle:focus-visible ~ .nav-toggle-label,
.nav-toggle-label:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  align-items: center;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.5rem 0.625rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: rgb(12 74 110 / 0.08);
  color: var(--brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--tap);
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(160deg, var(--brand-light), var(--brand));
  color: #fff;
  box-shadow: 0 2px 8px rgb(12 74 110 / 0.25);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}

.btn-outline:hover {
  background: rgb(12 74 110 / 0.06);
  color: var(--brand);
}

.hero {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 1.75rem)
    clamp(2.5rem, 8vw, 5rem);
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 2.875rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--ink);
}

.lead {
  font-size: 1.0625rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-panel {
  background: var(--card);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 1.75rem);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin: 0 0 0.75rem;
  color: var(--brand);
}

.meeting-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.meeting-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

.meeting-row strong {
  font-size: 0.9375rem;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgb(194 65 12 / 0.12);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.section {
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4rem) clamp(1rem, 4vw, 1.75rem);
}

.section-muted {
  background: linear-gradient(180deg, #eef2f6 0%, var(--canvas) 100%);
  border-block: 1px solid var(--line);
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 0.35rem;
}

.section-intro {
  color: var(--muted);
  max-width: 42rem;
  margin: 0 0 clamp(1.75rem, 4vw, 2.25rem);
}

.card-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .card-grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.35rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.two-col {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.list-check li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.625rem;
  color: var(--muted);
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 3px;
  background: var(--brand-light);
  box-shadow: 0 0 0 3px rgb(3 105 161 / 0.2);
}

.contact-box {
  background: var(--card);
  padding: clamp(1.35rem, 4vw, 1.85rem);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-list li:last-child {
  border-bottom: none;
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brand-light);
}

.hero--campaign .hero-copy h1 {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .hero--campaign .hero-copy h1 {
    color: var(--brand);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }
}

.bio-photo-placeholder {
  min-height: 220px;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.35rem;
  background: linear-gradient(160deg, #e0e7ff 0%, #fef3c7 100%);
  border: 2px dashed rgb(37 99 235 / 0.35);
  font-weight: 700;
  color: var(--brand);
}

.bio-photo-placeholder small {
  font-weight: 600;
  color: var(--muted);
}

.bio-lede {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.45;
  margin: 0 0 1rem;
  color: var(--ink);
}

.cta-strip {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  padding: 1.5rem clamp(1.25rem, 4vw, 2rem);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgb(30 58 95 / 0.06) 0%, rgb(37 99 235 / 0.08) 100%);
  border: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cta-strip p {
  margin: 0;
  max-width: 36rem;
  font-weight: 600;
}

.contact-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 1rem 0 0.35rem;
}

.contact-form label:first-child {
  margin-top: 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 1rem;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-color: transparent;
}

.form-hint {
  margin: 1rem 0;
  font-size: 0.875rem !important;
}

.contact-form .btn {
  margin-top: 0.25rem;
  width: 100%;
}

.contact-form .btn[disabled] {
  opacity: 0.75;
  cursor: not-allowed;
}

.align-stretch {
  align-items: stretch;
}

@media (min-width: 768px) {
  .contact-form .btn {
    width: auto;
  }
}

.two-col--bio .contact-box:last-child .bio-copy {
  height: 100%;
}

.site-footer {
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  color: #cbd5e1;
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 1.75rem)
    clamp(2.5rem, 6vw, 3.5rem);
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.site-footer a {
  color: #e2e8f0;
}

.site-footer a:hover {
  color: #fff;
}

.footer-meta {
  font-size: 0.875rem;
  line-height: 1.6;
}

/* Mobile navigation */
@media (max-width: 799px) {
  .nav-toggle-label {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: 0;
    top: 58px;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0;
    background: rgb(248 250 252 / 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.2s ease, visibility 0.2s;
    max-height: calc(100vh - 58px);
    overflow-y: auto;
  }

  .nav a {
    padding: 0.875rem 1rem;
    border-radius: 10px;
    font-size: 1rem;
  }

  .nav-toggle:checked ~ .nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  body:has(.nav-toggle:checked) {
    overflow: hidden;
  }

  /* Hamburger / close icon swap */
  .nav-toggle:checked ~ .nav-toggle-label .open-text {
    display: none;
  }

  .nav-toggle:not(:checked) ~ .nav-toggle-label .close-text {
    display: none;
  }
}

@media (min-width: 800px) {
  .nav-toggle-label {
    display: none !important;
  }
}
