/* Phoenix Renewed — bespoke 2026 system (not a template) */

:root {
  --ink: #120f14;
  --ink-soft: #2a2430;
  --mist: #e8e4dc;
  --parchment: #f3efe6;
  --cream: #faf7f0;
  --ember: #c45c3a;
  --ember-glow: #e07850;
  --gold: #b8956a;
  --sage: #5c6b5a;
  --deep: #0d0b10;
  --deep-elevated: #16121c;
  --line: rgba(18, 15, 20, 0.08);
  --line-light: rgba(255, 250, 242, 0.12);
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-soft: 0 24px 60px rgba(12, 8, 20, 0.12);
  --shadow-lift: 0 12px 40px rgba(12, 8, 20, 0.18);
  --header-h: 4.5rem;
  --font-display: "Fraunces", "Georgia", serif;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --focus: 2px solid var(--ember-glow);
  --focus-offset: 3px;
  /* One width for all main content blocks (matches hero inner) */
  --section-max: 72rem;
}

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

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overflow-x: clip;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--cream);
  font-optical-sizing: auto;
  overflow-wrap: break-word;
}

body.nav-open {
  overflow: hidden;
}

.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;
}

a:focus-visible,
button:focus-visible {
  outline: var(--focus);
  outline-offset: var(--focus-offset);
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--deep);
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.skip-link:focus,
.skip-link:focus-visible {
  left: 0.75rem;
  top: 0.75rem;
}

/* —— Page texture —— */
.phx-canvas {
  position: relative;
  min-height: 100vh;
}

.phx-canvas::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* —— Header —— */
.shell-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.6rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(250, 247, 240, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px) saturate(1.2);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.shell-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 40px rgba(12, 8, 20, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex-shrink: 1;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  height: 2.65rem;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.06));
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  min-width: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sage);
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ember), var(--gold));
  transition: width 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(52vh, 420px);
  display: grid;
  align-items: end;
  padding: clamp(2.5rem, 8vw, 4rem) clamp(1.25rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2.5rem);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 768px) {
  .hero {
    min-height: min(78vh, 720px);
    padding: clamp(3.5rem, 11vw, 6rem) clamp(1.25rem, 5vw, 3.5rem) clamp(2rem, 5vw, 3.5rem);
  }
}

.hero__mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 100% 80% at 20% 0%, rgba(196, 92, 58, 0.45), transparent 55%),
    radial-gradient(ellipse 70% 60% at 85% 30%, rgba(184, 149, 106, 0.25), transparent 50%),
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(30, 24, 40, 0.95), transparent 60%),
    linear-gradient(165deg, #1a1422 0%, #0d0b12 45%, #120a0c 100%);
}

/* Soft bokeh: sits *above* the photo wash so motion is visible; de-synced loops feel organic */
.hero__bokeh {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.hero__bokeh-spot {
  position: absolute;
  border-radius: 50%;
  filter: blur(56px);
  mix-blend-mode: screen;
  opacity: 0.55;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.hero__bokeh-spot--1 {
  width: min(72vmin, 480px);
  height: min(72vmin, 480px);
  left: -18%;
  top: -14%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 200, 160, 0.55), rgba(224, 120, 80, 0.2) 45%, transparent 68%);
}

.hero__bokeh-spot--2 {
  width: min(62vmin, 400px);
  height: min(62vmin, 400px);
  right: -14%;
  top: 12%;
  background: radial-gradient(circle at 50% 50%, rgba(196, 92, 58, 0.5), rgba(120, 60, 45, 0.15) 50%, transparent 70%);
}

.hero__bokeh-spot--3 {
  width: min(88vmin, 560px);
  height: min(88vmin, 560px);
  left: 18%;
  bottom: -28%;
  background: radial-gradient(circle at 35% 35%, rgba(184, 149, 106, 0.45), rgba(80, 50, 40, 0.12) 55%, transparent 72%);
}

.hero__bokeh-spot--4 {
  width: min(52vmin, 320px);
  height: min(52vmin, 320px);
  left: 38%;
  top: 18%;
  background: radial-gradient(circle at 50% 50%, rgba(250, 247, 240, 0.35), rgba(224, 120, 80, 0.12) 40%, transparent 65%);
  opacity: 0.5;
  mix-blend-mode: screen;
}

