/* ==========================================================
   Hannah Cole for OK 86 — styles.css (CLEANED + DE-CONFLICTED)
   - Split hero (left color panel + right photo panel)
   - Pill nav buttons + prominent Donate
   - Mobile: fixed header + photo-first hero (no layout fights)
   ========================================================== */

/* ---------- Fonts ---------- */
@font-face{
  font-family:"Mont";
  src:url("fonts/Mont-Regular.woff2") format("woff2");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"Mont";
  src:url("fonts/Mont-Bold.woff2") format("woff2");
  font-weight:700;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"Nickainley";
  src:url("fonts/Nickainley.woff2") format("woff2");
  font-weight:400;
  font-style:normal;
  font-display:swap;
}

/* ---------- Tokens ---------- */
:root{
  /* Campaign palette */
  --rust:#A6372D;
  --orange:#D97925;
  --wheat:#E6B458;
  --beige:#F2E3C9;
  --espresso:#4A3728;
  --pine:#1B2E28;
  --moss:#4D6A47;
  --slate:#59748C;
  --mist:#A8BCC2;

  /* Structure */
  --ink:#0f1720;
  --paper:#ffffff;
  --cloud:#f1efe9;
  --line: rgba(15,23,32,0.14);

  --max: 1180px;
  --gutter: 22px;

  --sans: "Mont", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* COMPONENT THEME MAPPING */
  --hero-left: var(--pine);
  --hero-text: #ffffff;

  /* Alias */
  --navy: var(--hero-left);

  --pill-bg: rgba(166,55,45,0.94);
  --pill-text: #fffaf3;
  --pill-border: rgba(255,255,255,0.18);
  --pill-shadow: rgba(0,0,0,0.12);

  --pill-active-bg: rgba(230,180,88,0.96);
  --pill-active-text: #2a1b10;

  --cta-bg: rgba(217,121,37,0.96);
  --cta-text: #1c120b;

  --h2-color: #2b3a47;
  --h2-rule: rgba(166,55,45,0.86);

  --issue-dot: rgba(77,106,71,0.96);

  /* Terwey-like field */
  --form-field-bg: #edf6ff;
  --form-field-text: #0b2238;

  --form-submit-bg: rgba(217,121,37,0.96);
  --form-submit-text: #1c120b;

  --footer-bg: #0b1420;
  --footer-text: #ffffff;

  /* Mobile fixed header height (single source of truth) */
  --header-h: 70px;
}

/* ---------- Base ---------- */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--sans);
  background:var(--paper);
  color:var(--ink);
  line-height:1.6;
  font-size:1.04rem;
}
img{ display:block; max-width:100%; height:auto; }
a{ color:inherit; text-decoration:none; }

.container{
  width:min(var(--max), calc(100% - (var(--gutter) * 2)));
  margin-inline:auto;
}

.skip-link{
  position:absolute;
  left:-999px;
  top:10px;
  background:var(--paper);
  border:2px solid var(--ink);
  padding:10px 12px;
  z-index:9999;
}
.skip-link:focus{ left:10px; }

/* (Topbar currently unused) */
.topbar{ display:none; }

/* ==========================================================
   HEADER / NAV (pill buttons over hero)
   ========================================================== */
.header{
  position:absolute;
  top:0;
  left:0;
  right:0;
  z-index:50;
  background:transparent;
  border-bottom:none;
}

.header__inner{
  padding:18px 0;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}

/* Brand */
.brand{
  display:flex;
  align-items:flex-start;
  gap:14px;
  min-width:220px;
}

.brand__logo{
  width:132px;
  height:auto;
  background:transparent;
  border:0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
}
.brand__text{ display:none; }

