/* ==========================================================================
   Page-Specific Components
   ========================================================================== */

/* ---------- Splash / Two Doors ---------- */
.splash {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.splash-door {
  position: relative;
  padding: var(--space-16) var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  text-decoration: none;
  overflow: hidden;
  transition: flex-grow var(--dur-slow) var(--ease-out-quart);
  cursor: pointer;
  min-height: 100vh;
  min-height: 100dvh;
}

.splash-door--ct {
  background: linear-gradient(155deg, var(--brand-primary) 0%, var(--brand-deep) 100%);
}

.splash-door--wavy {
  background: linear-gradient(210deg, #1B6A99 0%, #0B3B5C 100%);
}

.splash-door::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,0.08), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.05), transparent 55%);
  pointer-events: none;
}

.splash-waves {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.35;
}

.splash-waves svg {
  position: absolute;
  width: 200%;
  height: 100%;
  left: -50%;
}

.splash-door--wavy .splash-waves svg {
  transform: scaleY(-1);
}

.splash-content {
  position: relative;
  z-index: 2;
  max-width: 42ch;
}

.splash-logo {
  height: 280px;
  width: auto;
  margin: 0 auto var(--space-8);
  filter: brightness(0) invert(1);
  display: block;
}

@media (max-width: 900px) {
  .splash-logo {
    height: 200px;
    margin-bottom: var(--space-6);
  }
}

@media (max-width: 600px) {
  .splash-logo {
    height: 140px;
    margin-bottom: var(--space-5);
  }
}

.splash-tagline {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto var(--space-8);
  max-width: 34ch;
  font-size: var(--text-lg);
  line-height: 1.5;
  text-align: center;
}

.splash-door h2 {
  color: white;
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.splash-door p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto var(--space-8);
  max-width: 34ch;
  font-size: var(--text-base);
  line-height: 1.55;
}

.splash-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.9rem 1.6rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-md);
  color: white;
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all var(--dur-fast);
}

.splash-cta:hover {
  background: white;
  color: var(--brand-primary);
  border-color: white;
  transform: translateY(-2px);
}

.splash-caption {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  z-index: 3;
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--space-2) var(--space-4);
  transition: color var(--dur-fast);
}

.splash-caption:hover {
  color: white;
}

@media (max-width: 768px) {
  .splash {
    grid-template-columns: 1fr;
  }
  .splash-door {
    min-height: 60vh;
    min-height: 60dvh;
  }
}

/* ---------- Hero (interior pages) ---------- */
.page-hero {
  padding: calc(var(--space-32) + var(--space-8)) 0 var(--space-24);
  background: var(--background-warm);
  position: relative;
  overflow: hidden;
}

.page-hero-content {
  max-width: 780px;
}

.page-hero h1 {
  margin-bottom: var(--space-6);
}

.page-hero .hero-tagline {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 60ch;
}

/* ---------- Big statement section ---------- */
.statement {
  padding: var(--space-24) 0;
  background: var(--brand-deep);
  color: white;
  text-align: center;
}

.statement-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.statement h2 {
  color: white;
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
}

.statement p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-lg);
  margin: 0 auto var(--space-8);
  max-width: 55ch;
}

/* ---------- Two column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* ---------- Service cards ---------- */
.services-grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.service-card {
  background: white;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  transition: all var(--dur-base) var(--ease-out-quart);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-primary);
}

.service-card h3 {
  margin-bottom: var(--space-3);
  font-size: var(--text-xl);
}

.service-card .summary {
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.service-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--brand-primary);
  font-size: var(--text-sm);
  text-decoration: none;
}

.service-card .learn-more::after {
  content: '→';
  transition: transform var(--dur-fast);
}

.service-card:hover .learn-more::after {
  transform: translateX(4px);
}

/* ---------- Testimonial ---------- */
.testimonial {
  background: var(--background-warm);
  padding: var(--space-16) 0;
}

.testimonial-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  text-align: center;
}

.testimonial blockquote {
  font-size: var(--text-2xl);
  line-height: 1.4;
  color: var(--text-primary);
  font-weight: 500;
  margin: 0 0 var(--space-6);
  quotes: none;
  letter-spacing: -0.01em;
}

.testimonial blockquote::before,
.testimonial blockquote::after {
  content: none;
}

.testimonial cite {
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.testimonial cite a {
  color: var(--brand-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast);
}

.testimonial cite a:hover {
  border-color: var(--brand-primary);
}

/* ---------- Artist marquee ---------- */
.artist-strip {
  padding: var(--space-16) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.artist-strip .eyebrow {
  text-align: center;
  display: block;
  margin-bottom: var(--space-8);
}

.artist-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4) var(--space-8);
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 1000px;
  margin: 0 auto;
}

