/* ==========================================================================
   Creative Concepts for Children
   Design tokens — every colour, size and radius the site uses lives here.
   Change a value once and it updates everywhere.
   ========================================================================== */

:root {
  /* Brand — one per flower petal */
  --pink:   #FF4D6D;
  --orange: #FF9D2B;
  --yellow: #FFD13F;
  --green:  #3DBE8B;
  --blue:   #2C9CDA;
  --purple: #9B5DE5;

  /* Neutrals */
  --cream:      #FFFAF2;
  --white:      #FFFFFF;
  --ink:        #17161C;
  --muted:      #5D5A66;
  --blue-light: #5FBDEA;

  /* Hairlines and washes over ink */
  --line:        rgba(23, 22, 28, 0.07);
  --line-strong: rgba(23, 22, 28, 0.14);
  --line-soft:   rgba(23, 22, 28, 0.06);

  /* Type */
  --font-display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --wrap:      1200px;
  --wrap-mid:  1080px;
  --wrap-text: 880px;
  --gutter:    clamp(20px, 5vw, 64px);
  --section-y: clamp(60px, 7vw, 104px);

  /* Elevation */
  --shadow-sm: 0 4px 14px rgba(23, 22, 28, 0.05);
  --shadow-md: 0 12px 30px rgba(23, 22, 28, 0.08);
  --shadow-lg: 0 18px 44px rgba(23, 22, 28, 0.09);
  --shadow-xl: 0 24px 60px rgba(23, 22, 28, 0.08);

  /* Radii */
  --r-sm:   14px;
  --r-md:   18px;
  --r-lg:   22px;
  --r-xl:   26px;
  --r-2xl:  32px;
  --r-pill: 999px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  /* Keep anchored sections clear of the sticky header */
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* Components below set display on these elements, which would otherwise beat
   the UA stylesheet's [hidden] rule. Keep the attribute authoritative. */
[hidden] { display: none !important; }

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.16s ease;
}
a:hover { color: var(--pink); }

input, textarea, select, button { font-family: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: pretty;
  margin: 0;
}

p { margin: 0; }

/* Visible keyboard focus everywhere, without punishing mouse users. */
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--r-pill);
}
.skip-link:focus {
  left: 16px;
  color: var(--cream);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.wrap     { max-width: var(--wrap);      margin-inline: auto; }
.wrap-mid { max-width: var(--wrap-mid);  margin-inline: auto; }
.wrap-text{ max-width: var(--wrap-text); margin-inline: auto; }

.section { padding: var(--section-y) var(--gutter); }

/* A white band with hairlines top and bottom, alternating against the cream. */
.section--panel {
  background: var(--white);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section--dark {
  background: var(--ink);
  color: var(--cream);
}

/* Section eyebrow — the small uppercase label above each heading. */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: clamp(32px, 4vw, 52px);
}

.section-head__note {
  font-size: 17px;
  color: var(--muted);
  max-width: 38ch;
}

.h2 { font-size: clamp(30px, 3.6vw, 46px); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
  text-align: center;
  transition: background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, transform 0.18s ease;
}

.btn--primary {
  color: var(--white);
  background: var(--pink);
  box-shadow: 0 10px 26px rgba(255, 77, 109, 0.34);
}
.btn--primary:hover { background: var(--ink); color: var(--white); }

.btn--ghost {
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid rgba(23, 22, 28, 0.12);
}
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn--lg { font-size: 17px; padding: 16px 30px; }
.btn--sm { font-size: 15px; padding: 11px 20px; box-shadow: 0 6px 18px rgba(255, 77, 109, 0.32); }

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 242, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  flex-shrink: 0;
}
.logo:hover { color: var(--ink); }

.logo__mark { width: 44px; height: 44px; }

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.logo__tag {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.38em;
  color: var(--blue);
  margin-top: 5px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
}

.nav__link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
}
/* Each nav item picks up a different petal colour on hover. */
.nav__link[data-accent="pink"]:hover   { color: var(--pink); }
.nav__link[data-accent="orange"]:hover { color: var(--orange); }
.nav__link[data-accent="green"]:hover  { color: var(--green); }
.nav__link[data-accent="purple"]:hover { color: var(--purple); }

