/* ========================================================================
   Natalia Jaguś — landing page
   ======================================================================== */

:root {
  --color-bg: #fafafa;
  --color-dark: #091335;
  --color-dark-2: #09112b;
  --color-text: #363636;
  --color-text-dark: #0c0c0c;
  --color-muted: #bcbcbc;
  --color-accent: #01e5a5;
  --color-accent-2: #47e6a3;
  --color-accent-3: #02c969;
  --color-badge-bg: #f8fffc;
  --color-testimonial-bg: #f4f7ff;
  --color-card-shadow: rgba(71, 230, 163, 0.17);
  --gradient-mint: linear-gradient(180deg, #94ffe8 0%, #cdffea 100%);
  --gradient-dark: linear-gradient(180deg, #091336 0%, #09112b 100%);
  --font-main: 'Albert Sans', 'Segoe UI', Arial, sans-serif;
  --container-max: 1400px;
  --container-pad: 100px;
  --radius-lg: 25px;
  --radius-sm: 5px;
  /* True content width (container box minus its side padding), independent of
     any local negative-margin "bleed" tricks — used to size carousel cards
     so they line up with the container edge regardless of scroll-track padding. */
  --content-w: min(calc(var(--container-max) - 2 * var(--container-pad)), calc(100vw - 2 * var(--container-pad)));
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, blockquote, figure { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-dark);
  color: #fff;
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 5px 0;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

section { position: relative; }

.section-title {
  font-size: 42px;
  font-weight: 400;
  text-align: center;
  color: var(--color-text);
  max-width: 700px;
  margin: 0 auto 60px;
  line-height: 1.25;
}
.section-title .star {
  display: block;
  margin: 0 auto 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 30px;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--color-accent); color: #000; }
.btn-accent:hover { box-shadow: 0 10px 24px rgba(1, 229, 165, 0.35); }
.btn-dark { background: var(--color-dark); color: #fff; padding: 12px 24px; }
.btn-dark:hover { box-shadow: 0 10px 24px rgba(9, 19, 53, 0.3); }
.btn-dark-sm { background: var(--color-dark); color: #fff; font-weight: 600; font-size: 16px; padding: 9px 18px; border-radius: var(--radius-sm); }
.btn-dark-sm:hover { box-shadow: 0 10px 20px rgba(9, 19, 53, 0.3); }
.btn-light { background: #fff; color: var(--color-dark); font-weight: 400; padding: 12px 22px; }
.btn-light:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15); }
.btn-blue { background: #0047c2; color: #fff; padding: 12px 22px; }
.btn-blue:hover { box-shadow: 0 10px 24px rgba(0, 71, 194, 0.4); }
.btn-outline-dark { background: transparent; color: var(--color-dark); padding: 12px 22px; border: 1px solid var(--color-dark); }
.btn-outline-dark:hover { background: var(--color-dark); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; padding: 12px 22px; border: 1px solid #fff; }
.btn-outline-light:hover { background: #fff; color: var(--color-dark); }

.price-badge {
  display: inline-flex;
  align-items: center;
  background: var(--color-badge-bg);
  color: var(--color-text-dark);
  font-size: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  box-shadow: 15px 15px 23px rgba(0, 0, 0, 0.05);
  gap: 5px;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ========================================================================
   Header
   ======================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 21px;
  padding-bottom: 21px;
}
.logo img { width: 46px; height: 46px; }
.main-nav ul {
  display: flex;
  gap: 40px;
}
.main-nav a {
  font-size: 16px;
  color: var(--color-text-dark);
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-accent-3);
  transition: width 0.25s ease;
}
.main-nav a:hover::after { width: 100%; }

/* ---------- Services submenu ---------- */
.nav-item-has-submenu { position: relative; }
.nav-caret {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 6px;
  margin-bottom: 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.main-nav .nav-submenu {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: absolute;
  top: calc(100% + 18px);
  left: -20px;
  min-width: 260px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 4px 4px 35px var(--color-card-shadow);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
/* Invisible bridge so the pointer can cross the gap between the link and
   the dropdown without the hover state dropping in between. */
.nav-item-has-submenu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 18px;
}
.nav-item-has-submenu:hover .nav-submenu,
.nav-item-has-submenu:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-item-has-submenu:hover .nav-caret,
.nav-item-has-submenu:focus-within .nav-caret { transform: rotate(-135deg); }
.nav-submenu li + li { margin-top: 4px; }
.nav-submenu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 15px;
}
.nav-submenu a:hover { background: var(--color-bg); }
.nav-submenu a::after { display: none; }
.nav-submenu-title { display: block; color: var(--color-text-dark); font-weight: 500; }
.nav-submenu-price { display: block; font-size: 13px; color: var(--color-muted); margin-top: 2px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text-dark);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========================================================================
   Hero
   ======================================================================== */
.hero { background: var(--color-bg); padding: 60px 0 0; overflow: hidden; position: relative; }
.hero-circle {
  position: absolute;
  right: -110px;
  bottom: -110px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: #d1ece3;
  z-index: 0;
  pointer-events: none;
}
.hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  position: relative;
  z-index: 1;
}
.hero-media {
  position: relative;
  align-self: flex-end;
  flex: 0 0 auto;
  width: calc(52% + var(--container-pad));
  max-width: 720px;
  margin-left: calc(var(--container-pad) * -1);
  aspect-ratio: 650 / 660;
}
.hero-blob {
  position: absolute;
  left: 50%;
  top: 6%;
  transform: translateX(-50%);
  width: 77%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gradient-mint);
  z-index: 0;
  pointer-events: none;
}
.hero-photo {
  position: absolute;
  z-index: 2;
  display: block;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 70%;
  height: auto;
  margin-bottom: 0;
  pointer-events: none;
}

/* Floating decorative cards — base position/rotation from Figma, refined
   with a subtle mouse-parallax translate applied via JS (see initHeroParallax). */
.hero-float {
  position: absolute;
  z-index: 3;
  will-change: transform;
}
.hero-float img { display: block; width: 100%; height: auto; }
.hero-float--browser,
.hero-float--wireframe,
.hero-float--devices {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.13);
  padding: 8px;
}
.hero-float--code { background: #373e4c; border-radius: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.13); padding: 8px; }
.hero-float--figma,
.hero-float--wordpress {
  background: #fff;
  border-radius: 18%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}
.hero-float--figma img,
.hero-float--wordpress img {
  width: 55%;
  height: 55%;
  object-fit: contain;
}
.hero-float {
  --parallax-x: 0px;
  --parallax-y: 0px;
  transform: translate(var(--parallax-x), var(--parallax-y)) rotate(var(--float-rotate, 0deg));
}
.hero-float--browser { left: 0; top: 6%; width: 29%; --float-rotate: -9deg; }
.hero-float--wireframe { left: 9%; top: 24%; width: 17%; --float-rotate: 7deg; }
.hero-float--devices { left: 1%; top: 37%; width: 18%; --float-rotate: -7deg; }
.hero-float--figma { left: 69%; top: 2%; width: 11%; --float-rotate: 6deg; }
.hero-float--wordpress { left: 74%; top: 32%; width: 11%; --float-rotate: 6deg; }
.hero-float--code { left: 70%; top: 18%; width: 24%; --float-rotate: 6deg; }
.hero-float--cursor { left: 85%; top: 47%; width: 5%; z-index: 4; }
.hero-float--dots-1 { left: 5%; top: 1%; width: 6%; z-index: 1; opacity: 0.5; }
.hero-float--dots-2 { left: 89%; top: 40%; width: 6%; z-index: 1; opacity: 0.5; }
.hero-float--ring-1 { left: 22%; top: 0%; width: 1.6%; z-index: 1; }
.hero-float--ring-2 { left: 92%; top: 37%; width: 1.6%; z-index: 1; }
.hero-float--plus { left: 87%; top: 1%; width: 1.5%; z-index: 1; }
.hero-badge {
  display: flex;
  width: fit-content;
  margin-bottom: 32px;
  background: var(--color-badge-bg);
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  box-shadow: 20px 20px 23px rgba(0, 0, 0, 0.06);
  font-size: 14px;
  color: var(--color-text-dark);
}
.hero-badge .dot { color: var(--color-accent-3); }

.hero-content { flex: 1; min-width: 0; align-self: center; }
.hero-content h1 {
  font-size: 52px;
  font-weight: 400;
  line-height: 1.2;
  color: #000;
  margin-bottom: 24px;
}
.hero-lead {
  font-size: 18px;
  color: #000;
  margin-bottom: 32px;
  max-width: 520px;
}

/* ========================================================================
   Problems
   ======================================================================== */
.problems {
  background: var(--gradient-dark);
  color: #fff;
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.problems-inner { position: relative; z-index: 1; }

/* Subtle ambient gradient blobs + a soft glow that follows the cursor */
.gradient-blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  filter: blur(90px);
}
.gradient-blob {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}
.gradient-blob--1 {
  top: -12%;
  left: 2%;
  background: radial-gradient(circle, rgba(71, 230, 163, 0.45) 0%, rgba(71, 230, 163, 0) 70%);
  animation: blobFloat1 28s ease-in-out infinite;
}
.gradient-blob--2 {
  bottom: -20%;
  right: 6%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(0, 71, 194, 0.4) 0%, rgba(0, 71, 194, 0) 70%);
  animation: blobFloat2 34s ease-in-out infinite;
}
.gradient-blob--3 {
  top: 25%;
  left: 45%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(2, 201, 105, 0.35) 0%, rgba(2, 201, 105, 0) 70%);
  animation: blobFloat3 24s ease-in-out infinite;
}
.gradient-blob--cursor {
  top: 0;
  left: 0;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(71, 230, 163, 0.3) 0%, rgba(71, 230, 163, 0) 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.is-glow-active .gradient-blob--cursor { opacity: 1; }

/* Grayscale variant — used where the section's own branding already has a
   strong accent color (e.g. Paweł Rawski's orange) and green would clash. */
.case-study--dark .gradient-blob--1,
.case-study--dark .gradient-blob--2,
.case-study--dark .gradient-blob--3,
.case-study--dark .gradient-blob--cursor {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0) 70%);
}

/* Mint variant — same technique, tuned for the light "Good websites" section:
   screen (lightens) with pale, near-white mint tones so the blobs read as a
   soft glow brighter than the background, rather than darker pooled color. */
.gradient-blob--mint1 {
  top: -14%;
  left: -4%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 70%);
  mix-blend-mode: screen;
  animation: blobFloat1 30s ease-in-out infinite;
}
.gradient-blob--mint2 {
  bottom: -20%;
  right: -2%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(230, 255, 248, 0.85) 0%, rgba(230, 255, 248, 0) 70%);
  mix-blend-mode: screen;
  animation: blobFloat2 36s ease-in-out infinite;
}
.gradient-blob--mint3 {
  top: 30%;
  left: 48%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
  mix-blend-mode: screen;
  animation: blobFloat3 26s ease-in-out infinite;
}
.gradient-blob--cursor-mint {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 70%);
  mix-blend-mode: screen;
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(70px, 50px); }
}
@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-60px, -40px); }
}
@keyframes blobFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 60px) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .gradient-blob { animation: none; }
}
@media (max-width: 960px) {
  .gradient-blobs { display: none; }
}

