/*
Theme Name: Neurodiverse Medication
Theme URI: https://www.neurodiversenurse.co.uk/
Author: OpenAI
Description: Corporate white and pink WordPress block theme for an ADHD medication pathway service. Built for full-site editing.
Version: 1.3.1
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: neurodiverse-medication
*/

:root {
  --nd-pink: #e83e8c;
  --nd-pink-dark: #cf2f76;
  --nd-pink-soft: #fff4f8;
  --nd-charcoal: #252a31;
  --nd-grey: #667085;
  --nd-border: #ececf0;
}

html { scroll-behavior: smooth; }
body { color: var(--nd-charcoal); }

.nd-topbar {
  background: linear-gradient(90deg, #df3a82, #eb4c98);
  color: #fff;
  font-size: 13px;
  letter-spacing: .03em;
}

.nd-topbar .wp-block-group { min-height: 34px; }

.nd-header {
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--nd-border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nd-brand { letter-spacing: .03em; }
.nd-brand strong { font-size: 19px; }
.nd-brand em { font-style: normal; color: var(--nd-pink); letter-spacing: .28em; font-size: 12px; }

.nd-hero {
  background:
    radial-gradient(circle at 78% 22%, rgba(232,62,140,.12), transparent 34%),
    linear-gradient(90deg, #ffffff 0%, #ffffff 55%, #fff7fa 100%);
  overflow: hidden;
}

.nd-eyebrow {
  color: var(--nd-pink);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.nd-hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: .98;
  letter-spacing: -.04em;
  margin-top: 14px;
  margin-bottom: 24px;
}

.nd-hero-card {
  background: #fff;
  border: 1px solid var(--nd-border);
  border-left: 5px solid var(--nd-pink);
  box-shadow: 0 14px 40px rgba(35, 29, 32, .06);
}


.nd-hero-photo-card {
  background: linear-gradient(145deg, #fff 0%, #fff6fa 100%);
  border: 1px solid #f3dce6;
  border-radius: 24px;
  padding: 28px 28px 18px;
  box-shadow: 0 24px 60px rgba(36,42,49,.09);
  position: relative;
}
.nd-hero-photo-card:before {
  content: '';
  position: absolute;
  width: 170px;
  height: 170px;
  right: -38px;
  top: -34px;
  border-radius: 999px;
  background: rgba(232,62,140,.09);
}
.nd-donna-photo { margin: 0 auto; position: relative; z-index: 2; }
.nd-donna-photo img {
  width: min(100%, 520px);
  height: auto;
  display: block;
  margin: 0 auto;
}
.nd-photo-caption {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f0e0e7;
}
.nd-photo-caption p { margin: 3px 0; }
.nd-brand .custom-logo-link img, .nd-brand .wp-block-site-logo img { max-height: 54px; width: auto; }
.nd-brand .wp-block-site-title { margin: 0; line-height: 1.1; }
.nd-brand .wp-block-site-title a { text-decoration: none; color: var(--nd-charcoal); }
.nd-brand-sub { color: var(--nd-pink); letter-spacing: .28em; font-size: 12px; font-weight: 600; }

.nd-trust-strip {
  background: #fffafb;
  border-top: 1px solid #f6e5ed;
  border-bottom: 1px solid #f6e5ed;
}

.nd-trust-item { padding: 28px 24px; }
.nd-trust-item + .nd-trust-item { border-left: 1px solid #f0e7eb; }
.nd-trust-icon {
  width: 46px;
  height: 46px;
  border: 2px solid var(--nd-pink);
  color: var(--nd-pink);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 14px;
}

.nd-section { padding-top: 84px !important; padding-bottom: 84px !important; }
.nd-section h2 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -.03em; line-height: 1.08; }

.nd-steps {
  background: #fff;
  border: 1px solid var(--nd-border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(36, 42, 49, .05);
}
.nd-step { position: relative; padding: 7px 0 20px 60px; }
.nd-step-number {
  position: absolute;
  left: 0;
  top: 3px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--nd-pink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.nd-pink-band {
  background: linear-gradient(120deg, #d9347b, #ed4a98);
  color: #fff;
}

.nd-faq details {
  border-bottom: 1px solid var(--nd-border);
  padding: 18px 0;
}
.nd-faq summary { font-weight: 700; cursor: pointer; }

.nd-card {
  background: #fff;
  border: 1px solid var(--nd-border);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 10px 35px rgba(36,42,49,.04);
}

.wp-block-button__link {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  padding: 14px 24px;
  border-radius: 4px;
}

.nd-footer { border-top: 1px solid var(--nd-border); }
.nd-muted { color: var(--nd-grey); }

@media (max-width: 781px) {
  .nd-topbar { text-align: center; }
  .nd-hero { padding-top: 24px !important; }
  .nd-hero-photo-card { margin-top: 22px; padding: 18px 18px 14px; border-radius: 18px; }
  .nd-trust-item + .nd-trust-item { border-left: 0; border-top: 1px solid #f0e7eb; }
  .nd-section { padding-top: 56px !important; padding-bottom: 56px !important; }
}

.nd-soft-section { background: #fff8fb; }
.nd-costs h3 { color: var(--nd-pink-dark); font-size: 32px; margin-bottom: 8px; }
.nd-small-note {
  margin-top: 24px;
  padding: 18px 20px;
  border-left: 4px solid var(--nd-pink);
  background: #fff8fb;
}
.nd-step-card {
  height: 100%;
  background: #fff;
  border: 1px solid var(--nd-border);
  border-radius: 14px;
  padding: 22px;
}
.nd-step-card .nd-step-number {
  width: 38px;
  height: 38px;
  margin: 0 0 18px;
  border-radius: 50%;
  background: var(--nd-pink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.nd-cqc-placeholder {
  background: #fff;
  border: 1px dashed #b7b7c2;
  border-radius: 12px;
  padding: 28px;
  text-align: center;
}
.nd-cta { background: linear-gradient(120deg, #d9347b, #ed4a98); }
.nd-hero-card strong { color: var(--nd-pink); }


/* v6 corporate polish */
body { font-size: 17px; }
.wp-site-blocks { overflow-x: hidden; }
.nd-header .wp-block-group.alignwide { padding-top: 16px; padding-bottom: 16px; }
.nd-header .wp-block-navigation { font-size: 15px; font-weight: 650; }
.nd-hero { padding-left: 28px; padding-right: 28px; }
.nd-hero > .wp-block-columns { gap: clamp(42px, 6vw, 88px); }
.nd-hero h1 { max-width: 820px; }
.nd-hero-card { border-radius: 14px; }
.nd-hero .wp-block-button__link { min-height: 50px; display:flex; align-items:center; }
.nd-photo-caption { font-size: 16px; }

.nd-trust-strip > .wp-block-columns { gap: 18px; }
.nd-trust-item {
  background:#fff; border:1px solid #f2e4ea; border-radius:16px; padding:26px !important;
  box-shadow:0 12px 34px rgba(36,42,49,.045);
}
.nd-trust-item + .nd-trust-item { border-left:1px solid #f2e4ea; }
.nd-trust-item h4 { font-size:18px; margin-top:4px; margin-bottom:8px; }
.nd-trust-item p:last-child { font-size:15px; }

.nd-costs { background: linear-gradient(180deg,#fff 0%,#fff8fb 100%); }
.nd-costs > .wp-block-group { max-width: 1240px; }
.nd-costs .nd-card {
  padding:34px; min-height:245px; border-radius:20px; border-top:5px solid var(--nd-pink);
  box-shadow:0 18px 46px rgba(36,42,49,.075);
}
.nd-costs h3 { font-size:44px; line-height:1; margin-top:0; }
.nd-costs .nd-card p[style*="font-weight:700"] { font-size:18px; line-height:1.35; }
.nd-small-note { border-radius:12px; font-size:16px; padding:22px 24px; }

.nd-step-card {
  min-height:260px; border-radius:18px; padding:28px; box-shadow:0 14px 38px rgba(36,42,49,.055);
  border-top:4px solid #f6c8db;
}
.nd-step-card h3 { font-size:19px; line-height:1.25; }
.nd-step-card p { font-size:15px; }

.nd-pink-band { position:relative; overflow:hidden; }
.nd-pink-band:after { content:''; position:absolute; width:360px; height:360px; border-radius:50%; right:-120px; top:-150px; background:rgba(255,255,255,.08); }
.nd-pink-band .wp-block-group { position:relative; z-index:1; }

.nd-cqc-placeholder { min-height:180px; display:flex; flex-direction:column; justify-content:center; border:2px dashed #d7c8d0; background:#fffafb; }
.nd-cqc-placeholder:before { content:'CQC'; display:block; margin:0 auto 12px; width:78px; height:78px; border-radius:18px; background:#6d276a; color:#fff; font-weight:800; font-size:24px; line-height:78px; text-align:center; letter-spacing:.03em; }

.nd-faq details { background:#fff; border:1px solid #eee5e9; border-radius:12px; padding:0; margin:12px 0; overflow:hidden; }
.nd-faq summary { padding:20px 22px; font-size:17px; }
.nd-faq details > p { padding:0 22px 20px; margin:0; color:var(--nd-grey); }
.nd-faq details[open] { box-shadow:0 12px 30px rgba(36,42,49,.045); }

.nd-cta { padding-left:24px; padding-right:24px; }
.nd-cta h2 { font-size:clamp(34px,4.5vw,54px); }
.nd-cta p { font-size:18px; max-width:760px; margin-left:auto; margin-right:auto; }
.nd-cta .wp-block-button__link { padding:16px 30px; }

@media (max-width: 781px) {
  body { font-size:16px; }
  .nd-hero { padding-left:18px; padding-right:18px; }
  .nd-trust-strip > .wp-block-columns { gap:12px; }
  .nd-trust-item + .nd-trust-item { border-left:1px solid #f2e4ea; border-top:1px solid #f2e4ea; }
  .nd-costs .nd-card, .nd-step-card { min-height:auto; }
}

/* v7 premium trust cards + scale */
.nd-brand-name { font-size:20px; line-height:1.05; font-weight:800; letter-spacing:-.015em; color:var(--nd-charcoal); }
.nd-brand-sub { margin-top:5px !important; letter-spacing:.16em; }

.nd-trust-section {
  padding: 72px 28px 78px !important;
  background: linear-gradient(180deg,#fff 0%,#fff9fb 100%);
  border-top: 1px solid #f6e5ed;
  border-bottom: 1px solid #f6e5ed;
}
.nd-trust-section > .alignwide { max-width:1240px; }
.nd-trust-title { max-width:760px; margin:8px auto 34px; font-size:clamp(30px,3vw,42px); letter-spacing:-.03em; }
.nd-trust-grid { gap:20px; align-items:stretch !important; }
.nd-trust-grid > .wp-block-column { display:flex; }
.nd-trust-card {
  width:100%; min-height:245px; padding:30px 28px !important;
  background:#fff; border:1px solid #f0dfe7; border-radius:20px;
  box-shadow:0 16px 42px rgba(36,42,49,.055);
  position:relative; overflow:hidden;
}
.nd-trust-card:after { content:''; position:absolute; width:95px; height:95px; border-radius:50%; right:-40px; top:-40px; background:rgba(232,62,140,.055); }
.nd-trust-card h3 { font-size:20px; margin:20px 0 10px; letter-spacing:-.015em; }
.nd-trust-card .nd-muted { font-size:15px; line-height:1.6; margin-bottom:0; }
.nd-icon-badge {
  width:58px; height:58px; border-radius:16px; margin:0 !important;
  background:var(--nd-pink-soft); border:1px solid #f4cddd; position:relative;
}
.nd-icon-badge:before,.nd-icon-badge:after { content:''; position:absolute; box-sizing:border-box; }
/* Shield/check */
.nd-icon-shield:before { width:25px; height:29px; left:16px; top:13px; border:2px solid var(--nd-pink); border-radius:12px 12px 15px 15px; }
.nd-icon-shield:after { width:12px; height:7px; left:23px; top:24px; border-left:2px solid var(--nd-pink); border-bottom:2px solid var(--nd-pink); transform:rotate(-45deg); }
/* Clinician */
.nd-icon-clinician:before { width:14px; height:14px; left:22px; top:12px; border:2px solid var(--nd-pink); border-radius:50%; }
.nd-icon-clinician:after { width:28px; height:17px; left:15px; top:31px; border:2px solid var(--nd-pink); border-radius:16px 16px 8px 8px; }
/* Clock */
.nd-icon-clock:before { width:30px; height:30px; left:14px; top:14px; border:2px solid var(--nd-pink); border-radius:50%; }
.nd-icon-clock:after { width:10px; height:11px; left:28px; top:20px; border-left:2px solid var(--nd-pink); border-bottom:2px solid var(--nd-pink); }
/* Heart */
.nd-icon-heart:before { content:'♥'; left:16px; top:9px; color:var(--nd-pink); font-size:30px; line-height:38px; }

/* Improve desktop scale and section rhythm */
@media (min-width: 1000px) {
  .nd-hero { padding-top:86px !important; padding-bottom:86px !important; }
  .nd-hero > .wp-block-columns { max-width:1240px; }
  .nd-hero h1 { font-size:clamp(50px,4.6vw,68px); }
  .nd-hero-photo-card { padding:34px 34px 22px; }
  .nd-section > .alignwide, .nd-section > .wp-block-columns.alignwide { max-width:1240px; }
}
@media (max-width: 900px) {
  .nd-trust-grid { flex-wrap:wrap !important; }
  .nd-trust-grid > .wp-block-column { flex-basis:calc(50% - 10px) !important; }
}
@media (max-width: 600px) {
  .nd-trust-section { padding:52px 18px 58px !important; }
  .nd-trust-grid > .wp-block-column { flex-basis:100% !important; }
  .nd-trust-card { min-height:auto; }
  .nd-brand-name { font-size:17px; }
}


/* v8 WordPress.com-safe trust badges */
.nd-icon-badge.nd-icon-text {
  width:64px;
  height:64px;
  min-width:64px;
  border-radius:18px;
  margin:0 !important;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(145deg,#fff0f6,#fde2ee);
  border:1px solid #f2bfd4;
  color:var(--nd-pink-dark);
  font-size:28px;
  line-height:1;
  font-weight:800;
  box-shadow:inset 0 0 0 5px rgba(255,255,255,.55);
}
.nd-icon-badge.nd-icon-text:before,
.nd-icon-badge.nd-icon-text:after { content:none !important; }
.nd-icon-badge.nd-icon-nmc { font-size:25px; font-family:Arial,Helvetica,sans-serif; }
.nd-icon-badge.nd-icon-fast { font-size:27px; }
.nd-icon-badge.nd-icon-hearttext { font-size:25px; }
.nd-trust-card { padding:32px 28px !important; }
.nd-trust-card h3 { margin-top:22px; }
