/* =============================================================
   GLOBAL.CSS — Variables · Reset · Typography · Utilities
   Hillside Hope | hillsidehope.org
   ============================================================= */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  /* Buckner-aligned palette */
  --navy-primary:  #03172F;   /* darkest navy — topbar, footer, deep sections */
  --blue-mid:      #0048B4;   /* main nav, primary headings, links */
  --blue-bright:   #126EF8;   /* vibrant accent — hover, highlights, eyebrows */
  --gray-body:     #5A5E63;   /* body text */
  --blue-muted:    #96AACD;   /* secondary text on dark backgrounds */
  --gray-border:   #E1E1E1;   /* borders, dividers */
  --cloud-white:   #F6F8FB;   /* light section backgrounds */
  --bg-white:      #FFFFFF;
  --gold-cta:      #F5AB1C;   /* primary CTA buttons */
  --gold-cta-dark: #D4920F;   /* CTA hover */

  /* Semantic aliases — keeps existing CSS references working */
  --blue-primary:  var(--blue-mid);        /* #0048B4 */
  --blue-deep:     var(--navy-primary);    /* #03172F */
  --blue-sky:      var(--blue-bright);     /* #126EF8 */
  --blue-pale:     #D6E4F7;
  --green-hope:    #70C94A;                /* kept for subtle accents */
  --green-forest:  #3D8F1F;
  --green-mint:    #E8F8D8;
  --charcoal:      var(--navy-primary);    /* #03172F — headings on white */
  --slate:         var(--gray-body);       /* #5A5E63 */
  --navy:          var(--blue-mid);        /* #0048B4 */
  --navy-dark:     var(--navy-primary);    /* #03172F */
  --navy-deeper:   var(--navy-primary);    /* #03172F */
  --gold:          var(--gold-cta);        /* #F5AB1C */
  --gold-dark:     var(--gold-cta-dark);   /* #D4920F */
  --green:         var(--blue-bright);     /* accent → bright blue */
  --bg-light:      var(--cloud-white);
  --text-dark:     var(--navy-primary);
  --text-body:     var(--gray-body);
  --text-muted:    var(--gray-body);
  --border:        var(--gray-border);     /* #E1E1E1 */

  /* Spacing */
  --pad-page:      80px;
  --pad-section:   80px 80px;

  /* Radius */
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-pill:   20px;

  /* Shadows */
  --shadow-card:   0 1px 4px rgba(0,0,0,0.06), 0 2px 12px rgba(0,0,0,0.04);
  --shadow-float:  0 8px 32px rgba(0,0,0,0.10);

  /* Transitions */
  --transition:    0.2s ease;

  /* Max width */
  --max-width:     1100px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--gray-body);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  color: var(--navy-primary);
  line-height: 1.2;
}

h1 { font-size: 58px; font-weight: 800; line-height: 1.1; }
h2 { font-size: 19px; font-weight: 700; line-height: 1.3; }
h3 { font-size: 30px; font-weight: 800; line-height: 1.2; }
h4 { font-size: 13px; font-weight: 700; line-height: 1.4; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* Script accent — Dancing Script cursive */
.script {
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  color: var(--blue-bright);
  display: inline;
}

/* ── Eyebrow Labels ─────────────────────────────────────────── */
.eyebrow {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--gray-body);
}

.eyebrow--green  { color: var(--blue-bright); }
.eyebrow--muted  { color: var(--gray-body); }
.eyebrow--white  { color: var(--blue-muted); }
.eyebrow--gold   { color: var(--gold-cta); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
  border-radius: var(--radius-sm);
}

