/* =============================================================
   Nancy Bills — Chief Superior Court Judge
   style.css  |  clean consolidated stylesheet
   ============================================================= */

/* ── Variables ── */
:root {
  --navy:     #02284a;
  --red:      #c91825;
  --red-dark: #b3121c;
  --paper:    #efefef;
  --line:     #d8d8d8;
  --text:     #494949;
  --heading:  #0e2743;
  --maxw:     100%;
}

/* ── Reset / base ── */
*, *::before, *::after { box-sizing: border-box; }
html  { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body  { margin: 0; background: #ececec; font-family: "Source Sans 3", Arial, sans-serif; color: var(--text); overflow-x: hidden; }
img   { display: block; max-width: 100%; height: auto; }
a     { text-decoration: none; }
input, button, select { font: inherit; }

/* ── Layout wrappers ── */
.site-wrap {
  width: 100%;
  background: var(--paper);
}
.container {
  width: calc(100% - 78px);
  max-width: 100%;
  margin: 0 auto;
}


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

.hero {
  position: relative;
  min-height: 820px;
  background: var(--navy);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 60px;
}

/* Background photo */
.hero-photo {
  position: absolute;
  inset: 0;
  background: url('images/photo5_hero.jpg') 58% 28% / cover no-repeat;
}

/* Left-to-right gradient fade so card stays readable */
.hero-edge-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to right,
      var(--navy)              0%,
      rgba(2,40,74,0.98)      20%,
      rgba(2,40,74,0.90)      32%,
      rgba(2,40,74,0.70)      42%,
      rgba(2,40,74,0.40)      52%,
      rgba(2,40,74,0.15)      60%,
      rgba(2,40,74,0.05)      66%,
      rgba(2,40,74,0)         72%,
      rgba(2,40,74,0)         80%,
      rgba(2,40,74,0.35)      92%,
      var(--navy)             100%
    ),
    linear-gradient(
      to bottom,
      rgba(2,40,74,0.05)  0%,
      rgba(2,40,74,0)    12%,
      rgba(2,40,74,0)    86%,
      rgba(2,40,74,0.25) 96%,
      rgba(2,40,74,0.45) 100%
    );
}

/* ── Topbar ── */
.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  padding-top: 34px;
  padding-bottom: 10px;
}
.site-logo { width: 220px; height: auto; }

.top-actions,
.footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.donate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 40px;
  padding: 0 22px;
  background: var(--red);
  color: #fff;
  border: 2px solid rgba(255,255,255,.28);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
}
.donate-btn:hover { background: var(--red-dark); }

.social-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--navy);
  border-radius: 2px;
  font-size: 15px;
}

/* ── Hero inner — holds the card ── */
.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: 60px;
}

/* ── Hero card ── */
.hero-card {
  width: 460px;
  margin-left: 60px;
  background: var(--red);
  color: #fff;
  border: 2px solid rgba(255,255,255,.26);
  box-shadow: 0 0 0 1px rgba(255,255,255,.10) inset;
  padding: 38px 34px 34px;
}

.hero-card h1 {
  font-family: 'Zilla Slab', serif;
  font-size: 48px;
  line-height: 1.04;
  letter-spacing: 0;
  text-transform: uppercase;
  text-align: center;
  margin: 0;
}

.mini-line {
  display: block;
  width: 78px;
  height: 3px;
  background: #fff;
  margin: 20px auto 12px;
}

