/* Mr Paul Trikha — Surrey Orthopaedic Clinic Branding
   Light medical palette, coral pink + navy accents */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f6f8fb;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;

  --text-primary: #0e1830;
  --text-secondary: #475066;
  --text-muted: #7a8497;

  --accent: #e84c7a;
  --accent-dark: #d43a68;
  --accent-light: #f06090;
  --accent-soft: rgba(232, 76, 122, 0.10);
  --accent-glow: rgba(232, 76, 122, 0.18);

  --navy: #0e1830;
  --navy-light: #1a2255;
  --navy-soft: rgba(26, 34, 85, 0.06);

  --border: #e6e9ef;
  --border-light: #eef0f5;

  --success: #1f6b47;
  --error: #b8345e;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --shadow-sm: 0 1px 3px rgba(14, 24, 48, 0.06), 0 1px 2px rgba(14, 24, 48, 0.04);
  --shadow-md: 0 8px 24px rgba(14, 24, 48, 0.06), 0 2px 6px rgba(14, 24, 48, 0.04);
  --shadow-lg: 0 18px 48px rgba(14, 24, 48, 0.08), 0 4px 12px rgba(14, 24, 48, 0.04);
}

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

/* Honour the [hidden] attribute even when an element has a class-based display rule. */
[hidden] { display: none !important; }

html, body {
  /* Force dark page background so iOS safe-area zones don't show white.
     Matches the TOP of the hero gradient (#16264a) so the seam where
     safe-area meets hero is invisible. */
  background-color: #16264a !important;
  min-height: 100dvh;
  width: 100%;
  overflow-x: clip;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  line-height: 1.6;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 48px 24px;
}

/* Phone-frame: constrain the whole site to a mobile column on every screen,
   with the navy page background showing as the surround on wider viewports. */
.page {
  max-width: 430px;
  margin: 0 auto;
  background: var(--bg-primary);
  min-height: 100dvh;
  overflow-x: clip;
  position: relative;
}

/* ===== HERO SECTION ===== */

.hero {
  /* Burgess Hodgson sizing: taller than viewport on mobile so the navy
     fully covers in any chrome state; exact viewport on desktop.
     Content starts at top on mobile so the scroll indicator stays
     in the visible region. */
  min-height: calc(100lvh + 6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  padding: 60px 24px 0;
  padding-top: max(env(safe-area-inset-top), 3.5rem);
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(123, 167, 217, 0.10), transparent 55%),
    linear-gradient(180deg, #16264a 0%, #0e1830 100%);
  color: #ffffff;
  border-bottom: 4px solid var(--accent);
}

/* === Hero decorative layer — matches Burgess Hodgson texture stack === */

/* SVG noise grain at 3% opacity for tactile depth */
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Right-hand skewed coral wedge */
.hero-skew {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: rgba(232, 76, 122, 0.05);
  transform: skewX(-8deg) translateX(25%);
  pointer-events: none;
  z-index: 0;
}

/* Vertical coral bar on the left at upper third */
.hero-bar {
  position: absolute;
  left: 0;
  top: 25%;
  width: 4px;
  height: 128px;
  background: var(--accent);
  pointer-events: none;
  z-index: 0;
}

/* Soft coral radial spotlight behind the photo/content */
.hero-spotlight {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36rem;
  height: 36rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 76, 122, 0.18), transparent 70%);
  opacity: 0.65;
  pointer-events: none;
  z-index: 0;
}

/* Decorative orbs and particles — hidden for a calm, premium hero */
.hero::before,
.hero::after {
  display: none;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  position: relative;
  z-index: 1;
  animation: fade-up 1s ease-out;
}

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

