/*
Theme Name: Did Not Attend CIC
Theme URI: https://didnotattend.co.uk
Author: Did Not Attend CIC
Description: Bright, vibrant medical-themed theme for Did Not Attend CIC – safeguarding-led engagement support.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dna-cic
*/

/* Base & variables */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  line-height: 1.6;
  font-weight: 400;
  color: #1e293b;
  background-color: #ffffff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --color-mint: #14b8a6;
  --color-mint-light: #5eead4;
  --color-mint-pale: #ccfbf1;
  --color-teal: #0d9488;
  --color-coral: #f97316;
  --color-coral-light: #fdba74;
  --color-coral-pale: #ffedd5;
  --color-sky: #0ea5e9;
  --color-sky-pale: #e0f2fe;
  --color-white: #ffffff;
  --color-slate: #1e293b;
  --color-slate-muted: #64748b;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

a {
  font-weight: 500;
  color: var(--color-teal);
  text-decoration: none;
}

a:hover {
  color: var(--color-mint);
  text-decoration: underline;
}

/* Layout */
.site-app {
  min-height: 100vh;
}

/* Header / Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 2rem;
  padding-top: max(1rem, env(safe-area-inset-top));
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--color-mint-pale);
  box-shadow: 0 2px 20px rgba(20, 184, 166, 0.08);
}

.nav-logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-teal);
}

.nav-logo a {
  color: inherit;
}

.nav-logo a:hover {
  text-decoration: none;
  color: var(--color-mint);
}

.nav-logo-img,
.site-nav .nav-logo img,
header.site-nav .nav-logo .nav-logo-img {
  display: block !important;
  height: 140px !important;
  max-height: 140px !important;
  width: auto !important;
  object-fit: contain !important;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  color: var(--color-slate);
}

.nav-links a:hover {
  color: var(--color-mint);
  text-decoration: none;
}

.nav-toggle-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 0;
  margin: 0;
  border: none;
  background: var(--color-mint-pale);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--color-mint-light);
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 3px;
  margin: 0 auto;
  background: var(--color-teal);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, var(--color-mint), var(--color-teal));
  color: white !important;
  border-radius: 9999px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.4);
  text-decoration: none;
  color: white !important;
}

/* Hero */
.hero {
  padding: 4rem 2rem 5rem;
  text-align: center;
  background: linear-gradient(160deg, var(--color-mint-pale) 0%, var(--color-sky-pale) 50%, var(--color-coral-pale) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(20, 184, 166, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.hero-image {
  position: relative;
  width: 100%;
  max-height: 320px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: white;
  color: var(--color-teal);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 9999px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.25);
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--color-slate);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--color-slate-muted);
  margin: 0 0 1rem;
  font-weight: 500;
}

.hero-meta {
  font-size: 1rem;
  color: var(--color-teal);
  font-weight: 600;
}

.hero-safeguard {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--color-slate-muted);
  font-weight: 500;
}

/* Section common */
.section {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.section--alt {
  background: linear-gradient(180deg, var(--color-mint-pale) 0%, white 100%);
}

.section--coral {
  background: linear-gradient(180deg, var(--color-coral-pale) 0%, white 100%);
}

.section-image {
  max-width: 100%;
  max-height: 280px;
  overflow: hidden;
  border-radius: 1rem;
  margin: 0 auto 1.5rem;
}

.section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--color-slate);
  margin: 0 0 1.5rem;
  text-align: center;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--color-slate-muted);
  text-align: center;
  margin: 0 auto 2.5rem;
  max-width: 700px;
  line-height: 1.7;
}

.section-intro.left {
  margin-top: 2.5rem;
  text-align: left;
}

.section-title.small {
  font-size: 1.5rem;
  margin-top: 2.5rem;
}

/* Three pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.pillar {
  background: white;
  padding: 2rem;
  border-radius: 1.25rem;
  box-shadow: 0 10px 40px rgba(20, 184, 166, 0.12);
  border: 2px solid var(--color-mint-pale);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(20, 184, 166, 0.2);
}

.pillar-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.pillar h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-teal);
  margin: 0 0 0.5rem;
}

.pillar p {
  margin: 0;
  color: var(--color-slate-muted);
  font-size: 0.95rem;
}

/* What we do / don't */
.detail-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.detail-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--color-slate);
}

.detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-mint);
}

