/* Local form feedback and narrow-screen media fixes. */
[hidden] {
  display: none !important;
}

.form-status {
  margin: 18px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--gold-line);
  border-radius: 14px;
  background: rgba(27, 117, 217, 0.1);
  color: var(--text);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.form-status[data-state="error"] {
  border-color: #e59c79;
  background: rgba(229, 156, 121, 0.08);
}

.quote-form button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 5px;
}

@media (max-width: 860px) {
  .page-about .culture-visuals .video-frame {
    width: 100%;
    min-width: 0;
  }
}

/* EportPass identity fits the original navy-blue layout at every breakpoint. */
.site-header .brand {
  flex: 0 1 248px;
}

.site-header .brand-logo {
  width: 248px;
  height: auto;
  max-width: 100%;
}

.nav-toggle,
.loader-dot,
.brand-pulse,
.chat-float-dot {
  flex-shrink: 0;
}

.loader-word,
.brand-footer .brand-mark {
  letter-spacing: 0.035em;
}

.brand-footer {
  gap: 14px;
  max-width: 100%;
}

.footer-entity {
  color: var(--text);
  font-weight: 600;
  line-height: 1.6;
}

.footer-brand p,
.footer-contact p {
  max-width: 36ch;
  line-height: 1.7;
}

.footer-contact p {
  margin: 0;
}

.footer-links {
  flex-direction: column;
  align-items: flex-start;
}

.footer-column,
.footer-meta,
.footer-legal,
.hero-copy-body,
.hero-panel-copy,
.about-copy,
.about-media,
.culture-copy,
.culture-visuals,
.service-detail-copy,
.service-detail-side,
.contact-primary,
.form-shell,
.form-grid label,
.carousel-window,
.service-scenario {
  min-width: 0;
}

.site-main h1,
.site-main h2,
.site-main h3,
.site-main p,
.section-kicker,
.service-kicker,
.metric-label,
.footer-column,
.footer-bottom {
  overflow-wrap: anywhere;
}

.page-about .page-hero h1 {
  max-width: 22ch;
  text-wrap: balance;
}

.section-kicker::before,
.service-kicker::before,
.metric-label::before {
  flex-shrink: 0;
}

.button {
  max-width: 100%;
  text-align: center;
}

/* Qualitative planning topics replace unsupported numerical claims. */
.process-chip strong {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.process-chip span {
  display: block;
  margin-top: 10px;
  line-height: 1.55;
}

.process-chip small {
  display: block;
  margin-top: 6px;
  line-height: 1.55;
}

.fact-pill strong,
.fact-pill span {
  overflow-wrap: anywhere;
}

.fact-pill span {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  line-height: 1.6;
}

/* Portrait cards retain service labels and local enquiry links. */
.service-role-card {
  padding: 22px 16px 18px;
}

.service-role-card .team-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 0;
}

.role-icon,
.scenario-icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border: 1px solid var(--gold-line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(27, 117, 217, 0.2), rgba(115, 196, 255, 0.04));
  color: var(--gold-bright);
  font-family: "Sora", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.service-role-card h3 {
  margin-top: 20px;
  line-height: 1.35;
}

.service-role-card .manager-role {
  margin: 8px 0 22px;
  line-height: 1.7;
}

.service-role-card .button {
  min-height: 44px;
}

/* Service explanations use the existing carousel, without review styling. */
.service-scenario {
  display: flex;
  flex-direction: column;
}

.scenario-heading {
  align-items: flex-start;
  margin-bottom: 22px;
}

.scenario-heading > div {
  min-width: 0;
}

.scenario-heading h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  line-height: 1.3;
}

.scenario-heading p {
  margin: 0;
  color: var(--gold-bright);
  font-size: 0.85rem;
  line-height: 1.5;
}

.service-scenario .testimonial-copy {
  min-height: 0;
  margin-bottom: 20px;
  line-height: 1.8;
}

.service-scenario small {
  margin-top: auto;
  line-height: 1.6;
}

.carousel-arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Concept artwork and neutral photos do not imply company-owned premises. */
.workflow-illustration,
.neutral-photo {
  margin: 0;
  min-width: 0;
  width: 100%;
  aspect-ratio: auto;
}

.workflow-illustration img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.workflow-illustration figcaption,
.neutral-photo figcaption {
  padding: 12px 16px;
  color: var(--text-faint);
  background: var(--bg-panel-strong);
  font-size: 0.78rem;
  line-height: 1.6;
}

.about-media {
  align-content: start;
}

.about-media .neutral-photo {
  aspect-ratio: auto;
}

.neutral-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.page-about .culture-visuals {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto;
  align-content: start;
}

.culture-visuals .workflow-illustration,
.culture-visuals .planning-note {
  grid-column: 1 / -1;
}

.culture-visuals .visual-card.large {
  grid-row: auto;
}

.culture-visuals .visual-card {
  min-height: 0;
}

.planning-note {
  min-height: 150px;
  line-height: 1.6;
}

.planning-note strong {
  font-size: 1.4rem;
}

.planning-note small {
  color: var(--text-faint);
}

/* Local enquiry and legal notices keep preview behaviour visible. */
#quote-form {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.form-note {
  color: var(--text-faint);
  font-size: 0.85rem;
  line-height: 1.75;
}

.form-note a,
.rich-text a,
.footer-contact a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-grid input,
.form-grid textarea {
  min-width: 0;
}

.form-grid textarea {
  resize: vertical;
}

.preview-legal h2 {
  margin-top: 32px;
  line-height: 1.4;
}

.preview-notice {
  padding: 18px;
  border-left: 3px solid var(--gold-bright);
  border-radius: 0 12px 12px 0;
  background: rgba(27, 117, 217, 0.08);
}

.chat-float {
  max-width: calc(100% - 24px);
}

@media (max-width: 1180px) {
  .hero-grid.hero-grid-bannered {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .site-header .brand {
    flex-basis: 222px;
  }

  .site-header .brand-logo {
    width: 222px;
  }

  .page-about .culture-visuals {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-role-card {
    padding: 18px 14px;
  }

  .site-footer {
    padding-bottom: 104px;
  }
}

@media (max-width: 480px) {
  .page-hero h1 {
    font-size: clamp(2rem, 10vw, 2.85rem);
    line-height: 1.06;
  }

  .hero-grid-bannered .hero-copy h1 {
    font-size: clamp(1.85rem, 8.5vw, 2.55rem);
    line-height: 1.08;
  }

  .hero-grid-bannered .hero-copy,
  .hero-grid-bannered .hero-panel {
    padding: 24px 18px;
  }

  .rich-panel,
  .contact-card,
  .form-shell,
  .service-detail-card,
  .testimonial-card {
    padding: 22px 18px;
  }

  .form-head h2,
  .section-head h2,
  .final-cta h2 {
    font-size: 1.9rem;
    line-height: 1.12;
  }

  .manager-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-role-card {
    padding: 22px;
  }

  .scenario-heading {
    gap: 12px;
  }

  .scenario-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .faq-item summary {
    flex-wrap: wrap;
  }
}

@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;
  }
}
