/* ============================================================
   First Site Studio — styles.css
   Brand palette & typography per Brand Guidelines v1.0
   ============================================================ */

/* ---- Design tokens (CSS custom properties = reusable named values) ---- */
:root {
  --navy: #0F172A;        /* Midnight Navy — primary */
  --blue: #3B82F6;        /* Sky Blue — secondary */
  --green: #22C55E;       /* Fresh Green — accent */
  --bg: #FAFAFA;          /* Warm White — background */
  --text: #1F2937;        /* Charcoal — body text */

  --blue-tint: #DBEAFE;   /* pale blue for soft fills */
  --green-dark: #16A34A;  /* darker green for hover states */
  --border: #E2E8F0;

  --font-heading: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --radius: 14px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  --container: 1120px;
}

/* ---- Reset & base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  /* Anchor links stop below the sticky header instead of underneath it */
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; }

a {
  color: var(--blue);
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

section {
  padding-block: 88px;
}

/* ---- Accessibility helpers ---- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  z-index: 100;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Shared bits ---- */
.eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.section-heading {
  margin-bottom: 16px;
}

.section-intro {
  max-width: 560px;
  margin-bottom: 40px;
}

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--green);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--green-dark);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: #fff;
}

.btn-full {
  width: 100%;
  border: none;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.logo {
  width: 180px;
  height: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
}

.nav-menu a:hover {
  color: var(--blue);
}

.btn-nav {
  padding: 10px 22px;
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding-block: 72px 96px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 .accent-dot {
  color: var(--blue);
}

.lead {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--navy);
  margin-top: 20px;
  max-width: 520px;
}

.lead-sub {
  margin-top: 14px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.hero-art svg {
  width: 100%;
  height: auto;
}

/* ============================================================
   Sound familiar
   ============================================================ */
.familiar {
  background: #fff;
  border-block: 1px solid var(--border);
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  list-style: none;
  padding: 0;
  margin-top: 32px;
}

.quote-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 22px 24px;
  font-style: italic;
  color: var(--navy);
  font-weight: 500;
}

.familiar-answer {
  margin-top: 32px;
  max-width: 640px;
  font-size: 1.1rem;
}

/* ============================================================
   What we do
   ============================================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-tint);
  color: var(--blue);
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  margin-bottom: 8px;
}

/* ============================================================
   How it works — steps that literally step upward
   ============================================================ */
.process {
  background: var(--navy);
}

.process .section-heading,
.process h3 {
  color: #fff;
}

.process p {
  color: #CBD5E1;
}

.eyebrow-light {
  color: var(--green);
}

.step-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin-top: 48px;
  align-items: end;
}

.step {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 26px;
}

/* Each step sits a little higher than the last — the "first step" motif */
.step:nth-child(1) { margin-top: 96px; }
.step:nth-child(2) { margin-top: 64px; }
.step:nth-child(3) { margin-top: 32px; }
.step:nth-child(4) { margin-top: 0; }

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 16px;
}

.step h3 {
  margin-bottom: 8px;
}

/* ============================================================
   Our work
   ============================================================ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.work-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.work-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background: var(--blue-tint);
  color: var(--blue);
  margin-bottom: 18px;
}

.work-placeholder svg {
  width: 56px;
  height: 56px;
}

.work-card h3 {
  margin-bottom: 6px;
}

.work-card-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  background: var(--navy);
  border: none;
}

.work-card-cta h3 {
  color: #fff;
}

.work-card-cta p {
  color: #CBD5E1;
}

/* ============================================================
   Contact
   ============================================================ */
.contact {
  background: #fff;
  border-top: 1px solid var(--border);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.reassurance-list {
  list-style: none;
  padding: 0;
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.reassurance-list li {
  padding-left: 32px;
  position: relative;
  font-weight: 500;
  color: var(--navy);
}

.reassurance-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
  /* tick mark drawn in CSS */
  clip-path: none;
}

.reassurance-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  width: 9px;
  height: 5px;
  border-left: 2.5px solid var(--navy);
  border-bottom: 2.5px solid var(--navy);
  transform: rotate(-45deg);
}

