/* =========================================================
   Global Reset
   ========================================================= */
/* Remove default margin */
* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth !important;
  overflow-x: hidden;
}

html,
body {
  height: 100%;
  width: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: 0;
}

body.is-loading {
  padding-top: 0 !important;
}

/* Anchor reset */
a {
  color: inherit;
  text-decoration: none;
}

/* Remove list styles */
ul,
ol {
  list-style: none;
  padding: 0;
}

/* Improve text wrapping */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

hr {
  width: 90%;
  padding: 0;
  margin: 0 auto;
  background-color: #bbbbbb;
}

/* ---------- Hide Home link on home page ---------- */
/* .vw-subnav #vw-home-link {
  display: none;
}*/
:root{
  --hero-image: url("../../images/victim-witness-hero.png"); /* replace with your actual path */
  --navy: #0f2a3a;
  --gold: #eec159;
  --sand: #f4efe8;
  --text: #14212b;
}

/* -------------------------------- 
    HERO / BANNER 
------------------------------------ */
/* Set your hero image here (generated banner) */
.hero{
  position: relative;
  width: 100vw;
  min-height: clamp(520px, 62vh, 720px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--navy);
  margin-top: 0;
  padding-top: 2rem;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom));
}

.hero-media{
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.02); /* subtle crop safety */
}

.hero-overlay{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15,42,58,0.88) 0%, rgba(15,42,58,0.55) 45%, rgba(15,42,58,0.20) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 100%);
}

.hero-content{
  position: relative;
  max-width: clamp(960px, 80vw, 1200px);
  padding: clamp(1.25rem, 3.5vw, 3rem);
  color: #fff;
}

.hero-eyebrow{
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

.hero-title{
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.08;
  font-weight: 750;
  text-wrap: balance;
  color: #fff;
}

.hero-subtitle{
  margin: 0 0 1.25rem;
  max-width: 52ch;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.45;
  color: rgba(255,255,255,0.92);
}

.hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.05rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 650;
  line-height: 1;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, border-color 120ms ease;
}

.btn:focus{
  outline: 3px solid rgba(201,162,74,0.55);
  outline-offset: 3px;
}

.btn-primary{
  background: var(--gold);
  color: #1b1b1b;
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

.btn-primary:hover{
  background-color: #d6ae50;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
}

.btn-secondary{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
  backdrop-filter: blur(6px);
}

.btn-secondary:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.45);
}

/* Quick help bar */
.hero-quickbar{
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(15,42,58,0.55);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
  width: fit-content;
  max-width: 100%;
}

.hero-quickbar .sep{
  color: rgba(255,255,255,0.55);
}

.hero-quickbar span strong {
  color: #c4c4c4;
}

.hero-quickbar a {
  color: #fff;
  font-weight: 700;
}

.hero-link:hover{
  text-decoration-thickness: 2px;
}

/* ---------- QUICKBAR MORE ---------- */
.quickbar-more {
  margin-left: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 1rem;
  padding: .5rem;
}

.quickbar-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.7rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.quickbar-more:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ---------- RESPONSIVE MEDIA QUERIES ---------- */

/* Ultra-small phones */
@media (max-width: 420px){
  .hero{
    min-height: 520px;
    padding-bottom: 4rem;
  }

  .hero-title{
    font-size: 1.85rem;
    line-height: 1.12;
  }

  .hero-subtitle{
    font-size: 1rem;
  }

  .hero-actions{
    gap: 0.6rem;
  }

  .hero-actions .btn{
    width: 100%;
    min-width: 100%;
    justify-content: center;
  }

  .hero-quickbar{
    font-size: 0.85rem;
  }
}

/* Small phones */
@media (max-width: 520px){
  .hero-actions .btn{
    min-width: 100%;
  }
}

/* Phones */
@media (max-width: 600px){
  .hero-quickbar{
    gap: 0.45rem;
    padding: 0.55rem 0.65rem;
    font-size: 0.85rem;
  }

  .hero-quickbar .sep{
    display: none;
  }
}

/* Mobile layout tweaks */
@media (max-width: 720px){
  .hero-overlay{
    background:
      linear-gradient(180deg,
        rgba(15,42,58,0.86) 0%,
        rgba(15,42,58,0.60) 55%,
        rgba(15,42,58,0.38) 100%);
  }

  .hero-subtitle{
    max-width: 60ch;
  }
}

/* Tablets */
@media (min-width: 721px) and (max-width: 1024px){
  .hero{
    min-height: clamp(560px, 65vh, 680px);
  }

  .hero-title{
    font-size: clamp(2.3rem, 3.6vw, 2.8rem);
  }

  .hero-subtitle{
    max-width: 48ch;
  }
}

