/**
 * Disney Holiday Transfer - Global Base & Layout Styles
 * Enforces unified typography, 1280px container system, spacing discipline,
 * accessibility focus states, and cross-browser resets.
 */

/* -------------------------------------------------------------------------
   1. Modern Reset & Box Sizing
   ------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
  color: var(--color-text-body);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

/* -------------------------------------------------------------------------
   2. Typography Hierarchy (Headings: Poppins | Body & UI: Inter)
   ------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6,
.dht-h1, .dht-h2, .dht-h3, .dht-h4,
.dht-title, .dht-section-title, .dht-heading,
.dht-card-title, .dht-fleet__title, .dht-about__title,
.jb-modal-title, .jb-step-name {
  font-family: var(--font-heading) !important;
  color: var(--color-brand-navy);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  margin-top: 0;
  margin-bottom: var(--space-md);
  letter-spacing: var(--letter-spacing-heading);
}

h1, .dht-h1, .dht-title-hero {
  font-size: var(--text-h1);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  letter-spacing: var(--letter-spacing-tight);
}

h2, .dht-h2, .dht-section-title {
  font-size: var(--text-h2);
  font-weight: var(--fw-bold);
  line-height: 1.24;
}

h3, .dht-h3, .dht-card-title {
  font-size: var(--text-h3);
  font-weight: var(--fw-semibold);
  line-height: 1.32;
}

h4, .dht-h4 {
  font-size: var(--text-h4);
  font-weight: var(--fw-semibold);
  line-height: 1.38;
}

h5, .dht-h5 {
  font-size: var(--text-h5);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
}

h6, .dht-h6 {
  font-size: var(--text-h6);
  font-weight: var(--fw-bold);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-wide);
}

p, .dht-paragraph {
  font-family: var(--font-body) !important;
  font-size: var(--text-body);
  line-height: var(--lh-relaxed);
  color: inherit;
  margin-top: 0;
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

.dht-lead, .dht-intro, .dht-description {
  font-family: var(--font-body);
  font-size: var(--text-lead);
  line-height: var(--lh-relaxed);
  color: var(--color-text-secondary);
}

/* Kicker / Eyebrow labels */
.dht-kicker, .dht-eyebrow, .dht-card-kicker {
  display: inline-block;
  font-family: var(--font-heading) !important;
  font-size: var(--text-kicker);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--letter-spacing-kicker);
  color: var(--color-brand-primary);
  margin-bottom: var(--space-xs);
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-brand-primary);
}

/* Images & Media */
img, svg, picture, video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* -------------------------------------------------------------------------
   3. Global Container System (1280px Max-Width Across All Pages)
   Unified across Header, Home, About, Services, Transfer pages,
   Blogs, Contact, Transport Booking, Legal pages, and Footer.
   ------------------------------------------------------------------------- */
.site-container,
.dht-container,
.dht-shell,
.dht-footer-container {
  width: var(--site-container) !important;
  max-width: 100% !important;
  margin-inline: auto !important;
  box-sizing: border-box;
}

/* Readable single-column containers (for articles, policies, single blog) */
.article-container,
.dht-reading-container,
.dht-blog-article-wrap {
  width: min(960px, calc(100% - 40px));
  max-width: 100%;
  margin-inline: auto;
}

/* Global section spacing */
.dht-section {
  padding: var(--section-spacing) 0;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.dht-section--compact {
  padding: var(--section-spacing-compact) 0;
}

.dht-section--subtle {
  background-color: var(--color-surface-subtle);
}

.dht-section--dark {
  background-color: var(--color-brand-navy);
  color: var(--color-text-inverse);
}

.dht-section--dark h1,
.dht-section--dark h2,
.dht-section--dark h3,
.dht-section--dark h4 {
  color: var(--color-text-inverse) !important;
}

.dht-section--dark .dht-kicker {
  color: var(--color-brand-gold);
}

.dht-section--dark p,
.dht-section--dark .dht-description {
  color: var(--color-text-inverse-muted);
}

/* Section Header standard block */
.dht-section-header {
  margin-bottom: clamp(32px, 4vw, 52px);
  max-width: 780px;
}

.dht-section-header--center {
  text-align: center;
  margin-inline: auto;
}

/* -------------------------------------------------------------------------
   4. Accessibility Standards & Focus States
   ------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--color-brand-primary);
  outline-offset: 2px;
}

/* High contrast skip link */
.dht-skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--color-brand-primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 600;
  font-family: var(--font-heading);
  transition: top 0.2s ease;
}

.dht-skip-link:focus {
  top: 16px;
}

/* Screen reader only utility */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Minimum touch target utility */
.touch-target {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