.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.label-hint {
  font-weight: 400;
  color: var(--text);
  font-size: 0.9rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.form-privacy {
  margin-top: 14px;
  font-size: 0.85rem;
  color: #64748B;
  text-align: center;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: #CBD5E1;
  padding-block: 48px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-name {
  font-family: var(--font-heading);
  font-weight: 600;
  color: #fff;
  font-size: 1.1rem;
}

.footer-tagline {
  color: var(--green);
  font-size: 0.95rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-nav a {
  color: #CBD5E1;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-legal {
  font-size: 0.85rem;
  width: 100%;
  text-align: center;
  margin-top: 8px;
  color: #94A3B8;
}

/* ============================================================
   Scroll reveal (JS adds .is-visible; motion is optional)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* If the visitor's system asks for less motion, honour it */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .hero-art {
    max-width: 420px;
    margin-inline: auto;
  }

  .step-track {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  /* On one column the staircase offset stops making sense — flatten it */
  .step:nth-child(n) { margin-top: 0; }
}

@media (max-width: 720px) {
  section { padding-block: 64px; }

  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 16px 24px 24px;
  }

  .nav-menu.is-open {
    display: flex;
  }

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

  .nav-menu a {
    display: block;
    padding: 12px 0;
    font-size: 1.05rem;
  }

  .btn-nav {
    margin-top: 8px;
    text-align: center;
  }

  .logo { width: 150px; }
}

/* ============================================================
   Care plans page
   ============================================================ */
.page-hero {
  padding-block: 72px 24px;
}

.page-hero .lead,
.page-hero .lead-sub {
  max-width: 620px;
}

/* ---- Pricing cards ---- */
.pricing {
  padding-top: 40px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 960px;
  margin-inline: auto;
  align-items: start;
}

.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.price-card-featured {
  border: 2px solid var(--green);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12);
}

.plan-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}

.plan-label-featured {
  color: var(--green-dark);
}

.price {
  margin-block: 10px 14px;
}

.price-amount {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--navy);
}

.price-period {
  color: var(--text);
  font-size: 1rem;
}

.plan-summary {
  margin-bottom: 20px;
}

.plan-includes {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}

.plan-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 12px;
  flex-grow: 1; /* pushes the button to the bottom so both cards align */
}

.plan-list li {
  position: relative;
  padding-left: 32px;
}

.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green);
}

.plan-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  width: 9px;
  height: 5px;
  border-left: 2.5px solid var(--navy);
  border-bottom: 2.5px solid var(--navy);
  transform: rotate(-45deg);
}

/* ---- Which plan ---- */
.which-plan {
  background: #fff;
  border-block: 1px solid var(--border);
}

.which-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.which-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
  padding: 26px 28px;
}

.which-card h3 {
  margin-bottom: 8px;
}

.which-note {
  margin-top: 32px;
  max-width: 620px;
}

/* ---- Bottom CTA ---- */
.plans-cta {
  padding-block: 72px;
}

.plans-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--navy);
  border-radius: var(--radius);
  padding: 40px 44px;
}

.plans-cta-inner .section-heading {
  color: #fff;
  margin-bottom: 6px;
}

.plans-cta-inner p {
  color: #CBD5E1;
}

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .pricing-grid,
  .which-grid {
    grid-template-columns: 1fr;
  }

  .plans-cta-inner {
    padding: 32px 28px;
  }
}

/* ---- Plan notes strip ---- */
.plan-notes {
  max-width: 960px;
  margin: 24px auto 0;
  text-align: center;
  font-size: 0.95rem;
  color: #475569;
}

/* ---- Small print ---- */
.small-print {
  padding-top: 72px;
}

.small-print-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px 40px;
  margin-top: 36px;
}

.small-print-item h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  padding-left: 18px;
  position: relative;
}

/* Small green tick-mark bar, echoing the plan list without repeating it */
.small-print-item h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.small-print-item p {
  padding-left: 18px;
  font-size: 0.97rem;
}

/* ============================================================
   Legal pages (privacy notice, terms)
   ============================================================ */
.legal-page {
  padding-block: 64px 88px;
}

.legal-inner {
  max-width: 720px;
}