/* Large desktops / ultrawide */
@media (min-width: 1400px){
  .hero{
    min-height: 72vh;
  }

  .hero-overlay{
    background:
      linear-gradient(90deg,
        rgba(15,42,58,0.92) 0%,
        rgba(15,42,58,0.55) 40%,
        rgba(15,42,58,0.15) 100%);
  }

  .hero-subtitle{
    font-size: 1.25rem;
  }
}

/* High contrast preference */
@media (prefers-contrast: more){
  .hero-overlay{
    background:
      linear-gradient(180deg,
        rgba(15,42,58,0.92),
        rgba(15,42,58,0.75));
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .btn{
    transition: none;
  }

  .btn-primary:hover,
  .btn-secondary:hover{
    transform: none;
    box-shadow: none;
  }
}


/* -------------------------
  QUICK ACTION BUTTONS 
----------------------------- */

.quick-actions {
  position: relative;
  z-index: 10; /* sit above hero */
  margin-top: -4.5rem; /* pulls cards upward over hero */
  margin-bottom: 2rem;
  padding-top: 0; /* remove extra padding at top */
}

.quick-actions-grid {
  width: 75%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
}

/* Card */
.quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  height: 10rem;
  padding: 1.25rem 1rem;
  border-radius: 0.85rem;
  background-color: #ffffff;
  border: 1px solid #e3ded6;
  text-align: center;
  text-decoration: none;
  color: #14212b;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

/* Icon */
.quick-card-icon {
  font-size: 2.5rem;
  color: #0f2a3a; /* county navy */
}

/* Label */
.quick-card-label {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Hover / Focus */
.quick-card:hover,
.quick-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.09);
  background-color: #f1efeb;
  border: 1.5px solid #c9a24a; /* gold accent */
}

.quick-card:focus-visible {
  outline: 3px solid rgba(201, 162, 74, 0.45);
  outline-offset: 3px;
}

/* Mobile spacing */
@media (max-width: 480px) {
  .quick-card {
    padding: 1.1rem 0.9rem;
  }

  .quick-card-icon {
    font-size: 1.85rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .quick-card {
    transition: none;
  }
}

.welcome {
  width: 75%;
  margin: auto;
}

/* ----------------------- 
  WELCOME SECTION 
-------------------------- */

.welcome-section {
  background: #ffffff;
  padding: clamp(2.5rem, 6vw, 4rem) 1rem;
}

.welcome-container {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.welcome-text h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--navy);
  margin-bottom: 1rem;
}

.welcome-text p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 1rem;
  max-width: 65ch;
}

/* Image */
.welcome-image img {
  width: 100%;
  height: auto;
  border-radius: 0.85rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* Mobile layout */
@media (max-width: 800px) {
  .welcome-container {
    grid-template-columns: 1fr;
  }

  .welcome-image {
    order: -1; /* image first on mobile */
  }
}

/* ---------------------
   CONTACT SECTION
----------------------- */
.contact-section {
  background: #f8f7f4;
  padding: clamp(3rem, 7vw, 5rem) 1rem;
  border-top: 1px solid #e3ded6;
}

.contact-container {
  width: 90%;
  margin: 0 auto;
}

/* Intro header */
.contact-header {
  max-width: 60ch;
  margin-bottom: 3rem;
}

.contact-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.contact-header p {
  font-size: 1.1rem;
  color: #333;
}

/* ----GRID--------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.contact-card-group {
  display: flex;
  flex-direction: column;
}


/* -----COLUMN HEADER----- */
.contact-card-header {
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  position: relative;
}

/* Accent line */
.contact-card-header::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--gold);
  margin-top: 0.1rem;
  border-radius: 2px;
}

/* -----CARD-------- */
.contact-card {
  background: #ffffff;
  border-radius: 0.85rem;
  padding: 1.5rem;
  border: 1px solid #e3ded6;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  flex-grow: 1;
}

.contact-card h3 {
  font-size: 1.15rem;
  margin: 1.25rem 0 0.75rem;
  color: var(--navy);
}

.contact-card h3:first-child {
  margin-top: 0;
}

/* ------LIST ALIGNMENT----- */

.contact-card ul {
  display: grid;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.contact-card ul li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.25rem 0;
  border-bottom: 0.5px solid #bbbbbb;
}

.contact-card ul li:first-child {
  border-top: 0.5px solid #bbbbbb;
}