/* Mobile menu toggle — hidden until the nav no longer fits. */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px var(--gutter) 20px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav__link { padding: 12px 4px; font-size: 17px; }
  .nav .btn { margin-top: 8px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(56px, 7vw, 104px);
}

/* Decorative floating blobs — purely ornamental. */
.blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.blob--yellow {
  top: 6%; right: 4%;
  width: 120px; height: 120px;
  background: var(--yellow);
  opacity: 0.35;
  filter: blur(2px);
  animation: float 9s ease-in-out infinite;
}
.blob--purple {
  bottom: 12%; left: 2%;
  width: 70px; height: 70px;
  background: var(--purple);
  opacity: 0.28;
  animation: float 11s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(6deg); }
}

.hero__grid {
  position: relative;
  max-width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero__col { min-width: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--white);
  border: 1px solid rgba(23, 22, 28, 0.08);
  padding: 8px 16px 8px 10px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
}
.badge__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.hero__title {
  font-weight: 700;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 22px 0 0;
  text-wrap: balance;
  max-width: 19ch;
}

.hero__lede {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--muted);
  max-width: 52ch;
  margin-top: 20px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* The six petal dots under the hero copy. */
.swatches {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.swatch { width: 12px; height: 12px; border-radius: 50%; }
.swatches__label {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--muted);
  margin-left: 6px;
}

.hero__collage {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hero__collage .media:first-child {
  grid-column: 1 / span 2;
  height: clamp(220px, 26vw, 300px);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.hero__collage .media:not(:first-child) {
  height: clamp(140px, 16vw, 190px);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Media placeholders
   Each .media is a drop-in point for a real photograph. Until one is added
   it renders a tinted, labelled panel so the layout reads as intentional
   rather than broken. See README for how to swap in real images.
   ========================================================================== */

.media {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--r-lg);
}

.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  text-align: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 209, 63, 0.30), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(155, 93, 229, 0.22), transparent 55%),
    linear-gradient(140deg, rgba(255, 77, 109, 0.14), rgba(44, 156, 218, 0.16));
}

.media__placeholder::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: var(--r-pill) var(--r-pill) var(--r-pill) 4px;
  background: rgba(255, 255, 255, 0.75);
  flex-shrink: 0;
}

.media__label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink);
  opacity: 0.62;
  max-width: 26ch;
}

/* ==========================================================================
   What we make — the six service cards
   ========================================================================== */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}

/* Six cards under a heading that says "six petals" should read as 3 x 2,
   not 4 + an orphan row. Below this width auto-fit takes over again. */
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 26px 30px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

/* The petal-shaped colour chip at the top of each card. */
.card__chip {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: var(--r-pill) var(--r-pill) var(--r-pill) 4px;
  margin-bottom: 20px;
}

.card__title {
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.card__body {
  font-size: 16px;
  line-height: 1.62;
  color: var(--muted);
}

/* One accent per card, matching the flower. */
.card[data-accent="pink"]   .card__chip { background: var(--pink); }
.card[data-accent="orange"] .card__chip { background: var(--orange); }
.card[data-accent="yellow"] .card__chip { background: var(--yellow); }
.card[data-accent="green"]  .card__chip { background: var(--green); }
.card[data-accent="blue"]   .card__chip { background: var(--blue); }
.card[data-accent="purple"] .card__chip { background: var(--purple); }

.card:hover { transform: translateY(-4px); }
.card[data-accent="pink"]:hover   { box-shadow: 0 16px 34px rgba(255, 77, 109, 0.16); border-color: rgba(255, 77, 109, 0.35); }
.card[data-accent="orange"]:hover { box-shadow: 0 16px 34px rgba(255, 157, 43, 0.16); border-color: rgba(255, 157, 43, 0.40); }
.card[data-accent="yellow"]:hover { box-shadow: 0 16px 34px rgba(255, 209, 63, 0.22); border-color: rgba(255, 209, 63, 0.55); }
.card[data-accent="green"]:hover  { box-shadow: 0 16px 34px rgba(61, 190, 139, 0.18); border-color: rgba(61, 190, 139, 0.40); }
.card[data-accent="blue"]:hover   { box-shadow: 0 16px 34px rgba(44, 156, 218, 0.18); border-color: rgba(44, 156, 218, 0.40); }
.card[data-accent="purple"]:hover { box-shadow: 0 16px 34px rgba(155, 93, 229, 0.18); border-color: rgba(155, 93, 229, 0.40); }

/* ==========================================================================
   How it works — three numbered steps
   ========================================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(20px, 3vw, 34px);
}

.step__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step[data-accent="pink"]  .step__num { background: var(--pink); }
.step[data-accent="blue"]  .step__num { background: var(--blue); }
.step[data-accent="green"] .step__num { background: var(--green); }

/* Dashed rule trailing off from each step number. */
.step__rule {
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgba(23, 22, 28, 0.16) 0 8px,
    transparent 8px 16px
  );
}

