/* NeuroCube ADHD Coaching. Colours and type carried over from the previous site. */

/* Catamaran, served from this site. Add the font file at assets/fonts/catamaran.woff2;
   until it is there, the system font below is used. */
@font-face {
  font-family: "Catamaran";
  src: url("/assets/fonts/catamaran.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1a2171;
  --navy-soft: #535995;
  --crimson: #8c113c;
  --crimson-dark: #6f0d30;
  --text: #2d3380;          /* navy, softened for body text */
  --grey-1: #f5f5f5;
  --grey-2: #d6d6d6;
  --white: #ffffff;
  --measure: 100%;          /* text uses the full page width, as on the previous site (Sam, 2026-11-12) */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Catamaran", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-underline-offset: 0.15em; }
a:hover { color: var(--crimson); }
a:focus-visible, button:focus-visible, .button:focus-visible, label:focus-visible, summary:focus-visible {
  outline: 3px solid var(--crimson);
  outline-offset: 3px;
}

h1, h2, h3, h4 { color: var(--navy); font-weight: 800; line-height: 1.2; margin: 2rem 0 0.75rem; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); margin: 0; }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
h3 { font-size: 1.3rem; }
p, ul, ol { margin: 0 0 1.1rem; }
li { margin-bottom: 0.4rem; }
strong { color: var(--navy); }

.wrap { width: min(100% - 2.5rem, 81.25rem); margin-inline: auto; }
.prose { max-width: var(--measure); margin-inline: auto; }
.prose > :first-child { margin-top: 0; }
.center { text-align: center; }
.center ul { list-style-position: inside; padding: 0; }
.center blockquote { text-align: left; }

/* Section headings in full-width grey bands, to separate long pages (Access to Work). */
.banded h2 {
  border-image: linear-gradient(var(--grey-1) 30%, var(--grey-2) 100%) fill 0 / / 0 100vw;
  padding: 1.6rem 0; margin: 3rem 0 1.5rem;
}
.banded > h2:first-child { margin-top: 0; }

.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* Bands: full-width stripes of colour, as on the previous site. */
.band { padding: 3rem 0; }
.band-dark { background: linear-gradient(var(--navy) 15%, var(--navy-soft) 100%); color: var(--white); }
.band-dark h1, .band-dark h2, .band-dark strong { color: var(--white); }
.band-dark a { color: var(--white); }
.band-grey { background: linear-gradient(var(--grey-1) 30%, var(--grey-2) 100%); }

/* Header */
.site-header { background: var(--white); padding: 1rem 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.wordmark { font-size: 1.6rem; font-weight: 800; line-height: 1.1; color: var(--navy); text-decoration: none; max-width: 12ch; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; justify-content: flex-end; }
.nav-list li { margin: 0; }
.nav-list a { text-decoration: none; font-size: 1rem; padding: 0.4rem 0; display: inline-block; }
.nav-list a[aria-current="page"] { font-weight: 800; border-bottom: 3px solid var(--crimson); }
.nav-toggle, .nav-button { display: none; }

@media (max-width: 52rem) {
  .wordmark { max-width: none; font-size: 1.35rem; flex: 1 1 0; min-width: 0; }
  .nav-button {
    display: inline-block; cursor: pointer; font-weight: 800; color: var(--white);
    background: var(--navy); padding: 0.6rem 1.1rem; border-radius: 4px;
  }
  .nav-toggle { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; }
  .nav-toggle:focus-visible + .nav-button { outline: 3px solid var(--crimson); outline-offset: 3px; }
  .nav-list { display: none; flex-direction: column; gap: 0; width: 100%; padding-top: 0.75rem; }
  .nav-toggle:checked ~ .nav-list { display: flex; }
  .nav-list a { display: block; padding: 0.75rem 0; font-size: 1.1rem; border-top: 1px solid var(--grey-2); }
  nav { width: auto; }
  .header-inner nav { display: contents; }
  .nav-button { margin-left: auto; }
}

/* Hero and page titles */
.hero { text-align: center; padding-top: 2rem; }
.hero-image { width: 100%; max-height: 22rem; object-fit: cover; border-radius: 4px; margin-bottom: 2rem; }
.kicker { font-weight: 500; margin-bottom: 0.5rem; }
.strapline { font-size: 1.25rem; font-weight: 800; margin: 1rem 0 0; }
.page-title { text-align: center; padding: 2.5rem 0; }

/* Buttons */
.button {
  display: inline-block; background: var(--crimson); color: var(--white); text-decoration: none;
  font: inherit; font-weight: 800; padding: 1rem 1.5rem; border: 0; border-radius: 4px; cursor: pointer;
}
.button:hover { background: var(--crimson-dark); color: var(--white); }
.actions { text-align: center; margin: 2rem 0 0; }

/* Home: about section with photo */
.about { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; }
.about img { border-radius: 4px; width: min(100%, 20rem); margin-inline: auto; }
@media (min-width: 52rem) { .about { grid-template-columns: 3fr 2fr; } }

blockquote { margin: 0 auto; max-width: var(--measure); font-style: italic; border-left: 4px solid var(--crimson); padding-left: 1.25rem; }
blockquote footer { font-style: normal; font-weight: 800; margin-top: 0.75rem; color: var(--navy); }

/* Prices */
.packages { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 0 0 2rem; padding: 0; list-style: none; }
.package { border: 2px solid var(--navy); border-radius: 6px; padding: 1.5rem 1rem; text-align: center; margin: 0; }
.package h2 { margin: 0 0 0.5rem; font-size: 1.4rem; }
.package .price { font-size: 2.2rem; font-weight: 800; color: var(--crimson); line-height: 1.1; margin: 0; }
.package .rate { margin: 0.4rem 0 0; }

/* Resources */
.link-list { list-style: none; padding: 0; }
.link-list li { margin-bottom: 0.9rem; }
.video { position: relative; aspect-ratio: 16 / 9; background: var(--navy); border-radius: 6px; overflow: hidden; margin: 1rem 0 0.5rem; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video { max-width: 48rem; margin-inline: auto; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%); }
.video-load {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 0.75rem;
  text-align: center; color: var(--white); padding: 1rem; width: 100%; border: 0; font: inherit; cursor: pointer; background: transparent;
}
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play-icon { position: relative; width: 4.25rem; height: 3rem; border-radius: 0.8rem; background: rgba(33, 33, 33, 0.8); display: grid; place-content: center; transition: background .15s, transform .15s; }
.play-icon::after { content: ""; border-style: solid; border-width: 0.85rem 0 0.85rem 1.4rem; border-color: transparent transparent transparent #fff; margin-left: 0.3rem; }
.video-load:hover .play-icon, .video-load:focus-visible .play-icon { background: #f00; transform: scale(1.06); }
.small { font-size: 0.95rem; }

/* Forms */
.form { max-width: 34rem; margin-inline: auto; }
.form label { display: block; font-weight: 800; color: var(--navy); margin: 1rem 0 0.3rem; }
.form input[type="email"], .form textarea {
  width: 100%; font: inherit; color: inherit; padding: 0.7rem 0.8rem;
  border: 2px solid var(--navy-soft); border-radius: 4px; background: var(--white);
}
.form textarea { min-height: 9rem; resize: vertical; }
.form .button { margin-top: 1.25rem; }
.hidden-field { position: absolute; left: -9999px; }

.calendly-inline-widget { min-width: 320px; height: 720px; }

/* Footer */
.site-footer { background: linear-gradient(0deg, var(--navy) 15%, var(--navy-soft) 100%); padding-bottom: 1.5rem; }
.footer-grid { display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.site-footer h2 { font-size: 1.05rem; margin: 0 0 0.25rem; }
.site-footer p { margin: 0; }
.copyright { margin-top: 2rem; font-size: 0.95rem; }

/* Cube style (chosen by Sam, 2026-11-12): cube-colour strips, a faint grid in the navy bands, soft cards. */
:root {
  --cube: linear-gradient(90deg, #c8102e 0 16.66%, #ff8200 16.66% 33.33%, #ffd100 33.33% 50%, #009a44 50% 66.66%, #0051ba 66.66% 83.33%, #ffffff 83.33% 100%);
}
.site-header { border-bottom: 6px solid; border-image: var(--cube) 1; }
.band-dark {
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 2px, transparent 2px);
  background-size: 48px 48px;
}
.site-footer { border-top: 6px solid; border-image: var(--cube) 1; }
.hero-image { border-radius: 12px; }
.band-grey { background: #f2f3fa; }
.prose h2::before, h2.center::before {
  content: ""; display: block; width: 4.5rem; height: 6px; border-radius: 3px; background: var(--cube); margin-bottom: 0.7rem;
  box-shadow: 0 0 0 1px rgba(26, 33, 113, 0.12);
}
.center h2::before, h2.center::before { margin-inline: auto; }
.banded h2 {
  border-image: none; background: #fff; border: 2px solid #dfe2f2; border-radius: 12px; padding: 1.1rem 1.4rem; margin: 3rem 0 1.25rem;
  box-shadow: 0 3px 0 #dfe2f2;
}
.button { border-radius: 10px; box-shadow: 0 4px 0 var(--crimson-dark); }
.button:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--crimson-dark); }
.package { border: 2px solid #dfe2f2; border-radius: 12px; background: #fff; box-shadow: 0 4px 0 #dfe2f2; }
.package h2::before { margin-inline: auto; }
.about img, .video { border-radius: 12px; }
blockquote { border-left: 0; background: #fff; border: 2px solid #dfe2f2; border-radius: 12px; padding: 1.5rem 2rem; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