.hero-photo-wrapper {
  position: relative;
  animation: scale-in 0.8s ease-out 0.2s both;
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-photo {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 1;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
  transition: transform 0.4s ease;
}

.hero-photo:hover img {
  transform: scale(1.05);
}

.photo-ring,
.photo-ring::before {
  display: none;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-brand {
  display: block;
  align-self: center;
  margin: 2px auto 0;
  animation: fade-up 0.8s ease-out 0.4s both;
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

.hero-brand:hover {
  opacity: 1;
}

.hero-brand img {
  height: 42px;
  width: auto;
  display: block;
}

.hero-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(34px, 8vw, 48px);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.1;
  color: #ffffff;
  animation: fade-up 0.8s ease-out 0.5s both;
}

.hero-role {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  animation: fade-up 0.8s ease-out 0.6s both;
}

/* === Burgess-style hero: one prominent save-contact, three icons under === */

.hero-primary-cta {
  display: flex;
  justify-content: center;
  margin-top: 6px;
  animation: fade-up 0.8s ease-out 0.8s both;
}

.hero-save {
  padding: 16px 32px;
  font-size: 14px;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 32px rgba(232, 76, 122, 0.28);
}

.hero-save:hover {
  background: #16264a;
  border-color: #16264a;
  box-shadow: 0 14px 36px rgba(14, 24, 48, 0.45);
}

.hero-save svg {
  width: 16px;
  height: 16px;
}

.hero-socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  animation: fade-up 0.8s ease-out 0.95s both;
}

.hero-socials .btn-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hero-socials .btn-icon:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.40);
  color: #ffffff;
  transform: none;
  box-shadow: none;
}

.hero-socials .btn-icon svg {
  width: 17px;
  height: 17px;
}

/* ===== BUTTONS ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px var(--accent-glow);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.hero .btn-icon {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.hero .btn-icon:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-icon {
  width: 50px;
  height: 50px;
  padding: 0;
  background: var(--bg-card);
  border-color: var(--border-light);
  border-radius: 50%;
}

.btn-icon:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: translateY(-3px) scale(1.1) rotate(5deg);
  box-shadow: 0 0 30px var(--accent-glow);
}

.btn-icon:active {
  transform: translateY(-1px) scale(0.95);
}

.btn-icon svg {
  width: 20px;
  height: 20px;
}

/* Scroll Indicator */

.scroll-indicator {
  position: absolute;
  /* Burgess Hodgson value: at least 8rem above hero bottom, more if
     iOS reports a non-zero bottom safe-area inset. Keeps the indicator
     above the mobile chrome regardless of whether the address bar is
     showing. */
  bottom: max(9rem, calc(env(safe-area-inset-bottom) + 8.5rem));
  left: 0;
  right: 0;
  margin-inline: auto;
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: fade-up 1s ease-out 1.2s both;
  cursor: pointer;
  transition: color 0.3s ease;
}

.scroll-indicator:hover {
  color: var(--accent);
}

.scroll-line {
  width: 2px;
  height: 36px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  border-radius: 1px;
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: var(--accent-light);
  border-radius: 1px;
  animation: scroll-drop 1.5s ease-in-out infinite;
}