.legal-inner .lead {
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 0.9rem;
  color: #64748B;
  padding-bottom: 24px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.legal-inner h2 {
  font-size: 1.35rem;
  margin-top: 40px;
  margin-bottom: 10px;
}

.legal-inner h3 {
  font-size: 1.05rem;
  margin-top: 24px;
  margin-bottom: 6px;
}

.legal-inner p {
  margin-bottom: 14px;
}

.legal-inner ul {
  margin: 0 0 18px;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

.legal-inner li {
  padding-left: 4px;
}

.legal-inner a {
  color: var(--blue);
}

/* ============================================================
   Care plans page - plan colour treatments
   Care = blue, Complete = green
   ============================================================ */

/* Solid blue button, for the Care plan CTA */
.btn-blue {
  background: var(--blue);
  color: #fff;
}

.btn-blue:hover {
  background: #2563EB; /* one step darker than --blue */
  color: #fff;
}

/* Care card gets a blue border to match Complete's green one */
.price-card-care {
  border: 2px solid var(--blue);
}

/* Blue tick discs inside the Care card only */
.price-card-care .plan-list li::before {
  background: var(--blue);
}

.price-card-care .plan-list li::after {
  border-left-color: #fff;
  border-bottom-color: #fff;
}

/* "Choose Complete if..." card gets the green accent bar */
.which-card-complete {
  border-left-color: var(--green);
}

/* ============================================================
   Work cards - real projects
   ============================================================ */
.work-link {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}

.work-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.3s ease;
}

.work-link:hover .work-photo {
  transform: scale(1.03);
}

.work-sector {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 4px;
}

.work-card h3 a {
  color: var(--navy);
  text-decoration: none;
}

.work-card h3 a:hover {
  color: var(--blue);
}

.work-visit {
  margin-top: 12px;
  font-weight: 500;
}

.work-visit a {
  color: var(--blue);
  text-decoration: none;
}

.work-visit a:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .work-photo,
  .work-link:hover .work-photo { transition: none; transform: none; }
}

/* ============================================================
   Case study pages
   ============================================================ */
.case-inner {
  max-width: 760px;
}

.case-hero {
  padding-block: 56px 24px;
}

.breadcrumb {
  font-size: 0.9rem;
  color: #64748B;
  margin-bottom: 20px;
}

.breadcrumb a {
  color: #64748B;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.case-hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  margin-bottom: 18px;
}

/* At a glance */
.case-glance-wrap {
  padding-block: 24px 40px;
}

.case-glance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px 32px;
  margin: 0;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
}

.glance-item {
  min-width: 0;
}

.case-glance dt {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 4px;
}

.case-glance dd {
  margin: 0;
  color: var(--navy);
  font-weight: 500;
}

.case-glance dd a {
  color: var(--blue);
}

/* Body */
.case-body {
  padding-bottom: 72px;
}

.case-body h2 {
  font-size: 1.5rem;
  margin-top: 48px;
  margin-bottom: 12px;
}

.case-body h3 {
  font-size: 1.15rem;
  margin-top: 34px;
  margin-bottom: 8px;
  padding-left: 16px;
  border-left: 3px solid var(--green);
}

.case-body p {
  margin-bottom: 16px;
}

/* Screenshots */
.case-figure {
  margin: 36px 0;
}

.case-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.case-figure figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #64748B;
  line-height: 1.5;
}

/* Pull quote */
.case-quote {
  margin: 40px 0;
  padding: 28px 32px;
  background: var(--navy);
  border-radius: var(--radius);
}

.case-quote p {
  color: #fff;
  font-size: 1.08rem;
  font-style: italic;
  margin-bottom: 14px;
}

