html { scroll-behavior: smooth; }
/* stop double-tap zoom on touch screens (e.g. tapping testimonial buttons quickly); pinch-zoom still works */
html { touch-action: manipulation; }
body { margin: 0; }
a { color: #E16884; }
a:hover { color: #B5306E; }
a:focus-visible, button:focus-visible { outline: 2px solid #E16884; outline-offset: 2px; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes waveform-bar { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
@keyframes quote-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Menu button only appears on small screens (see media query below). */
.nav-toggle { display: none; }

/* Footer: "Company Details" dropdown (native <details>, no JS needed) */
.company-details summary {
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer; list-style: none;
  font-size: 12.5px; line-height: 1.6;       /* same as the © line */
  color: rgba(232,220,198,0.72);
  transition: color 0.25s ease;
}
.company-details summary::-webkit-details-marker { display: none; }
.company-details summary::after {           /* caramel chevron that flips when open */
  content: "";
  width: 6px; height: 6px;
  border-right: 1.5px solid #C9A168;
  border-bottom: 1.5px solid #C9A168;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.25s ease;
}
.company-details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.company-details summary:hover { color: #EB8AA2; }
.company-details summary:focus-visible { outline: 2px solid #EB8AA2; outline-offset: 4px; border-radius: 2px; }
.company-details__content { display: flex; flex-direction: column; gap: 5px; padding-top: 14px; }
.company-details[open] .company-details__content { animation: company-details-in 0.3s ease; }
@keyframes company-details-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* Testimonial name buttons: all the same width on every screen size. */
.quote-name-btn { width: 190px; text-align: center; }

/* ══════════════════════════════════════════════════════════════════════════
   Mobile / tablet (800px and below)
   Most of the page's styling is inline, so these overrides need !important.
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 800px) {

  /* — header: centred logo, dropdown menu — */
  .site-header {
    position: relative;
    justify-content: center !important;
    gap: 0 !important;
    padding: 18px 20px !important;
  }
  .site-logo img { height: 56px !important; }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 24px; right: 16px;
    width: 44px; height: 44px; padding: 0;
    background: none; color: #E8DCC6; cursor: pointer;
    border: 1px solid rgba(232,220,198,0.25); border-radius: 50%;
  }
  .site-nav {
    display: none !important;
    width: 100%;
    flex-direction: column; align-items: center;
    gap: 0 !important;
    margin-top: 16px;
  }
  .site-nav.is-open { display: flex !important; }
  .site-nav a {
    width: 100%; padding: 14px 0; text-align: center;
    font-size: 14px !important;
    border-top: 1px solid rgba(232,220,198,0.12);
  }

  /* — hero: photo, then button, then text — */
  .hero { padding: 40px 20px 64px !important; }
  .hero-grid {
    display: flex !important; flex-direction: column; align-items: center;
    gap: 0 !important; text-align: center;
  }
  .hero-text { display: contents; }
  .hero-photo { order: 1; width: 100%; max-width: 380px; }
  .hero-photo-inner { padding: 12px !important; }
  .hero-photo-img { height: auto !important; aspect-ratio: 4 / 5; }
  .hero-cta {
    order: 2; position: relative; z-index: 1;
    margin-top: -27px;
    box-shadow: 0 0 0 6px #123D2E, 0 10px 24px rgba(225,104,132,0.35) !important;
  }
  .hero-eyebrow { order: 3; margin: 40px 0 14px !important; font-size: 12px !important; }
  .hero-title { order: 4; font-size: clamp(40px, 11vw, 56px) !important; margin: 0 0 18px !important; }
  .hero-lead { order: 5; font-size: 17px !important; margin: 0 auto !important; }

  /* — all sections: centred text, scaled type — */
  .section { padding: 72px 20px !important; text-align: center !important; }
  .section h2 {
    font-size: clamp(28px, 7.5vw, 34px) !important;
    margin-left: auto !important; margin-right: auto !important;
  }
  .section p {
    font-size: 16px !important;
    margin-left: auto !important; margin-right: auto !important;
  }
  .eyebrow-row { justify-content: center; }
  /* centred lists: the dot sits above each item rather than off to the left */
  .bullet-row { flex-direction: column; align-items: center !important; gap: 6px !important; text-align: center; }
  .bullet-row > :first-child { margin-top: 0 !important; }

  /* — about — */
  .asking-card { padding: 28px 20px 24px !important; margin-bottom: 48px !important; }
  .asking-card [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }

  .accordion-btn {
    position: relative;
    justify-content: center !important;
    text-align: center !important;
    padding-left: 32px !important; padding-right: 32px !important;
  }
  .accordion-btn svg { position: absolute; right: 0; top: 50%; margin-top: -10px !important; }
  /* expanded expertise: text first, then the "What this includes" box */
  .expertise-body { grid-template-columns: 1fr !important; gap: 24px !important; }
  .expertise-body > div:last-child { padding: 24px 20px !important; }

  /* — specialisms — */
  .spec-grid { grid-template-columns: 1fr !important; }
  .spec-pill { justify-content: center; text-align: center; padding: 12px 20px !important; }

  /* — testimonials — */
  .quote-rule { margin-left: auto !important; margin-right: auto !important; }
  .quote-body { min-height: 0 !important; }
  .section p.quote-text { font-size: 19px !important; }
  .quote-role { margin: 0 auto; }
  .quote-controls { flex-direction: column; gap: 20px !important; }
  .quote-names { order: -1; flex: none !important; width: 100%; flex-direction: column; align-items: center; }
  .quote-arrows { justify-content: center; }
  /* top name buttons: one row you swipe sideways, running edge to edge */
  .quote-names-top {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: -20px !important; margin-right: -20px !important;
    padding: 2px 20px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
            mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
  }
  .quote-names-top::-webkit-scrollbar { display: none; }
  .quote-names-top .quote-name-btn { flex-shrink: 0; scroll-snap-align: start; }

  /* — podcast: title, then cover + play button, then text — */
  .podcast-card {
    grid-template-columns: 140px auto !important;
    justify-content: center;
    gap: 0 20px !important;
    padding: 28px 20px !important;
    text-align: center;
  }
  .podcast-body { display: contents; }
  .podcast-body > * { grid-column: 1 / -1; order: 5; }
  .podcast-meta { order: 1; }
  .podcast-title { order: 2; font-size: 23px !important; margin-bottom: 22px !important; }
  .podcast-cover {
    order: 3; grid-column: 1;
    width: 140px !important; height: 140px !important;
    margin-bottom: 24px;
  }
  .podcast-play {
    order: 4; grid-column: 2;
    flex-direction: column; justify-content: center; align-self: center;
    gap: 10px !important; font-size: 13px !important;
    margin-bottom: 24px !important;
  }
  .podcast-list { align-items: center; }
  .podcast-quote {
    border-left: none !important;
    border-top: 2px solid #E16884;
    padding: 18px 0 0 !important;
  }
  .podcast-links { justify-content: center; }

  /* — contact — */
  .contact-email {
    max-width: 100%;
    font-size: 13px !important; letter-spacing: 0.3px !important;
    text-transform: none !important;
    padding: 14px 24px !important;
    overflow-wrap: anywhere;
  }

  /* — footer — */
  .site-footer { padding: 48px 20px 32px !important; text-align: center; }
  .footer-row { flex-direction: column; align-items: center !important; justify-content: center !important; }
  .footer-links { justify-content: center; gap: 14px 22px !important; }
  .footer-legal { margin: 0 auto; }
  .company-details__content { align-items: center; }
}
