/* ==========================================================================
   London Interiors — design system
   Tokens carried over verbatim from the previous build's CSS custom properties.
   Colours are stored as bare "H S% L%" triplets so they compose with alpha:
   hsl(var(--primary) / 0.1)
   ========================================================================== */

:root {
  --background: 0 0% 100%;
  --foreground: 220 20% 20%;
  --card: 0 0% 98%;
  --card-foreground: 220 20% 20%;

  /* Coral red from logo */
  --primary: 355 74% 56%;
  --primary-foreground: 0 0% 100%;

  /* Charcoal from logo */
  --secondary: 220 15% 25%;
  --secondary-foreground: 0 0% 98%;

  --muted: 220 14% 96%;
  --muted-foreground: 220 10% 50%;
  --accent: 355 74% 56%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 220 13% 91%;
  --input: 220 13% 91%;
  --ring: 355 74% 56%;

  /* Brand coral is too dark to read on the charcoal sections; this lighter
     tint of the same hue clears WCAG AA there. */
  --primary-on-dark: 355 85% 75%;
  /* Large display text only needs 3:1, so headline accents use a mid tone
     that stays much closer to the brand coral than the small-text tint. */
  --primary-on-dark-lg: 355 82% 66%;

  --radius: 0.5rem;

  --gradient-hero: linear-gradient(135deg, hsl(220 15% 25%) 0%, hsl(220 20% 15%) 100%);
  --gradient-accent: linear-gradient(135deg, hsl(355 74% 56%) 0%, hsl(355 74% 46%) 100%);
  --gradient-light: linear-gradient(180deg, hsl(0 0% 100%) 0%, hsl(220 14% 96%) 100%);
  --shadow-card: 0 4px 20px -4px hsl(220 20% 20% / 0.08);
  --shadow-elevated: 0 20px 50px -12px hsl(220 20% 20% / 0.15);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Playfair Display", Georgia, serif;

  --header-h: 4rem;
}

@media (min-width: 640px) {
  :root { --header-h: 5rem; }
}

/* ==========================================================================
   Base
   ========================================================================== */

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

/* The UA [hidden] rule is namespaced to HTML, so it never reaches SVG
   elements. This makes the attribute work uniformly. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  margin: 0;
  font-weight: 600;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
blockquote { margin: 0; }
figure { margin: 0; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
  border-radius: 2px;
}

/* Anchor targets clear the fixed header */
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* Icon sprite — kept out of flow rather than display:none so <use> resolves everywhere */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.star { fill: currentColor; }

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