.case-quote footer {
  color: var(--green);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Closing notes */
.case-note,
.case-timescale {
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.case-timescale {
  margin-top: 16px;
  color: #475569;
}

@media (max-width: 620px) {
  .case-glance {
    padding: 22px 24px;
  }
}

/* ============================================================
   Social links
   ============================================================ */
.footer-social {
  margin-top: 14px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: #fff;
}

.footer-social svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Header version: icon only, no label */
.nav-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--navy);
  background: var(--blue-tint);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-social a:hover {
  background: var(--blue);
  color: #fff;
}

.nav-social svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 720px) {
  .nav-social a {
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    gap: 10px;
    justify-content: flex-start;
  }
  .nav-social a::after {
    content: "Facebook";
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-social a,
  .nav-social a { transition: none; }
}

/* ============================================================
   About
   ============================================================ */
.about {
  background: #fff;
  border-block: 1px solid var(--border);
}

.about-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.about-photo {
  position: relative;
}

.about-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Small green corner block, echoing the staircase motif */
.about-photo::after {
  content: "";
  position: absolute;
  right: -14px;
  bottom: -14px;
  width: 92px;
  height: 92px;
  border-radius: var(--radius);
  background: var(--green);
  z-index: -1;
}

.about-copy p {
  margin-bottom: 16px;
}

.about-cta {
  margin-top: 24px;
}

@media (max-width: 860px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-photo {
    max-width: 340px;
  }
}

/* ============================================================
   Blog - listing page and post pages
   Reuses .case-inner, .case-body, .case-figure and .breadcrumb
   from the case study styles for the long-form body.
   ============================================================ */

/* ---- Listing page ---- */
.blog-hero {
  padding-block: 56px 32px;
}

.blog-hero .lead {
  max-width: 600px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.post-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.post-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-card-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-card-date {
  font-size: 0.85rem;
  color: #64748B;
  margin-bottom: 8px;
}

.post-card h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.post-card h2 a {
  color: var(--navy);
  text-decoration: none;
}

.post-card h2 a:hover {
  color: var(--blue);
}

.post-card-excerpt {
  flex-grow: 1;
  margin-bottom: 16px;
}

.post-card-link {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.post-card-link:hover {
  text-decoration: underline;
}

/* ---- Post page ---- */
.post-hero {
  padding-block: 48px 0;
}

.post-hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  margin-bottom: 18px;
}

.post-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 0.92rem;
  color: #64748B;
  margin-bottom: 32px;
}

.post-byline strong {
  color: var(--navy);
  font-weight: 600;
}

.post-featured {
  margin: 0 0 8px;
}

.post-featured img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.post-featured figcaption {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #94A3B8;
}

.post-featured figcaption a {
  color: #94A3B8;
}

/* Portrait screenshot inside the article body */
.case-figure.is-portrait img {
  max-width: 400px;
  margin-inline: auto;
}

/* Inline CTA row beneath a section */
.post-cta-row {
  margin: 24px 0 8px;
}

/* Numbered steps in the body - the list genuinely is a sequence */
.case-body ol {
  margin: 0 0 20px;
  padding-left: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 12px;
}

.case-body ol li {
  counter-increment: step;
  position: relative;
  padding-left: 48px;
  padding-top: 4px;
  min-height: 34px;
}

.case-body ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- "Why profiles get overlooked" icon grid ----
   Six-column grid so that five cards sit as three over two,
   with the bottom two centred. Single column on mobile. */
.flags-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin: 28px 0 32px;
  list-style: none;
  padding: 0;
}

.flag-card {
  grid-column: span 2;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.flag-card:nth-child(4) { grid-column: 2 / span 2; }
.flag-card:nth-child(5) { grid-column: 4 / span 2; }

.flag-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-tint);
  color: var(--blue);
  margin-bottom: 14px;
}

.flag-icon svg {
  width: 22px;
  height: 22px;
}

.flag-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
  /* override the case-study h3 treatment */
  margin-top: 0;
  padding-left: 0;
  border-left: none;
}

.flag-card p {
  font-size: 0.93rem;
  margin-bottom: 0;
  color: #475569;
}

/* ---- FAQ accordion ----
   Each item: a button (the question) and a panel (the answer).
   The panel uses a grid-rows transition, which animates height
   without JavaScript having to measure anything. */
.faq {
  margin: 24px 0 8px;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy);
  cursor: pointer;
}

.faq-q:hover {
  color: var(--blue);
}

.faq-q:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}

.faq-chevron {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--blue);
  transition: transform 0.25s ease;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
}

.faq-a-inner {
  overflow: hidden;
}