.step__title {
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.step__body {
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--muted);
}

/* ==========================================================================
   Gallery — a mixed-size mosaic
   ========================================================================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.gallery .media {
  min-height: clamp(180px, 20vw, 227px);
  border-radius: var(--r-xl);
  background: var(--cream);
}
.gallery .media--tall { grid-row: span 2; min-height: clamp(300px, 38vw, 470px); }
.gallery .media--wide { grid-column: span 2; min-height: clamp(200px, 22vw, 260px); }

/* On narrow screens the spanning tiles would overflow a single column. */
@media (max-width: 560px) {
  .gallery .media--tall,
  .gallery .media--wide { grid-row: auto; grid-column: auto; }
}

.link-underline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 3px;
  transition: color 0.16s ease, border-color 0.16s ease;
}
.link-underline:hover { color: var(--pink); border-color: var(--pink); }

/* ==========================================================================
   About
   ========================================================================== */

.about {
  max-width: 1120px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.about__figure { position: relative; min-width: 0; }

/* Yellow disc peeking out behind the portrait. */
.about__figure::before {
  content: "";
  position: absolute;
  inset: -14px -14px auto auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--yellow);
  opacity: 0.5;
  z-index: 0;
}

.about__figure .media {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  box-shadow: 0 20px 46px rgba(23, 22, 28, 0.10);
}

.about__title {
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 44px);
  margin-bottom: 20px;
}

.about__body {
  font-size: 17.5px;
  line-height: 1.66;
  color: var(--muted);
  margin-bottom: 16px;
  max-width: 56ch;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.pill {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14.5px;
  background: var(--white);
  border: 1px solid rgba(23, 22, 28, 0.09);
  padding: 9px 16px;
  border-radius: var(--r-pill);
}

/* ==========================================================================
   Testimonials (dark band)
   ========================================================================== */

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}

.quote {
  margin: 0;
  background: rgba(255, 250, 242, 0.06);
  border: 1px solid rgba(255, 250, 242, 0.12);
  border-radius: var(--r-lg);
  padding: 28px 26px;
}

.quote__text {
  font-size: 17.5px;
  line-height: 1.6;
  margin-bottom: 22px;
}

.quote__by {
  display: flex;
  align-items: center;
  gap: 12px;
}

.quote__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
}

.quote__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
}

/* ==========================================================================
   FAQ
   Built on <details> so it still opens and closes with JavaScript disabled.
   main.js only adds the "one open at a time" behaviour on top.
   ========================================================================== */

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--white);
  border: 1px solid rgba(23, 22, 28, 0.08);
  border-radius: var(--r-md);
  overflow: hidden;
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  list-style: none;
  transition: color 0.16s ease;
}
/* Remove the native disclosure triangle in every engine. */
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }

.faq__sign {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}
/* The +/– flips purely from the open state — no JS needed. */
.faq__sign::after { content: "+"; }
.faq__item[open] .faq__sign::after { content: "\2013"; }