.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px)  { .container { max-width: 640px;  padding-inline: 1.5rem; } }
@media (min-width: 768px)  { .container { max-width: 768px;  } }
@media (min-width: 1024px) { .container { max-width: 1024px; padding-inline: 2rem; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }
@media (min-width: 1536px) { .container { max-width: 1400px; } }

.section { padding-block: 4rem; }
@media (min-width: 640px)  { .section { padding-block: 6rem; } }
@media (min-width: 1024px) { .section { padding-block: 8rem; } }

.narrow { max-width: 48rem; margin-inline: auto; }
.center { text-align: center; }
.mt-16 { margin-top: 2.5rem; }
@media (min-width: 640px) { .mt-16 { margin-top: 4rem; } }
.mb-8 { margin-bottom: 1.5rem; }
@media (min-width: 640px) { .mb-8 { margin-bottom: 2rem; } }

.bg-background  { background: hsl(var(--background)); }
.bg-secondary   { background: hsl(var(--secondary)); }
.bg-muted-soft  { background: hsl(var(--muted) / 0.3); }
.gradient-light { background: var(--gradient-light); }
.gradient-hero  { background: var(--gradient-hero); }
.text-primary   { color: hsl(var(--primary)); }

/* Headline accents sitting on the dark hero / CTA band */
.hero .text-primary,
.gradient-hero .text-primary,
.bg-secondary .text-primary { color: hsl(var(--primary-on-dark-lg)); }
.shadow-lg      { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }

/* Shared section header */
.section-head {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) { .section-head { margin-bottom: 4rem; } }

.section-head h2,
.split-body h2 {
  font-size: 1.5rem;
  line-height: 2rem;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}
@media (min-width: 640px)  { .section-head h2, .split-body h2 { font-size: 1.875rem; line-height: 2.25rem; margin-bottom: 1.5rem; } }
@media (min-width: 768px)  { .section-head h2, .split-body h2 { font-size: 2.25rem;  line-height: 2.5rem; } }
@media (min-width: 1024px) { .section-head h2, .split-body h2 { font-size: 3rem;     line-height: 1.1; } }

.on-dark { color: hsl(var(--secondary-foreground)); }
.section-head h2.on-dark,
.split-body h2.on-dark { color: hsl(var(--secondary-foreground)); }

.section-lead {
  font-size: 1rem;
  color: hsl(var(--muted-foreground));
}
@media (min-width: 640px) { .section-lead { font-size: 1.125rem; line-height: 1.75rem; } }
.section-lead.on-dark { color: hsl(var(--secondary-foreground) / 0.8); }

.pill {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}
@media (min-width: 640px) { .pill { padding: 0.5rem 1rem; font-size: 0.875rem; line-height: 1.25rem; margin-bottom: 1.5rem; } }

.hero .pill,
.bg-secondary .pill,
.gradient-hero .pill {
  color: hsl(var(--primary-on-dark));
  background: hsl(var(--primary-on-dark) / 0.15);
}

.eyebrow {
  display: inline-block;
  color: hsl(var(--primary));
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
@media (min-width: 640px) { .eyebrow { margin-bottom: 1rem; } }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  font-weight: 500;
  height: 2.5rem;
  padding: 0.5rem 1rem;
  transition: background-color .2s, box-shadow .2s, transform .2s, border-color .2s, color .2s;
}
.btn:disabled { pointer-events: none; opacity: 0.5; }
.btn .icon { width: 1rem; height: 1rem; }

.btn-lg {
  height: 2.75rem;
  padding-inline: 2rem;
  font-size: 1rem;
  border-radius: calc(var(--radius) - 2px);
}
@media (min-width: 640px) { .btn-lg .icon { width: 1.25rem; height: 1.25rem; } }

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.btn-primary:hover { background: hsl(var(--primary) / 0.9); }

.btn-cta, .btn-hero {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 600;
}
.btn-cta  { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.btn-hero { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.btn-cta:hover, .btn-hero:hover {
  background: hsl(var(--primary) / 0.9);
  transform: scale(1.05);
}
.btn-cta:hover  { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.btn-hero:hover { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }

.btn-hero-outline {
  border: 2px solid hsl(var(--primary-foreground) / 0.3);
  background: transparent;
  color: hsl(var(--primary-foreground));
  font-weight: 600;
}
.btn-hero-outline:hover {
  background: hsl(var(--primary-foreground) / 0.1);
  border-color: hsl(var(--primary-foreground) / 0.5);
}

.btn-full { width: 100%; }

/* Full width on phones, intrinsic from sm up. Wrapping is allowed while
   full-width so long labels can't push the page into horizontal scroll. */
.btn-block-sm {
  width: 100%;
  white-space: normal;
  height: auto;
  min-height: 2.5rem;
  padding-block: 0.625rem;
}
@media (min-width: 640px) {
  .btn-block-sm { width: auto; white-space: nowrap; }
}
.btn-block-sm.btn-lg { min-height: 2.75rem; }

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: hsl(var(--background) / 0.95);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid hsl(var(--border));
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.header-logo img { height: 2.5rem; width: auto; }
@media (min-width: 640px) { .header-logo img { height: 3.5rem; } }

.nav-desktop { display: none; }
@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
}
@media (min-width: 1280px) { .nav-desktop { gap: 2rem; } }

.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.7);
  transition: color .2s;
}
.nav-desktop a:hover { color: hsl(var(--primary)); }

.header-cta { display: none; }
@media (min-width: 1024px) {
  .header-cta { display: flex; align-items: center; gap: 1.25rem; }
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  color: hsl(var(--foreground));
  transition: color .2s;
}
.header-phone:hover { color: hsl(var(--primary)); }
.header-phone .icon { width: 1rem; height: 1rem; color: hsl(var(--primary)); }

.nav-toggle {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  margin-right: -0.5rem;
  color: hsl(var(--foreground));
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }
.nav-toggle .icon { width: 1.5rem; height: 1.5rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu  { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-mobile {
  padding-block: 1rem;
  border-top: 1px solid hsl(var(--border));
  animation: fade-in .3s ease-out forwards;
}
@media (min-width: 1024px) { .nav-mobile { display: none !important; } }

.nav-mobile nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.nav-mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.7);
  padding-block: 0.5rem;
  transition: color .2s;
}
.nav-mobile a:hover { color: hsl(var(--primary)); }
.nav-mobile-cta { margin-top: 1rem; }

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    hsl(var(--secondary) / 0.95) 0%,
    hsl(var(--secondary) / 0.90) 50%,
    hsl(var(--secondary) / 0.80) 100%);
}
@media (min-width: 640px) {
  .hero-overlay {
    background: linear-gradient(to right,
      hsl(var(--secondary) / 0.95) 0%,
      hsl(var(--secondary) / 0.85) 50%,
      hsl(var(--secondary) / 0.70) 100%);
  }
}

.hero-inner { position: relative; z-index: 10; padding-block: 2rem; }
@media (min-width: 640px) { .hero-inner { padding-block: 0; } }

.hero-content { max-width: 48rem; }

.hero-title {
  font-size: 1.875rem;
  line-height: 1.25;
  font-weight: 600;
  color: hsl(var(--secondary-foreground));
  margin-bottom: 1rem;
}
@media (min-width: 640px)  { .hero-title { font-size: 2.25rem; margin-bottom: 1.5rem; } }
@media (min-width: 768px)  { .hero-title { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.75rem; } }
@media (min-width: 1280px) { .hero-title { font-size: 4.5rem; } }

.hero-lead {
  font-size: 1rem;
  color: hsl(var(--secondary-foreground) / 0.8);
  margin-bottom: 1.5rem;
  max-width: 42rem;
}
@media (min-width: 640px) { .hero-lead { font-size: 1.125rem; line-height: 1.75rem; margin-bottom: 2rem; } }
@media (min-width: 768px) { .hero-lead { font-size: 1.25rem; } }

.hero-actions { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .hero-actions { flex-direction: row; gap: 1rem; } }
.hero-actions .btn { width: 100%; }
@media (min-width: 640px) { .hero-actions .btn { width: auto; } }

