/* ============================================
   BrikShare Design System
   ============================================ */

:root {
  --red: #D6293E;
  --red-dark: #AF1F31;
  --red-tint: #FCEBEC;
  --yellow: #F4B400;
  --yellow-tint: #FDF3DA;
  --blue: #2F5FDB;
  --blue-dark: #24469E;
  --blue-tint: #E9EEFC;
  --green: #1FA971;
  --green-tint: #E4F5EC;
  --navy: #1C2033;
  --navy-soft: #565B7A;
  --navy-elevated: #262B47;
  --cream: #FBF8F3;
  --sand: #F2ECE0;
  --white: #FFFFFF;
  --gray-100: #F2F0EC;
  --gray-300: #E3DFD3;
  --gray-600: #83806F;

  --font-display: "Baloo 2", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;

  --shadow-sm: 0 1px 2px rgba(28, 32, 51, 0.04), 0 4px 12px rgba(28, 32, 51, 0.06);
  --shadow-md: 0 4px 10px rgba(28, 32, 51, 0.06), 0 12px 28px rgba(28, 32, 51, 0.10);
  --shadow-lg: 0 8px 20px rgba(28, 32, 51, 0.08), 0 24px 48px rgba(28, 32, 51, 0.14);

  --max-width: 1120px;
  --measure: 62ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  color: var(--navy);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.3rem, 3.2vw + 1.1rem, 3.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.65rem, 1.4vw + 1.15rem, 2.25rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.005em; }

p { margin: 0 0 1em; color: var(--navy-soft); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--red); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--red-dark); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--white); color: var(--navy); border: 1.5px solid var(--gray-300); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--navy); box-shadow: var(--shadow-md); }
.btn-yellow { background: var(--yellow); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-yellow:hover { box-shadow: var(--shadow-md); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-300);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
}
.brand:hover { text-decoration: none; }
.brand .brick-icon { height: 36px; width: auto; flex-shrink: 0; }
.footer-brand .brick-icon.footer-icon { height: 30px; width: auto; }

.wordmark { letter-spacing: 0.3px; }
.wm-brik { color: var(--blue); }
.wm-share { color: var(--navy); }
.footer-brand .wm-brik { color: var(--yellow); }
.footer-brand .wm-share { color: var(--white); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 6px 2px;
  border-bottom: 3px solid transparent;
}
.nav-links a:hover, .nav-links a.active {
  text-decoration: none;
  border-bottom: 3px solid var(--red);
}

.nav-cta { margin-left: 8px; }
.nav-cta .btn { padding: 9px 20px; font-size: 0.9rem; border-radius: 10px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--gray-300);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 10px 0; width: 100%; }
  .nav-cta { margin-left: 0; width: 100%; }
  .nav-cta .btn { display: flex; width: 100%; justify-content: center; text-align: center; }
}