.connect-label {
  margin: 0 0 12px;
  text-align: center;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

/* ── Signup form ── */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.signup-inputs {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.signup-form input {
  width: 100%;
  height: 36px;
  border: none;
  outline: none;
  padding: 8px 10px;
  font-size: 12px;
  color: #555;
  background: #fff;
}

.signup-form button {
  width: 100%;
  height: 42px;
  margin-top: 2px;
  background: transparent;
  border: 2px solid rgba(255,255,255,.30);
  color: #fff;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.signup-form button:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.55); }

/* Checkbox group (replaces select) */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  padding: 7px 10px;
}
.checkbox-label {
  margin: 0 0 2px;
  font-weight: 700;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #888;
}
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 11px;
  color: #555;
  line-height: 1.2;
}
.checkbox-group input[type="checkbox"] {
  width: 11px;
  height: 11px;
  cursor: pointer;
  accent-color: var(--red);
  flex-shrink: 0;
}


/* ============================================================
   SECTION SHARED
   ============================================================ */

.section { background: var(--paper); position: relative; }

.section-experience {
  padding: 42px 0 28px;
  background: linear-gradient(to bottom, #e8e8e8 0%, #eeeeee 8%, #f4f4f4 14%, #fafafa 16%, #ffffff 18%, #ffffff 100%);
  border-bottom: 1px solid #dddddd;
}

.section-community {
  padding: 27px 0 0;
  background: linear-gradient(to bottom, #e8e8e8 0%, #eeeeee 10%, #f4f4f4 18%, #fafafa 22%, #efefef 26%, #efefef 100%);
  border-top: 18px solid #ffffff;
}

.section-heading {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 0 0 39px;
}
.heading-line {
  width: 79px;
  height: 2px;
  background: var(--red);
}
.section-heading h2 {
  margin: 0;
  font-family: 'Zilla Slab', serif;
  font-size: 34px;
  line-height: 1;
  color: var(--heading);
  text-transform: uppercase;
  letter-spacing: -.02em;
}


/* ============================================================
   EXPERIENCE
   ============================================================ */

.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.experience-item {
  min-height: 222px;
  padding: 45px 18px 36px;
}

.right-border  { border-right:  1px solid var(--line); }
.bottom-border { border-bottom: 1px solid var(--line); }

.item-title {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.item-icon {
  width: 23px;
  height: 23px;
  min-width: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  font-size: 10px;
  margin-top: 5px;
  flex-shrink: 0;
}

.item-title h3 {
  margin: 0;
  font-family: 'Zilla Slab', serif;
  font-size: 26px;
  line-height: 1.15;
  color: var(--heading);
  letter-spacing: -.02em;
  max-width: 92%;
}

.experience-item p,
.feature-copy p,
.community-item p {
  margin: 0 0 0 39px;
  color: #4d4d4d;
  font-size: 17px;
  line-height: 1.2;
  max-width: 84%;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 15px;
  margin-bottom: 18px;
}

.feature-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 12px 48px 0 48px;
}
.feature-images img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
}

.feature-copy {
  border-top: 1px solid var(--line);
  min-height: 285px;
  padding: 30px 30px 0 50px;
}


/* ============================================================
   COMMUNITY
   ============================================================ */

.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.community-left  { padding: 18px 42px 40px 39px; }
.community-right { border-left: 1px solid var(--line); padding: 9px 38px 0 60px; }

.record-headline {
  margin: 20px 0;
  text-align: center;
  color: var(--red);
  font-family: 'Zilla Slab', serif;
  font-size: 44px;
  line-height: 1.10;
  letter-spacing: -.03em;
  text-transform: uppercase;
}

.record-copy {
  max-width: 440px;
  margin: 0 auto 34px;
  text-align: center;
  color: var(--red);
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
}

.community-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 470px;
  margin: 0 auto;
}
.community-photos img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
}

.community-item { margin-bottom: 28px; }

.community-item-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 8px;
  color: var(--heading);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 18px;
  line-height: 1.22;
  font-weight: 700;
}

.small-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  font-size: 10px;
  margin-top: 2px;
  flex-shrink: 0;
}

.community-item p {
  margin-left: 34px;
  font-size: 16px;
  line-height: 1.17;
  max-width: 83%;
}


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