.faq__item[data-accent="pink"]   .faq__q:hover { color: var(--pink); }
.faq__item[data-accent="pink"]   .faq__sign    { color: var(--pink); }
.faq__item[data-accent="orange"] .faq__q:hover { color: var(--orange); }
.faq__item[data-accent="orange"] .faq__sign    { color: var(--orange); }
.faq__item[data-accent="amber"]  .faq__q:hover { color: #FFB300; }
.faq__item[data-accent="amber"]  .faq__sign    { color: #FFB300; }
.faq__item[data-accent="green"]  .faq__q:hover { color: var(--green); }
.faq__item[data-accent="green"]  .faq__sign    { color: var(--green); }
.faq__item[data-accent="blue"]   .faq__q:hover { color: var(--blue); }
.faq__item[data-accent="blue"]   .faq__sign    { color: var(--blue); }
.faq__item[data-accent="purple"] .faq__q:hover { color: var(--purple); }
.faq__item[data-accent="purple"] .faq__sign    { color: var(--purple); }

.faq__a {
  font-size: 16.5px;
  line-height: 1.66;
  color: var(--muted);
  padding: 0 24px 24px;
}

/* ==========================================================================
   Instagram
   ========================================================================== */

.ig-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.ig-grid .media {
  aspect-ratio: 1;
  border-radius: 16px;
  background: var(--cream);
}

/* Real posts become links; give them a little lift on hover. */
a.media {
  display: block;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
a.media:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-card {
  max-width: var(--wrap-mid);
  margin-inline: auto;
  background: var(--white);
  border: 1px solid rgba(23, 22, 28, 0.08);
  border-radius: var(--r-2xl);
  padding: clamp(28px, 4vw, 56px);
  box-shadow: var(--shadow-xl);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(28px, 4vw, 56px);
}

.contact-card__col { min-width: 0; }

.contact__mark { width: 64px; height: 64px; margin-bottom: 20px; }

.contact__title {
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 42px);
  margin-bottom: 16px;
}

.contact__lede {
  font-size: 17px;
  line-height: 1.64;
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 44ch;
}

.contact__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 8px;
}

.contact__note {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 22px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  padding: 14px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.field textarea { resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}
/* Keep a visible ring for keyboard users on top of the colour change. */
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid rgba(44, 156, 218, 0.35);
  outline-offset: 1px;
}

.form__submit { margin-top: 6px; padding: 16px 28px; font-size: 17px; }

.form__note {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 2px;
}

.form__error {
  font-size: 15px;
  line-height: 1.55;
  color: #C22B49;
  background: rgba(255, 77, 109, 0.08);
  border: 1px solid rgba(255, 77, 109, 0.30);
  border-radius: var(--r-sm);
  padding: 12px 14px;
}

/* Success panel shown after the form submits. */
.thanks {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
  background: var(--cream);
  border: 1.5px dashed rgba(61, 190, 139, 0.55);
  border-radius: 20px;
  padding: 36px 30px;
}

.thanks__tick {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
}

.thanks__title {
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.thanks__body {
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--muted);
}

.link-button {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  background: none;
  border: 0;
  padding: 0;
  color: var(--blue);
  cursor: pointer;
  text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(44px, 5vw, 64px) var(--gutter);
}

.footer__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}

.footer .logo { color: var(--cream); }
.footer .logo__mark { width: 46px; height: 46px; }
.footer .logo__tag { color: var(--blue-light); }

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

.footer__link {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--cream);
}
.footer__link:hover { color: var(--yellow); }

.footer__copy {
  font-size: 14px;
  color: rgba(255, 250, 242, 0.6);
}

/* ==========================================================================
   Touch targets
   --------------------------------------------------------------------------
   Inline text links sit around 24-31px tall, below the 44px that fingers
   need — and the five footer links sit close together, which is exactly
   where mis-taps happen. These rules grow the *hit area* with an overlay
   pseudo-element, so nothing moves visually.
   ========================================================================== */

.contact__email {
  font-size: 17px;
  font-weight: 600;
}

@media (max-width: 860px) {
  .footer__link,
  .link-underline,
  .contact__email {
    position: relative;
    display: inline-block;
  }

  .footer__link::after,
  .link-underline::after,
  .contact__email::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 44px;
  }

  /* Space the footer rows so the enlarged areas don't overlap each other. */
  .footer__nav { gap: 12px 22px; }
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .card:hover,
  a.media:hover { transform: none; }
}