/* Gold pill — primary CTA (Donate Now, Give Now, Sponsor) */
.btn-gold {
  background: var(--gold-cta);
  color: #3B1F00;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}
.btn-gold:hover { background: var(--gold-cta-dark); color: #fff; }

/* Blue outline pill — secondary */
.btn-navy-outline {
  background: transparent;
  color: var(--blue-mid);
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--blue-mid);
}
.btn-navy-outline:hover {
  background: var(--blue-mid);
  color: #fff;
}

/* White outline pill — for dark backgrounds */
.btn-white-outline {
  background: transparent;
  color: #fff;
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-white-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

/* Blue solid — inline CTAs */
.btn-navy-solid {
  background: var(--blue-mid);
  color: #fff;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
}
.btn-navy-solid:hover { background: var(--navy-primary); }

/* White solid — on dark backgrounds */
.btn-white-solid {
  background: #fff;
  color: var(--blue-mid);
  padding: 11px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}
.btn-white-solid:hover { background: rgba(255,255,255,0.92); }

/* Circle arrow — card action */
.btn-arrow {
  width: 48px;
  height: 48px;
  background: var(--blue-mid);
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition);
}
.btn-arrow:hover {
  background: var(--navy-primary);
  transform: scale(1.08);
}
.btn-arrow svg {
  width: 20px;
  height: 20px;
}

/* ── Image Placeholders ─────────────────────────────────────── */
.img-placeholder {
  background: #D6E4F7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
}

/* ── Photo blending ─────────────────────────────────────────── */
.site-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.photo-wrap {
  position: relative;
  overflow: hidden;
}

.photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}

.photo-wrap:hover img {
  transform: scale(1.03);
}

.photo-wrap--tint::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 72, 180, 0.10);
  pointer-events: none;
}

/* ── Utilities ──────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--pad-page);
}

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

.text-center { text-align: center; }
.text-white  { color: #fff; }

/* ── Section Padding ────────────────────────────────────────── */
.section-pad    { padding: 80px var(--pad-page); }
.section-pad--sm { padding: 52px var(--pad-page); }

/* ── Accent bar ─────────────────────────────────────────────── */
.gold-bar {
  width: 32px;
  height: 3px;
  background: var(--gold-cta);
  margin: 10px auto;
}

/* ── Interior Page Hero ─────────────────────────────────────── */
.page-hero {
  background: var(--blue-mid);
  padding: 72px var(--pad-page) 64px;
  position: relative;
  overflow: hidden;
}

.page-hero__watermark {
  position: absolute;
  right: var(--pad-page);
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(60px, 10vw, 130px);
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.06);
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  line-height: 1;
}

.page-hero__eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-cta);
  display: block;
  margin-bottom: 14px;
}

.page-hero h1 {
  color: #fff;
  font-size: 58px;
  font-weight: 800;
  line-height: 1.1;
  max-width: 680px;
}

.page-hero h1 .script {
  font-style: italic;
  font-size: 58px;
  color: rgba(255,255,255,0.9);
  display: block;
}

.page-hero__sub {
  font-size: 16px;
  color: var(--blue-muted);
  margin-top: 16px;
  max-width: 560px;
  line-height: 1.7;
}

/* ── CTA Strip ──────────────────────────────────────────────── */
.cta-strip {
  background: var(--blue-mid);
  padding: 72px var(--pad-page);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-strip__text h2 {
  color: #fff;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.2;
}

.cta-strip__text h2 .script {
  font-style: italic;
  font-size: 36px;
}

.cta-strip__text p {
  color: var(--blue-muted);
  font-size: 15px;
  max-width: 500px;
}

.cta-strip__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --pad-page: 48px; }
  h1 { font-size: 44px; }
  h3 { font-size: 26px; }
}

@media (max-width: 768px) {
  :root { --pad-page: 24px; }
  h1 { font-size: 34px; }
  h3 { font-size: 22px; }
  .section-pad     { padding: 56px 24px; }
  .section-pad--sm { padding: 40px 24px; }
  .page-hero       { padding: 52px 24px 48px; }
  .page-hero h1    { font-size: 34px; }
  .page-hero h1 .script { font-size: 34px; }
  .page-hero__watermark { display: none; }
  .cta-strip { flex-direction: column; text-align: center; padding: 52px 24px; }
  .cta-strip__text p { margin: 0 auto; }
}

@media (max-width: 375px) {
  h1 { font-size: 28px; }
  h3 { font-size: 20px; }
}