/* Nav pills */
.nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.nav a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:34px;
  padding:0 14px;
  border-radius:10px;
  background:var(--pill-bg);
  color:var(--pill-text);
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:.75rem;
  font-weight:700;
  box-shadow: 0 2px 0 var(--pill-shadow);
  border:1px solid var(--pill-border);
  transition: transform .12s ease, filter .12s ease;
}
.nav a:hover{
  filter:brightness(1.03);
  transform:translateY(-1px);
}
.nav a[aria-current="page"]{
  background:var(--pill-active-bg);
  color:var(--pill-active-text);
}

/* Donate button area */
.nav__cta{
  margin-left:12px;
  display:inline-flex;
  align-items:center;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 18px;
  height:44px;
  border-radius:10px;
  border:0;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-weight:800;
  font-size:.84rem;
  cursor:pointer;
  box-shadow: 0 3px 0 rgba(0,0,0,0.18);
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
.btn--primary{
  background:var(--cta-bg);
  color:var(--cta-text);
}
.btn--primary:hover{ transform:translateY(-1px); filter:brightness(1.03); }

.nav__cta .btn--primary{
  background: var(--pine);
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.18);
  box-shadow: 0 4px 0 rgba(0,0,0,0.28);
}
.nav__cta .btn--primary:hover{
  transform: translateY(-1px);
  filter: brightness(1.06);
}
.nav__cta .btn--primary:active{
  transform: translateY(0);
  box-shadow: 0 2px 0 rgba(0,0,0,0.35);
}

.btn--secondary{
  background:var(--pill-active-bg);
  color:var(--pill-active-text);
}
.btn--ghost{
  background:rgba(255,255,255,0.12);
  color:#fff;
}

/* Mobile menu toggle (base) */
.nav-toggle{
  display:none;
  height:44px;
  padding:0 14px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.18);
  background:rgba(255,255,255,0.12);
  color:#fff;
  text-transform:uppercase;
  letter-spacing:.14em;
  font-weight:800;
}

/* ==========================================================
   HERO — big 50/50 split
   ========================================================== */
.hero{
  margin:0;
  padding:0;
  min-height: 740px;
  display:flex;
  align-items:stretch;
  border-bottom:0;
  background:var(--paper);
}

.hero__inner{
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns: 1fr 1fr;
  min-height: 740px;
}

/* LEFT PANEL */
.hero__inner > div:first-child{
  background: var(--hero-left);
  color:var(--hero-text);
  padding: 190px 60px 70px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

/* Right photo panel */
.hero__media{
  position:relative;
  border:0;
  background:#000;
  overflow:hidden;
}

.hero__media img{
  width:100%;
  height:100%;
  min-height:740px;
  object-fit:cover;
  filter:saturate(1.02);
}

/* Desktop photo overlay */
.hero__media::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(0,0,0,0.35), rgba(0,0,0,0.12));
  pointer-events:none;
}

.hero__kicker{ display:none; }

.hero__title{
  margin:0 0 18px;
  font-size: clamp(2.6rem, 4.6vw, 4.4rem);
  line-height:1.06;
  letter-spacing:-0.01em;
  font-weight:800;
}
.hero__title strong{ box-shadow:none; padding:0; }

.hero__tagline{
  margin:0 0 26px;
  max-width:46ch;
  font-size:1.15rem;
  color:rgba(255,255,255,0.88);
}

.hero__script{ display:none; }

.hero__actions{
  margin-top:10px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

/* ==========================================================
   FORMS
   ========================================================== */
.form{
  background:transparent;
  border:0;
  margin-top:22px;
}
.form__inner{ padding:0; }

/* (You’re using placeholders as labels; keep labels visually hidden) */
label{ display:none; }

input, textarea, select{
  width:100%;
  height:54px;
  padding:0 16px;
  border-radius:10px;
  border:2px solid rgba(255,255,255,0.0);
  background:var(--form-field-bg);
  color:var(--form-field-text);
  font-family:var(--sans);
  font-size:1.05rem;
  font-weight:700;
  outline:none;
}

textarea{
  height:auto;
  min-height:140px;
  padding:14px 16px;
  font-weight:600;
}

input::placeholder, textarea::placeholder{
  color:rgba(11,34,56,0.70);
  font-weight:800;
}

.form__row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-bottom:12px;
}
.field{ margin:0 0 12px; }