.hero__bokeh-spot--5 {
  width: min(68vmin, 440px);
  height: min(68vmin, 440px);
  right: 12%;
  bottom: -4%;
  background: radial-gradient(circle at 60% 40%, rgba(224, 100, 70, 0.4), rgba(40, 28, 36, 0.2) 48%, transparent 68%);
}

@media (prefers-reduced-motion: no-preference) {
  /* % translate is relative to each orb’s own size — larger % so drift reads on screen */
  @keyframes phx-bokeh-a {
    0%,
    100% {
      transform: translate3d(0, 0, 0) scale(1);
    }
    18% {
      transform: translate3d(18%, -22%, 0) scale(1.12);
    }
    38% {
      transform: translate3d(-14%, 16%, 0) scale(0.9);
    }
    58% {
      transform: translate3d(12%, 24%, 0) scale(1.06);
    }
    78% {
      transform: translate3d(-20%, -10%, 0) scale(1.1);
    }
  }

  @keyframes phx-bokeh-b {
    0%,
    100% {
      transform: translate3d(0, 0, 0) scale(1);
    }
    22% {
      transform: translate3d(-22%, 18%, 0) scale(1.14);
    }
    44% {
      transform: translate3d(16%, -20%, 0) scale(0.88);
    }
    66% {
      transform: translate3d(-12%, -16%, 0) scale(1.08);
    }
    85% {
      transform: translate3d(20%, 14%, 0) scale(0.96);
    }
  }

  @keyframes phx-bokeh-c {
    0%,
    100% {
      transform: translate3d(0, 0, 0) scale(1);
    }
    15% {
      transform: translate3d(-16%, -24%, 0) scale(1.08);
    }
    35% {
      transform: translate3d(24%, 10%, 0) scale(0.92);
    }
    55% {
      transform: translate3d(-8%, 26%, 0) scale(1.14);
    }
    72% {
      transform: translate3d(14%, -12%, 0) scale(1);
    }
    90% {
      transform: translate3d(-18%, 18%, 0) scale(0.9);
    }
  }

  @keyframes phx-bokeh-d {
    0%,
    100% {
      transform: translate3d(0, 0, 0) scale(1);
    }
    25% {
      transform: translate3d(14%, 22%, 0) scale(1.18);
    }
    50% {
      transform: translate3d(-26%, -12%, 0) scale(0.86);
    }
    75% {
      transform: translate3d(10%, -18%, 0) scale(1.1);
    }
  }

  @keyframes phx-bokeh-e {
    0%,
    100% {
      transform: translate3d(0, 0, 0) scale(1);
    }
    20% {
      transform: translate3d(16%, 20%, 0) scale(0.88);
    }
    40% {
      transform: translate3d(-14%, -22%, 0) scale(1.12);
    }
    60% {
      transform: translate3d(22%, -10%, 0) scale(1.04);
    }
    80% {
      transform: translate3d(-16%, 22%, 0) scale(0.94);
    }
  }

  .hero__bokeh-spot--1 {
    animation: phx-bokeh-a 72s cubic-bezier(0.45, 0, 0.55, 1) infinite;
    animation-delay: -14s;
  }

  .hero__bokeh-spot--2 {
    animation: phx-bokeh-b 88s cubic-bezier(0.4, 0.05, 0.2, 1) infinite;
    animation-delay: -38s;
  }

  .hero__bokeh-spot--3 {
    animation: phx-bokeh-c 100s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    animation-delay: -22s;
  }

  .hero__bokeh-spot--4 {
    animation: phx-bokeh-d 52s cubic-bezier(0.35, 0.1, 0.25, 1) infinite;
    animation-delay: -28s;
  }

  .hero__bokeh-spot--5 {
    animation: phx-bokeh-e 80s cubic-bezier(0.42, 0, 0.58, 1) infinite;
    animation-delay: -48s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bokeh-spot {
    animation: none !important;
  }
}

.hero__photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.22;
  background: url("../images/jesse-gardner-rfipIDrHGAc-unsplash.jpg") center / cover no-repeat;
  mix-blend-mode: overlay;
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__svg {
  position: absolute;
  right: -8%;
  top: 10%;
  width: min(42vw, 280px);
  height: auto;
  z-index: 4;
  opacity: 0.12;
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero__svg {
    right: -5%;
    top: 15%;
    width: min(55vw, 520px);
    opacity: 0.14;
  }
}

.hero__inner {
  position: relative;
  z-index: 5;
  max-width: 72rem;
  margin: 0 auto;
  width: 100%;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 2rem;
  }
}