.scroll-indicator {
  display: none;
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 1s infinite;
}
@media (min-width: 640px) { .scroll-indicator { display: flex; } }

.scroll-indicator {
  width: 1.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 2px solid hsl(var(--secondary-foreground) / 0.3);
  align-items: flex-start;
  justify-content: center;
  padding: 0.5rem;
}
.scroll-dot {
  width: 0.375rem;
  height: 0.75rem;
  background: hsl(var(--secondary-foreground) / 0.5);
  border-radius: 9999px;
}

/* ==========================================================================
   Value proposition
   ========================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px)  { .feature-grid { gap: 1.5rem; margin-bottom: 4rem; } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; } }

.feature-card {
  background: hsl(var(--background));
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow .3s, transform .3s;
}
@media (min-width: 640px)  { .feature-card { padding: 1.5rem; } }
@media (min-width: 1024px) { .feature-card { padding: 2rem; } }
.feature-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-0.25rem);
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  transition: transform .3s;
}
.feature-card:hover .feature-icon { transform: scale(1.1); }
.feature-icon .icon { width: 1.25rem; height: 1.25rem; color: hsl(var(--primary-foreground)); }
@media (min-width: 640px) {
  .feature-icon { width: 3rem; height: 3rem; margin-bottom: 1rem; }
  .feature-icon .icon { width: 1.5rem; height: 1.5rem; }
}
@media (min-width: 1024px) {
  .feature-icon { width: 3.5rem; height: 3.5rem; margin-bottom: 1.5rem; }
  .feature-icon .icon { width: 1.75rem; height: 1.75rem; }
}

.feature-card h3 {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}
@media (min-width: 640px)  { .feature-card h3 { font-size: 1rem; margin-bottom: 0.5rem; } }
@media (min-width: 1024px) { .feature-card h3 { font-size: 1.25rem; line-height: 1.75rem; margin-bottom: 0.75rem; } }

.feature-card p {
  font-size: 0.75rem;
  line-height: 1rem;
  color: hsl(var(--muted-foreground));
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 640px) { .feature-card p { font-size: 0.875rem; line-height: 1.25rem; } }

.lead-strong {
  font-size: 1rem;
  color: hsl(var(--foreground));
  font-weight: 500;
  margin-bottom: 1rem;
  padding-inline: 1rem;
}
@media (min-width: 640px) { .lead-strong { font-size: 1.125rem; margin-bottom: 1.5rem; } }

/* ==========================================================================
   Problems (split layout)
   ========================================================================== */

.split-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 1024px) { .split-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5rem; } }

.split-media { position: relative; order: 1; }
.split-body  { order: 2; }
@media (min-width: 1024px) {
  .split-media { order: 2; }
  .split-body  { order: 1; }
}

.split-media-frame {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}
@media (min-width: 640px) { .split-media-frame { border-radius: 1rem; } }
.split-media-frame img { width: 100%; height: 14rem; object-fit: cover; }
@media (min-width: 640px)  { .split-media-frame img { height: 18rem; } }
@media (min-width: 1024px) { .split-media-frame img { height: auto; } }

.split-media-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(var(--secondary) / 0.4), transparent);
}

.deco { display: none; position: absolute; border-radius: var(--radius); }
@media (min-width: 640px) { .deco { display: block; } }
.deco-br {
  bottom: -1rem; left: -1rem;
  width: 6rem; height: 6rem;
  border: 4px solid hsl(var(--primary) / 0.2);
}
.deco-tr {
  top: -1rem; right: -1rem;
  width: 4rem; height: 4rem;
  background: hsl(var(--primary) / 0.1);
}

.list-alert, .list-check { display: grid; gap: 0.75rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .list-alert { gap: 1rem; margin-bottom: 2.5rem; } .list-check { gap: 0.75rem; margin-bottom: 2.5rem; } }

.list-alert li { display: flex; align-items: flex-start; gap: 0.75rem; }
.list-alert .icon { width: 1rem; height: 1rem; color: hsl(var(--primary)); margin-top: 0.125rem; }
@media (min-width: 640px) { .list-alert .icon { width: 1.25rem; height: 1.25rem; margin-top: 0.25rem; } }
.list-alert span { font-size: 0.875rem; color: hsl(var(--foreground)); }
@media (min-width: 640px) { .list-alert span { font-size: 1rem; } }

.list-check li { display: flex; align-items: center; gap: 0.75rem; }
.list-check .icon { width: 1rem; height: 1rem; color: hsl(var(--primary)); }
@media (min-width: 640px) { .list-check .icon { width: 1.25rem; height: 1.25rem; } }
.list-check span { font-size: 0.875rem; color: hsl(var(--foreground)); }
@media (min-width: 640px) { .list-check span { font-size: 1rem; } }

.list-check.lg li { align-items: flex-start; gap: 0.75rem; }
.list-check.lg .icon { width: 1.25rem; height: 1.25rem; margin-top: 0.125rem; }
@media (min-width: 640px) {
  .list-check.lg li { gap: 1rem; }
  .list-check.lg .icon { width: 1.5rem; height: 1.5rem; }
  .list-check.lg span { font-size: 1rem; }
}
@media (min-width: 1024px) { .list-check.lg span { font-size: 1.125rem; } }