/* ---------- Photos ---------- */
.photo-frame {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--white);
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 88px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-copy h1 { margin-bottom: 0.4em; }
.hero-copy p { font-size: 1.08rem; }
.hero-eyebrow {
  display: inline-block;
  background: var(--yellow-tint);
  color: #92680A;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

.cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-row h2 { margin-bottom: 6px; }
.cta-row p { margin: 0; }
@media (max-width: 700px) {
  .cta-row { flex-direction: column; align-items: flex-start; }
}
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }
.hero-art::before {
  content: "";
  position: absolute;
  inset: -6%;
  background:
    radial-gradient(circle at 22% 18%, rgba(244, 180, 0, 0.2), transparent 58%),
    radial-gradient(circle at 82% 85%, rgba(47, 95, 219, 0.14), transparent 55%);
  z-index: -1;
  pointer-events: none;
}
.hero-dot {
  position: absolute;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 860px) {
  .hero { padding: 40px 0 48px; }
  .hero .container { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; max-width: 360px; margin: 0 auto; }
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
@media (max-width: 860px) {
  section { padding: 56px 0; }
}
.section-head { max-width: 560px; margin: 0 auto 48px; text-align: center; }
.section-head p { margin-left: auto; margin-right: auto; }
.section-head .hero-eyebrow { margin-bottom: 14px; }
.section-head.left { margin: 0 0 40px; text-align: left; }
.section-head.left p { margin-left: 0; }
.bg-white { background: var(--white); }
.bg-sand { background: var(--sand); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h2, .bg-navy p, .bg-navy h3 { color: var(--white); }
.bg-navy .section-head p { color: rgba(255,255,255,0.72); }
.bg-navy .stat-number { color: var(--yellow); }

/* ---------- Icon system ---------- */
.icon-circle {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}
.icon-circle svg { width: 28px; height: 28px; }
.icon-circle--red { background: var(--red-tint); color: var(--red); }
.icon-circle--blue { background: var(--blue-tint); color: var(--blue); }
.icon-circle--green { background: var(--green-tint); color: var(--green); }
.icon-circle--yellow { background: var(--yellow-tint); color: #92680A; }
.icon-circle .step-num {
  position: absolute;
  top: -4px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
}
.step-card h3 { margin-bottom: 8px; }
.step-card p { margin-left: auto; margin-right: auto; font-size: 0.95rem; }
.step-card--dark { background: var(--navy-elevated); border-color: rgba(255,255,255,0.1); }
.step-card--dark .icon-circle { background: rgba(255,255,255,0.1); }
.step-card--dark .icon-circle--yellow { color: var(--yellow); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}
.stat-item {
  padding: 0 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.stat-item:first-child { border-left: none; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 3vw, 3.2rem);
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label { color: rgba(255,255,255,0.75); font-size: 0.95rem; }
@media (max-width: 700px) {
  .stats-grid { grid-template-columns: 1fr; gap: 36px; }
  .stat-item { border-left: none; border-top: 1px solid rgba(255,255,255,0.14); padding: 28px 0 0; }
  .stat-item:first-child { border-top: none; padding-top: 0; }
}

/* ---------- Awards / recognition ---------- */
.badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.badge-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
}
.badge-title { font-family: var(--font-display); font-weight: 700; color: var(--navy); margin: 0 0 2px; }
.badge-sub { font-size: 0.85rem; color: var(--navy-soft); margin: 0; }
.badge-logo { height: 56px; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.badge-logo img { max-height: 100%; max-width: 170px; object-fit: contain; }
.badge-logo--chip img { max-height: 100%; width: auto; border-radius: 8px; }
@media (max-width: 860px) {
  .badges { grid-template-columns: 1fr; }
}

/* ---------- Cards / location ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.location-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0;
  align-items: stretch;
}
.location-card .location-art { position: relative; height: 320px; background: var(--gray-100); display: flex; align-items: center; justify-content: center; padding: 32px; }
.location-card .location-art img { transition: opacity 0.4s ease; }
@media (max-width: 760px) {
  .location-card .location-art { height: 240px; }
}
.location-art-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(28, 32, 51, 0.72);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 7px 14px;
  border-radius: 999px;
  transition: opacity 0.4s ease;
}
.location-card .location-info { padding: 40px; }
.location-info dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 20px 0; }
.location-info dt { font-weight: 700; color: var(--navy); }
.location-info dd { margin: 0; color: var(--navy-soft); }
@media (max-width: 760px) {
  .location-card { grid-template-columns: 1fr; }
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.location-card-sm img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.location-card-sm-body { padding: 28px; }
.location-card-sm h3 { margin-bottom: 6px; }
.location-tag {
  display: inline-block;
  background: var(--red-tint);
  color: var(--red-dark);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 12px;
  border-radius: 999px;
  margin: 0;
}
.location-tag--blue { background: var(--blue-tint); color: var(--blue-dark); }
.location-tag--green { background: var(--green-tint); color: #146B49; }
.location-tag--yellow { background: var(--yellow-tint); color: #92680A; }
.location-card-sm dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 18px 0; font-size: 0.92rem; }
.location-card-sm dt { font-weight: 700; color: var(--navy); }
.location-card-sm dd { margin: 0; color: var(--navy-soft); }
@media (max-width: 760px) {
  .location-grid { grid-template-columns: 1fr; }
}

/* ---------- Quote / story ---------- */
.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.pull-quote {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--navy);
  border-left: 6px solid var(--yellow);
  padding-left: 20px;
  margin: 24px 0;
}
@media (max-width: 860px) {
  .story-block { grid-template-columns: 1fr; }
}

/* ---------- Donate tiers ---------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.tier-option {
  position: relative;
}
.tier-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}
.tier-option label {
  display: block;
  text-align: center;
  padding: 20px 8px;
  border-radius: var(--radius-md);
  border: 2px solid var(--gray-300);
  background: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.tier-option input:checked + label {
  border-color: var(--red);
  background: #FFF1EE;
  color: var(--red);
}
.freq-toggle {
  display: inline-flex;
  background: var(--gray-100);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 24px;
}
.freq-toggle input { position: absolute; opacity: 0; }
.freq-toggle label {
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.freq-toggle input:checked + label {
  background: var(--navy);
  color: var(--white);
}
.donate-note {
  background: #FFF8E6;
  border: 1px solid var(--yellow);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 0.92rem;
  margin-top: 24px;
}

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 16px; max-width: 560px; }
label.field-label { font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; display: block; }
input[type="text"], input[type="email"], textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blue);
}
textarea { resize: vertical; min-height: 120px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.bg-navy + .site-footer { border-top-color: rgba(255, 255, 255, 0.14); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: var(--white); font-family: var(--font-display); font-size: 1rem; }
.footer-grid a { color: rgba(255,255,255,0.75); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.social-icons { display: flex; gap: 12px; margin-top: 16px; }
.social-icons a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
}
.social-icons svg { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
