/* =========================================================
   Parent & Family Drug Support — brand styles
   Palette drawn from the printed booklet:
   teal #009b8b · deep teal #00806f · forest #017a3d
   sunflower #f9b233 · coral #e8593b · paper #f4f0e6 · ink #12333f
   ========================================================= */

:root {
  --teal: #009b8b;
  --teal-deep: #00806f;
  --teal-dark: #0a5c52;
  --forest: #017a3d;
  --sun: #f9b233;
  --sun-soft: #fdeccc;
  --coral: #e8593b;
  --coral-dark: #cf4426;
  --paper: #f4f0e6;
  --card: #ffffff;
  --ink: #12333f;
  --navy: #163a5f;
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --shadow: 0 10px 30px rgba(10, 92, 82, 0.10);
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: "Nunito Sans", system-ui, -apple-system, sans-serif;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .btn { font-family: "Poppins", system-ui, sans-serif; }

a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--teal-dark); }

::selection { background: var(--sun); color: var(--ink); }

/* ---------- Quick exit (Navbar button) ---------- */
.btn-quick-exit {
  background: var(--coral);
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  padding: 0;
  box-shadow: 0 3px 10px rgba(232, 89, 59, .35);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn-quick-exit:hover, .btn-quick-exit:focus-visible {
  background: var(--coral-dark);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 5px 14px rgba(207, 68, 38, .45);
}

/* ---------- Navbar ---------- */
.pfds-navbar {
  background: var(--teal);
  padding: .6rem 0;
  box-shadow: 0 2px 12px rgba(10, 92, 82, .25);
}
.pfds-navbar .navbar-brand { color: #fff; }
.brand-text { font-size: .82rem; line-height: 1.15; color: #fff; }
.brand-text strong { font-size: .95rem; }
.pfds-navbar .nav-link {
  color: rgba(255, 255, 255, .92);
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: .92rem;
  border-radius: .6rem;
  padding: .45rem .8rem;
}
.pfds-navbar .nav-link:hover, .pfds-navbar .nav-link:focus-visible { color: #fff; background: rgba(255, 255, 255, .14); }
.pfds-navbar .navbar-toggler { border-color: rgba(255, 255, 255, .5); }
.pfds-navbar .navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.95)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

.btn-call {
  background: var(--sun);
  color: var(--ink);
  font-weight: 700;
  border-radius: 999px;
  padding: .45rem 1.1rem;
  border: 0;
}
.btn-call:hover, .btn-call:focus-visible { background: #ffc35a; color: var(--ink); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: #fff;
  padding: 4.5rem 0 5.5rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .08) 0 220px, transparent 221px),
    radial-gradient(circle at 8% 90%, rgba(249, 178, 51, .18) 0 160px, transparent 161px);
  pointer-events: none;
}
.hero-title {
  font-weight: 800;
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 1rem;
}
.hero-sub { font-size: clamp(1.05rem, 2.4vw, 1.35rem); max-width: 34ch; opacity: .95; }

.btn-hero-primary {
  background: var(--sun);
  color: var(--ink);
  font-weight: 700;
  border-radius: 999px;
  border: 0;
  padding: .7rem 1.5rem;
}
.btn-hero-primary:hover, .btn-hero-primary:focus-visible { background: #ffc35a; color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.btn-hero-outline {
  border: 2px solid rgba(255, 255, 255, .8);
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  padding: .7rem 1.5rem;
}
.btn-hero-outline:hover, .btn-hero-outline:focus-visible { background: rgba(255, 255, 255, .14); color: #fff; border-color: #fff; }
.btn-hero-primary, .btn-hero-outline, .btn-call, .quick-exit, .call-fab { transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }

.speech-card {
  position: relative;
  background: #fdfaf2;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.7rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
}
.speech-card::after {
  content: "";
  position: absolute;
  left: 2.2rem;
  bottom: -16px;
  width: 0; height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 18px solid #fdfaf2;
}
.speech-card h2 { color: var(--teal-dark); }
.speech-list li { display: flex; gap: .6rem; align-items: baseline; margin-bottom: .5rem; }
.speech-list li:last-child { margin-bottom: 0; }
.speech-list i { color: var(--teal); flex: 0 0 auto; }
.speech-list a { color: var(--teal-dark); }

.hero-bands { position: absolute; left: 0; right: 0; bottom: 0; display: flex; height: 18px; }
.band { flex: 1; }
.band-yellow { background: var(--sun); flex: 1.2; }
.band-teal { background: #3fb8a9; }
.band-green { background: var(--forest); }

/* ---------- Sections ---------- */
.section { padding: 4.25rem 0; }
.section-alt { background: #ece7d9; }
.section-title {
  font-weight: 700;
  color: var(--teal);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  margin-bottom: 1.1rem;
  text-wrap: balance;
}
.section-lead { max-width: 68ch; margin-inline: auto; }
.text-teal { color: var(--teal); }
.text-yellow { color: #d9931a; }
.text-coral { color: var(--coral); }

/* ---------- Callouts (speech-bubble style from the booklet) ---------- */
.callout {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  text-align: left;
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  background: #fdfaf2;
  box-shadow: var(--shadow);
}
.callout-icon { font-size: 1.4rem; margin-top: .1rem; }
.callout-teal { border-left: 6px solid var(--teal); }
.callout-teal .callout-icon { color: var(--teal); }
.callout-coral { border-left: 6px solid var(--coral); }
.callout-coral .callout-icon { color: var(--coral); }

/* ---------- Feelings ---------- */
.feelings-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
}
.feelings-card h3 { color: var(--navy); }
.feelings-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; }
.feelings-grid span {
  background: var(--teal);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: .92rem;
  padding: .55rem 1.05rem;
  border-radius: 999px;
  border: 3px solid var(--sun);
}

/* ---------- Tip cards ---------- */
.tip-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.3rem;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.tip-card:hover { transform: translateY(-4px); }
.tip-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 16px;
  font-size: 1.5rem;
  margin-bottom: .8rem;
}
.bg-tint-teal { background: #d7efeb; color: var(--teal-dark); }
.bg-tint-yellow { background: var(--sun-soft); color: #b06e00; }
.bg-tint-green { background: #d9ecd9; color: var(--forest); }

/* ---------- Panels ---------- */
.panel { border-radius: var(--radius-md); padding: 1.5rem 1.5rem; }
.panel-plain { background: var(--card); box-shadow: var(--shadow); }
.panel-teal { background: #d7efeb; }
.panel-teal h3 { color: var(--teal-dark); }
.panel-yellow { background: var(--sun-soft); }
.panel-yellow h3 { color: #8a5600; }
.panel-emergency { background: var(--teal-dark); color: #fff; }
.panel-emergency a { color: var(--sun); font-weight: 700; }

/* ---------- Lists ---------- */
.tick-list { list-style: none; padding-left: 0; }
.tick-list li { position: relative; padding-left: 1.6rem; margin-bottom: .45rem; }
.tick-list li::before {
  content: "";
  position: absolute; left: 0; top: .48em;
  width: .62rem; height: .62rem;
  border-radius: 50%;
  background: var(--sun);
}
.tick-list.light li::before { background: var(--sun); }

/* ---------- Accordion ---------- */
.pfds-accordion .accordion-item {
  border: 0;
  border-radius: var(--radius-md) !important;
  margin-bottom: .8rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--card);
}
.pfds-accordion .accordion-button {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--card);
  padding: 1rem 1.2rem;
  gap: .75rem;
}
.pfds-accordion .accordion-button:not(.collapsed) { color: var(--teal-dark); background: #f2faf8; box-shadow: none; }
.pfds-accordion .accordion-button:focus { box-shadow: 0 0 0 3px rgba(0, 155, 139, .35); }
.acc-badge {
  display: inline-grid; place-items: center;
  width: 1.7rem; height: 1.7rem;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  font-size: .9rem;
  font-weight: 700;
  flex: 0 0 auto;
}
.acc-icon { font-size: 1.15rem; }
.accent-teal .acc-icon { color: var(--teal); }
.accent-yellow .acc-icon { color: #d9931a; }
.accent-green .acc-icon { color: var(--forest); }
.accent-coral .acc-icon { color: var(--coral); }
.accent-teal { border-left: 6px solid var(--teal) !important; }
.accent-yellow { border-left: 6px solid var(--sun) !important; }
.accent-green { border-left: 6px solid var(--forest) !important; }
.accent-coral { border-left: 6px solid var(--coral) !important; }

.chip-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  background: var(--sun-soft);
  color: var(--ink);
  border-radius: 999px;
  padding: .3rem .85rem;
  font-size: .88rem;
  font-weight: 600;
}

/* ---------- Types of drug use ---------- */
.use-list { list-style: none; counter-reset: use; padding-left: 0; }
.use-list li {
  counter-increment: use;
  position: relative;
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 1rem 1.2rem 1rem 3.4rem;
  margin-bottom: .75rem;
}
.use-list li::before {
  content: counter(use);
  position: absolute; left: 1rem; top: 1rem;
  width: 1.7rem; height: 1.7rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sun);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: .9rem;
}

/* ---------- Wellbeing ---------- */
.well-card {
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.1rem;
  text-align: center;
  height: 100%;
  transition: transform .2s ease;
}
.well-card:hover { transform: translateY(-4px); }
.well-icon {
  width: 58px; height: 58px;
  margin: 0 auto .8rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 1.5rem;
  border: 3px solid var(--sun);
}
.well-card h3 { color: var(--teal-dark); }

/* ---------- Stages of change ---------- */
.stage-flow { list-style: none; padding-left: 0; position: relative; margin: 0; }
.stage-flow li {
  position: relative;
  padding: .9rem 1.1rem .9rem 3.1rem;
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: var(--shadow);
  margin-bottom: .7rem;
}
.stage-flow li::before {
  content: "";
  position: absolute; left: 1.05rem; top: 1.1rem;
  width: 1.05rem; height: 1.05rem;
  border-radius: 50%;
}
.st-1::before { background: #7ba7d9; } .st-2::before { background: #2f6db3; }
.st-3::before { background: #0e8c74; } .st-4::before { background: #57a546; }
.st-5::before { background: #b3cf3a; } .st-6::before { background: var(--sun); }
.stage-name { display: block; font-family: "Poppins", sans-serif; font-weight: 700; color: var(--ink); }
.stage-desc { display: block; font-size: .93rem; color: #43555d; }

/* ---------- Overdose (emergency) ---------- */
.section-emergency { background: linear-gradient(160deg, var(--coral) 0%, var(--coral-dark) 100%); color: #fff; }
.section-emergency .section-title { color: #fff; }
.od-steps { list-style: none; padding-left: 0; margin-bottom: 1.5rem; }
.od-steps li {
  display: flex; gap: 1rem; align-items: flex-start;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  margin-bottom: .8rem;
}
.od-num {
  flex: 0 0 auto;
  width: 2.2rem; height: 2.2rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
}
.naloxone-note {
  background: #fdfaf2;
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .22);
}
.naloxone-note a { color: var(--coral-dark); }

/* ---------- Contacts ---------- */
.contact-card {
  display: flex; gap: 1rem; align-items: center;
  background: var(--card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 1rem 1.2rem;
  height: 100%;
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.contact-card:hover, .contact-card:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(10, 92, 82, .18); color: var(--ink); }
.contact-card i { font-size: 1.45rem; color: var(--teal); flex: 0 0 auto; }
.contact-card strong { display: block; font-family: "Poppins", sans-serif; font-size: .98rem; line-height: 1.3; }
.contact-card span { display: block; font-size: .9rem; color: #43555d; }
.contact-card.featured { background: var(--teal); color: #fff; }
.contact-card.featured i { color: var(--sun); }
.contact-card.featured span { color: rgba(255, 255, 255, .9); }
.contact-card.featured:hover { color: #fff; }

.web-links a {
  display: flex; gap: .5rem; align-items: center;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  padding: .3rem 0;
}
.web-links a:hover { color: var(--teal-dark); text-decoration: underline; }
.web-links i { color: var(--teal); }

/* ---------- Footer ---------- */
.footer { background: var(--teal-dark); color: rgba(255, 255, 255, .92); padding: 3rem 0 1.5rem; }
.footer a { color: var(--sun); }
.footer-contacts li { display: flex; gap: .6rem; align-items: baseline; margin-bottom: .4rem; }
.footer-contacts i { color: var(--sun); }
.footer-note {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.3rem;
  font-size: .9rem;
}
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .2);
  margin-top: 2rem; padding-top: 1.25rem;
  font-size: .88rem;
}
.daly-credit {
  display: inline-flex; align-items: center; gap: .6rem;
  color: #fff !important;
  text-decoration: none;
}
.daly-credit:hover strong { text-decoration: underline; }
.daly-mark {
  display: inline-grid; place-items: center;
  width: 2rem; height: 2rem;
  border-radius: .6rem;
  background: var(--sun);
  color: var(--ink);
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: -.03em;
}

/* ---------- TDC Floating Credit Drawer ---------- */
.tdc-drawer {
  position: fixed;
  right: 0;
  bottom: 4.5rem;
  z-index: 1500;
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
}

.tdc-drawer-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #18122B; /* Dark Purple */
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, .15);
  border-right: 0;
  border-radius: 18px 0 0 18px;
  padding: .55rem .5rem .55rem .7rem;
  cursor: pointer;
  box-shadow: -4px 6px 20px rgba(0, 0, 0, .3);
  transition: background .2s ease, transform .2s ease;
}

.tdc-drawer-toggle .tdc-arrow {
  color: #ffffff; /* White arrow default */
  font-size: 1rem;
  transition: color .2s ease, transform .3s ease;
}

.tdc-drawer-toggle:hover, 
.tdc-drawer-toggle:focus-visible {
  background: #23193D;
}

.tdc-drawer-toggle:hover .tdc-arrow,
.tdc-drawer-toggle:focus-visible .tdc-arrow {
  color: #f9b233; /* Orange arrow on hover */
}

.tdc-drawer.open .tdc-arrow {
  transform: rotate(180deg);
  color: #f9b233;
}

.tdc-drawer-content {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width .35s cubic-bezier(0.16, 1, 0.3, 1), opacity .25s ease;
}

.tdc-drawer.open .tdc-drawer-content {
  max-width: 290px;
  opacity: 1;
}

.tdc-drawer-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #18122B; /* Dark Purple TDC Footer Theme */
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, .15);
  border-right: 0;
  border-radius: 18px 0 0 18px;
  padding: .55rem 1.1rem .55rem 1rem;
  box-shadow: -6px 8px 24px rgba(0, 0, 0, .35);
  text-decoration: none;
  font-family: "Poppins", system-ui, sans-serif;
}

.tdc-drawer-link:hover {
  background: #23193D;
  color: #ffffff;
  text-decoration: none;
}

.tdc-drawer-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: .5rem;
  background: var(--sun);
  color: var(--ink);
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: -.03em;
  flex: 0 0 auto;
}

.tdc-drawer-sub {
  display: block;
  font-size: .7rem;
  color: rgba(255, 255, 255, .7);
  letter-spacing: .02em;
  line-height: 1.1;
  text-transform: uppercase;
}

.tdc-drawer-text strong {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.tdc-drawer-link:hover .tdc-drawer-text strong {
  color: var(--sun);
}

/* ---------- Scroll fade-in ---------- */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ---------- Focus visibility ---------- */
a:focus-visible, button:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; transition: none; }
  .tip-card:hover, .well-card:hover, .contact-card:hover { transform: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Mobile tweaks ---------- */
@media (max-width: 575.98px) {
  .section { padding: 3rem 0; }
  .hero { padding: 3.2rem 0 4.5rem; }
  .speech-card { padding: 1.3rem 1.2rem; }
}