.artist-list li {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  margin: 0;
}

/* ---------- Numbered list / steps ---------- */
.steps {
  display: grid;
  gap: var(--space-8);
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps li {
  padding-left: var(--space-16);
  position: relative;
  counter-increment: step;
  margin: 0;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -6px;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--brand-primary);
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.steps h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.steps p {
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid var(--border-subtle);
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-6) 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--text-primary);
  list-style: none;
  padding-right: var(--space-8);
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: var(--text-xl);
  color: var(--brand-primary);
  transition: transform var(--dur-fast);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-body {
  margin-top: var(--space-4);
  color: var(--text-secondary);
}

.faq-item .faq-body p {
  margin-bottom: var(--space-3);
}

/* ---------- CTA block ---------- */
.cta-block {
  background: var(--brand-primary);
  color: white;
  padding: var(--space-24) 0;
  text-align: center;
}

.cta-block h2 {
  color: white;
  margin-bottom: var(--space-4);
}

.cta-block p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-lg);
  margin: 0 auto var(--space-8);
  max-width: 50ch;
}

.cta-block .btn-primary {
  background: white;
  color: var(--brand-primary);
}

.cta-block .btn-primary:hover {
  background: var(--background-warm);
  color: var(--brand-primary);
}

/* ---------- Wavy accent ---------- */
.wavy-theme {
  background: linear-gradient(180deg, #0B3B5C 0%, #1B6A99 100%);
  color: white;
}

.wavy-theme h1, .wavy-theme h2, .wavy-theme h3 {
  color: white;
}

.wavy-theme p {
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Story page ---------- */
.story-hero-photo {
  margin: var(--space-16) 0;
  position: relative;
}

.story-hero-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.story-hero-photo figcaption {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.02em;
}

.story-prose {
  max-width: 68ch;
  margin: 0 auto;
}

.story-prose h2 {
  margin-top: var(--space-16);
  margin-bottom: var(--space-6);
  font-size: var(--text-2xl);
}

.story-prose h2:first-of-type {
  margin-top: 0;
}

.story-prose p {
  font-size: var(--text-lg);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

/* ---------- Specialisms grid ---------- */
.specialisms {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.specialism {
  padding: var(--space-6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: white;
}

.specialism h4 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--brand-primary);
}

.specialism p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }
}

.form-field {
  margin-bottom: var(--space-5);
}

.form-field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: white;
  color: var(--text-primary);
  font-size: var(--text-base);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(11, 59, 92, 0.1);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
  font-family: inherit;
}

.form-field .help {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.cal-embed {
  background: white;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-secondary);
  flex-direction: column;
  gap: var(--space-3);
}