.hero__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  order: 2;
}

@media (min-width: 768px) {
  .hero__social {
    flex-direction: column;
    align-items: flex-end;
    order: unset;
  }
}

.hero__social a {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(250, 247, 240, 0.75);
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(224, 120, 80, 0.5);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero__social a:hover,
.hero__social a:focus-visible {
  color: #fff;
  border-bottom-color: var(--ember-glow);
}

.hero__titleblock {
  /* Wide enough for “Counselling” + display font; ch was tied to body font and was too narrow */
  max-width: min(34rem, 92vw);
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.25rem);
  font-weight: 600;
  font-variation-settings: "SOFT" 40, "WONK" 0.9;
  letter-spacing: -0.03em;
  line-height: 1.05;
  /* Explicit <br> defines lines; avoid body break-word splitting “Counselling” */
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.hero__kicker {
  display: block;
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.hero__tagline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.5vw, 1.65rem);
  font-style: italic;
  font-weight: 400;
  color: rgba(250, 247, 240, 0.88);
  letter-spacing: -0.01em;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  padding: 0.9rem 1.35rem;
  max-width: 100%;
  width: min(100%, 20rem);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  color: var(--cream);
  background: linear-gradient(135deg, var(--ember) 0%, #a34a2e 100%);
  border: 1px solid rgba(255, 250, 242, 0.2);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 24px rgba(196, 92, 58, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.15) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.hero__cta:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 28px rgba(224, 120, 80, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.12) inset;
}

.hero__cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--cream), 0 0 0 6px var(--ember-glow);
}

@media (min-width: 768px) {
  .hero__cta {
    width: auto;
    margin-top: 0.5rem;
    padding: 0.85rem 1.6rem;
  }
}

.hero__ribbon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding: 0.5rem 1rem 0.5rem 0.65rem;
  background: rgba(255, 250, 242, 0.08);
  border: 1px solid var(--line-light);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(250, 247, 240, 0.9);
}

.hero__ribbon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ember-glow), var(--gold));
  box-shadow: 0 0 12px var(--ember-glow);
}

@media (min-width: 768px) {
  .hero__ribbon {
    margin-top: 1.35rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes phx-float {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-6px);
    }
  }

  .hero__svg {
    animation: phx-float 14s ease-in-out infinite;
  }
}

/* —— Bands & sections —— */
main > section {
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.band {
  position: relative;
}

.band--parchment {
  background: var(--parchment);
  color: var(--ink-soft);
}

.band--mist {
  background: linear-gradient(180deg, var(--mist) 0%, #ddd8cf 100%);
  color: var(--ink-soft);
}

.band--deep {
  background: linear-gradient(180deg, var(--deep-elevated) 0%, var(--deep) 100%);
  color: rgba(250, 247, 240, 0.92);
}

.band--deep h2,
.band--deep h3 {
  color: #fff;
}

.band--deep a {
  color: var(--ember-glow);
}

.band--ember {
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(196, 92, 58, 0.12), transparent 50%),
    var(--cream);
}

.section-wrap {
  max-width: var(--section-max);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.25rem, 5vw, 2.5rem);
}

/* Kept for backwards compatibility; same width as .section-wrap */
.section-wrap--wide {
  max-width: var(--section-max);
}

.section-head {
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.section-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 0.5rem;
}

.band--deep .section-eyebrow {
  color: var(--gold);
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
  color: var(--ink);
}

.band--deep .section-head h2 {
  color: #fff;
}

.prose > p {
  margin: 0 0 1.1rem;
  max-width: 65ch;
}

.prose > p:last-child {
  margin-bottom: 0;
}