.lead-strong-left {
  font-size: 1rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
}
@media (min-width: 640px) { .lead-strong-left { font-size: 1.125rem; margin-bottom: 1rem; } }

.muted-note {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}
@media (min-width: 640px) { .muted-note { font-size: 1rem; margin-bottom: 1.5rem; } }

.italic-note {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  font-style: italic;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px) { .italic-note { font-size: 0.875rem; margin-bottom: 2rem; } }

/* ==========================================================================
   Services
   ========================================================================== */

.gallery-grid { display: grid; gap: 1rem; margin-bottom: 2.5rem; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; margin-bottom: 4rem; } }

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}
@media (min-width: 640px) { .gallery-item { border-radius: 0.75rem; } }
.gallery-item img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  transition: transform .5s;
}
@media (min-width: 640px)  { .gallery-item img { height: 16rem; } }
@media (min-width: 1024px) { .gallery-item img { height: 20rem; } }
.gallery-item:hover img { transform: scale(1.05); }

.gallery-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(var(--secondary) / 0.8), transparent 50%, transparent);
}

.gallery-item figcaption {
  position: absolute;
  bottom: 1rem; left: 1rem; right: 1rem;
}
@media (min-width: 640px) { .gallery-item figcaption { bottom: 1.5rem; left: 1.5rem; right: 1.5rem; } }
.gallery-item figcaption h3 {
  font-size: 1rem;
  color: hsl(var(--secondary-foreground));
}
@media (min-width: 640px) { .gallery-item figcaption h3 { font-size: 1.25rem; } }
.gallery-item figcaption p {
  font-size: 0.75rem;
  color: hsl(var(--secondary-foreground) / 0.8);
}
@media (min-width: 640px) { .gallery-item figcaption p { font-size: 0.875rem; } }

.service-grid { display: grid; gap: 1rem; margin-bottom: 2rem; }
@media (min-width: 640px)  { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-bottom: 3rem; } }
@media (min-width: 1024px) { .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.service-card {
  background: hsl(var(--secondary-foreground) / 0.05);
  backdrop-filter: blur(4px);
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--secondary-foreground) / 0.1);
  transition: border-color .3s;
}
@media (min-width: 640px) { .service-card { padding: 1.5rem; border-radius: 0.75rem; } }
.service-card:hover { border-color: hsl(var(--primary) / 0.3); }

.service-icon {
  width: 1.5rem; height: 1.5rem;
  color: hsl(var(--primary));
  margin-bottom: 0.75rem;
}
@media (min-width: 640px) { .service-icon { width: 2rem; height: 2rem; margin-bottom: 1rem; } }

.service-card h3 {
  font-size: 0.875rem;
  color: hsl(var(--secondary-foreground));
  margin-bottom: 0.25rem;
}
@media (min-width: 640px) { .service-card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; } }
.service-card p {
  font-size: 0.75rem;
  color: hsl(var(--secondary-foreground) / 0.7);
}
@media (min-width: 640px) { .service-card p { font-size: 0.875rem; } }

/* ==========================================================================
   Approach
   ========================================================================== */

.question-grid {
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
  margin: 0 auto 3rem;
}
@media (min-width: 640px) { .question-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-bottom: 5rem; } }

.question-card {
  background: hsl(var(--muted));
  padding: 1rem;
  border-radius: var(--radius);
  border-left: 4px solid hsl(var(--primary));
}
@media (min-width: 640px) { .question-card { padding: 1.5rem; border-radius: 0.75rem; } }
.question-card p {
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  font-weight: 500;
}
@media (min-width: 640px) { .question-card p { font-size: 1rem; } }

.process-wrap { max-width: 56rem; margin-inline: auto; }
.process-title {
  font-size: 1.25rem;
  color: hsl(var(--foreground));
  text-align: center;
  margin-bottom: 2rem;
}
@media (min-width: 640px) { .process-title { font-size: 1.5rem; margin-bottom: 3rem; } }
@media (min-width: 768px) { .process-title { font-size: 1.875rem; } }

.process { position: relative; }
.process-line { display: none; }
@media (min-width: 768px) {
  .process-line {
    display: block;
    position: absolute;
    left: 2rem;
    top: 0; bottom: 0;
    width: 2px;
    background: hsl(var(--border));
  }
}

.process-steps { display: grid; gap: 1rem; }
@media (min-width: 640px) { .process-steps { gap: 2rem; } }

.process-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
@media (min-width: 640px) { .process-step { gap: 1.5rem; } }

.step-num {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  transition: transform .3s;
}
@media (min-width: 640px) { .step-num { width: 4rem; height: 4rem; } }
.process-step:hover .step-num { transform: scale(1.1); }
.step-num span {
  color: hsl(var(--primary-foreground));
  font-weight: 700;
  font-size: 0.875rem;
}
@media (min-width: 640px) { .step-num span { font-size: 1.125rem; } }

.step-body {
  flex: 1;
  background: hsl(var(--card));
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: box-shadow .3s;
}
@media (min-width: 640px) { .step-body { padding: 1.5rem; border-radius: 0.75rem; } }
.process-step:hover .step-body { box-shadow: var(--shadow-elevated); }