/* ---------- Wavy tier cards ---------- */
.tier-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.tier-card {
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.tier-card h4 {
  color: white;
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.tier-card p {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-sm);
  margin: 0;
  line-height: 1.6;
}

/* ---------- Section eyebrow header ---------- */
.section-header {
  max-width: 780px;
  margin: 0 auto var(--space-12);
  text-align: center;
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  margin: 0 auto;
  max-width: 55ch;
}

/* ---------- Fade in on scroll ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out-quart),
              transform 700ms var(--ease-out-quart);
}

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

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand-primary);
  color: white;
  padding: var(--space-2) var(--space-4);
  z-index: 999;
  font-size: var(--text-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
  color: white;
}

/* ---------- Story hero grid ---------- */
.story-hero {
  padding: calc(var(--header-height, 80px) + var(--space-12)) 0 var(--space-16);
  background: var(--background-warm);
}

.story-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (max-width: 900px) {
  .story-hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.story-hero-text h1 {
  font-size: var(--text-4xl, clamp(2rem, 5vw, 3.25rem));
  line-height: 1.1;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.story-hero-text .hero-tagline {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.6;
}

.story-hero-photo {
  margin: 0;
}

.story-hero-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.25);
}

.photo-caption {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

/* ---------- Biography prose ---------- */
.biography p {
  font-size: var(--text-lg);
  line-height: 1.75;
  margin-bottom: var(--space-6);
  color: var(--text-secondary);
}

.biography p:first-child {
  font-size: var(--text-xl);
  color: var(--text-primary);
  font-weight: 500;
}

/* ---------- Specialisms grid on story page ---------- */
.specialisms-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 700px) {
  .specialisms-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact page layout ---------- */
.contact-book,
.contact-form-wrap {
  display: flex;
  flex-direction: column;
}

.contact-book h2,
.contact-form-wrap h2 {
  margin-top: var(--space-2);
  margin-bottom: var(--space-4);
}

.contact-book > p,
.contact-form-wrap > p {
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

.cal-embed-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-secondary);
}

.cal-embed-placeholder svg {
  color: var(--brand-primary);
  opacity: 0.5;
}

/* ---------- Contact form submit + note ---------- */
.contact-form button[type="submit"] {
  width: 100%;
  margin-top: var(--space-2);
}

.form-note {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-align: center;
}

/* ---------- Two-column helper (reusable) ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}

@media (max-width: 700px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   POST-AUDIT FIXES — 2026-08-11
   ============================================================ */

/* Prevent hyphenated compound words from breaking across lines */
h1, h2, h3 {
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: break-word;
}

/* Force "Artist-side" and similar hyphenated compounds to stay together */
.hero-h1-nowrap {
  white-space: nowrap;
}

/* Centre .page-hero-content within its container (was left-stuck) */
.page-hero-content {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-hero-content .hero-tagline {
  margin-left: auto;
  margin-right: auto;
}

.page-hero-content > div[style*="display:flex"],
.page-hero-content > div[style*="display: flex"] {
  justify-content: center;
}

/* Normalise section-header alignment (was inconsistent left vs centre) */
.section-header {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* CTA blocks — always centred */
.cta-block .container-narrow,
.cta-block h2,
.cta-block p {
  text-align: center;
}

/* Card grids — equal-height cards */
.services-grid,
.tier-grid,
.two-col,
.specialisms-grid {
  align-items: stretch;
}

.service-card,
.tier-card,
.specialism {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card .learn-more,
.service-card a[class*="learn"] {
  margin-top: auto;
}

/* Story page: keep long biography readable at ~68ch, centred */
.biography {
  max-width: 68ch;
  margin: 0 auto;
}

/* Story hero image — cap height so it doesn't dwarf the text column */
.story-hero-photo img {
  max-height: 480px;
  object-fit: cover;
}

/* Story hero grid: align content vertically centred */
.story-hero-grid {
  align-items: center;
}

/* Normalise vertical section rhythm — remove double-margin gaps */
.section {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.section + .section {
  padding-top: 0;
}

/* Contact page: right-align the two columns so form doesn't dwarf book side */
.contact-book {
  align-self: stretch;
}

.contact-book .cal-embed {
  min-height: 480px;
}

/* (Dark-hero logo inversion lives in layout.css alongside the other on-dark rules) */

/* De-duplicate footer tagline — hide the second occurrence in the copyright bar */
.footer-bottom span:last-child {
  display: none;
}

@media (min-width: 700px) {
  .footer-bottom {
    justify-content: flex-start;
  }
}

/* Contact page booking card (replaces placeholder) */
.booking-card {
  background: var(--brand-primary);
  color: white;
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  min-height: 480px;
  justify-content: center;
}

.booking-card svg {
  color: white;
  opacity: 0.9;
  margin-bottom: var(--space-2);
}

.booking-card h3 {
  color: white;
  font-size: var(--text-2xl);
  margin: 0;
}

.booking-card > p {
  color: rgba(255,255,255,0.85);
  max-width: 34ch;
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.55;
}

.booking-card .btn-primary {
  background: white;
  color: var(--brand-primary);
  margin-top: var(--space-3);
}

.booking-card .btn-primary:hover {
  background: rgba(255,255,255,0.9);
}

.booking-note {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.6);
  margin: 0;
  letter-spacing: 0.02em;
}

/* Cal.com inline embed helpers */
#cal-inline {
  background: var(--background-soft);
  border: 1px solid var(--border-subtle);
}
.booking-note-light {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-top: var(--space-3);
  text-align: center;
}
.booking-note-light a {
  color: var(--brand-primary);
  text-decoration: underline;
}

/* ============================================================
   CONTENT V2 — AUG 2026
   ============================================================ */

/* ---------- Proof bar (homepage credibility anchors) ---------- */
.proof-bar {
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  text-align: center;
}

.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.proof-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--brand-primary);
  line-height: 1.1;
  white-space: nowrap;
}

.proof-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  margin-top: var(--space-2);
}

.proof-sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 30ch;
}

@media (max-width: 700px) {
  .proof-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* Contact form fallback message (shown when submit fails / form not wired) */
.form-fallback {
  margin-top: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--background-warm);
  border-left: 3px solid var(--brand-primary);
  border-radius: var(--radius-sm);
}
.form-fallback p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--text-secondary);
}
.form-fallback a {
  color: var(--brand-primary);
  text-decoration: underline;
}