.problems-head {
  max-width: 900px;
  margin-bottom: 70px;
}
.problems-head h2 {
  font-size: 40px;
  font-weight: 400;
  line-height: 1.3;
  max-width: 460px;
  margin-bottom: 20px;
}
.problems-head p {
  font-size: 20px;
  line-height: 1.44;
  color: var(--color-muted);
  max-width: 620px;
}
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  position: relative;
  padding-bottom: 60px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.problem-col h3 {
  font-size: 17.8px;
  font-weight: 700;
  margin: 20px 0 14px;
}
.problem-col p {
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-muted);
}
.problem-icon { color: var(--color-accent-2); }
.problems-closer {
  text-align: center;
  font-weight: 700;
  font-size: 20px;
  max-width: 620px;
  margin: 0 auto;
}

/* ========================================================================
   Services
   ======================================================================== */
.services { background: #fff; padding: 110px 0; }
.service-row {
  display: flex;
  align-items: center;
  margin-bottom: 110px;
}
.service-row:last-child { margin-bottom: 0; }
.service-row--reverse { flex-direction: row-reverse; }

.service-image {
  flex: 0 0 52%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 567 / 378;
}
.service-image img { width: 100%; height: 100%; object-fit: cover; }

.service-card {
  position: relative;
  z-index: 2;
  flex: 0 0 56%;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 4px 4px 35px var(--color-card-shadow);
  padding: 50px 46px;
  margin-left: -90px;
}
.service-row--reverse .service-card { margin-left: 0; margin-right: -90px; }

.service-icon {
  display: inline-flex;
  position: relative;
  width: 66px;
  height: 66px;
  margin-bottom: 26px;
}
.service-icon img { width: 66px; height: 66px; }
.service-icon--circle .icon-fg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
}

