/* ═══════════════════════════════════════════════════════════════════════
   London Cardiology Clinic — Production Stylesheet
   Extracted and enhanced from concept3-pastel.html mockup.
   No Google Fonts @import — all fonts self-hosted in ../fonts/
   ═══════════════════════════════════════════════════════════════════════ */


/* ═══ Self-hosted Fonts ═══ */

@font-face {
  font-family: 'Libre Baskerville';
  src: url('../fonts/libre-baskerville-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Libre Baskerville';
  src: url('../fonts/libre-baskerville-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Libre Baskerville';
  src: url('../fonts/libre-baskerville-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}


/* ═══ CSS Custom Properties ═══ */

:root {
  /* Colour palette — contrast-fixed */
  --sage: #a8c5b8;           /* pastel green — decorative only */
  --sage-deep: #3d6b55;      /* darkened for AA text contrast */
  --sage-btn: #4d7a65;       /* button background — AA on white text */
  --sage-light: #dce8e0;     /* very light sage */
  --sage-bg: #f0f5f2;        /* sage tint background */
  --blush: #e8c4c4;          /* pastel pink — accent */
  --blush-light: #f5e5e5;    /* light blush */
  --cream: #faf7f2;          /* warm cream — main background */
  --ivory: #fffdf8;          /* slightly warmer white */
  --charcoal: #2c2c2c;       /* primary text */
  --warm-grey: #6b6560;      /* secondary text */
  --mid-grey: #7a756e;       /* tertiary text — AA compliant */
  --danger: #9e3333;         /* safety red — AA compliant */

  /* Typography scale */
  --font-serif: 'Libre Baskerville', 'Baskerville', 'Georgia', serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --section-pad-v: 80px;
  --section-pad-h: 64px;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 20px;

  /* Transitions */
  --transition-base: 0.3s ease;
}


/* ═══ Reset & Base ═══ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-serif);
  background: var(--cream);
  color: var(--charcoal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-font-size: 14px; /* baseline reminder — enforced per selector below */
}

/* Ensure minimum 14px body text everywhere */
body,
p,
li,
td,
th,
label,
input,
select,
textarea,
button {
  font-size: max(14px, 1rem);
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
}


/* ═══ Heading Hierarchy ═══ */

h1 {
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--charcoal);
}

h1 em {
  font-style: italic;
  color: var(--sage-deep);
}

h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--charcoal);
}

h2 em {
  font-style: italic;
  color: var(--sage-deep);
}

h3 {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--charcoal);
}


/* ═══ Skip Link ═══ */

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  font-family: var(--font-sans);
  font-size: 14px;
  background: var(--charcoal);
  color: #fff;
  padding: 12px 24px;
  z-index: 9999;
  text-decoration: none;
  border-radius: 0 0 var(--radius-md) 0;
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
}


/* ═══ Focus Indicators ═══ */

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--charcoal);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}


/* ═══ Prefers-Reduced-Motion ═══ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .soft-particle,
  .ecg-deco-path {
    animation: none !important;
  }
}


/* ═══ Navigation ═══ */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  background: var(--ivory);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav .logo {
  font-size: 20px;
  font-weight: 400;
  color: var(--charcoal);
  letter-spacing: 0.5px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav .logo em {
  font-style: italic;
  color: var(--sage-deep);
}

/* Desktop nav links */
.nav .links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav .links a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--warm-grey);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color var(--transition-base);
}

.nav .links a:hover {
  color: var(--charcoal);
}

/* Book Appointment button in nav */
.nav .book-btn {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  background: var(--sage-btn);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--transition-base), box-shadow var(--transition-base);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.nav .book-btn:hover {
  background: var(--sage-deep);
  box-shadow: 0 2px 10px rgba(61, 107, 85, 0.2);
}

/* Mobile hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--charcoal);
  line-height: 1;
  border-radius: var(--radius-sm);
}

.nav-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle .bar + .bar {
  margin-top: 5px;
}

/* Hamburger open state (JS adds .nav-open to .nav) */
.nav.nav-open .nav-toggle .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav.nav-open .nav-toggle .bar:nth-child(2) {
  opacity: 0;
}

.nav.nav-open .nav-toggle .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ═══ Safety Strip ═══ */

.safety-top {
  padding: 12px 48px;
  background: var(--blush-light);
  border-bottom: 2px solid var(--blush);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.safety-top p {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--warm-grey);
  line-height: 1.6;
}