.step-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
@media (min-width: 640px) { .step-head { gap: 0.75rem; margin-bottom: 0.75rem; } }
.step-head .icon { width: 1rem; height: 1rem; color: hsl(var(--primary)); }
@media (min-width: 640px) { .step-head .icon { width: 1.25rem; height: 1.25rem; } }
.step-head h4 { font-size: 0.875rem; color: hsl(var(--foreground)); }
@media (min-width: 640px) { .step-head h4 { font-size: 1.125rem; } }
.step-body p { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
@media (min-width: 640px) { .step-body p { font-size: 1rem; } }

/* ==========================================================================
   Why us
   ========================================================================== */

.why-grid { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4rem; } }

.why-grid h2 {
  font-size: 1.5rem;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}
@media (min-width: 640px)  { .why-grid h2 { font-size: 1.875rem; margin-bottom: 1.5rem; } }
@media (min-width: 768px)  { .why-grid h2 { font-size: 2.25rem; } }
@media (min-width: 1024px) { .why-grid h2 { font-size: 3rem; line-height: 1.1; } }

.list-tick { display: grid; gap: 0.75rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .list-tick { gap: 1rem; margin-bottom: 2rem; } }
.list-tick li { display: flex; align-items: flex-start; gap: 0.5rem; }
@media (min-width: 640px) { .list-tick li { gap: 0.75rem; } }
.tick {
  width: 1.25rem; height: 1.25rem;
  border-radius: 9999px;
  background: hsl(var(--primary));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
}
@media (min-width: 640px) { .tick { width: 1.5rem; height: 1.5rem; } }
.tick .icon { width: 0.75rem; height: 0.75rem; color: hsl(var(--primary-foreground)); }
@media (min-width: 640px) { .tick .icon { width: 1rem; height: 1rem; } }
.list-tick span:last-child { font-size: 0.875rem; color: hsl(var(--foreground)); }
@media (min-width: 640px)  { .list-tick span:last-child { font-size: 1rem; } }
@media (min-width: 1024px) { .list-tick span:last-child { font-size: 1.125rem; } }

.why-quote {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  font-style: italic;
  color: hsl(var(--foreground));
}
@media (min-width: 640px)  { .why-quote { font-size: 1.125rem; } }
@media (min-width: 1024px) { .why-quote { font-size: 1.25rem; } }

.outcomes-card {
  background: hsl(var(--background));
  padding: 1.25rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-elevated);
}
@media (min-width: 640px)  { .outcomes-card { padding: 2rem; border-radius: 1rem; } }
@media (min-width: 1024px) { .outcomes-card { padding: 2.5rem; } }

.outcomes-card h3 {
  font-size: 1.125rem;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}
@media (min-width: 640px)  { .outcomes-card h3 { font-size: 1.25rem; margin-bottom: 1.5rem; } }
@media (min-width: 1024px) { .outcomes-card h3 { font-size: 1.5rem; } }

.list-arrow { display: grid; gap: 0.5rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .list-arrow { gap: 0.75rem; margin-bottom: 2rem; } }
.list-arrow li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
}
@media (min-width: 640px) { .list-arrow li { gap: 0.75rem; font-size: 1rem; } }
.list-arrow .icon { width: 0.75rem; height: 0.75rem; color: hsl(var(--primary)); }
@media (min-width: 640px) { .list-arrow .icon { width: 1rem; height: 1rem; } }

.outcomes-divider {
  border-top: 1px solid hsl(var(--border));
  padding-top: 1rem;
}
@media (min-width: 640px) { .outcomes-divider { padding-top: 1.5rem; } }

.list-softtick { display: grid; gap: 0.5rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .list-softtick { gap: 0.75rem; margin-bottom: 2rem; } }
.list-softtick li { display: flex; align-items: center; gap: 0.5rem; }
@media (min-width: 640px) { .list-softtick li { gap: 0.75rem; } }
.softtick {
  width: 1rem; height: 1rem;
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
@media (min-width: 640px) { .softtick { width: 1.25rem; height: 1.25rem; } }
.softtick .icon { width: 0.5rem; height: 0.5rem; color: hsl(var(--primary)); }
@media (min-width: 640px) { .softtick .icon { width: 0.75rem; height: 0.75rem; } }
.list-softtick span:last-child {
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  font-weight: 500;
}
@media (min-width: 640px) { .list-softtick span:last-child { font-size: 1rem; } }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial-grid {
  display: grid;
  gap: 1rem;
  max-width: 64rem;
  margin-inline: auto;
  margin-top: 3rem;
}
@media (min-width: 640px) { .testimonial-grid { margin-top: 4rem; } }
@media (min-width: 768px) { .testimonial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; } }

.testimonial-card, .review-card {
  position: relative;
  background: hsl(var(--secondary-foreground) / 0.05);
  backdrop-filter: blur(4px);
  border: 1px solid hsl(var(--secondary-foreground) / 0.1);
  border-radius: 0.75rem;
  padding: 1.25rem;
}
@media (min-width: 640px) { .testimonial-card { padding: 2rem; border-radius: 1rem; } }
@media (min-width: 1024px) { .testimonial-card { padding: 2.5rem; } }

.quote-mark {
  width: 2rem; height: 2rem;
  color: hsl(var(--primary) / 0.3);
  margin-bottom: 1rem;
}
@media (min-width: 640px) { .quote-mark { width: 2.5rem; height: 2.5rem; margin-bottom: 1.5rem; } }
.quote-mark.sm { width: 1.5rem; height: 1.5rem; margin-bottom: 0.75rem; }
@media (min-width: 640px) { .quote-mark.sm { width: 2rem; height: 2rem; margin-bottom: 1rem; } }