.detail-list--dont li::before {
  background: var(--color-coral);
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.step {
  background: white;
  padding: 1.75rem;
  border-radius: 1rem;
  border-left: 4px solid var(--color-mint);
  box-shadow: 0 6px 24px rgba(20, 184, 166, 0.1);
}

.step-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-mint);
  margin-bottom: 0.5rem;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-slate);
  margin: 0 0 0.5rem;
}

.step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-slate-muted);
}

/* Safeguarding */
.safeguard-block {
  background: white;
  padding: 2rem;
  border-radius: 1.25rem;
  border: 2px solid var(--color-mint-pale);
  margin-top: 1.5rem;
}

.safeguard-block p {
  margin: 0 0 1rem;
  color: var(--color-slate);
}

.safeguard-block p:last-child {
  margin-bottom: 0;
}

/* NHS partners */
.nhs-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.nhs-list li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--color-sky);
  margin-bottom: 0.5rem;
  background: var(--color-sky-pale);
  border-radius: 0 8px 8px 0;
  color: var(--color-slate);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 9999px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  text-decoration: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-mint), var(--color-teal));
  color: white;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.4);
  color: white;
  text-decoration: none;
}

.btn--secondary {
  background: white;
  color: var(--color-teal);
  border: 2px solid var(--color-mint);
}

.btn--secondary:hover {
  background: var(--color-mint-pale);
  transform: translateY(-2px);
  color: var(--color-teal);
  text-decoration: none;
}

/* Contact */
.contact {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(160deg, var(--color-mint-pale), var(--color-sky-pale));
  border-radius: 1.5rem;
  margin: 2rem auto;
  max-width: 600px;
}

.contact h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-slate);
  margin: 0 0 1rem;
}

.contact p {
  margin: 0.25rem 0;
  color: var(--color-slate-muted);
}

.contact a {
  font-weight: 600;
  color: var(--color-teal);
}

/* Footer */
.site-footer {
  padding: 2.5rem 2rem;
  padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
  background: var(--color-slate);
  color: white;
  margin-top: 3rem;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
}

.footer-brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
  margin: 0 0 0.5rem;
}

.footer-tag {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 0.75rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.85);
}

.footer-col a:hover {
  color: var(--color-mint-light);
  text-decoration: none;
}

.footer-bottom {
  max-width: 1000px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.img-clickable {
  cursor: pointer;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  padding: 2rem;
  cursor: pointer;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Responsive – mobile */
@media (max-width: 768px) {
  .site-nav {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
    order: 2;
  }

  .nav-logo {
    order: 1;
  }

  .site-nav nav {
    order: 3;
    width: 100%;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 0.5rem 0 1rem;
    border-top: 1px solid var(--color-mint-pale);
    margin-top: 0.5rem;
  }

  .nav-toggle-checkbox:checked ~ nav .nav-links {
    display: flex;
  }

  .nav-toggle-checkbox:checked ~ .nav-toggle .nav-toggle-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .nav-toggle-checkbox:checked ~ .nav-toggle .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle-checkbox:checked ~ .nav-toggle .nav-toggle-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.875rem 1rem;
    min-height: 48px;
    line-height: 1.4;
    box-sizing: border-box;
  }

  .nav-cta {
    margin: 0.5rem 1rem 0;
    justify-content: center;
    min-height: 48px;
  }

  .nav-logo-img,
  .site-nav .nav-logo img {
    height: 120px !important;
    max-height: 120px !important;
  }
}

@media (min-width: 769px) {
  .nav-toggle {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .section,
  .hero {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }

  .hero-image {
    max-height: 220px;
    margin-bottom: 1rem;
  }

  .section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-intro {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .pillars,
  .steps {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .pillar {
    padding: 1.5rem;
  }

  .pillar-img {
    height: 140px;
  }

  .step {
    padding: 1.25rem;
  }

  .cta-buttons {
    flex-direction: column;
    margin-top: 1.5rem;
    gap: 0.75rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    padding: 0.875rem 1.25rem;
  }

  .contact {
    padding: 2rem 1rem;
    margin-left: 0;
    margin-right: 0;
    border-radius: 1rem;
  }

  .safeguard-block {
    padding: 1.5rem;
  }

  .section-image {
    max-height: 200px;
    margin-bottom: 1rem;
  }

  .site-footer {
    padding: 2rem 1rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-col ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 1.25rem;
  }

  .nhs-list li {
    padding: 0.625rem 1rem;
    font-size: 0.95rem;
  }
}