form button.btn,
form button[type="submit"]{
  width:100%;
  height:54px;
  border-radius:10px;
  background:var(--form-submit-bg);
  color:var(--form-submit-text);
  font-weight:900;
  letter-spacing:.18em;
}

/* ==========================================================
   SECTIONS
   ========================================================== */
.section{
  padding:90px 0;
  background:var(--paper);
}
.section:nth-of-type(even){
  background:var(--cloud);
}

.section__head{
  text-align:center;
  margin-bottom:26px;
  display:block;
}
.h2{
  margin:0;
  font-size: clamp(2rem, 3.3vw, 3rem);
  font-weight:900;
  color:var(--h2-color);
}
.h2::after{
  content:"";
  display:block;
  width:120px;
  height:4px;
  background:var(--h2-rule);
  margin:16px auto 0;
}
.lede{
  margin:18px auto 0;
  max-width:70ch;
  font-size:1.15rem;
  color:rgba(15,23,32,0.78);
}

/* Cards */
.card{
  border-radius:14px;
  border:1px solid rgba(15,23,32,0.10);
  background:#fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.card__inner{ padding:22px; }
.card__kicker{
  text-transform:uppercase;
  letter-spacing:.16em;
  font-weight:900;
  font-size:.78rem;
  color:rgba(15,23,32,0.60);
}
.card__title{
  margin:8px 0 10px;
  font-size:1.28rem;
  font-weight:900;
}
.card__text{ color:rgba(15,23,32,0.76); }

.grid{ display:grid; gap:18px; }
.grid--2{ grid-template-columns:repeat(2, minmax(0,1fr)); }

/* Issues rows */
.issue{
  display:grid;
  grid-template-columns:22px 1fr;
  gap:12px;
  padding:16px 0;
  border-top:1px solid rgba(15,23,32,0.10);
}
.issue:first-child{ border-top:0; }
.issue__mark{
  width:16px; height:16px;
  border-radius:50%;
  background:var(--issue-dot);
  margin-top:4px;
}
.issue__title{ margin:0 0 6px; font-weight:900; }
.issue__desc{ margin:0; color:rgba(15,23,32,0.76); }

/* Pending blocks */
.pending{
  border-radius:14px;
  border:2px dashed rgba(15,23,32,0.22);
  background:rgba(242,227,201,0.55);
  padding:22px 18px;
}

/* Footer */
.footer{
  background:var(--footer-bg);
  color:var(--footer-text);
  padding:40px 0;
}
.footer__inner{
  display:grid;
  grid-template-columns:1.2fr 0.8fr;
  gap:18px;
}
.footer a{ color:#fff; opacity:.92; }
.disclaimer{
  margin-top:14px;
  display:inline-block;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.22);
  background:rgba(255,255,255,0.06);
}

/* ==========================================================
   Responsive — TABLET AND DOWN
   ========================================================== */
@media (max-width: 980px){

  .header{
    position:absolute;
    top:0; left:0; right:0;
    z-index:60;
    background:transparent;
  }

  .header__inner{
    padding:14px 0;
    align-items:center;
  }

  .brand{
    min-width:0;
    align-items:center;
  }

  .brand__logo{
    width:110px;
  }

  /* Stack hero (photo first) */
  .hero{
    min-height:auto;
    background: var(--hero-left);
    padding-top: 78px;
  }

  .hero__inner{
    grid-template-columns:1fr;
    min-height:auto;
  }

  .hero__media{
    order:0;
    position:relative;
    overflow:hidden;
    background:#000;
  }

  .hero__media img{
    width:100%;
    height: 62vh;
    min-height: 420px;
    max-height: 640px;
    object-fit:cover;
    object-position: 60% 22%;
  }

  /* Mobile/tablet top+bottom fades into green */
  .hero__media::after{
    background:none;
  }
  .hero__media::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    z-index:2;
    background:
      linear-gradient(
        to bottom,
        rgba(27,46,40,1) 0%,
        rgba(27,46,40,0.78) 10%,
        rgba(27,46,40,0.35) 22%,
        rgba(27,46,40,0) 36%
      ),
      linear-gradient(
        to top,
        rgba(27,46,40,1) 0%,
        rgba(27,46,40,0.70) 18%,
        rgba(27,46,40,0.28) 34%,
        rgba(27,46,40,0) 52%
      );
  }

  .hero__inner > div:first-child{
    order:1;
    padding: 22px 22px 34px;
    background:var(--hero-left);
  }

  .footer__inner{ grid-template-columns:1fr; }
}