/* —— Intro split —— */
.intro-split {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

@media (min-width: 900px) {
  .intro-split {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 6vw, 4rem);
  }
}

.intro-visual {
  margin: 0;
  position: relative;
}

.intro-visual::before {
  content: "";
  position: absolute;
  inset: -8% 10% 12% -10%;
  background: linear-gradient(135deg, rgba(196, 92, 58, 0.15), rgba(184, 149, 106, 0.12));
  border-radius: var(--radius-lg);
  z-index: 0;
}

.intro-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  clip-path: polygon(0 0, 100% 2%, 100% 100%, 0 98%);
}

.intro-name {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.intro-role {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
}

.phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding: 0.85rem 1.35rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: var(--cream);
  background: linear-gradient(135deg, var(--ink) 0%, #2a1f28 100%);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.phone-cta:hover,
.phone-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

@media (prefers-reduced-motion: reduce) {
  .phone-cta:hover,
  .phone-cta:focus-visible {
    transform: none;
  }
}

/* —— Pillars (approach) —— */
.pillar-grid {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 2.5rem;
  list-style: none;
  padding: 0;
}

@media (min-width: 640px) {
  .pillar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar-card {
  padding: 1.35rem 1.25rem;
  background: rgba(255, 250, 242, 0.06);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
}

.pillar-card__n {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--ember-glow);
  opacity: 0.85;
  line-height: 1;
  margin-bottom: 0.65rem;
}

.pillar-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.pillar-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(250, 247, 240, 0.82);
}

/* —— Services bento —— */
.service-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  margin: 0;
  padding: 1.35rem 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 24px rgba(12, 8, 20, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  border-color: rgba(196, 92, 58, 0.25);
  box-shadow: var(--shadow-soft);
}

.service-card h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.service-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--sage);
}

/* —— Location —— */
.location-lead {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  text-align: center;
  margin: 0 0 1.75rem;
  color: rgba(250, 247, 240, 0.88);
}

.gallery {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line-light);
}

.gallery-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

@media (prefers-reduced-motion: reduce) {
  .gallery-track {
    transition: none;
  }
}

.gallery-track img {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 250, 242, 0.35);
  border-radius: 50%;
  background: rgba(13, 11, 16, 0.55);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.gallery-btn:hover,
.gallery-btn:focus-visible {
  background: var(--ember);
  border-color: var(--ember-glow);
}

.gallery-prev {
  left: 1rem;
}

.gallery-next {
  right: 1rem;
}

.gallery-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.45);
}

.gallery-dot {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gallery-dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, background 0.2s ease;
}

.gallery-dot[aria-current="true"]::before {
  background: var(--ember-glow);
  transform: scale(1.2);
  box-shadow: 0 0 10px var(--ember-glow);
}

@media (prefers-reduced-motion: reduce) {
  .gallery-dot::before {
    transition: none;
  }
}

/* —— Testimonials —— */
.testimonials {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.testimonial-card {
  position: relative;
  margin: 0;
  padding: 1.5rem 1.35rem 1.35rem 1.5rem;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(12, 8, 20, 0.06);
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  top: 0.5rem;
  left: 0.85rem;
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1;
  color: rgba(196, 92, 58, 0.2);
  pointer-events: none;
}

.testimonial-card h3 {
  position: relative;
  margin: 0 0 0.75rem;
  padding-left: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ink);
}

