/*
Theme Name: Stigma vs. Truth
Theme URI: https://example.com/stigma-vs-truth
Author: Sarina
Description: A bold mental-health advocacy theme inspired by the Stigma vs. Truth campaign.
Version: 1.0.0
Text Domain: stigma-truth
*/

:root {
  --purple: #9b2bb6;
  --purple-light: #b846ce;
  --purple-dark: #4c1f65;
  --ink: #06070a;
  --muted: #d7d2dc;
  --white: #fff;
  --max: 1400px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: #111; background: #fff; font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { width: min(var(--max), calc(100% - 64px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.precision-desktop { display: none; }

@media (min-width: 901px) {
  body { background: #000; }
  .site-header, .semantic-site, .site-footer { display: none !important; }
  .precision-desktop { position: relative; display: block; width: min(100%, 1536px); margin: 0 auto; line-height: 0; background: #000; }
  .precision-desktop > img { display: block; width: 100%; height: auto; margin: 0; }
  .precision-brand { position: absolute; z-index: 6; left: 3%; top: 0; width: 19.5%; height: 9.375%; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #000; }
  .precision-brand img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
  .precision-brand:focus-visible { outline: 3px solid #d959ec; outline-offset: -3px; }
  .precision-hotspot { position: absolute; z-index: 5; left: var(--left); top: var(--top); width: var(--width); height: var(--height); border-radius: 8px; }
  .precision-hotspot:focus-visible { outline: 3px solid #d959ec; outline-offset: 2px; background: rgba(177,49,199,.12); }
}

.site-header { background: #000; color: #fff; height: 96px; display: flex; align-items: center; position: relative; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: flex; align-items: center; width: 286px; min-width: 286px; height: 78px; overflow: hidden; }
.brand img { width: 286px; height: 78px; display: block; object-fit: contain; object-position: center; }
.primary-nav { display: flex; align-items: center; gap: clamp(24px, 3vw, 50px); font-size: 14px; font-weight: 700; text-transform: uppercase; }
.primary-nav a { padding: 38px 0 30px; border-bottom: 4px solid transparent; }
.primary-nav a:hover, .primary-nav a:focus, .primary-nav a.active { border-bottom-color: var(--purple); color: #fff; }
.header-cta { background: linear-gradient(90deg,#9132aa,#a736be); padding: 16px 33px; border-radius: 15px; font-size: 14px; font-weight: 800; white-space: nowrap; text-transform: uppercase; }
.menu-toggle { display: none; color: #fff; background: transparent; border: 1px solid #6e287f; border-radius: 8px; padding: 9px 12px; font-size: 24px; }

.hero { height: 416px; min-height: 416px; color: #fff; background-image: linear-gradient(90deg, rgba(2,3,6,.97) 0%, rgba(2,3,6,.76) 34%, rgba(5,3,10,.08) 61%, rgba(5,3,10,.35) 72%, rgba(5,3,10,.9) 100%), url('assets/images/hero.png'); background-size: cover; background-position: center 48%; display: flex; align-items: stretch; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 560px 1fr 310px; align-items: center; gap: 20px; width: min(1280px, calc(100% - 64px)); margin: auto; }
.hero-copy { padding: 38px 0 35px; position: relative; z-index: 2; }
.hero h1 { font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif; font-size: clamp(46px,4.25vw,64px); line-height: .98; margin: 0 0 12px; letter-spacing: .5px; text-transform: uppercase; font-weight: 400; white-space: nowrap; }
.hero h1 span { display: block; color: var(--purple-light); font-family: 'Marker Felt', 'Brush Script MT', cursive; font-size: .96em; font-style: italic; font-weight: 900; letter-spacing: 1px; margin-top: 10px; }
.purple-rule { width: 78px; height: 5px; background: var(--purple); margin: 15px 0 16px; }
.hero-lede { max-width: 495px; font-size: 20px; line-height: 1.45; margin: 0 0 30px; }
.button-row { display: flex; gap: 22px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-width: 182px; padding: 14px 24px; border: 2px solid var(--purple); border-radius: 14px; font-weight: 800; text-transform: uppercase; transition: .2s ease; }
.btn-primary { color: #fff; border-color: transparent; background: linear-gradient(90deg,#9a2cb5,#a637ba); }
.btn:hover, .btn:focus { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(165,52,187,.28); }
.founder { grid-column: 3; padding: 28px 0 24px 80px; align-self: center; position: relative; z-index: 2; }
.founder::before { content: ''; position: absolute; z-index: -1; width: 440px; height: 355px; left: -62px; top: -28px; background: linear-gradient(100deg,rgba(4,4,8,.95),rgba(9,9,16,.98)); clip-path: polygon(8% 7%,95% 0,89% 11%,100% 18%,91% 24%,98% 31%,88% 38%,98% 47%,90% 56%,100% 64%,89% 72%,95% 81%,83% 88%,92% 96%,8% 100%,15% 91%,2% 85%,11% 75%,0 66%,9% 57%,1% 48%,12% 39%,0 30%,12% 21%,3% 13%); }
.founder-label { color: var(--purple-light); font: italic 700 35px 'Brush Script MT', cursive; margin: 0; }
.founder h2 { font-size: 35px; margin: 2px 0 5px; text-transform: uppercase; }
.founder-title { font-weight: 800; line-height: 1.3; text-transform: uppercase; margin: 0 0 35px; }
.founder blockquote { margin: 0; font-size: 19px; line-height: 1.55; font-style: italic; }
.founder blockquote::before, .founder blockquote::after { color: var(--purple-light); font-size: 48px; line-height: 0; font-weight: 900; }
.founder blockquote::before { content: '“'; margin-right: 8px; }
.founder blockquote::after { content: '”'; margin-left: 5px; vertical-align: -.42em; }

.main-grid { display: grid; grid-template-columns: 23% 52% 25%; min-height: 310px; max-width: 1536px; margin: auto; background: linear-gradient(90deg,#f8f8fa,#fff 70%); }
.mission, .focus { padding: 30px 28px 22px; }
.focus { padding-left: 36px; }
.mission { padding-left: max(28px, calc((100vw - var(--max))/2 + 12px)); }
.section-title { font-family: 'Arial Narrow', Arial, Helvetica, sans-serif; font-stretch: condensed; font-size: 24px; margin: 0; text-transform: uppercase; font-weight: 900; }
.title-line { width: 42px; height: 4px; background: var(--purple); margin: 7px 0 13px; }
.mission p { font-size: 16px; line-height: 1.47; margin: 0 0 22px; max-width: 255px; font-weight: 600; }
.outline-btn { display: inline-flex; align-items: center; justify-content: center; color: #8e299f; border: 2px solid #9d35b2; border-radius: 13px; min-height: 42px; padding: 0 20px; font-weight: 800; text-transform: uppercase; }
.focus-items { display: grid; grid-template-columns: repeat(4,1fr); }
.focus-card { text-align: center; padding: 0 14px; border-right: 1px solid #d8d3dc; }
.focus-card:last-child { border-right: 0; }
.focus-icon { height: 72px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.focus-icon img { width: 78px; height: 74px; object-fit: cover; display: block; }
.focus-card h3 { font-size: 15px; min-height: 38px; margin: 8px 0 6px; text-transform: uppercase; }
.focus-card p { font-size: 13px; line-height: 1.45; margin: 0; }
.side-panel { color: #fff; background: #050608; padding: 22px 26px; }
.resources-panel { margin: 18px max(32px, calc((100vw - var(--max))/2 + 8px)) 17px 0; border-radius: 12px; align-self: stretch; }
.side-panel p { margin: 0 0 14px; line-height: 1.45; }
.resource-links { list-style: none; padding: 0; margin: 0 0 16px; }
.resource-links li { margin: 9px 0; }
.resource-links li::before { content: '›'; color: var(--purple-light); font-size: 28px; line-height: 0; font-weight: 900; margin-right: 15px; vertical-align: -2px; }
.resource-button { width: 100%; border-radius: 16px; padding: 9px 15px; }

.impact-row { color: #fff; background: linear-gradient(100deg,#2c153b,#653378 47%,#241331); display: grid; grid-template-columns: 75% 25%; }
.impact-items { display: grid; grid-template-columns: 32% 22% 24% 22%; padding-left: 0; }
.impact-item { height: 144px; min-height: 144px; padding: 23px 22px; display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; border-right: 1px solid rgba(255,255,255,.2); }
.impact-item:first-child { padding-left: max(74px, calc((100vw - var(--max))/2 + 6px)); }
.impact-icon { font-size: 50px !important; width: 58px !important; height: 58px !important; line-height: 1 !important; opacity: .76; text-align: center; }
.impact-item h3 { margin: 0 0 4px; font-size: 24px; text-transform: uppercase; }
.impact-item p { margin: 0; font-size: 14px; line-height: 1.55; }
.stay-connected { padding-top: 19px; padding-bottom: 18px; margin-right: 32px; }
.stay-connected p { font-size: 13px; margin-bottom: 10px; }
.socials { display: flex; gap: 18px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #65317e; font-size: 21px; font-weight: 900; }
.socials a:hover, .socials a:focus { background: var(--purple); }

.closing { min-height: 58px; color: #fff; background: radial-gradient(circle at 70% 0,#171327,#020205 56%); display: flex; align-items: center; justify-content: center; gap: 18px; padding: 10px 25px; font-size: 22px; text-align: center; }
.closing .quote-mark { color: var(--purple-light); font-size: 48px; font-weight: 900; line-height: .5; }
.closing em { color: var(--purple-light); font: italic 700 29px 'Brush Script MT', cursive; }
.closing .heart { color: var(--purple-light); font-size: 42px; }
.site-footer { padding: 20px; color: #aaa; background: #020205; text-align: center; font-size: 13px; }

@media (max-width: 1150px) {
  .primary-nav { gap: 19px; font-size: 12px; }
  .header-cta { padding-inline: 20px; }
  .hero { height: auto; min-height: 560px; }
  .hero-inner { grid-template-columns: 1.2fr .7fr; width: min(100% - 64px, var(--max)); }
  .founder { grid-column: 2; }
  .main-grid { grid-template-columns: 1fr 3fr; }
  .resources-panel { grid-column: 1 / -1; margin: 0; border-radius: 0; display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 20px; align-items: center; }
  .resources-panel .section-heading { align-self: start; }
  .resources-panel .resource-links { columns: 2; margin: 0; }
  .impact-row { grid-template-columns: 1fr; }
  .stay-connected { margin: 0; display: flex; justify-content: center; gap: 30px; align-items: center; }
}

@media (max-width: 850px) {
  .wrap { width: min(100% - 36px, var(--max)); }
  .site-header { min-height: 82px; }
  .brand { width: 245px; min-width: 245px; height: 72px; }
  .brand img { width: 245px; height: 72px; }
  .menu-toggle { display: block; }
  .primary-nav { display: none; position: absolute; inset: 82px 0 auto; padding: 20px; background: #050608; flex-direction: column; gap: 4px; }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 12px; border-bottom-width: 2px; }
  .header-cta { display: none; }
  .hero { min-height: 650px; background-position: 60% center; }
  .hero-inner { grid-template-columns: 1fr; align-content: end; width: min(100% - 44px, var(--max)); }
  .hero-copy { padding: 48px 0 15px; }
  .hero h1 { font-size: clamp(40px,10vw,58px); }
  .founder { grid-column: 1; padding: 0 0 36px; max-width: 430px; }
  .founder-title { margin-bottom: 15px; }
  .main-grid { grid-template-columns: 1fr; }
  .mission { padding-left: 28px; }
  .mission p { max-width: 600px; }
  .resources-panel { grid-column: auto; display: block; padding: 28px; }
  .impact-items { grid-template-columns: repeat(2,1fr); padding-left: 0; }
  .impact-item:first-child { padding-left: 22px; }
}

@media (max-width: 580px) {
  .brand { min-width: 0; }
  .brand { width: 205px; height: 72px; }
  .brand img { width: 205px; height: 72px; }
  .hero { min-height: 730px; }
  .hero-inner { width: calc(100% - 34px); }
  .hero h1 { font-size: 40px; }
  .hero-lede { font-size: 17px; }
  .button-row { flex-direction: column; gap: 12px; align-items: stretch; }
  .btn { width: 100%; }
  .founder h2 { font-size: 30px; }
  .founder blockquote { font-size: 16px; }
  .focus-items { grid-template-columns: 1fr 1fr; gap: 25px 0; }
  .focus-card:nth-child(2) { border-right: 0; }
  .impact-items { grid-template-columns: 1fr; }
  .impact-item { min-height: 105px; }
  .stay-connected { display: block; }
  .closing { font-size: 17px; }
  .closing em { font-size: 23px; }
}