.safety-top strong {
  color: var(--danger);
  font-weight: 600;
}


/* ═══ Hero Split ═══ */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 85vh;
}

.hero-left {
  background: var(--ivory);
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-left .eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-left h1 {
  margin-bottom: 20px;
}

.hero-left .description {
  font-size: 17px;
  line-height: 1.8;
  color: var(--warm-grey);
  margin-bottom: 36px;
  font-weight: 400;
  max-width: 460px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* Primary CTA button */
.btn-primary {
  font-family: var(--font-sans);
  display: inline-block;
  background: var(--sage-btn);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  letter-spacing: 0.3px;
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  background: var(--sage-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(61, 107, 85, 0.25);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Secondary outline button */
.btn-secondary {
  font-family: var(--font-sans);
  display: inline-block;
  border: 1.5px solid var(--sage);
  color: var(--sage-deep);
  padding: 13px 32px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition-base), border-color var(--transition-base);
  letter-spacing: 0.3px;
  cursor: pointer;
  background: transparent;
}

.btn-secondary:hover {
  background: var(--sage-light);
  border-color: var(--sage-deep);
}

/* Hero right panel */
.hero-right {
  background: linear-gradient(160deg, var(--sage-light) 0%, var(--sage) 60%, #5a9a80 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Heart spider diagram container */
.spider-container {
  position: relative;
  width: 380px;
  height: 380px;
}


/* ═══ Services Strip ═══ */

.services-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--ivory);
}

.services-strip a {
  display: block;
  padding: 32px 20px;
  text-align: center;
  border-right: 1px solid rgba(0, 0, 0, 0.04);
  transition: background var(--transition-base);
  text-decoration: none;
  color: inherit;
}

.services-strip a:last-child {
  border-right: none;
}

.services-strip a:hover {
  background: var(--sage-bg);
}

.svc-icon {
  font-size: 24px;
  margin-bottom: 10px;
  line-height: 1;
}

.services-strip h3 {
  font-size: 15px;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 4px;
}

.services-strip p {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--mid-grey);
  line-height: 1.5;
}


/* ═══ About / Clinician Section ═══ */

.welcome {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--cream);
  min-height: 400px;
}

.welcome-text {
  padding: 72px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.welcome-text h2 {
  margin-bottom: 16px;
}

.welcome-text p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--warm-grey);
  margin-bottom: 20px;
  max-width: 440px;
}

.welcome-text .credentials {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.credential {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--sage-deep);
  padding: 6px 14px;
  border: 1px solid var(--sage);
  border-radius: var(--radius-pill);
  font-weight: 500;
}

.disclosure {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--mid-grey);
  line-height: 1.7;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  max-width: 440px;
}

.welcome-visual {
  background: var(--sage-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Decorative ECG animation */
.ecg-deco {
  width: 100%;
  height: 80px;
  opacity: 0.15;
}

.ecg-deco-path {
  stroke: var(--sage-deep);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 1500;
  stroke-dashoffset: 1500;
  animation: ecgTrace 4s ease-in-out infinite;
}

@keyframes ecgTrace {
  0%   { stroke-dashoffset: 1500; }
  100% { stroke-dashoffset: 0; }
}


/* ═══ Facilities Section ═══ */

.facilities {
  padding: 48px var(--section-pad-h);
  background: var(--ivory);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.facilities h2 {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 12px;
}

.facilities .cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 20px;
}

.facilities .col h3 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--sage-deep);
  margin-bottom: 8px;
}

.facilities .col p {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--mid-grey);
  line-height: 1.7;
}


/* ═══ What to Expect ═══ */

.expect {
  padding: var(--section-pad-v) var(--section-pad-h);
  background: var(--cream);
}

.expect h2 {
  font-size: 32px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 12px;
}

.expect .sub {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--mid-grey);
  text-align: center;
  margin-bottom: 48px;
}

.timeline {
  display: flex;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  list-style: none;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: var(--sage-light);
  pointer-events: none;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--sage-light);
  border: 2px solid var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--sage-deep);
  margin: 0 auto 16px;
  position: relative;
  z-index: 2;
}

.step h3 {
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 6px;
}

.step p {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--mid-grey);
  line-height: 1.5;
  padding: 0 12px;
}


/* ═══ Booking CTA ═══ */

.cta-section {
  text-align: center;
  padding: var(--section-pad-v) var(--section-pad-h);
  background: var(--sage-bg);
}