.testimonial-card blockquote {
  font-size: 1rem;
  color: hsl(var(--secondary-foreground));
  margin-bottom: 1rem;
  line-height: 1.625;
}
@media (min-width: 640px)  { .testimonial-card blockquote { font-size: 1.125rem; margin-bottom: 1.5rem; } }
@media (min-width: 1024px) { .testimonial-card blockquote { font-size: 1.25rem; } }

.t-author {
  font-weight: 600;
  font-size: 0.875rem;
  color: hsl(var(--secondary-foreground));
}
@media (min-width: 640px) { .t-author { font-size: 1rem; } }

.t-meta {
  color: hsl(var(--secondary-foreground) / 0.75);
  font-size: 0.75rem;
}
@media (min-width: 640px) { .t-meta { font-size: 0.875rem; } }

.t-verified {
  color: hsl(var(--primary-on-dark));
  font-size: 0.75rem;
  font-weight: 500;
}
@media (min-width: 640px) { .t-verified { font-size: 0.875rem; } }

/* --- Carousel ------------------------------------------------------------ */

.carousel {
  max-width: 72rem;
  margin-inline: auto;
}

.carousel-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.carousel-viewport::-webkit-scrollbar { display: none; }

.carousel-track { display: flex; gap: 1rem; }

.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
}
@media (min-width: 768px)  { .carousel-slide { flex-basis: calc((100% - 1rem) / 2); } }
@media (min-width: 1024px) { .carousel-slide { flex-basis: calc((100% - 2rem) / 3); } }

.review-card {
  display: flex;
  flex-direction: column;
  flex: 1;
}
@media (min-width: 640px)  { .review-card { padding: 1.5rem; border-radius: 1rem; } }
@media (min-width: 1024px) { .review-card { padding: 2rem; } }

.review-card blockquote {
  font-size: 0.875rem;
  color: hsl(var(--secondary-foreground));
  margin-bottom: 1rem;
  line-height: 1.625;
  flex: 1;
}
@media (min-width: 640px) { .review-card blockquote { font-size: 1rem; } }

.review-card figcaption { margin-top: auto; }

.stars { display: flex; gap: 0.125rem; color: hsl(var(--primary-on-dark)); }
.stars .icon { width: 1rem; height: 1rem; }
.review-card .t-author { margin-top: 0.75rem; }

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--secondary-foreground) / 0.2);
  background: hsl(var(--secondary-foreground) / 0.05);
  color: hsl(var(--secondary-foreground));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s, border-color .2s, opacity .2s;
}
.carousel-btn:hover {
  background: hsl(var(--secondary-foreground) / 0.12);
  border-color: hsl(var(--primary) / 0.4);
}
.carousel-btn .icon { width: 1rem; height: 1rem; }

/* ==========================================================================
   Is this for you
   ========================================================================== */

.ideal-card {
  background: hsl(var(--muted));
  padding: 1.25rem;
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 640px)  { .ideal-card { padding: 2rem; border-radius: 1rem; margin-bottom: 2rem; } }
@media (min-width: 1024px) { .ideal-card { padding: 2.5rem; } }
.ideal-card .list-check { margin-bottom: 0; }