@keyframes scroll-drop {
  0% { top: 0; opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ===== SECTIONS ===== */

.section {
  padding: 3rem 0 0;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children animation */
.section.is-visible .affiliation-item {
  animation: stagger-in 0.6s ease-out both;
}

.section.is-visible .affiliation-item:nth-child(1) { animation-delay: 0.1s; }
.section.is-visible .affiliation-item:nth-child(2) { animation-delay: 0.2s; }
.section.is-visible .affiliation-item:nth-child(3) { animation-delay: 0.3s; }

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

.section-header {
  margin-bottom: 36px;
}

.section-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(24px, 7vw, 30px);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  line-height: 1.25;
  color: var(--text-muted);
}

.section-title strong {
  color: var(--text-primary);
  font-weight: 400;
}

/* Short accent dash + hairline beneath section headings (reference style) */
.section-divider {
  display: flex;
  align-items: center;
  margin: 0 0 20px;
}

.section-divider .divider-accent {
  width: 28px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-divider .divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ===== ABOUT ===== */

.about-content p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0 0 20px;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-content strong {
  color: var(--navy);
  font-weight: 600;
}

/* ===== EXPERTISE ===== */

.about {
  background: var(--bg-secondary);
}

/* ===== FEATURED VIDEOS (Instagram embeds, swipeable) ===== */

.feature-video {
  background: var(--bg-primary);
  border-top: 2px solid var(--border);
  overflow: hidden;
}

.fv-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fv-intro {
  max-width: 640px;
}

.fv-intro .section-label {
  margin-bottom: 8px;
  display: block;
}

.fv-intro .section-title {
  margin: 0 0 10px;
}

/* Stage for mobile carousel / grid on desktop */
.fv-stage {
  position: relative;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.fv-stage::-webkit-scrollbar { display: none; }

.fv-thumb {
  position: relative;
  flex: 0 0 82%;
  scroll-snap-align: start;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  background: var(--bg-secondary);
}

.fv-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.fv-thumb:hover img {
  transform: scale(1.05);
}

.fv-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22, 38, 74, 0.9) 0%, rgba(22, 38, 74, 0.3) 50%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.fv-thumb:hover .fv-thumb-overlay {
  background: linear-gradient(to top, rgba(22, 38, 74, 0.95) 0%, rgba(22, 38, 74, 0.5) 50%, rgba(22, 38, 74, 0.2) 100%);
}

.fv-play {
  width: 56px;
  height: 56px;
  color: #ffffff;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.fv-thumb:hover .fv-play {
  transform: scale(1.15);
}

.fv-thumb-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.3;
}

/* Dots: show on mobile, hide on desktop */
.fv-dots {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.fv-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
  padding: 0;
}

.fv-dot:hover {
  background: var(--text-muted);
}

.fv-dot.is-active {
  width: 24px;
  background: var(--accent);
}

.expertise {
  background: var(--bg-secondary);
  border-top: 2px solid var(--border);
}

/* ===== AFFILIATIONS ===== */

.affiliations {
  background: var(--bg-secondary);
}

.affiliations-list {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.affiliations-list::-webkit-scrollbar { display: none; }

.loc-group-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 6px 0 -2px;
}

.loc-card {
  display: block;
  text-decoration: none;
  flex: 0 0 86%;
  scroll-snap-align: start;
  background: linear-gradient(180deg, #16264a 0%, #0e1830 100%);
  border-radius: 26px;
  padding: 14px 14px 30px;
  color: #ffffff;
}

.loc-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.loc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.loc-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.22);
}

.loc-photo-placeholder svg { width: 42px; height: 42px; }

.loc-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 22px 0 0 6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.loc-card:hover .loc-link {
  background: var(--accent);
  border-color: var(--accent);
}

.loc-link svg { width: 18px; height: 18px; }

.loc-body { padding: 0 6px; }

.loc-name {
  font-size: clamp(20px, 7vw, 26px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 18px 0 12px;
  color: #ffffff;
}

.loc-address {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--accent-light);
  margin: 0 0 18px;
}

.loc-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.70);
  margin: 0 0 26px;
}

.loc-hours-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin: 0 0 14px;
}

.loc-hours-title svg { width: 15px; height: 15px; }

.loc-hours {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.loc-hours div {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

.loc-hours strong {
  font-weight: 600;
  color: #ffffff;
}

.loc-progress {
  height: 2px;
  margin: 16px 0 0;
  background: rgba(14, 24, 48, 0.10);
  border-radius: 2px;
  overflow: hidden;
}

.loc-progress-fill {
  height: 100%;
  width: 30%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.15s ease;
}

/* ===== FORM ===== */

.book-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.field label:not(.consent-row) {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-muted);
}

.field textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.field select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237a8497'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
  background-color: var(--bg-elevated);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 0 20px var(--accent-glow);
  transform: translateY(-1px);
}

.form-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 6px;
}

.btn-submit {
  position: relative;
  min-width: 200px;
}

.btn-submit[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  animation: spin 0.7s linear infinite;
}

.btn-submit.is-loading .btn-spinner {
  display: inline-block;
}

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

.form-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
  max-width: 240px;
}

.form-meta a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.field-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 6px 0 0;
  line-height: 1.45;
}