.faq-a-inner p {
  padding: 0 4px 18px;
  margin-bottom: 0;
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .flags-grid {
    grid-template-columns: 1fr;
  }
  .flag-card,
  .flag-card:nth-child(4),
  .flag-card:nth-child(5) {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-chevron,
  .faq-a {
    transition: none;
  }
}

/* ============================================================
   Newsletter signup (blog page)
   ============================================================ */
.tips-signup {
  padding-block: 40px;
}

.tips-signup-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 44px;
}

.tips-signup-copy {
  max-width: 460px;
}

.tips-signup-copy .section-heading {
  margin-bottom: 6px;
}

.tips-signup-embed {
  flex: 1 1 320px;
  min-width: 280px;
}

@media (max-width: 820px) {
  .tips-signup-inner {
    padding: 32px 28px;
  }
}

/* ============================================================
   Header logo — icon mark + text lockup
   TRIAL: swaps the full logo.png image for a cropped icon
   (images/logo-icon.png) plus a text lockup in the heading font.
   To revert: change each header's logo-link back to a single
   <img src="images/logo.png" class="logo" width="220" height="120">
   and delete this block (the original .logo rule below was left
   untouched so reverting the markup is enough).
   ============================================================ */
.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  height: 44px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--navy);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .logo-mark {
    height: 34px;
  }

  .logo-text {
    font-size: 1.05rem;
  }
}

/* ============================================================
   North Wales coast page - navy hero band

   A modifier on .page-hero, not a change to it. The care plans
   and case study heroes share .page-hero and must stay light.

   Contrast against the navy, all measured:
   white 17.85:1, #CBD5E1 12.02:1, eyebrow blue 4.85:1.
   ============================================================ */
.page-hero-dark {
  background: var(--navy);
  padding-block: 72px 56px;
}

.page-hero-dark h1 {
  color: #fff;
}

.page-hero-dark .lead {
  color: #fff;
}

/* Same grey the footer and the How it works band already use for
   secondary text on navy. A solid colour, not a faded white. */
.page-hero-dark .lead-sub {
  color: #CBD5E1;
}

/* The shared .btn-secondary is a dark outline with dark text, which
   would vanish here, so it inverts inside the band. */
.page-hero-dark .btn-secondary {
  color: #fff;
  border-color: #fff;
}

.page-hero-dark .btn-secondary:hover {
  background: #fff;
  color: var(--navy);
}

/* The shared .btn-primary:hover turns the label white, which is only
   3.3:1 on the green. Held dark inside the band. */
.page-hero-dark .btn-primary:hover {
  color: var(--navy);
}

/* Marks the seam where the navy hero meets the light page. A
   rotated green square, the same motif as .about-photo::after.
   Zero height, so it adds no layout of its own. */
.hero-seam {
  position: relative;
  height: 0;
}

.hero-seam::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: var(--green);
  border-radius: 9px;
}

/* ============================================================
   North Wales coast page - What it costs

   The price lockup borrows the panel treatment already used by
   .case-glance and .which-card: white, hairline border, 4px sky
   blue left edge. The offer callout is the same panel filled
   with the existing --blue-tint.
   ============================================================ */
.cost-lockup {
  margin: 20px 0 28px;
  padding: 26px 30px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
}

/* Scoped through the parent so these beat .case-body p, which is a
   class plus an element and would otherwise win on specificity and
   put 16px under every line. */
.cost-lockup .cost-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 10px;
}

/* Deliberately at body size and full body colour. This states a
   requirement, not a footnote, so it must not read as small print.
   Weight and the heading face carry the step down from the price,
   never a smaller size or a grey. */
.cost-lockup .cost-required {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 10px;
}

.cost-lockup .cost-vat {
  font-size: 0.95rem;
  color: #475569;
  margin-bottom: 0;
}

.case-body .cost-offer {
  margin: 8px 0 20px;
  padding: 20px 24px;
  background: var(--blue-tint);
  border-radius: var(--radius);
  color: var(--text);
}

@media (max-width: 620px) {
  .cost-lockup {
    padding: 22px 22px;
  }

  .cost-lockup .cost-price {
    font-size: 1.5rem;
  }

  .case-body .cost-offer {
    padding: 18px 20px;
  }
}