.site-footer {
  margin-top: 79px;
  background: var(--navy);
  padding: 64px 0 72px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.footer-logo { width: 228px; height: auto; }

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.footer-disclaimer {
  margin: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.privacy-link {
  color: #fff;
  font-size: 14px;
  text-decoration: underline;
}
.privacy-link:hover { opacity: .80; }


/* ============================================================
   RESPONSIVE — Tablet  (≤ 1080px)
   ============================================================ */

@media (max-width: 1080px) {
  .container { width: calc(100% - 44px); }

  .hero { min-height: 720px; }

  .hero-card {
    width: 400px;
    margin-left: 28px;
    padding: 32px 28px 28px;
  }

  .hero-card h1 { font-size: 42px; }

  /* Stack layouts to single column */
  .experience-grid,
  .feature-row,
  .community-grid { grid-template-columns: 1fr; }

  .right-border  { border-right: none; }
  .bottom-border { border-bottom: 1px solid var(--line); }
  .feature-copy,
  .community-right { border-left: none; }

  /* Give stacked experience items a bottom divider */
  .experience-item { border-bottom: 1px solid var(--line); }
  .experience-item:last-of-type { border-bottom: none; }

  .feature-images,
  .feature-copy,
  .community-left,
  .community-right { padding-left: 20px; padding-right: 20px; }

  .experience-item p,
  .feature-copy p,
  .community-item p { max-width: 100%; }

  .section-heading h2  { font-size: 30px; }
  .item-title h3       { font-size: 24px; }
  .record-headline     { font-size: 38px; }
  .record-copy         { font-size: 23px; }
}


/* ============================================================
   RESPONSIVE — Phone  (≤ 760px)
   ============================================================ */

@media (max-width: 760px) {
  .container { width: calc(100% - 28px); }

  /* ── Hero: stacked layout — photo band on top, card below ── */
  .hero {
    min-height: 0;
    padding-bottom: 36px;
    display: flex;
    flex-direction: column;
  }

  /* Pull photo out of absolute and give it a fixed visible height */
  .hero-photo {
    position: relative;
    width: 100%;
    height: 52vw;
    min-height: 200px;
    max-height: 320px;
    flex-shrink: 0;
    background-position: 60% 20%;
    background-size: cover;
  }

  /* Hide the side-fade — not needed when photo is its own row */
  .hero-edge-fade { display: none; }

  /* Topbar sits ABOVE the photo in normal flow — no overlap */
  .topbar {
    position: relative;
    z-index: 3;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    padding: 14px 0 12px;
    background: var(--navy);
  }
  .site-logo { width: 150px; }

  /* Card sits below the photo, full width, no overlap */
  .hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 20px;
    padding-bottom: 0;
    flex: unset;
    align-items: stretch;
  }

  .hero-card {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 24px 20px 20px;
  }

  .hero-card h1 {
    font-size: 36px;
    line-height: 1.04;
  }

  .signup-form {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .signup-form button { height: 44px; font-size: 14px; }

  /* Sections */
  .heading-line       { width: 40px; }
  .section-heading    { gap: 10px; }
  .section-heading h2 { font-size: 22px; text-align: center; }
  .item-title h3      { font-size: 20px; }

  /* Feature row: switch to flex so we can reorder children */
  .feature-row {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
    margin-bottom: 0;
  }

  /* Chief Judge copy comes FIRST on mobile */
  .feature-copy {
    order: 1;
    border-top: 1px solid var(--line);
    border-bottom: none;
    padding: 20px 0 16px;
    min-height: 0;
  }

  /* Photos come SECOND on mobile */
  .feature-images {
    order: 2;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    border-right: none;
    border-top: 1px solid var(--line);
    padding: 16px 0 0;
  }

  .feature-images img {
    aspect-ratio: 4 / 3;
  }

  .community-photos { grid-template-columns: 1fr 1fr; }

  .record-headline { font-size: 30px; }
  .record-copy     { font-size: 20px; }
}


/* ============================================================
   RESPONSIVE — Small phone  (≤ 420px)
   ============================================================ */

@media (max-width: 420px) {
  .site-logo { width: 148px; }

  .hero-card {
    max-width: 100%;
    padding: 20px 16px 18px;
  }

  .hero-card h1 { font-size: 30px; }

  .section-heading h2 { font-size: 20px; }
  .record-headline    { font-size: 26px; }
  .record-copy        { font-size: 17px; }
}