/* ==========================================================
   Responsive — SMALL MOBILE (single, consistent ruleset)
   ========================================================== */
@media (max-width: 760px){

  /* Fixed header so it never creates blank space */
  .header{
    position:fixed;
    top:0;
    left:0;
    right:0;
    z-index:999;
    background:transparent;
  }

  .header__inner{
    padding:10px 0;
    min-height: var(--header-h);
    align-items:center;
    justify-content:space-between;
  }

  /* Hide desktop pills; show hamburger */
  .nav{ display:none; }
  .nav-toggle{ display:inline-flex; }

  .brand{
    min-width:0;
    gap:10px;
    align-items:center;
  }

  .brand__logo{
    width:78px;
    max-width:78px;
    height:auto;
    flex-shrink:0;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  }

  /* Hamburger icon (3 lines) */
  .nav-toggle{
    position: relative;
    width: 48px;
    min-width: 48px;
    height: 44px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(27,46,40,0.55); /* better contrast over photo */
    backdrop-filter: blur(6px);
    cursor: pointer;

    /* Hide "Menu" text visually but keep it accessible */
    color: transparent;
    user-select: none;
    overflow: hidden;
  }

  .nav-toggle::before,
  .nav-toggle::after{
    content:"";
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    opacity: 0.95;
    transition: transform .12s ease, top .12s ease, box-shadow .12s ease;
  }

  .nav-toggle::before{
    top: 14px;
    box-shadow: 0 7px 0 #ffffff;
  }

  .nav-toggle::after{
    top: 28px;
  }

  .nav-toggle:focus-visible{
    outline: 3px solid rgba(230,180,88,0.85);
    outline-offset: 3px;
  }

  .nav-toggle[aria-expanded="true"]::before{
    top: 21px;
    box-shadow:none;
    transform: rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"]::after{
    top: 21px;
    transform: rotate(-45deg);
  }

  /* Hero: pad under fixed header so the photo starts immediately */
  .hero{
    padding-top: var(--header-h);
    background: var(--hero-left);
  }

  /* Photo crop (safe for faces) */
  .hero__media img{
    height: 56vh;
    min-height: 340px;
    max-height: 560px;
    object-position: 55% 18%;
  }

  /* Simplify fade so the form area looks intentional (no muddy overlay) */
  .hero__media::before{
    background:
      linear-gradient(
        to top,
        rgba(27,46,40,1) 0%,
        rgba(27,46,40,0.72) 22%,
        rgba(27,46,40,0.25) 40%,
        rgba(27,46,40,0) 56%
      );
  }

  /* Tighter layout below */
  .form__row{ grid-template-columns:1fr; }
  .grid--2{ grid-template-columns:1fr; }

  /* Improve readability of the “No spam…” line over dark green */
  .hero__tagline{
    color: rgba(255,255,255,0.90);
  }
}

/* ==========================================================
   MEET PAGE — MOBILE PHOTO FIRST
   Puts Hannah’s image at the top on mobile
   ========================================================== */