.contact-card ul li a {
  margin-left: auto;
  text-align: right;
  font-weight: 500;
  color: var(--navy);
  white-space: nowrap;
  text-decoration: none;
}

.contact-card ul li a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* ---- CTA -------- */

.contact-cta {
  margin-top: 2rem;
  text-align: left;
}

/* --- Mobile --- */

@media (max-width: 700px) {
  .contact-cards {
    gap: 2rem;
  }
}

/* ---------------------
   CONTACT – MOBILE
---------------------- */

@media (max-width: 700px) {

  /* Section spacing */
  .contact-section {
    padding: 3rem 1rem;
  }

  .contact-container {
    width: 100%;
  }

  /* Header */
  .contact-header {
    margin-bottom: 2rem;
  }

  .contact-header h2 {
    font-size: 1.6rem;
  }

  .contact-header p {
    font-size: 1rem;
    line-height: 1.5;
  }

  /* Grid → single column */
  .contact-cards {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  /* Column headers */
  .contact-card-header {
    font-size: 1.35rem;
  }

  .contact-card-header::after {
    width: 2.5rem;
  }

  /* Cards */
  .contact-card {
    padding: 1.25rem;
  }

  .contact-card h3 {
    font-size: 1.05rem;
  }

  /* List items */
  .contact-card ul {
    font-size: 0.9rem;
  }

  .contact-card ul li {
    gap: 0.5rem;
    padding: 0.4rem 0;
  }

  /* Stack label + link for better tap targets */
  .contact-card ul li {
    flex-wrap: wrap;
  }

  .contact-card ul li a {
    margin-left: 0;
    width: 100%;
    text-align: left;
    padding-top: 0.15rem;
  }

  /* CTA */
  .contact-cta {
    margin-top: 1.5rem;
    text-align: left;
  }

  #crisis-lines {
  scroll-margin-top: 100px;
}
}

#crisis-lines {
  scroll-margin-top: 15rem;
}

/* ---------------------
   CONTACT ICON ACTIONS
   (Call / Text)
----------------------- */

/* Group icons + number visually */
.contact-card ul li {
  align-items: center; /* override baseline for icon alignment */
}

/* Icon links (call / text) */
.contact-card ul li a {
  margin-left: 0.35rem; /* replaces auto spacing for icon layout */
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
}

/* Push icons + number to the right */
.contact-card ul li .phone-number,
.contact-card ul li a:first-of-type {
  margin-left: auto;
}

/* Icon sizing */
.contact-card ul li i {
  font-size: 1rem;
  vertical-align: middle;
}

/* Telephone icon */
.contact-card ul li .bi-telephone {
  color: var(--navy);
}

/* Chat (text) icon */
.contact-card ul li .bi-chat {
  color: var(--gold);
}

/* Hover behavior */
.contact-card ul li a:hover i {
  transform: translateY(-3px);
}

.contact-card ul li a:hover {
  text-decoration: none; /* prevent underline on icons */
}

/* Phone number styling */
.contact-card ul li .phone-number {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  margin-left: 0.35rem;
}

/* Touch-friendly spacing on mobile */
@media (max-width: 700px) {
  .contact-card ul li a {
    padding: 0.25rem;
  }
}

/* -------------------------------------
   INFO SECTION
-------------------------------------- */
.info-sections {
  background: #f8f7f4; /* lighter + calmer than contact section */
  padding: clamp(3.5rem, 7vw, 5rem) 1rem;
}

.info-container {
  width: 90%;
  margin: 0 auto;
}

/* Header */
.info-header {
  max-width: 60ch;
  margin-bottom: 3.25rem;
}

.info-header h2 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.info-header p {
  font-size: 1.05rem;
  color: #444;
}

/* Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

/* Card (lighter + flatter) */
.info-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.5rem 1.5rem 1.6rem;
  border-left: 4px solid var(--gold); /* visual distinction */
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

/* Card heading */
.info-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--navy);
}

/* Lists */
.info-card ul {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.info-card li {
  font-size: 0.95rem;
  line-height: 1.45;
}

/* Links */
.info-card a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(15,42,58,0.35);
}

.info-card a:hover {
  border-bottom-width: 2px;
}

/* Subgroups (brochures) */
.info-subgroup {
  margin-top: 1.1rem;
  padding-left: 0.5rem;
}

.info-subgroup strong {
  display: block;
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Mobile */
@media (max-width: 600px) {
  .info-header {
    margin-bottom: 2.25rem;
  }

  .info-card {
    padding: 1.35rem;
  }
}