.service-card h3 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 16px;
}
.service-card p { font-size: 16px; line-height: 1.5; margin-bottom: 28px; }
.service-card p strong { font-weight: 700; }

.service-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ========================================================================
   Features ("Good websites. No drama.")
   ======================================================================== */
.features {
  background: var(--gradient-mint);
  padding: 110px 0;
  overflow: hidden;
  position: relative;
}
.features-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(72%, 1000px);
  opacity: 0.6;
  pointer-events: none;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  min-height: 260px;
}
.feature-card--down { margin-top: 50px; }
.feature-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.feature-card p { font-size: 16px; line-height: 1.5; }

/* ========================================================================
   Process ("How it works")
   ======================================================================== */
.process {
  background: #fff;
  padding: 110px 0;
  overflow: hidden;
  position: relative;
}
.process-blob {
  position: absolute;
  width: 340px;
  height: 340px;
  aspect-ratio: 1 / 1;
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
  object-fit: contain;
}
.process-blob--left { left: -120px; top: -120px; }
.process-blob--right { right: -120px; bottom: -120px; }

.process-carousel {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
}
.process-track {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  user-select: none;
  margin: 0 -32px;
  padding: 24px 32px 50px;
}
.process-track::-webkit-scrollbar { display: none; }
.process-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.process-steps {
  display: flex;
  gap: 32px;
}
.step-card {
  position: relative;
  flex: 0 0 calc((var(--content-w) - 96px) / 3.3);
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--color-accent-2);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  scroll-snap-align: start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.process-track:not(.is-dragging) .step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(71, 230, 163, 0.18);
}
.step-number {
  font-size: 42px;
  color: var(--color-accent-2);
  margin-bottom: 16px;
}
.step-card h3 { font-size: 24px; font-weight: 500; margin-bottom: 20px; }
.step-card p:not(.step-number) { font-size: 16px; line-height: 1.5; }