@media (max-width: 760px){

  /* Stack grid naturally */
  .grid.grid--2{
    grid-template-columns: 1fr;
  }

  /* Reorder cards: photo first, story second */
  .grid.grid--2 > aside.card{
    order: -1;
  }

  /* Make photo feel hero-like */
  .grid.grid--2 > aside.card img{
    height: 56vh;
    min-height: 320px;
    max-height: 520px;
    object-fit: cover;
    object-position: 50% 20%;
  }

  /* Reduce top spacing so image sits immediately under header */
  main .section[aria-label="Meet Hannah intro"]{
    padding-bottom: 32px !important;
  }

  /* Tighten gap between photo and story */
  .grid.grid--2{
    gap: 16px;
  }
}

/* ==========================================================
   COMMENTS PAGE (ONLY): CommentBox theme override
   - Keeps the rest of the site unchanged
   - Kills the default green button styles from CommentBox
   ========================================================== */
body.page-comments .commentbox{
  margin-top: 28px;
}

body.page-comments .commentbox textarea,
body.page-comments .commentbox input{
  border-radius: 10px !important;
  border: 1px solid rgba(15,23,32,0.20) !important;
  background: #fff !important;
  color: var(--ink) !important;
  font-family: var(--sans) !important;
}

/* Strong catch-all for CommentBox buttons/CTAs */
body.page-comments .commentbox button,
body.page-comments .commentbox [type="button"],
body.page-comments .commentbox [type="submit"],
body.page-comments .commentbox [role="button"],
body.page-comments .commentbox a[role="button"],
body.page-comments .commentbox [class*="btn"],
body.page-comments .commentbox [class*="Btn"],
body.page-comments .commentbox [class*="button"],
body.page-comments .commentbox [class*="Button"]{
  background: var(--pine) !important;
  color: #ffffff !important;
  border: 2px solid rgba(255,255,255,0.18) !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 0 rgba(0,0,0,0.28) !important;
  font-weight: 800 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease !important;
}

body.page-comments .commentbox button:hover,
body.page-comments .commentbox [role="button"]:hover,
body.page-comments .commentbox a[role="button"]:hover{
  filter: brightness(1.06) !important;
  transform: translateY(-1px) !important;
}

body.page-comments .commentbox button:active,
body.page-comments .commentbox [role="button"]:active,
body.page-comments .commentbox a[role="button"]:active{
  transform: translateY(0) !important;
  box-shadow: 0 2px 0 rgba(0,0,0,0.35) !important;
}

/* Links inside comments: keep on-brand */
body.page-comments .commentbox a{
  color: var(--rust) !important;
}

/* Focus states */
body.page-comments .commentbox textarea:focus,
body.page-comments .commentbox input:focus{
  outline: 3px solid rgba(230,180,88,0.85) !important;
  outline-offset: 3px !important;
}

/* ==========================================================
   COMMENTBOX — FORCE THEME (NUKE GREEN) — FINAL OVERRIDE
   ========================================================== */

/* Make sure these only apply on the comments page */
body.page-comments .commentbox *{
  accent-color: var(--pine) !important;
}

/* Most CommentBox buttons are either <button> or <a> styled like buttons */
body.page-comments .commentbox button,
body.page-comments .commentbox a,
body.page-comments .commentbox input[type="submit"],
body.page-comments .commentbox [role="button"]{
  background-color: var(--pine) !important;
  border-color: var(--pine) !important;
  color: #fff !important;
}

/* Catch class-based buttons that CommentBox generates */
body.page-comments .commentbox [class*="btn"],
body.page-comments .commentbox [class*="Btn"],
body.page-comments .commentbox [class*="button"],
body.page-comments .commentbox [class*="Button"]{
  background-color: var(--pine) !important;
  border-color: var(--pine) !important;
  color: #fff !important;
}

/* Kill any green SVG/icon fills in buttons */
body.page-comments .commentbox button svg,
body.page-comments .commentbox [role="button"] svg{
  fill: #fff !important;
  color: #fff !important;
}

/* Links inside comments (keep these rust instead of green/blue) */
body.page-comments .commentbox a:not([role="button"]){
  color: var(--rust) !important;
}