.field-consent {
  margin-top: -4px;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: default;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary, var(--text-muted));
}

.consent-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  border-radius: 4px;
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.consent-row input[type="checkbox"]:hover {
  border-color: var(--accent);
}

.consent-row input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.consent-row input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 45%;
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}

.consent-row input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.consent-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-status {
  font-size: 14px;
  margin: 0;
  padding: 0;
  min-height: 0;
  transition: padding 0.2s ease;
  border-radius: var(--radius-sm);
}

.form-status-ok,
.form-status-err {
  padding: 14px 16px;
  font-weight: 600;
}

.form-status-ok {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border: 1px solid var(--accent);
}

.form-status-err {
  background: rgba(214, 69, 69, 0.08);
  color: var(--error);
  border: 1px solid rgba(214, 69, 69, 0.3);
}

.form-success {
  text-align: center;
  padding: 24px 8px 16px;
  animation: formSuccessFade 0.35s ease-out;
}

.form-success-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px var(--accent-soft), 0 10px 24px var(--accent-glow);
  animation: formSuccessPop 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.form-success-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: #ffffff;
  margin: 0 0 12px;
}

.form-success-body {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  margin: 0 auto 16px;
  max-width: 340px;
}

.form-success-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.form-success-meta a {
  color: var(--accent-light);
  font-weight: 600;
  text-decoration: none;
}

.form-success-meta a:hover {
  text-decoration: underline;
}