.notfor-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: hsl(var(--muted) / 0.5);
  border: 1px solid hsl(var(--border));
}
@media (min-width: 640px) { .notfor-card { gap: 1rem; padding: 1.5rem; border-radius: 0.75rem; } }
.notfor-card .icon {
  width: 1.25rem; height: 1.25rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.125rem;
}
@media (min-width: 640px) { .notfor-card .icon { width: 1.5rem; height: 1.5rem; } }
.notfor-card p { font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
@media (min-width: 640px) { .notfor-card p { font-size: 1rem; } }

/* ==========================================================================
   Projects
   ========================================================================== */

#projects .section-lead { max-width: 42rem; margin-inline: auto; }

.project-grid {
  display: grid;
  gap: 2rem;
  max-width: 72rem;
  margin-inline: auto;
}
@media (min-width: 768px)  { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .project-grid { gap: 3rem; } }

.project-card {
  background: hsl(var(--card));
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid hsl(var(--border));
}
@media (min-width: 640px) { .project-card { border-radius: 1rem; } }

/* Click-to-load video: the YouTube player is only fetched on interaction */
.video-facade {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: transparent;
  transition: background-color .2s;
}
.video-play:hover { background: rgb(0 0 0 / 0.15); }
.yt-play { width: 68px; height: 48px; filter: drop-shadow(0 2px 6px rgb(0 0 0 / 0.4)); }
.yt-play-bg { fill: #212121; fill-opacity: 0.8; transition: fill .2s, fill-opacity .2s; }
.video-play:hover .yt-play-bg { fill: #f00; fill-opacity: 1; }

.project-body { padding: 1.25rem; }
@media (min-width: 640px)  { .project-body { padding: 1.5rem; } }
@media (min-width: 1024px) { .project-body { padding: 2rem; } }
.project-body h3 {
  font-size: 1.25rem;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
}
@media (min-width: 640px) { .project-body h3 { font-size: 1.5rem; margin-bottom: 1rem; } }
.project-body p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.625;
}
@media (min-width: 640px) { .project-body p { font-size: 1rem; } }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { display: grid; gap: 0.75rem; }

.faq-item {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item[open] {
  border-color: hsl(var(--primary) / 0.3);
  box-shadow: var(--shadow-card);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: hsl(var(--foreground));
  list-style: none;
}
@media (min-width: 640px) { .faq-item summary { font-size: 1.0625rem; padding: 1.25rem 1.5rem; } }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font: inherit; margin: 0; }
.faq-item summary:hover { color: hsl(var(--primary)); }

.faq-chevron {
  width: 1.125rem;
  height: 1.125rem;
  color: hsl(var(--primary));
  transition: transform .2s;
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.625;
}
@media (min-width: 640px) { .faq-answer { padding: 0 1.5rem 1.5rem; font-size: 1rem; } }

/* ==========================================================================
   CTA band
   ========================================================================== */

#contact h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
@media (min-width: 640px)  { #contact h2 { font-size: 1.875rem; margin-bottom: 1.5rem; } }
@media (min-width: 768px)  { #contact h2 { font-size: 2.25rem; } }
@media (min-width: 1024px) { #contact h2 { font-size: 3rem; line-height: 1.1; } }

.cta-lead {
  font-size: 1rem;
  color: hsl(var(--secondary-foreground) / 0.8);
  margin-bottom: 1.5rem;
}
@media (min-width: 640px)  { .cta-lead { font-size: 1.125rem; margin-bottom: 2rem; } }
@media (min-width: 1024px) { .cta-lead { font-size: 1.25rem; } }

.cta-sub {
  font-size: 0.875rem;
  color: hsl(var(--secondary-foreground) / 0.7);
  margin-bottom: 1.5rem;
}
@media (min-width: 640px)  { .cta-sub { font-size: 1rem; margin-bottom: 2rem; } }
@media (min-width: 1024px) { .cta-sub { font-size: 1.125rem; } }

.cta-list {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 2rem;
  text-align: left;
}
@media (min-width: 640px) { .cta-list { gap: 0.75rem; margin-bottom: 2.5rem; } }
.cta-list li { display: flex; align-items: center; gap: 0.5rem; }
@media (min-width: 640px) { .cta-list li { gap: 0.75rem; } }
.cta-list .icon { width: 1rem; height: 1rem; color: hsl(var(--primary)); }
@media (min-width: 640px) { .cta-list .icon { width: 1.25rem; height: 1.25rem; } }
.cta-list span { font-size: 0.875rem; color: hsl(var(--secondary-foreground)); }
@media (min-width: 640px) { .cta-list span { font-size: 1rem; } }

.cta-note {
  font-size: 0.875rem;
  color: hsl(var(--secondary-foreground) / 0.6);
  margin-bottom: 2rem;
  font-style: italic;
}
@media (min-width: 640px)  { .cta-note { font-size: 1rem; margin-bottom: 2.5rem; } }
@media (min-width: 1024px) { .cta-note { font-size: 1.125rem; } }

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

.site-footer {
  background: hsl(var(--secondary));
  padding-block: 2.5rem;
}
@media (min-width: 640px) { .site-footer { padding-block: 4rem; } }

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; margin-bottom: 3rem; }
}
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 640px) { .footer-brand { grid-column: span 2; } }

.footer-brand img { height: 3rem; width: auto; margin-bottom: 0.75rem; }
@media (min-width: 640px) { .footer-brand img { height: 4rem; margin-bottom: 1rem; } }
.footer-brand p {
  font-size: 0.875rem;
  color: hsl(var(--secondary-foreground) / 0.7);
  max-width: 28rem;
}
@media (min-width: 640px) { .footer-brand p { font-size: 1rem; } }

.site-footer h3 {
  font-size: 1rem;
  color: hsl(var(--secondary-foreground));
  margin-bottom: 0.75rem;
}
@media (min-width: 640px) { .site-footer h3 { font-size: 1.125rem; margin-bottom: 1rem; } }

.footer-links, .footer-contact { display: grid; gap: 0.5rem; }
@media (min-width: 640px) { .footer-links, .footer-contact { gap: 0.75rem; } }

.footer-links a, .footer-contact a {
  font-size: 0.875rem;
  color: hsl(var(--secondary-foreground) / 0.7);
  transition: color .2s;
  overflow-wrap: break-word;
}
@media (min-width: 640px) { .footer-links a, .footer-contact a { font-size: 1rem; } }
.footer-links a:hover, .footer-contact a:hover { color: hsl(var(--primary)); }

.footer-contact li { display: flex; align-items: center; gap: 0.5rem; }
/* Grid and flex items both default to min-width:auto, which stops the long
   email address shrinking and pushes the 4-column footer past the viewport at
   ~1024px. The whole chain has to be allowed to shrink. */
.footer-grid > * { min-width: 0; }
.footer-contact li { min-width: 0; }
.footer-contact li a { min-width: 0; }
@media (min-width: 640px) { .footer-contact li { gap: 0.75rem; } }
.footer-contact .icon { width: 1rem; height: 1rem; color: hsl(var(--primary)); }
@media (min-width: 640px) { .footer-contact .icon { width: 1.25rem; height: 1.25rem; } }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--secondary-foreground) / 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .footer-bottom { padding-top: 2rem; flex-direction: row; justify-content: space-between; gap: 1rem; }
}
.footer-bottom p {
  color: hsl(var(--secondary-foreground) / 0.7);
  font-size: 0.75rem;
  text-align: center;
}
@media (min-width: 640px) { .footer-bottom p { font-size: 0.875rem; text-align: left; } }