.cta-section h2 {
  font-size: 34px;
  font-weight: 400;
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 16px;
  color: var(--warm-grey);
  margin-bottom: 32px;
  line-height: 1.7;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .price {
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 400;
  color: var(--sage-deep);
  margin-bottom: 8px;
}

.cta-section .price-note {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--mid-grey);
  margin-bottom: 28px;
}

.cta-section .cancel-note {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--mid-grey);
  margin-top: 20px;
}


/* ═══ Cal.com Embed ═══ */

#cal-embed {
  width: 100%;
  min-height: 500px;
  margin-top: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: none;
  display: block;
}


/* ═══ Footer ═══ */

.footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px var(--section-pad-h);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer h3 {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 12px;
}

.footer p {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  margin-bottom: 4px;
}

.footer a {
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  line-height: 1.8;
  display: block;
  transition: color var(--transition-base);
}

.footer a:hover {
  color: rgba(255, 255, 255, 0.9);
}


/* ═══ Decorative Particle (if used) ═══ */

.soft-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: floatUp 8s ease-in-out infinite;
}

@keyframes floatUp {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50%       { transform: translateY(-20px) scale(1.05); opacity: 0.9; }
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — 900px breakpoint
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {

  /* Navigation */
  .nav {
    padding: 16px 24px;
    flex-wrap: wrap;
    gap: 0;
  }

  /* Show hamburger, hide desktop links */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    order: 3;
  }

  .nav .links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    order: 4;
    padding: 8px 0 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: 12px;
  }

  /* Show links when nav-open */
  .nav.nav-open .links {
    display: flex;
  }

  .nav .links a {
    font-size: 14px;
    padding: 10px 0;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }

  .nav .links a:last-child {
    border-bottom: none;
  }

  .nav .book-btn {
    display: inline-block;
    width: auto;
    margin-top: 8px;
    padding: 12px 24px;
  }

  /* Safety strip */
  .safety-top {
    padding: 10px 24px;
  }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-left {
    padding: 48px 32px;
  }

  .hero-left h1 {
    font-size: 34px;
  }

  .hero-right {
    min-height: 400px;
  }

  /* Services strip */
  .services-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-strip a:nth-child(5) {
    grid-column: span 2;
  }

  /* Welcome / about */
  .welcome {
    grid-template-columns: 1fr;
  }

  .welcome-text {
    padding: 48px 32px;
  }

  /* Facilities */
  .facilities {
    padding: 32px;
  }

  .facilities .cols {
    grid-template-columns: 1fr;
  }

  /* Expect timeline */
  .expect {
    padding: 48px 32px;
  }

  .timeline {
    flex-direction: column;
    gap: 24px;
  }

  .timeline::before {
    display: none;
  }

  /* CTA */
  .cta-section {
    padding: 48px 32px;
  }

  /* Footer */
  .footer {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 32px;
  }
}


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — 480px breakpoint
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 480px) {

  /* Hero */
  .hero-left {
    padding: 36px 20px;
  }

  .hero-left h1 {
    font-size: 28px;
  }

  .hero-left .description {
    font-size: 15px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    text-align: center;
    width: 100%;
  }

  /* Spider container */
  .spider-container {
    width: 300px;
    height: 300px;
  }

  /* Services strip — single column */
  .services-strip {
    grid-template-columns: 1fr;
  }

  .services-strip a:nth-child(5) {
    grid-column: span 1;
  }

  /* Welcome */
  .welcome-text {
    padding: 36px 20px;
  }

  /* Facilities */
  .facilities {
    padding: 24px 20px;
  }

  /* Expect */
  .expect {
    padding: 36px 20px;
  }

  /* CTA */
  .cta-section {
    padding: 36px 20px;
  }

  .cta-section .price {
    font-size: 28px;
  }

  /* Footer */
  .footer {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 20px;
  }

  /* Nav — hide text links, keep book button */
  .nav .links a:not(.book-btn) {
    display: none;
  }

  /* When menu is open, show all links again */
  .nav.nav-open .links a:not(.book-btn) {
    display: block;
  }

  /* Safety strip */
  .safety-top {
    padding: 10px 20px;
  }

  /* h2 scale down */
  h2 {
    font-size: 26px;
  }

  .cta-section h2,
  .expect h2 {
    font-size: 26px;
  }

  /* Cal.com embed — slightly less height on very small screens */
  #cal-embed {
    min-height: 420px;
  }
}
