/*
Theme Name: Coalition for Child Safety
Description: A responsive one-page theme for the Coalition for Child Safety CIC.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: coalition-child-safety
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --ccs-navy: #17364a;
  --ccs-deep: #102a3d;
  --ccs-teal: #3f8178;
  --ccs-orange: #f3a260;
  --ccs-cream: #f6f4ec;
  --ccs-paper: #fbfaf5;
  --ccs-copy: #526370;
  --ccs-display: 'Manrope', sans-serif;
  --ccs-body: 'DM Sans', sans-serif;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--ccs-cream);
  color: #1c2c40;
  font-family: var(--ccs-body);
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .ccs-topbar { top: 32px; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; }

.ccs-site { min-height: 100vh; overflow: hidden; }
.ccs-wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.ccs-display { font-family: var(--ccs-display); }
.ccs-eyebrow {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.5;
  text-transform: uppercase;
}

.ccs-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  color: #f5f3ec;
  background: linear-gradient(105deg, #081a2d 0%, #0b3548 58%, #0a686a 100%);
  border-bottom: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(16px);
}
.ccs-header-row {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.ccs-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  color: #f5f3ec;
  text-decoration: none;
}
.ccs-brand img, .ccs-brand .custom-logo {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.ccs-brand-title {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .035em;
  line-height: 1.2;
  text-transform: uppercase;
}
.ccs-brand-tagline {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.8);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .045em;
}
.ccs-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.ccs-nav a {
  color: rgba(249,247,240,.9);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease;
}
.ccs-nav a:hover, .ccs-nav a:focus-visible { color: #ffad68; }
.ccs-nav .ccs-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #d77b3d;
  color: #152c40;
  font-size: 12px;
  font-weight: 700;
}
.ccs-nav .ccs-nav-cta:hover, .ccs-nav .ccs-nav-cta:focus-visible {
  background: #e68b4d;
  color: #152c40;
}
.ccs-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  background: transparent;
  color: #f5f3ec;
  cursor: pointer;
}
.ccs-menu-toggle:focus-visible, a:focus-visible {
  outline: 3px solid #ffc184;
  outline-offset: 3px;
}
.ccs-mobile-nav { display: none; }
.ccs-skip-link {
  position: absolute;
  z-index: 100;
  top: -100px;
  left: 12px;
  padding: 10px 14px;
  background: white;
  color: var(--ccs-navy);
}
.ccs-skip-link:focus { top: 12px; }

.ccs-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 660px;
  align-items: center;
  padding: 80px 0;
  background: #102a3d;
  color: #fbf8ef;
}
.ccs-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at 14% 18%, rgba(62,145,139,.2), transparent 35%),
    linear-gradient(90deg, rgba(13,35,52,.96) 0%, rgba(13,35,52,.88) 38%, rgba(13,35,52,.18) 100%);
  content: "";
}
.ccs-hero-art {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 45%;
}
.ccs-hero-copy { max-width: 610px; animation: ccs-rise-in .75s cubic-bezier(.2,.7,.2,1) both; }
.ccs-hero-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; color: var(--ccs-orange); }
.ccs-hero-kicker::before { width: 36px; height: 1px; background: currentColor; content: ""; }
.ccs-hero h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: .99;
}
.ccs-hero h1 span { color: var(--ccs-orange); }
.ccs-hero-copy > p:not(.ccs-eyebrow) {
  max-width: 490px;
  margin: 28px 0 0;
  color: #e2e9e6;
  font-size: 18px;
  line-height: 1.75;
}
.ccs-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 36px; }
.ccs-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: 999px;
  background: var(--ccs-orange);
  color: #19354a;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.ccs-button:hover { transform: translateY(-2px); background: #ffc184; }
.ccs-hero-actions > span { color: #d7e0dc; font-size: 12px; font-weight: 500; letter-spacing: .02em; }
.ccs-scroll-cue {
  position: absolute;
  right: max(32px, calc((100vw - 1180px)/2));
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d7e0dc;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-decoration: none;
  text-transform: uppercase;
}

.ccs-section { padding: 96px 0; }
.ccs-mission { background: #e8efea; padding: 128px 0; }
.ccs-mission-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: start;
  gap: 80px;
}
.ccs-teal { color: var(--ccs-teal); }
.ccs-heading {
  margin: 18px 0 0;
  color: var(--ccs-navy);
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: 1.02;
}
.ccs-mission-title { max-width: 390px; font-size: clamp(2.5rem, 4vw, 4.3rem); }
.ccs-mission-copy { padding-top: 48px; }
.ccs-lead {
  max-width: 650px;
  margin: 0;
  color: #35495a;
  font-size: 21px;
  line-height: 1.8;
}
.ccs-body-copy {
  max-width: 610px;
  margin: 24px 0 0;
  color: #5c6b73;
  font-size: 15px;
  line-height: 1.85;
}
.ccs-quote {
  max-width: 610px;
  margin: 32px 0 0;
  padding-left: 20px;
  border-left: 2px solid #d77b3d;
  color: var(--ccs-navy);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.65;
}
.ccs-purpose-note {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #cbd8d1;
  color: #48605f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ccs-purpose-note strong { color: #d77b3d; font-family: var(--ccs-display); font-size: 34px; letter-spacing: -.06em; }

.ccs-focus { background: var(--ccs-cream); }
.ccs-section-intro { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 56px; }
.ccs-section-intro .ccs-heading { max-width: 630px; }
.ccs-section-intro > p { max-width: 350px; margin: 0 0 4px; color: #5c6b73; font-size: 14px; line-height: 2; }
.ccs-card-grid { display: grid; gap: 16px; }
.ccs-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ccs-card {
  border: 1px solid rgba(28,44,64,.1);
  border-radius: 22px;
  background: var(--ccs-paper);
  transition: transform .25s ease, box-shadow .25s ease;
}
.ccs-card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(30,52,65,.1); }
.ccs-pillar { min-height: 295px; padding: 36px; }
.ccs-card-top { display: flex; align-items: center; justify-content: space-between; }
.ccs-number { color: #d77736; font-family: var(--ccs-display); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.ccs-icon {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #347c73;
}
.ccs-icon-green { background: #e5efea; }
.ccs-icon-orange { background: #fbebdc; color: #d77b3d; }
.ccs-icon-neutral { background: #e9eceb; color: var(--ccs-navy); }
.ccs-icon-circle { width: 16px; height: 16px; border: 2px solid currentColor; border-radius: 50%; }
.ccs-icon-diamond { width: 16px; height: 16px; transform: rotate(45deg); border: 2px solid currentColor; }
.ccs-card h3 {
  margin: 48px 0 0;
  color: var(--ccs-navy);
  font-family: var(--ccs-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.045em;
}
.ccs-card p { color: var(--ccs-copy); font-size: 14px; line-height: 2; }
.ccs-pillar p { max-width: 270px; margin: 12px 0 0; }

.ccs-about { position: relative; overflow: hidden; background: var(--ccs-navy); color: #f8f6ee; }
.ccs-rings, .ccs-rings::before {
  position: absolute;
  top: -140px;
  right: 6%;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(69,100,119,.45);
  border-radius: 50%;
  content: "";
}
.ccs-rings::before { top: 65px; right: 35px; width: 380px; height: 380px; }
.ccs-about-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr .78fr;
  align-items: center;
  gap: 96px;
}
.ccs-about h2 { max-width: 580px; color: #f8f6ee; font-size: clamp(2.7rem, 4.7vw, 4.8rem); line-height: 1; }
.ccs-about-copy { max-width: 570px; margin: 28px 0 0; color: #d5dfdc; font-size: 17px; line-height: 1.85; }
.ccs-guiding-card {
  padding: 36px;
  border: 1px solid rgba(84,112,128,.7);
  border-radius: 24px;
  background: rgba(32,68,88,.65);
}
.ccs-guiding-card > p:not(.ccs-eyebrow) { margin: 24px 0 0; color: #fbf8ef; font-family: var(--ccs-display); font-size: 34px; font-weight: 700; letter-spacing: -.04em; line-height: 1.2; }
.ccs-guiding-card hr { height: 1px; margin: 32px 0 20px; border: 0; background: #547080; }
.ccs-guiding-card .ccs-motto { margin: 0; color: #c2d2ce; font-size: 12px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }

.ccs-work { background: var(--ccs-cream); }
.ccs-work-intro {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 80px;
  padding-bottom: 72px;
  border-bottom: 1px solid #d9dfd8;
}
.ccs-work-intro .ccs-heading { font-size: clamp(2.3rem, 4vw, 3.5rem); }
.ccs-work-intro > p { max-width: 620px; align-self: end; margin: 0; color: var(--ccs-copy); font-size: 15px; line-height: 1.9; }
.ccs-work-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; padding-top: 48px; }
.ccs-work-card { padding: 36px; }
.ccs-work-card h3 { margin: 20px 0 0; font-size: 26px; line-height: 1.15; }
.ccs-work-card p { margin: 16px 0 0; }
.ccs-support-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; margin-top: 24px; }
.ccs-support-card { padding: 36px; border-radius: 22px; background: #e8efea; }
.ccs-support-card h3 { margin: 16px 0 0; color: var(--ccs-navy); font-family: var(--ccs-display); font-size: 25px; font-weight: 700; letter-spacing: -.04em; line-height: 1.2; }
.ccs-support-card p:not(.ccs-eyebrow) { margin: 16px 0 0; color: var(--ccs-copy); font-size: 14px; line-height: 2; }
.ccs-work-end { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 40px; }
.ccs-work-end p { max-width: 600px; margin: 0; color: #5c6b73; font-size: 14px; line-height: 2; }
.ccs-text-link { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; color: #266c68; font-size: 14px; font-weight: 700; text-decoration: none; }
.ccs-text-link:hover { color: #d77b3d; }

.ccs-speakers { background: #e8efea; }
.ccs-speakers-intro { display: grid; grid-template-columns: .85fr 1.15fr; align-items: end; gap: 28px; }
.ccs-speakers-intro .ccs-heading { max-width: 520px; font-size: clamp(2.3rem, 4vw, 3.5rem); }
.ccs-speakers-intro > p { max-width: 620px; margin: 0; color: var(--ccs-copy); font-size: 15px; line-height: 1.9; }
.ccs-topics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin: 40px 0 0; padding: 0; list-style: none; }
.ccs-topics li { min-height: 112px; padding: 20px; border: 1px solid #d4dfd8; border-radius: 18px; background: var(--ccs-paper); }
.ccs-topics li span:last-child { display: block; margin-top: 16px; color: var(--ccs-navy); font-size: 14px; font-weight: 600; line-height: 1.7; }

.ccs-contact { background: var(--ccs-deep); color: #fbf8ef; }
.ccs-contact-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 64px; }
.ccs-contact h2 { max-width: 660px; color: #fbf8ef; font-size: clamp(2.5rem, 4vw, 4rem); }
.ccs-contact-lead { max-width: 540px; margin: 20px 0 0; color: #d5dfdc; font-size: 14px; line-height: 2; }
.ccs-contact-card { width: 310px; padding: 28px; border: 1px solid #557183; border-radius: 18px; background: #1b3b50; }
.ccs-contact-card p { margin: 12px 0 0; color: #f5f3ec; font-size: 14px; line-height: 1.75; }
.ccs-contact-card .ccs-eyebrow { margin: 0; color: var(--ccs-orange); }
.ccs-contact-card .ccs-note { margin-top: 8px; color: #b8c9c6; font-size: 12px; line-height: 1.7; }
.ccs-contact-card .ccs-emergency { margin-top: 16px; padding-top: 16px; border-top: 1px solid #557183; color: #b8c9c6; font-size: 12px; line-height: 1.7; }
.ccs-contact-card .ccs-emergency a { color: #fbf8ef; font-weight: 700; }
.ccs-footer { padding: 28px 0 24px; background: #102a3d; color: #c1d0ce; }
.ccs-footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid #3a5667; }
.ccs-footer-brand { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.ccs-footer-brand img { width: 32px; height: 32px; object-fit: contain; }
.ccs-footer p { margin: 0; color: #aebfbc; font-size: 11px; line-height: 1.8; }
.ccs-footer a { color: #f3a260; font-size: 11px; font-weight: 700; text-decoration: none; }
.ccs-footer a:hover { color: #ffc184; }

@keyframes ccs-rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  .ccs-nav { gap: 18px; }
  .ccs-mission-grid, .ccs-about-grid { gap: 48px; }
  .ccs-work-intro { gap: 48px; }
  .ccs-work-cards { grid-template-columns: 1fr; }
  .ccs-topics { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 767px) {
  body.admin-bar .ccs-topbar { top: 46px; }
  .ccs-wrap { width: min(600px, calc(100% - 40px)); }
  .ccs-nav { display: none; }
  .ccs-menu-toggle { display: inline-flex; }
  .ccs-mobile-nav { display: none; flex-direction: column; gap: 4px; padding-bottom: 20px; }
  .ccs-mobile-nav.is-open { display: flex; }
  .ccs-mobile-nav a { padding: 12px 16px; border-radius: 12px; color: #f5f3ec; font-size: 14px; font-weight: 600; text-decoration: none; }
  .ccs-mobile-nav a:hover { background: rgba(255,255,255,.1); }
  .ccs-mobile-nav .ccs-nav-cta { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; background: #d77b3d; color: #152c40; }
  .ccs-hero { min-height: 590px; }
  .ccs-hero-art { object-position: 87% center; }
  .ccs-hero::before { background: linear-gradient(90deg, rgba(13,35,52,.97), rgba(13,35,52,.88)); }
  .ccs-hero-copy > p:not(.ccs-eyebrow) { font-size: 16px; }
  .ccs-scroll-cue { display: none; }
  .ccs-section { padding: 80px 0; }
  .ccs-mission { padding: 88px 0; }
  .ccs-mission-grid, .ccs-about-grid, .ccs-work-intro, .ccs-speakers-intro { grid-template-columns: 1fr; gap: 28px; }
  .ccs-mission-copy { padding-top: 0; }
  .ccs-lead { font-size: 18px; }
  .ccs-section-intro { align-items: start; flex-direction: column; margin-bottom: 40px; }
  .ccs-three, .ccs-support-grid { grid-template-columns: 1fr; }
  .ccs-pillar { min-height: unset; padding: 28px; }
  .ccs-pillar h3 { margin-top: 36px; }
  .ccs-rings { right: -250px; }
  .ccs-about-copy { font-size: 15px; }
  .ccs-guiding-card { padding: 28px; }
  .ccs-guiding-card > p:not(.ccs-eyebrow) { font-size: 28px; }
  .ccs-work-intro { padding-bottom: 48px; }
  .ccs-work-cards { padding-top: 32px; }
  .ccs-work-card, .ccs-support-card { padding: 28px; }
  .ccs-work-end { align-items: flex-start; flex-direction: column; }
  .ccs-topics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ccs-topics li { padding: 16px; }
  .ccs-contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .ccs-contact-card { width: min(100%, 360px); }
  .ccs-footer-row { align-items: flex-start; flex-direction: column; gap: 16px; }
}
@media (max-width: 380px) {
  .ccs-brand-title { font-size: 11px; }
  .ccs-brand-tagline { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