@keyframes formSuccessFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes formSuccessPop {
  0%   { transform: scale(0.4); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}

/* ===== FOOTER ===== */

.site-footer {
  background: linear-gradient(180deg, #16264a 0%, #0e1830 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 36px;
  padding: 44px 24px calc(40px + env(safe-area-inset-bottom));
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.footer-logo {
  height: 56px;
  width: auto;
}

.footer-tagline {
  max-width: 430px;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: center;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-socials a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-socials img {
  width: auto;
  height: 24px;
  display: block;
}

.footer-legal {
  width: 100%;
  max-width: 560px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-legal span,
.footer-legal a {
  font-family: var(--font-sans);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--accent);
}

/* ===== ABOUT — two-column sticky bio ===== */

.about-layout {
  display: grid;
  grid-template-columns: 1fr;
}

.about-aside-inner {
  position: relative;
}

.about-aside .section-label {
  margin-bottom: 6px;
  display: block;
}

.about-content p {
  font-size: 16.5px;
  color: var(--text-secondary);
  margin: 0 0 16px;
  line-height: 1.7;
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* About bio sits inside a navy bubble (reference style) */
.about-content {
  background: linear-gradient(180deg, #16264a 0%, #0e1830 100%);
  border-radius: 24px;
  padding: 30px 26px;
  box-shadow: var(--shadow-md);
}

.about-content p {
  color: rgba(255, 255, 255, 0.80);
}

.about-content strong {
  color: #ffffff;
}

/* ===== EXPERTISE — stacked cards carousel ===== */

.expertise-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.expertise-intro .section-label {
  margin-bottom: 8px;
  display: block;
}

/* Fanned card deck (ported from the StackedCards component) */
.deck {
  position: relative;
  width: 100%;
  margin-top: 4px;
}

.deck-stack {
  position: relative;
  height: 270px;
  margin: 0 auto;
}

.deck-card {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 240px;
  height: 196px;
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  overflow: hidden;
  transform: translate(-50%, 0);
  transform-origin: center center;
  box-shadow: 0 10px 25px -5px rgba(14, 24, 48, 0.18);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.45s ease, box-shadow 0.35s ease;
  will-change: transform, opacity;
}

.deck-card.is-front {
  box-shadow: 0 26px 50px -12px rgba(14, 24, 48, 0.32);
}

/* Colour variants — Paul's coral / navy palette */
.deck-card[data-variant="0"] { background: var(--accent); color: #fff; --chip: rgba(255, 255, 255, 0.20); }
.deck-card[data-variant="1"] { background: var(--navy); color: #fff; --chip: rgba(255, 255, 255, 0.12); }
.deck-card[data-variant="2"] { background: #fff; color: var(--navy); --chip: var(--accent-soft); box-shadow: 0 10px 25px -5px rgba(14, 24, 48, 0.18), inset 0 0 0 1px var(--border); }
.deck-card[data-variant="3"] { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; --chip: rgba(255, 255, 255, 0.20); }
.deck-card[data-variant="4"] { background: var(--bg-secondary); color: var(--navy); --chip: rgba(232, 76, 122, 0.16); }
.deck-card[data-variant="5"] { background: linear-gradient(135deg, var(--navy), #1a2255); color: #fff; --chip: rgba(255, 255, 255, 0.12); }

.deck-blob {
  position: absolute;
  top: 0;
  right: 0;
  width: 96px;
  height: 96px;
  background: var(--chip);
  border-radius: 50%;
  transform: translate(50%, -50%);
  pointer-events: none;
}

.deck-icon {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: var(--chip);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.deck-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.deck-title {
  position: relative;
  z-index: 1;
  margin: auto 0 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.deck-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
}

.deck-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.deck-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: width 0.3s ease, background 0.3s ease;
}

.deck-dot.is-active {
  width: 26px;
  background: var(--accent);
}

.deck-dot:hover:not(.is-active) {
  background: var(--text-muted);
}

/* ===== GET-IN-TOUCH — dark two-column ===== */

.get-in-touch {
  background: var(--bg-primary);
  border-top: 2px solid var(--border);
  color: var(--text-primary);
}

.git-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.git-aside-inner {
  position: relative;
}

.git-aside .section-label {
  color: var(--accent);
  margin-bottom: 6px;
  display: block;
}

.git-aside .section-title {
  color: var(--text-muted);
  margin-bottom: 10px;
}

.git-aside .section-title strong {
  color: var(--text-primary);
}

.git-aside .section-divider .divider-line {
  background: var(--border);
}

.git-lead {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 22px;
  line-height: 1.6;
}

.git-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  margin-bottom: 22px;
}

.git-identity img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 5%;
  flex-shrink: 0;
}

.git-name {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: #ffffff;
}

.git-role {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin: 2px 0 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.git-channels {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.git-channels a,
.git-channels .git-channel-static {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: #ffffff;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.git-channels a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(232, 76, 122, 0.4);
  transform: translateY(-1px);
}

.git-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 76, 122, 0.15);
  border-radius: 8px;
  flex-shrink: 0;
  color: var(--accent);
}

.git-icon svg {
  width: 18px;
  height: 18px;
}

.git-channel-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.git-channel-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

.git-channel-value {
  font-size: 14px;
  color: #ffffff;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== REVIEWS SLIDER ===== */

.reviews {
  background: white;
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  overflow: hidden;
}

.reviews-intro .section-label {
  margin-bottom: 8px;
  display: block;
}

/* Scroll-snap review carousel (ported from the Natural Order testimonials) */
.reviews-track {
  display: flex;
  align-items: stretch;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.reviews-track::-webkit-scrollbar { display: none; }

.review-card {
  flex: 0 0 84%;
  scroll-snap-align: start;
  background: var(--bg-secondary);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.review-quote {
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(14, 24, 48, 0.72);
  margin: 0;
}

.review-meta {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(14, 24, 48, 0.12);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-source {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.review-context {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

.review-card[data-variant="soft"] { background: var(--accent-soft); }
.review-card[data-variant="mist"] { background: var(--bg-secondary); }
.review-card[data-variant="navy"] { background: var(--navy); }
.review-card[data-variant="navy"] .review-quote { color: rgba(255, 255, 255, 0.82); }
.review-card[data-variant="navy"] .review-meta { border-color: rgba(255, 255, 255, 0.20); }
.review-card[data-variant="navy"] .review-source { color: #ffffff; }
.review-card[data-variant="navy"] .review-context { color: rgba(255, 255, 255, 0.6); }

.reviews-progress {
  height: 2px;
  margin: 16px 0 0;
  background: rgba(14, 24, 48, 0.10);
  border-radius: 2px;
  overflow: hidden;
}

.reviews-progress-fill {
  height: 100%;
  width: 30%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.15s ease;
}

/* Aggregate rating badges (Doctify / iWantGreatCare / Google) — under the reviews */
.ratings {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 26px 0 0;
}

.rating-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(14, 24, 48, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.rating-badge:hover {
  box-shadow: 0 10px 24px rgba(14, 24, 48, 0.10);
  transform: translateY(-2px);
  border-color: #dde2ea;
}

.rating-score {
  flex-shrink: 0;
  width: 50px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.rating-detail {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 2px 12px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.rating-stars {
  display: inline-flex;
  gap: 1px;
  color: #f5a623;
}

.rating-stars svg {
  width: 13px;
  height: 13px;
}

.rating-count {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.3;
}

.rating-brand {
  flex-shrink: 0;
  width: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-doctify { color: #33424f; }

.rating-brand img {
  height: 22px;
  width: auto;
  display: block;
}

.brand-iwgc { font-size: 13px; }
.brand-iwgc span:nth-child(1) { color: #2477c9; }
.brand-iwgc span:nth-child(2) { color: #1f2937; }
.brand-iwgc span:nth-child(3) { color: #2477c9; }

.brand-google img { height: 34px; }
.brand-google span:nth-child(4) { color: #4285f4; }
.brand-google span:nth-child(5) { color: #34a853; }
.brand-google span:nth-child(6) { color: #ea4335; }

/* Form card sitting on the dark side */
.git-form-card {
  background: linear-gradient(180deg, #16264a 0%, #0e1830 100%);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: 0 24px 50px rgba(14, 24, 48, 0.18);
  color: #ffffff;
}

.git-form-label {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
}

/* Book-form sits transparent inside the dark request box */
.git-form-card .book-form {
  background: transparent;
  border: none;
  padding: 0;
}

/* Light content on the dark request box */
.git-form-card .field label:not(.consent-row) {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.git-form-card .field-hint,
.git-form-card .form-meta {
  color: rgba(255, 255, 255, 0.5);
}

.git-form-card .consent-row {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  line-height: 1.45;
}

.git-form-card .consent-text a {
  color: rgba(255, 255, 255, 0.85);
}

.git-form-card .consent-row input[type="checkbox"] {
  -webkit-appearance: auto;
  appearance: auto;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  border: none;
  border-radius: 0;
  background: none;
}

.git-form-card .consent-row input[type="checkbox"]:checked {
  background: none;
}

.git-form-card .consent-row input[type="checkbox"]:checked::after {
  content: none;
}

.git-form-card .form-success-title {
  color: #ffffff;
}

.git-form-card .form-success-body,
.git-form-card .form-success-meta {
  color: rgba(255, 255, 255, 0.72);
}

.git-form-card .field input,
.git-form-card .field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
  padding: 8px 2px;
  font-size: 16px;
  color: #ffffff;
}

.git-form-card .field input::placeholder,
.git-form-card .field textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.git-form-card .field input:focus,
.git-form-card .field textarea:focus {
  border-color: var(--accent);
  box-shadow: none;
  transform: none;
}

/* ── Direct contact (under enquiry form) — Max format, Paul colours ── */
.contact-direct {
  display: flex; flex-direction: column; gap: 14px;
}
.contact-direct-item {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--text-primary);
  font-size: 14.5px; font-weight: 500;
  transition: color 0.2s ease;
}
.contact-direct-item svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.contact-direct-item:hover { color: var(--accent); }


/* ── Inline form validation (Max-style) ───────────────────────── */
.field-err {
  display: none;
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.4;
  color: #eaa9a9;
}
.field-err.show { display: block; }

.git-form-card .field input.is-invalid,
.git-form-card .field textarea.is-invalid {
  border-bottom-color: #eaa9a9;
}
.consent-row input.is-invalid {
  outline: 2px solid #eaa9a9;
  outline-offset: 2px;
}