/* Edge fades cueing more content */
.carousel-fade {
  position: absolute;
  top: 0;
  bottom: 50px;
  width: 200px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.carousel-fade--left { left: -35px; background: linear-gradient(to right, #fff 0%, #fff 25%, rgba(255, 255, 255, 0) 100%); }
.carousel-fade--right { right: -35px; background: linear-gradient(to left, #fff 0%, #fff 25%, rgba(255, 255, 255, 0) 100%); }
.carousel-fade.is-visible { opacity: 1; }

/* Nav buttons */
.carousel-controls { display: contents; }

.carousel-btn {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 53px;
  height: 53px;
  padding: 0;
  border: none;
  background: transparent;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.carousel-btn img { width: 100%; height: 100%; }
.carousel-btn:hover { transform: translateY(-50%) scale(1.08); }
.carousel-btn--prev {
  right: auto;
  left: 0;
  transform: translateY(-50%) scaleX(-1);
}
.carousel-btn--prev:hover { transform: translateY(-50%) scaleX(-1) scale(1.08); }
.carousel-btn[disabled] { opacity: 0; pointer-events: none; }

.process-cta { text-align: center; }

@media (max-width: 1200px) {
  .step-card { flex-basis: calc((var(--content-w) - 64px) / 2.3); }
}
@media (max-width: 700px) {
  .step-card { flex-basis: calc(var(--content-w) - 40px); min-width: 240px; }

  .carousel-fade { display: none; }

  .carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    margin-top: 24px;
  }
  .carousel-btn {
    position: static;
    width: 44px;
    height: 44px;
    transform: none;
  }
  .carousel-btn:hover { transform: scale(1.08); }
  .carousel-btn--prev { transform: scaleX(-1); }
  .carousel-btn--prev:hover { transform: scaleX(-1) scale(1.08); }
  .carousel-btn[disabled] { opacity: 0.3; }
}

/* ========================================================================
   Portfolio / showcase
   ======================================================================== */
.showcase {
  background: var(--gradient-dark);
  overflow: hidden;
  position: relative;
  padding: 130px 0;
  min-height: 520px;
  display: flex;
  align-items: center;
}
.showcase-media {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50%;
  max-width: 720px;
  aspect-ratio: 685 / 452;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.showcase-media img {
  position: absolute;
  left: -37.3%;
  top: -29%;
  width: 163%;
  height: auto;
  max-width: none;
  display: block;
  margin-bottom: 0;
}

.showcase-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}
.showcase-content {
  color: #fff;
  max-width: 460px;
}
.showcase-content h2 {
  font-size: 42px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 20px;
}
.showcase-content p {
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
  margin-bottom: 32px;
}

/* ========================================================================
   Testimonials
   ======================================================================== */
.testimonials { background: #fff; padding: 120px 0; }
.testimonials .section-title { margin-bottom: 60px; }

.testimonial-switcher {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
      background: #fdfdfd;
    padding: 80px 50px;
    border-radius: 25px;
    text-align: center;
}

.testimonial-quote-wrap {
  position: relative;
  padding: 0 44px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.testimonial-quote-wrap.is-dragging { cursor: grabbing; }
.testimonial-quote-wrap img { -webkit-user-drag: none; }
.testimonial-mark {
  position: absolute;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 84px;
  line-height: 1;
  color: rgba(54, 54, 54, 0.08);
  pointer-events: none;
  user-select: none;
}
.testimonial-mark--start { left: -6px; top: -30px; }
.testimonial-mark--end { right: -6px; bottom: -50px; }

.testimonial-quote-text {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-text);
  transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease;
}
.testimonial-quote-text.is-changing { opacity: 0; filter: blur(4px); transform: scale(0.98); }

.testimonial-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.testimonial-meta.is-changing { opacity: 0; transform: translateY(6px); }
.testimonial-role {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #767676;
  text-align: center;
}
.testimonial-site { font-size: 14px; color: #0047c2; }
.testimonial-site:hover { text-decoration: underline; }
.testimonial-site[hidden] { display: none; }

.testimonial-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.testimonial-pill {
  display: flex;
  align-items: center;
  border-radius: 999px;
  border: none;
  background: transparent;
  padding: 4px;
  cursor: pointer;
  transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}
.testimonial-pill:hover { background: var(--color-bg); }
.testimonial-pill.is-active { background: var(--color-dark); box-shadow: 0 8px 20px rgba(9, 19, 53, 0.18); }
.testimonial-pill-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  display: block;
}
.testimonial-pill-name {
  display: inline-block;
  max-width: 0;
  margin-left: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-dark);
  transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin-left 0.4s ease;
}
.testimonial-pill:hover .testimonial-pill-name,
.testimonial-pill.is-active .testimonial-pill-name {
  max-width: 160px;
  opacity: 1;
  margin-left: 8px;
  margin-right: 6px;
}
.testimonial-pill.is-active .testimonial-pill-name { color: #fff; }

/* ========================================================================
   CTA
   ======================================================================== */
.cta {
  background: var(--gradient-mint);
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}
.cta > .container { position: relative; z-index: 1; }
.cta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.cta-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 44px 50px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.cta-card h3 { font-size: 22px; font-weight: 700; }
.cta-card p { font-size: 16px; line-height: 1.5; }

/* ========================================================================
   Footer
   ======================================================================== */
.site-footer { background: var(--color-dark); color: #fff; padding: 60px 0 40px; position: relative; overflow: hidden; }
.site-footer > .container { position: relative; z-index: 1; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}
.footer-brand img { margin-bottom: 24px; }
.footer-copy { font-size: 16px; margin-bottom: 12px; }
.footer-link { font-size: 16px; text-decoration: underline; }
.footer-lang-link { display: block; margin-top: 8px; }
.footer-col h4 { font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.footer-col p { font-size: 16px; margin-bottom: 12px; }
.footer-col a:hover { text-decoration: underline; }
.footer-social-link { display: inline-flex; align-items: center; gap: 8px; }
.footer-social-link img { flex-shrink: 0; }
.footer-services { list-style: none; margin: 0; padding: 0; }
.footer-services li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 16px;
}
.footer-services li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--color-accent-2);
}
.footer-services a { font-size: 16px; color: #fff; }

/* ========================================================================
   Service subpage — Hero
   ======================================================================== */
.svc-hero { background: var(--color-bg); padding: 60px 0 110px; overflow: hidden; }
.svc-hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}
.svc-hero-content { flex: 1; min-width: 0; }
.svc-hero-content h1 {
  font-size: 42px;
  font-weight: 400;
  line-height: 1.2;
  color: #000;
  max-width: 527px;
  margin-bottom: 24px;
}
.svc-hero-lead {
  font-size: 18px;
  line-height: 1.5;
  color: #474747;
  max-width: 512px;
  margin-bottom: 32px;
}
.svc-hero-media { flex: 0 0 auto; width: 52%; max-width: 620px; }
.svc-hero-media img { width: 100%; height: auto; border-radius: var(--radius-lg); display: block; }

/* ========================================================================
   Service subpage — For whom
   ======================================================================== */
.svc-forwhom { background: #fff; padding: 110px 0; }
.svc-forwhom-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px 40px;
}
.svc-forwhom-gallery {
  position: relative;
  grid-row: span 2;
  min-height: 400px;
}
.svc-forwhom-photo {
  position: absolute;
  border-radius: 21px;
  object-fit: cover;
  width: 271px;
  height: 176px;
}
.svc-forwhom-photo--1 { left: 0; top: 33px; }
.svc-forwhom-photo--2 { left: 283px; top: 0; }
.svc-forwhom-photo--3 { left: 1px; top: 233px; }
.svc-forwhom-photo--4 { left: 291px; top: 200px; }
/* Single-image variant of the gallery, used on pages with one lead photo
   instead of a 4-photo collage */
.svc-forwhom-media { align-self: center; }
.svc-forwhom-media img { width: 100%; height: auto; border-radius: var(--radius-lg); object-fit: cover; aspect-ratio: 544 / 363; display: block; }
.svc-forwhom-content { align-self: center; }
.svc-forwhom-content .section-title { margin-bottom: 48px; text-align: left; }
.svc-forwhom-lead { font-size: 18px; color: #474747; margin-bottom: 40px; }
.svc-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
}
.svc-check-list li { display: flex; align-items: flex-start; gap: 15px; }
.svc-check-list img { flex: 0 0 auto; margin-top: 2px; }
.svc-check-list span { font-size: 16px; line-height: 1.5; color: #474747; }
.svc-experience,
.svc-note {
  grid-column: 1 / -1;
  background: var(--color-badge-bg);
  border-radius: var(--radius-lg);
  padding: 15px 40px;
  text-align: center;
}
.svc-experience p:first-child, .svc-note p:first-child { font-size: 18px; margin-bottom: 12px; }
.svc-experience p:last-child, .svc-note p:last-child { font-size: 16px; color: var(--color-text); }
.svc-experience .dot { color: var(--color-accent-2); font-weight: 900; padding: 0 4px; }
.svc-note { padding: 32px 60px; }
.svc-note p:first-child { font-weight: 700; }
.svc-note p:last-child { line-height: 1.6; }
.svc-note strong { font-weight: 700; }

/* Side-by-side variant: checklist column + a note card beside it (rather
   than a full-width note below), used when there's no lead photo */
.svc-forwhom-flex { display: flex; gap: 60px; align-items: stretch; }
.svc-forwhom-flex .svc-forwhom-content { flex: 1.3; align-self: auto; }
.svc-forwhom-flex .svc-note {
  flex: 1;
  grid-column: auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 44px;
}
.svc-forwhom-flex .svc-note p:first-child { font-size: 20px; margin-bottom: 16px; }
.svc-forwhom-flex .svc-note p:last-child { line-height: 1.4; }
.svc-check-list--sm { gap: 32px 24px; }

/* ========================================================================
   Service subpage — What you get
   ======================================================================== */
.svc-whatyouget { background: #091332; padding: 110px 0; position: relative; overflow: hidden; }
.svc-whatyouget > .container { position: relative; z-index: 1; }
.svc-whatyouget-title { color: #fff; text-align: center; margin-bottom: 70px; }
.svc-whatyouget-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 68px 32px;
}
.svc-whatyouget-grid--4 { grid-template-columns: repeat(4, 1fr); }
.svc-feature-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.13);
  padding: 63px 30px 36px;
  text-align: center;
}
.svc-feature-icon {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #d7e6ff;
}
/* Some icons already ship with their own circular background baked in —
   drop the wrapper's own bg/shape so it doesn't double up. */
.svc-feature-icon--flat { background: none; width: 82px; height: 82px; }
.svc-feature-icon--flat img { width: 100%; height: 100%; }
.svc-feature-card p { font-size: 16px; font-weight: 700; line-height: 1.5; color: #474747; }

/* ========================================================================
   Service subpage — Plans (pricing table)
   ======================================================================== */
.svc-plans { background: #091332; padding: 110px 0; }
.svc-plans-title { color: #fff; text-align: center; margin-bottom: 16px; }
.svc-plans-lead {
  text-align: center;
  color: #bcbcbc;
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto 60px;
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #474747;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.13);
  padding: 38px 34px 40px;
  text-align: center;
}
.plan-card h3 { font-size: 30px; font-weight: 700; margin-bottom: 20px; }
.plan-price { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-bottom: 30px; }
.plan-price .plan-amount { font-size: 40px; font-weight: 700; }
.plan-price .plan-period { font-size: 20px; }
.plan-features { list-style: none; margin: 0 0 30px; padding: 0; text-align: left; }
.plan-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  font-size: 16px;
  border-bottom: 1px solid #e5e5e5;
}
.plan-features li:last-child { border-bottom: none; }
.plan-features img { flex: 0 0 auto; }
.plan-caption { font-style: italic; font-size: 16px; color: #898989; margin-top: auto; padding-top: 20px; }

.plan-card--featured {
  background: linear-gradient(180deg, #fff 0%, #47e6a3 100%);
  color: #333;
}
.plan-card--featured .plan-features li { border-bottom-color: #959595; }
.plan-card--featured .plan-caption { color: #333; }
.plan-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #47e6a3;
  color: #000;
  font-weight: 700;
  font-size: 14px;
  padding: 6px 19px;
  border-radius: 50px;
  white-space: nowrap;
}

.plan-card--dark {
  background: linear-gradient(180deg, #0b1c56 0%, #040b21 100%);
  color: #fff;
}
.plan-card--dark .plan-features li { border-bottom-color: rgba(255, 255, 255, 0.25); }
.plan-card--dark .plan-caption { color: #fff; }

/* ========================================================================
   Service subpage — FAQ
   ======================================================================== */
.svc-faq { background: #fff; padding: 0 0 110px; }
/* Only add breathing room above FAQ when it follows a dark section
   (e.g. Plans, or the showcase/portfolio teaser) — .testimonials already
   has its own generous bottom padding. */
.svc-plans + .svc-faq,
.showcase + .svc-faq { padding-top: 100px; }
.svc-faq-panel { background: var(--color-testimonial-bg); border-radius: var(--radius-lg); padding: 64px 60px; }
.svc-faq-panel .section-title { margin-bottom: 40px; }
.svc-faq-list { display: flex; flex-direction: column; gap: 20px; }
.svc-faq-item { background: #fff; border-radius: 24px; box-shadow: 0 0 24px rgba(0, 0, 0, 0.08); overflow: hidden; }
.svc-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  background: none;
  border: none;
  padding: 24px 32px;
  text-align: left;
  font-family: inherit;
}
.svc-faq-question span { font-size: 17px; font-weight: 500; color: #1f1f1f; }
.svc-faq-question img.svc-faq-icon { flex: 0 0 auto; }
.svc-faq-icon--plus { display: none; }
.svc-faq-item:not(.is-open) .svc-faq-icon--minus { display: none; }
.svc-faq-item:not(.is-open) .svc-faq-icon--plus { display: block; }
.svc-faq-answer { max-height: 300px; padding: 0 32px 24px; transition: max-height 0.3s ease, padding 0.3s ease; }
.svc-faq-answer p { font-size: 15.5px; line-height: 1.5; color: #1f1f1f; }
.svc-faq-item:not(.is-open) .svc-faq-answer { max-height: 0; padding: 0 32px; overflow: hidden; }

/* ========================================================================
   Service subpage — Final CTA
   ======================================================================== */
.svc-final-cta { background: var(--color-bg); padding: 110px 0 0; position: relative; overflow: hidden; }
.svc-final-cta-circle {
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 327px;
  height: 327px;
  border-radius: 50%;
  background: #d1ece3;
  z-index: 0;
}
.svc-final-cta-inner {
  display: flex;
  align-items: flex-end;
  gap: 100px;
  position: relative;
  z-index: 1;
}
.svc-final-cta-media { flex: 0 0 auto; width: 42%; max-width: 485px; position: relative; }
.svc-final-cta-media::before {
  content: '';
  position: absolute;
  left: 8%;
  top: 10%;
  width: 84%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gradient-mint);
  z-index: 0;
}
.svc-final-cta-media img { position: relative; z-index: 1; width: 100%; height: auto; display: block; }
.svc-final-cta-content { flex: 1; min-width: 0; padding-bottom: 150px; }
.svc-final-cta-content h2 { font-size: 52px; font-weight: 400; margin-bottom: 20px; }
.svc-final-cta-content p { font-size: 18px; line-height: 1.5; margin-bottom: 32px; max-width: 579px; }

/* ========================================================================
   Contact page
   ======================================================================== */
.contact-intro { background: #fff; padding: 110px 0 70px; text-align: center; }
.contact-intro .section-title { margin-bottom: 24px; }
.contact-intro-lead { font-size: 18px; line-height: 1.5; color: #474747; max-width: 600px; margin: 0 auto; }

.contact-options { background: #fff; padding: 0 0 110px; }
.contact-options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-card {
  background: var(--gradient-mint);
  border-radius: var(--radius-lg);
  padding: 45px 46px 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.contact-card img { width: 64px; height: 64px; }
.contact-card h3 { font-size: 24px; font-weight: 500; color: #1f1f1f; }
.contact-card p { font-size: 16px; line-height: 1.5; color: #1f1f1f; }
.contact-card .btn { margin-top: 6px; }

.contact-direct { background: #fff; padding: 0 0 110px; text-align: center; }
.contact-direct .section-title { margin-bottom: 70px; }
.contact-methods { display: flex; justify-content: center; gap: 100px; flex-wrap: wrap; row-gap: 50px; }
.contact-method { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.contact-method-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #d6e5ff;
}
.contact-method-icon img { display: block; }
.contact-method-label { font-size: 18px; font-weight: 500; color: #1f1f1f; }
.contact-method-link { font-size: 20px; font-weight: 700; color: #0047c2; }
.contact-method-link:hover { text-decoration: underline; }

/* ---------- Audit / brief forms ---------- */
.form-section { background: #fff; padding: 0 0 110px; }
.form-section--tint { background: var(--color-bg); padding: 110px 0; }
.form-container { max-width: 760px; }
.form-intro { text-align: center; margin-bottom: 50px; }
.form-section-title { margin-bottom: 16px; }
.form-section-lead { font-size: 16px; line-height: 1.5; color: #676767; max-width: 520px; margin: 0 auto; }
.form-package-note {
  display: inline-block;
  margin: 16px auto 0;
  padding: 8px 18px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-dark);
}
.form-package-note[hidden] { display: none; }

.site-form { background: #fff; padding: 44px; box-shadow: 4px 4px 35px var(--color-card-shadow); border-radius: var(--radius-lg); }

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

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field[hidden] { display: none; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: 14px; font-weight: 600; color: var(--color-text-dark); }
.form-optional { font-weight: 400; color: var(--color-muted); }
.form-required { color: #e5484d; margin-left: 2px; }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="url"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--color-text-dark);
  border: 1px solid #e2e4ea;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: #fff;
  transition: border-color 0.2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent-3);
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-field input:invalid.touched,
.form-field textarea:invalid.touched { border-color: #e5484d; }

.form-radio-label { font-size: 14px; font-weight: 600; color: var(--color-text-dark); display: block; margin-bottom: 4px; }
.form-radio-group { display: flex; gap: 24px; }
.form-radio-group--wrap { flex-wrap: wrap; row-gap: 12px; }
.form-radio { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--color-text-dark); cursor: pointer; }
.form-radio input { width: 16px; height: 16px; accent-color: var(--color-accent-3); }

.form-checkbox-group { display: flex; flex-wrap: wrap; gap: 14px 24px; }
.form-checkbox { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--color-text-dark); cursor: pointer; }
.form-checkbox input { width: 16px; height: 16px; accent-color: var(--color-accent-3); }

/* ---------- Expandable "add more detail" panel ---------- */
.form-expand-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--color-bg);
  border: 1px dashed #d5d8de;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 28px;
  transition: background 0.2s ease;
}
.form-expand-toggle:hover { background: #f0f1f4; }
.form-expand-icon {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.form-expand-toggle[aria-expanded="true"] .form-expand-icon { transform: rotate(-135deg); }
.form-extra { margin-bottom: 28px; }
.form-extra[hidden] { display: none; }
.form-extra .form-grid { margin-bottom: 0; }

.form-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: #676767; line-height: 1.5; margin-bottom: 28px; cursor: pointer; }
.form-consent input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; accent-color: var(--color-accent-3); }
.form-consent a { text-decoration: underline; color: var(--color-text-dark); }

.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-status { font-size: 14px; margin: 0; }
.form-status[data-state="success"] { color: var(--color-accent-3); }
.form-status[data-state="error"] { color: #e5484d; }

/* ---------- Care plan request modal ---------- */
.care-modal {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 480px;
  width: calc(100% - 40px);
  background: transparent;
}
.care-modal::backdrop { background: rgba(9, 19, 53, 0.55); }
.care-modal .site-form { box-shadow: none; padding: 44px; position: relative; }
.care-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--color-bg);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--color-text-dark);
  z-index: 1;
}
.care-modal-close:hover { background: #e9ebef; }
.care-modal-title { font-size: 22px; font-weight: 500; color: var(--color-text-dark); margin: 0 0 8px; padding-right: 24px; }
.care-modal-lead { font-size: 15px; color: #676767; margin: 0 0 24px; }
.care-modal .form-field { margin-bottom: 20px; }
.care-modal .form-consent { margin-bottom: 24px; }

/* ========================================================================
   Legal pages (privacy policy)
   ======================================================================== */
.legal-intro { background: #fff; padding: 110px 0 40px; text-align: center; }
.legal-content-section { background: #fff; padding: 0 0 110px; }
.legal-content { max-width: 760px; margin: 0 auto; color: #363636; }
.legal-content h2 { font-size: 22px; font-weight: 700; color: var(--color-text-dark); margin: 48px 0 16px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { font-size: 16px; line-height: 1.6; margin-bottom: 16px; }
.legal-content ol,
.legal-content ul { padding-left: 22px; margin-bottom: 16px; }
.legal-content ol { list-style: decimal; }
.legal-content ol[type="a"] { list-style: lower-alpha; }
.legal-content ul { list-style: disc; }
.legal-content ol ol,
.legal-content ol ul { margin-top: 8px; margin-bottom: 8px; }
.legal-content li { font-size: 16px; line-height: 1.6; margin-bottom: 8px; }
.legal-content a { text-decoration: underline; color: var(--color-text-dark); }
.legal-content a:hover { color: var(--color-accent-3); }

/* ========================================================================
   Portfolio page — case studies
   ======================================================================== */
.portfolio-intro { background: #fff; padding: 110px 0 70px; text-align: center; }
.portfolio-intro .section-title { margin-bottom: 24px; }
.portfolio-intro-lead { font-size: 18px; line-height: 1.5; color: #474747; max-width: 600px; margin: 0 auto; }

.case-study {
  padding: 90px 0;
  overflow: hidden;
  position: relative;
  background: #fff;
  min-height: 640px;
  display: flex;
  align-items: center;
}
.case-study--dark { background: #262626; color: #fff; }
.case-study--tint { background: #eff5ff; }

/* The mockup bleeds to the true edge of the section (not the container) and
   is cropped by the section's own bottom/side edges — same bleed technique
   as .hero-media / .showcase-media elsewhere on the site. */
.case-study-media {
  position: absolute;
  bottom: 0;
  width: 48%;
  max-width: 920px;
  z-index: 0;
  pointer-events: none;
}
.case-study:not(.case-study--reverse) .case-study-media { left: 0; }
.case-study--reverse .case-study-media { right: 0; }
.case-study-media img { width: 100%; height: auto; display: block; }

.case-study-inner { position: relative; z-index: 1; width: 100%; display: flex; }
.case-study:not(.case-study--reverse) .case-study-inner { justify-content: flex-end; }
.case-study--reverse .case-study-inner { justify-content: flex-start; }

.case-study-content { max-width: 520px; min-width: 0; }
.case-study-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.case-study-content h3 { font-size: 31px; font-weight: 700; }
.case-study-tag {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  background: #f4f7ff;
  color: var(--color-text-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.case-study--dark .case-study-tag { background: #353535; color: #878787; }
.case-study--tint .case-study-tag { background: #fff; box-shadow: 0 1px 4px rgba(9, 19, 53, 0.08); }
.case-study-subtitle { font-size: 18px; font-weight: 600; color: #474747; margin-bottom: 24px; }
.case-study--dark .case-study-subtitle { color: #fff; }

/* Scannable "challenge / result" highlights, replacing long paragraphs */
.case-study-highlights {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px 0;
  margin-bottom: 8px;
  border-top: 1px solid rgba(71, 71, 71, 0.12);
  border-bottom: 1px solid rgba(71, 71, 71, 0.12);
}
.case-study--dark .case-study-highlights { border-color: rgba(255, 255, 255, 0.15); }
.case-study-highlight-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #9199a6;
  margin-bottom: 10px;
}
.case-study--dark .case-study-highlight-label { color: #8a8a8a; }
.case-study-highlight-list { display: flex; flex-direction: column; gap: 8px; }
.case-study-highlight-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15.5px;
  line-height: 1.45;
  color: #474747;
}
.case-study--dark .case-study-highlight-list li { color: #fff; }
.case-study-highlight-list img { flex: 0 0 auto; margin-top: 3px; }
.case-study-highlight-list li span { flex: 1 1 auto; min-width: 0; }
.case-study-highlight-list strong { font-weight: 700; }

.case-study-note {
  display: block;
  font-size: 14px;
  font-style: italic;
  color: #898989;
  margin-bottom: 20px;
}
.case-study--dark .case-study-note { color: #9a9a9a; }

.case-study-cta { margin-top: 24px; }

/* ========================================================================
   Responsive
   ======================================================================== */
@media (max-width: 1200px) {
  :root { --container-pad: 60px; }
  .hero-content h1 { font-size: 42px; }
  .problems-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card--down { margin-top: 0; }
  .svc-whatyouget-grid { grid-template-columns: 1fr 1fr; }
  .plans-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; gap: 50px; }
}

@media (max-width: 960px) {
  :root { --container-pad: 32px; }

  /* backdrop-filter on an ancestor makes descendant position:fixed elements
     (the mobile nav panel) position relative to this box instead of the
     viewport, so it renders clipped to the header's own height. */
  .site-header { backdrop-filter: none; background: rgb(250, 250, 250); }

  .main-nav {
    position: fixed;
    inset: 73px 0 0 0;
    background: #fff;
    box-shadow: 0 12px 24px rgba(9, 19, 54, 0.12);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    padding: 30px;
  }
  .main-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 24px; }
  .main-nav a { font-size: 20px; }
  .nav-toggle { display: flex; }

  /* Services becomes a tap-to-expand accordion instead of a hover dropdown */
  .nav-item-has-submenu::after { content: none; }
  .nav-link-services { display: flex; align-items: center; }
  .main-nav .nav-submenu {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    box-shadow: none;
    padding: 0;
    margin-top: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-item-has-submenu.is-open .nav-submenu { max-height: 300px; margin-top: 16px; }
  .nav-item-has-submenu.is-open .nav-caret { transform: rotate(-135deg); }
  .nav-submenu li + li { margin-top: 10px; }
  .nav-submenu a { padding: 0; }
  .nav-submenu-title { font-size: 16px; }

  .hero { padding-bottom: 0; }
  .hero-circle { display: none; }
  .hero-inner { flex-direction: column; }
  .hero-media { flex: none; max-width: 420px; width: 100%; margin-left: 0; align-self: center; order: 2; margin-top: 30px; }
  .hero-content { text-align: left; margin-top: 0; align-self: stretch; order: 1; }

  .problems-grid { grid-template-columns: 1fr; gap: 40px; }

  .process-track { margin: 0; padding: 24px 0 50px; }

  .service-row, .service-row--reverse {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 60px;
  }
  .service-image, .service-card { flex: none; width: 100%; }
  .service-card, .service-row--reverse .service-card {
    margin: -50px 0 0;
    padding: 36px 28px;
  }

  .features-grid { grid-template-columns: 1fr; }
  .feature-card--down { margin-top: 0; }

  .showcase { padding: 60px 0 50px; text-align: center; display: flex; flex-direction: column; min-height: 0; }
  .showcase-media {
    position: static;
    order: 2;
    left: auto;
    bottom: auto;
    width: 85%;
    max-width: 380px;
    margin: 30px auto 0;
    aspect-ratio: auto;
    overflow: visible;
  }
  .showcase-media img {
    position: static;
    width: 100%;
  }
  .showcase-inner { order: 1; justify-content: center; }
  .showcase-content { max-width: 100%; text-align: center; }

  .testimonial-quote-wrap { padding: 0px; }
  .testimonial-quote-text { font-size: 16px; }
  .testimonial-mark { font-size: 64px; }
  /* No hover on touch — show every name by default instead of only on tap */
  .testimonial-pill { background: var(--color-bg); }
  .testimonial-pill.is-active { background: var(--color-dark); }
  .testimonial-pill-name {
    max-width: 120px;
    opacity: 1;
    margin-left: 8px;
    margin-right: 6px;
  }

  .cta-grid { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; }

  .svc-hero { padding-bottom: 0; }
  .svc-hero-inner { flex-direction: column; }
  .svc-hero-content { order: 1; }
  .svc-hero-content h1 { max-width: 100%; }
  .svc-hero-lead { max-width: 100%; }
  .svc-hero-media { order: 2; width: 100%; max-width: 420px; align-self: center; margin-top: 30px; }

  .svc-forwhom { padding: 70px 0; }
  .svc-forwhom-inner { grid-template-columns: 1fr; gap: 40px; }
  .svc-forwhom-gallery { order: 1; min-height: 320px; }
  .svc-check-list { grid-template-columns: 1fr; }
  .svc-experience { padding: 24px 28px; }
  .svc-forwhom-flex { flex-direction: column; gap: 40px; }
  .svc-forwhom-flex .svc-note { padding: 28px 28px; }

  .svc-whatyouget { padding: 70px 0; }
  .svc-whatyouget-grid { grid-template-columns: 1fr; gap: 60px; }

  .svc-plans { padding: 70px 0; }
  .plans-grid { grid-template-columns: 1fr; gap: 60px; max-width: 420px; margin: 0 auto; }

  .svc-faq { padding: 0 0 70px; }
  .svc-plans + .svc-faq,
  .showcase + .svc-faq { padding-top: 60px; }
  .svc-faq-panel { padding: 40px 24px; }
  .svc-faq-question { padding: 20px 22px; }
  .svc-faq-answer { padding: 0 22px 20px; }

  .svc-final-cta { padding: 70px 0 0; }
  .svc-final-cta-inner { flex-direction: column; text-align: center; gap: 30px; align-items: center; }
  .svc-final-cta-media { order: 2; width: 100%; max-width: 320px; margin-top: 0; }
  .svc-final-cta-content { order: 1; padding-bottom: 0; }
  .svc-final-cta-content h2 { font-size: 36px; }
  .svc-final-cta-content p { max-width: 100%; }

  .contact-intro { padding: 70px 0 50px; }
  .contact-options { padding-bottom: 70px; }
  .contact-options-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-direct { padding-bottom: 70px; }
  .contact-methods { gap: 50px; }

  .form-section { padding: 0 0 70px; }
  .form-section--tint { padding: 70px 0; }
  .form-intro { margin-bottom: 32px; }
  .site-form { padding: 28px 22px; }
  .care-modal .site-form { padding: 28px 22px; }
  .form-grid { grid-template-columns: 1fr; gap: 20px; }

  .legal-intro { padding: 70px 0 30px; }
  .legal-content-section { padding: 0 0 70px; }

  .portfolio-intro { padding: 70px 0 50px; }
  .case-study {
    padding: 60px 0 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .case-study-media,
  .case-study:not(.case-study--reverse) .case-study-media,
  .case-study--reverse .case-study-media {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    margin: 0;
    order: 2;
  }
  .case-study-inner,
  .case-study:not(.case-study--reverse) .case-study-inner,
  .case-study--reverse .case-study-inner {
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    order: 1;
    padding-bottom: 40px;
  }
  .case-study-content { max-width: 100%; }
  .case-study-content h3 { font-size: 26px; }
  .case-study-heading { justify-content: flex-start; }


  .testimonial-switcher {
      padding: 30px;
      text-align: left;
  }
}

@media (max-width: 560px) {
  .svc-hero-content h1 { font-size: 32px; }
  .svc-forwhom-photo { position: static; width: 100%; height: auto; aspect-ratio: 271 / 176; }
  .svc-forwhom-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-height: 0; }
  .svc-faq-question span { font-size: 15px; }
}

@media (max-width: 560px) {
  .section-title { font-size: 30px; }
  .hero-content h1 { font-size: 32px; }
  .problems-head h2 { font-size: 26px; }
  .showcase-content h2 { font-size: 30px; }
}