.testimonial-card p {
  position: relative;
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.stars {
  color: #c9a227;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.attribution {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 0.75rem;
}

/* —— Social + contact —— */
.social-panel {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 1.75rem;
  background: linear-gradient(120deg, #1a1422 0%, #251a28 50%, #1f1520 100%);
  border-radius: var(--radius-lg);
  color: rgba(250, 247, 240, 0.92);
  border: 1px solid var(--line-light);
}

@media (min-width: 640px) {
  .social-panel {
    grid-template-columns: 1fr auto;
    padding: 2.25rem 2.5rem;
  }
}

.social-panel p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  max-width: 48ch;
}

.btn-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.75rem;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  box-shadow: 0 8px 28px rgba(221, 42, 123, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-instagram:hover,
.btn-instagram:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(221, 42, 123, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .btn-instagram:hover,
  .btn-instagram:focus-visible {
    transform: none;
  }
}

.form-note {
  font-size: 0.9rem;
  color: var(--sage);
  max-width: 55ch;
}

.phx-form__status {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  max-width: 100%;
}

.phx-form__status--success {
  background: rgba(92, 107, 90, 0.12);
  border: 1px solid rgba(92, 107, 90, 0.35);
  color: var(--ink);
}

.phx-form__status--error {
  background: rgba(196, 92, 58, 0.1);
  border: 1px solid rgba(196, 92, 58, 0.35);
  color: var(--ink);
}

.phx-form {
  position: relative;
  margin-top: 1.75rem;
  max-width: 100%;
  padding: clamp(1.5rem, 4vw, 2rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.phx-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.phx-form__grid {
  display: grid;
  gap: 1.15rem 1.25rem;
}

@media (min-width: 560px) {
  .phx-form__grid {
    grid-template-columns: 1fr 1fr;
  }

  .phx-form__field--full {
    grid-column: 1 / -1;
  }
}

.phx-form__field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.4rem;
}

.phx-form__req {
  color: var(--ember);
}

.phx-form__opt {
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--sage);
}

.phx-form__field input,
.phx-form__field select,
.phx-form__field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.phx-form__field textarea {
  resize: vertical;
  min-height: 8rem;
}

.phx-form__field input:focus-visible,
.phx-form__field select:focus-visible,
.phx-form__field textarea:focus-visible {
  outline: none;
  border-color: rgba(196, 92, 58, 0.55);
  box-shadow: 0 0 0 3px rgba(196, 92, 58, 0.15);
}

.phx-form__consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.phx-form__consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--ember);
}

.phx-form__consent label {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 500;
}

.phx-form__actions {
  margin-top: 1.5rem;
}

.phx-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream);
  background: linear-gradient(135deg, var(--ink) 0%, #2a1f28 100%);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.phx-form__submit:hover:not(:disabled),
.phx-form__submit:focus-visible:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.phx-form__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  .phx-form__submit:hover:not(:disabled),
  .phx-form__submit:focus-visible:not(:disabled) {
    transform: none;
  }
}

/* —— Footer —— */
.site-footer {
  padding: 3rem clamp(1.25rem, 5vw, 2.5rem) 3.5rem;
  background: var(--deep);
  color: rgba(250, 247, 240, 0.85);
  text-align: center;
}

.site-footer p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: var(--section-max);
  margin-left: auto;
  margin-right: auto;
}

.site-footer a {
  color: var(--ember-glow);
  text-underline-offset: 3px;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin: 1.5rem 0 0;
}

.footer-badges img {
  max-height: 76px;
  width: auto;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

.tagline-footer {
  margin-top: 2rem !important;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.45rem) !important;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #fff !important;
}

/* Ivy Web credit — same pattern as Maths Tutoring Rocks staging */
.site-footer__credit {
  margin: 1.75rem 0 0 !important;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  max-width: none !important;
}

.site-footer .site-footer__credit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(250, 247, 240, 0.78);
  text-decoration: none;
}

.site-footer .site-footer__credit-link:hover {
  color: #fff;
}

.site-footer .site-footer__credit-link span {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  text-underline-offset: 2px;
}

.site-footer .site-footer__credit-logo {
  height: 26px;
  width: auto;
  display: block;
  flex-shrink: 0;
  opacity: 0.9;
}

.site-footer .site-footer__credit-link:hover .site-footer__credit-logo {
  opacity: 1;
}

/* —— Scroll reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }

  .reveal.is-visible {
    transition: none;
  }
}

/* —— Mobile nav —— */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    background: rgba(250, 247, 240, 0.97);
    border-bottom: 1px solid var(--line);
    transition: max-height 0.35s ease;
  }

  @media (prefers-reduced-motion: reduce) {
    .site-nav {
      transition: none;
    }
  }

  .site-nav.is-open {
    max-height: min(32rem, calc(100dvh - var(--header-h) - 1rem));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.75rem;
    gap: 0.25rem;
  }

  .site-nav a {
    display: block;
    padding: 0.65rem 0;
  }

  .shell-header {
    flex-wrap: wrap;
  }

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