/* ==========================================================================
   The Valley's Tech Guy, shared stylesheet
   Design goals: large text, high contrast, big tap targets, calm motion,
   built for visitors who may be new to computers or have low vision.
   ========================================================================== */

:root {
  --navy-darkest: #2a1758;
  --navy-dark: #33206b;
  --navy: #3c2a86;
  --purple: #7645b8;
  --purple-mid: #9463d6;
  --magenta: #d6389f;
  --gold: #f5c451;
  --gold-dark: #caa03f;
  --lavender-pale: #f3f0fb;
  --lavender: #e7e1f7;
  --white: #ffffff;
  --text-dark: #1b1030;
  --text-muted: #4a4460;
  --focus-ring: #1a73e8;

  /* Semantic tokens, these are the ones the dark theme swaps out */
  --page-bg: var(--lavender-pale);
  --surface: var(--white);
  --surface-alt: var(--lavender);
  --border-soft: var(--lavender);
  --accent: var(--purple);
  --accent-strong: var(--navy-dark);
  --accent-warm: var(--magenta);

  --max-width: 1100px;
  --radius: 14px;
  --shadow-card: 0 4px 16px rgba(21, 12, 41, 0.14);

  color-scheme: light;
  font-size: 112.5%; /* ~18px base */
}

/* Dark theme. Chosen with the header toggle, or taken from the visitor's
   system setting until they pick a side themselves. */
[data-theme="dark"] {
  color-scheme: dark;

  --page-bg: #16112a;
  --surface: #241c40;
  --surface-alt: #1d1636;
  --border-soft: #3b3063;
  --accent: #c3a9f2;
  --accent-strong: #e8dfff;
  --accent-warm: #f486c9;
  --text-dark: #ece8f7;
  --text-muted: #bcb5d1;
  --focus-ring: #8ab4ff;
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background: var(--page-bg);
  line-height: 1.55;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a {
  color: var(--accent);
}

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

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

/* Focus visibility, important for keyboard users, never remove */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--gold);
  color: var(--navy-darkest);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border-radius: 0 0 8px 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 52px;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-darkest);
}

.btn-primary:hover {
  background: var(--gold-dark);
}

.btn-secondary {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-purple {
  background: var(--purple);
  color: var(--white);
}

.btn-purple:hover {
  background: var(--purple-mid);
}

.btn-block {
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--navy-dark);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.brand {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--white);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand-mark {
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.4rem 0.1rem;
  border-bottom: 3px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-bottom-color: var(--gold);
}

.main-nav a.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: var(--white);
  color: var(--navy-darkest);
  font-weight: 800;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}

.contact-btn:hover {
  background: var(--lavender);
  transform: translateY(-2px);
}

/* Light / dark mode switch, last item in the header on every page.
   Icon only, so the accessible name comes from its aria-label. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding: 0;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--white);
}

.theme-toggle svg {
  width: 24px;
  height: 24px;
}

/* Show the mode you would switch to, not the one you are already in */
.theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  font-size: 1.4rem;
  min-height: 48px;
  min-width: 48px;
}

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    display: none;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 0.75rem 0.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .main-nav .contact-btn {
    margin-top: 0.75rem;
    justify-content: center;
  }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy-darkest) 0%, var(--purple) 55%, var(--magenta) 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 1.25rem 4.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
}

.hero .tagline {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero p.lede {
  max-width: 640px;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ---------- Page header (non-home pages) ---------- */
.page-header {
  background: linear-gradient(160deg, var(--navy-darkest) 0%, var(--purple) 100%);
  color: var(--white);
  text-align: center;
  padding: 3rem 1.25rem;
}

.page-header p {
  max-width: 640px;
  margin: 0.75rem auto 0;
  font-size: 1.1rem;
}

/* ---------- Sections ---------- */
.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--surface-alt);
}

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
}

/* ---------- Feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  color: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ---------- About / trust ---------- */
.about-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
}

.badge {
  background: var(--surface);
  border: 2px solid var(--border-soft);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
}

/* ---------- Testimonial carousel ---------- */
.carousel {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-card {
  flex: 0 0 100%;
  background: var(--surface);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.testimonial-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 2px solid var(--accent);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.testimonial-avatar svg {
  width: 34px;
  height: 34px;
}

.testimonial-quote {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-name {
  font-weight: 700;
  color: var(--accent);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.carousel-btn {
  background: var(--surface);
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background: var(--accent);
  color: var(--page-bg);
}

.carousel-dots {
  display: flex;
  gap: 0.6rem;
}

.carousel-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.carousel-dot[aria-current="true"] {
  background: var(--accent);
}

.store-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* ---------- Pricing / voucher cards ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.price-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  border-top: 6px solid var(--accent);
}

.price-card.featured {
  border-top-color: var(--gold);
}

.price-card .price {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent-strong);
  margin: 0.5rem 0;
}

.price-card .price span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.price-card .duration {
  font-weight: 700;
  color: var(--accent-warm);
  margin-bottom: 1rem;
}

.price-card ul {
  text-align: left;
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;
  color: var(--text-muted);
  flex-grow: 1;
}

.price-card li {
  margin-bottom: 0.4rem;
}

/* ---------- Booking calendar ---------- */
.calendar-nav {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 1rem;
}

.calendar-embed {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  max-width: 800px;
  min-height: 650px;
  margin: 0 auto 1.25rem;
}

.privacy-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.booking-fallback {
  max-width: 720px;
  margin: 0 auto;
}

.brand-mark {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.about-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
  border: 4px solid var(--surface);
}

/* ---------- Contact page ---------- */
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-card .btn {
  margin-top: 0.5rem;
  max-width: 100%;
  border-radius: var(--radius);
  white-space: nowrap;
  padding: 0.75rem 1rem;
  font-size: clamp(0.7rem, 2.6vw, 0.95rem);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-darkest);
  color: var(--white);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h3 {
  color: var(--gold);
  font-size: 1.1rem;
}

.site-footer a {
  color: var(--white);
}

/* The Contact heading doubles as a link through to the contact page */
.site-footer h3 a {
  color: inherit;
  text-decoration: none;
}

.site-footer h3 a:hover,
.site-footer h3 a:focus-visible {
  text-decoration: underline;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.6rem;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