.footer-legal { display: flex; gap: 1rem; }
@media (min-width: 640px) { .footer-legal { gap: 1.5rem; } }
.footer-legal a {
  color: hsl(var(--secondary-foreground) / 0.7);
  font-size: 0.75rem;
  transition: color .2s;
}
@media (min-width: 640px) { .footer-legal a { font-size: 0.875rem; } }
.footer-legal a:hover { color: hsl(var(--primary)); }

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

.modal {
  margin: auto;
  padding: 0;
  border: none;
  background: transparent;
  overflow: visible;
  max-width: none;
  max-height: none;
}
.modal::backdrop { background: rgb(0 0 0 / 0.8); }

.modal-inner {
  position: relative;
  width: calc(100vw - 2rem);
  max-width: 28rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-elevated);
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  border-radius: var(--radius);
  opacity: 0.7;
  color: hsl(var(--foreground));
  transition: opacity .2s;
  line-height: 0;
}
.modal-close:hover { opacity: 1; }
.modal-close .icon { width: 1rem; height: 1rem; }

.modal-head { margin-bottom: 1rem; padding-right: 1.5rem; }
.modal-head h2 {
  font-size: 1.25rem;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}
@media (min-width: 640px) { .modal-head h2 { font-size: 1.5rem; } }
.modal-head p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}
@media (min-width: 640px) { .modal-head p { font-size: 1rem; } }

.modal-success { padding-block: 2rem; text-align: center; }
.success-badge {
  width: 4rem; height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 9999px;
  background: hsl(var(--primary) / 0.1);
  display: flex; align-items: center; justify-content: center;
}
.success-badge .icon { width: 2rem; height: 2rem; color: hsl(var(--primary)); }
.modal-success h3 {
  font-size: 1.125rem;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}
.modal-success p { color: hsl(var(--muted-foreground)); font-size: 0.875rem; }

#contactForm { display: grid; gap: 1rem; }
@media (min-width: 640px) { #contactForm { gap: 1.25rem; } }

.field { display: grid; gap: 0.5rem; }
.field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}
.req { color: hsl(var(--primary)); }

.field input {
  height: 2.75rem;
  width: 100%;
  border: 1px solid hsl(var(--input));
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--background));
  padding-inline: 0.75rem;
  font-size: 1rem; /* 16px keeps iOS from zooming on focus */
  font-family: inherit;
  color: hsl(var(--foreground));
  transition: border-color .2s, box-shadow .2s;
}
@media (min-width: 640px) { .field input { height: 3rem; } }
.field input::placeholder { color: hsl(var(--muted-foreground)); }
.field input:focus-visible {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring) / 0.3);
}
.field input[aria-invalid="true"] { border-color: hsl(var(--destructive)); }

.field-error {
  font-size: 0.75rem;
  color: hsl(var(--destructive));
  min-height: 0;
}
.field-error:empty { display: none; }

.form-error {
  font-size: 0.875rem;
  color: hsl(var(--destructive));
  background: hsl(var(--destructive) / 0.08);
  border: 1px solid hsl(var(--destructive) / 0.3);
  border-radius: calc(var(--radius) - 2px);
  padding: 0.75rem;
}

.modal-submit { margin-top: 0.5rem; }
.spinner { animation: spin 1s linear infinite; }

.form-note {
  font-size: 0.75rem;
  text-align: center;
  color: hsl(var(--muted-foreground));
  padding-top: 0.5rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
  50%      { transform: translateX(-50%) translateY(0);    animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-viewport { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .btn-cta:hover, .btn-hero:hover, .feature-card:hover, .gallery-item:hover img,
  .process-step:hover .step-num, .feature-card:hover .feature-icon { transform: none; }
}

/* ==========================================================================
   Hero reassurance + sticky mobile CTA
   ========================================================================== */

.hero-reassurance {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: hsl(var(--secondary-foreground) / 0.65);
}
@media (min-width: 640px) { .hero-reassurance { font-size: 0.875rem; margin-top: 1.25rem; } }

/* Below 1024px the fixed header has no CTA, so this carries the conversion
   path for the rest of the page. Revealed once the hero scrolls away. */
.sticky-cta { display: none; }

@media (max-width: 1023px) {
  .sticky-cta {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    padding: 0.75rem 1rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: hsl(var(--background) / 0.97);
    backdrop-filter: blur(8px);
    border-top: 1px solid hsl(var(--border));
    box-shadow: 0 -4px 20px -4px hsl(220 20% 20% / 0.12);
  }
  body.has-sticky-cta { padding-bottom: 5.5rem; }
}

.sticky-cta-main {
  flex: 1;
  white-space: normal;
  height: auto;
  min-height: 3rem;
  padding-inline: 0.75rem;
}

.sticky-cta-call {
  flex-shrink: 0;
  width: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--background));
  color: hsl(var(--primary));
  transition: background-color .2s, border-color .2s;
}
.sticky-cta-call:hover { background: hsl(var(--muted)); border-color: hsl(var(--primary) / 0.4); }
.sticky-cta-call .icon { width: 1.25rem; height: 1.25rem; }
