/* ==========================================================================
   Al Madina Travels — Global Styles / Foundation
   ========================================================================== */

/* ==========================================================================
   Astra Theme Chrome Reset
   Astra's Header-Footer Builder injects its own #masthead header and
   #colophon footer (plus .ast-container/#content wrappers) on every page,
   even with the Elementor Canvas template. This site is 100% hand-built
   with its own header/footer (loaded via main.js), so we strip Astra's
   chrome and let our layout use the full width.
   ========================================================================== */

body.page #colophon,
body.page .entry-header,
body.page .ast-mobile-popup-drawer,
body.page .ast-scroll-top-icon {
  display: none !important;
}

body.page #content,
body.page .ast-container,
body.page #primary,
body.page #main,
body.page article,
body.page .entry-content {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: var(--body-size);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--color-secondary);
}

h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); font-weight: 700; }

p {
  margin: 0 0 1rem;
  font-size: var(--body-size);
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

.section--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--color-text-on-dark);
}

/* White-background cards inside dark sections must keep dark heading text. */
.section--dark .payment-card h3,
.section--dark .payment-card h4,
.section--dark .guarantee-card h3,
.section--dark .guarantee-card h4,
.section--dark .principle-card h3,
.section--dark .principle-card h4,
.section--dark .process-step h3,
.section--dark .process-step h4,
.section--dark .site-card h3,
.section--dark .site-card h4,
.section--dark .package-card h3,
.section--dark .package-card h4,
.section--dark .compare-card h3,
.section--dark .compare-card h4,
.section--dark .price-card h3,
.section--dark .price-card h4,
.section--dark .contact-card h3,
.section--dark .contact-card h4,
.section--dark .social-card h3,
.section--dark .social-card h4,
.section--dark .review-card h3,
.section--dark .review-card h4,
.section--dark .timeline-step__content h3,
.section--dark .timeline-step__content h4,
.section--dark .testimonial-card--light h3,
.section--dark .testimonial-card--light h4 {
  color: var(--color-text);
}

.section--accent {
  background-color: var(--color-accent-light);
}

.text-center { text-align: center; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: var(--shadow-button);
}

.btn--primary:hover {
  background-color: #e23703;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(253, 63, 4, 0.35);
}

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

.btn--outline:hover {
  background-color: var(--color-secondary);
  color: #ffffff;
}

.btn--outline-light {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.btn--outline-light:hover {
  background-color: #ffffff;
  color: var(--color-secondary);
}

.btn--sm {
  padding: 10px 22px;
  font-size: 14px;
}

/* ==========================================================================
   Cards (shared base)
   ========================================================================== */

.card {
  background-color: #ffffff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
}

.card--accent {
  background-color: var(--color-accent-light);
  box-shadow: none;
}

/* ==========================================================================
   Stats strip (used across pages)
   ========================================================================== */

.stats-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  text-align: center;
}

.stats-strip__item .stats-strip__number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--color-primary);
  display: block;
}

.stats-strip__item .stats-strip__label {
  font-size: 14px;
  color: var(--color-text-light);
  margin-top: 4px;
}

.stats-strip--3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-strip__item:last-child {
    grid-column: span 2;
  }
  .stats-strip--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .stats-strip--3 .stats-strip__item:last-child {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .stats-strip--3 {
    grid-template-columns: 1fr;
  }
}

/* Force no underline on every link, including inside Elementor/Astra content */
a,
a:hover,
a:focus,
a:active,
a:visited {
  text-decoration: none !important;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 20px;
  z-index: 10000;
  border-radius: 0 0 8px 0;
}

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

/* ==========================================================================
   Mobile responsiveness audit (sitewide)
   ========================================================================== */

@media (max-width: 640px) {
  /* Touch targets: min 44px height for buttons/links */
  .btn,
  .navbar__toggle,
  .whatsapp-float,
  .footer__social a,
  .tab-btn,
  .filter-btn {
    min-height: 44px;
  }

  /* CTA buttons: full width on mobile */
  .hero__ctas .btn,
  .page-hero__ctas .btn,
  .whatsapp-strip .btn,
  .booking-card .btn,
  .article-tip + .btn,
  .form-cta .btn {
    width: 100%;
  }

  /* Hero stats: keep a single 1x3 row even on the smallest screens */
  .hero__stats {
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: space-between;
  }

  .hero__stats .stat {
    flex: 1 1 0;
    min-width: 0;
  }

  .hero__stats .stat strong {
    font-size: clamp(1rem, 5vw, 1.4rem);
  }

  .hero__stats .stat span {
    font-size: 14px;
    line-height: 1.2;
    white-space: normal;
  }

  /* Font sizes: never smaller than 14px on mobile */
  .form-group label,
  .route-card__meta,
  .section-label,
  .footer__bottom,
  .hero__badge,
  .marquee__item {
    font-size: 14px;
  }
}
