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

/* ==========================================================================
   Astra Theme Chrome Reset
   ========================================================================== */

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;
}

/* ==========================================================================
   Base Reset
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--amt-font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--amt-text-primary);
  background-color: var(--amt-bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--amt-text-link);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--amt-text-link-hover);
}

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

/* ==========================================================================
   Typography — Headings
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem;
  line-height: 1.2;
  color: var(--amt-text-primary);
}

h1, .amt-h1 {
  font-family: var(--amt-font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2, .amt-h2 {
  font-family: var(--amt-font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h3, .amt-h3 {
  font-family: var(--amt-font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  line-height: 1.3;
}

h4, .amt-h4 {
  font-family: var(--amt-font-body);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.35;
}

h5, .amt-h5 {
  font-family: var(--amt-font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amt-accent-dark);
}

h6, .amt-h6 {
  font-family: var(--amt-font-body);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amt-text-secondary);
}

p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--amt-text-primary);
}

/* Type scale utilities */
.amt-text-xl   { font-size: 1.25rem;  line-height: 1.6; }
.amt-text-lg   { font-size: 1.125rem; line-height: 1.65; }
.amt-text-base { font-size: 1rem;     line-height: 1.7; }
.amt-text-sm   { font-size: 0.875rem; line-height: 1.6; }
.amt-text-xs   { font-size: 0.75rem;  line-height: 1.5; }

/* ==========================================================================
   Selection + Scrollbar
   ========================================================================== */

::selection {
  background: rgba(11, 82, 57, 0.15);
  color: var(--amt-text-primary);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--amt-bg-section-alt); }
::-webkit-scrollbar-thumb { background: var(--amt-accent); border-radius: 4px; }

/* ==========================================================================
   Focus rings (accessibility)
   ========================================================================== */

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 82, 57, 0.25);
  border-radius: 4px;
}

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

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

.section {
  padding: 72px 0;
}

/* Dark sections */
.section--dark {
  background-color: var(--amt-bg-dark-section);
  color: var(--amt-text-on-dark);
}

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

.section--dark p,
.section--dark li,
.section--dark span:not([class*="badge"]):not([class*="tag"]) {
  color: var(--amt-text-on-dark-muted);
}

/* White-surface cards inside dark sections keep dark 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(--amt-text-primary);
}

/* Alt / champagne sections */
.section--accent {
  background-color: var(--amt-bg-section-alt);
}

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

/* ==========================================================================
   Section heading pattern (universal)
   ========================================================================== */

.section-label {
  display: inline-block;
  font-family: var(--amt-font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amt-accent-dark);
  margin-bottom: 12px;
}

.section-label--on-dark {
  color: var(--amt-accent);
}

.section-label-bar {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--amt-accent);
  border-radius: 2px;
  margin: 8px auto 16px;
}

.section-title {
  font-family: var(--amt-font-display);
  font-weight: 600;
  color: var(--amt-text-primary);
}

.section-title--on-dark {
  color: #FFFFFF;
}

.section-subtitle {
  color: var(--amt-text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 600px;
}

.section-subtitle--on-dark {
  color: var(--amt-text-on-dark-muted);
}

/* ==========================================================================
   Buttons (global system)
   ========================================================================== */

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

/* Gold CTA — primary action */
.btn--primary {
  background-color: var(--amt-accent);
  color: var(--amt-dark);
  border-color: var(--amt-accent);
  box-shadow: var(--amt-shadow-button);
}

.btn--primary:hover {
  background-color: var(--amt-accent-hover);
  color: var(--amt-dark);
  border-color: var(--amt-accent-hover);
  box-shadow: var(--amt-shadow-button-hover);
  transform: translateY(-1px);
}

/* Emerald solid — secondary action */
.btn--secondary {
  background-color: var(--amt-primary);
  color: #FFFFFF;
  border-color: var(--amt-primary);
}

.btn--secondary:hover {
  background-color: var(--amt-primary-hover);
  color: #FFFFFF;
  border-color: var(--amt-primary-hover);
}

/* Outline on light bg */
.btn--outline {
  background-color: transparent;
  color: var(--amt-primary);
  border-color: var(--amt-primary);
}

.btn--outline:hover {
  background-color: var(--amt-primary-light);
  color: var(--amt-primary);
}

/* Outline on dark bg */
.btn--outline-light {
  background-color: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--outline-light:hover {
  border-color: var(--amt-accent);
  color: var(--amt-accent);
}

/* Ghost */
.btn--ghost {
  background-color: transparent;
  color: var(--amt-text-secondary);
  border-color: transparent;
}

.btn--ghost:hover {
  background-color: var(--amt-bg-section-alt);
  color: var(--amt-text-primary);
}

/* Urgency */
.btn--urgency {
  background-color: var(--amt-urgency);
  color: #FFFFFF;
  border-color: var(--amt-urgency);
}

.btn--urgency:hover {
  background-color: #9A3D2B;
  color: #FFFFFF;
}

.btn--sm {
  padding: 9px 18px;
  font-size: 14px;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 16px;
}

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

.card {
  background-color: var(--amt-bg-card);
  border-radius: var(--radius-card);
  border: 1px solid var(--amt-border-light);
  box-shadow: var(--amt-shadow-card);
  padding: 24px;
}

.card--accent {
  background-color: var(--amt-bg-section-alt);
  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(--amt-font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--amt-accent);
  display: block;
}

.stats-strip__item .stats-strip__label {
  font-size: 14px;
  color: var(--amt-text-on-dark-muted);
  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;
  }
}

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

/* Force no underline sitewide */
a, a:hover, a:focus, a:active, a:visited {
  text-decoration: none !important;
}

.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(--amt-primary);
  color: #fff;
  padding: 12px 20px;
  z-index: 10000;
  border-radius: 0 0 8px 0;
}

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

/* ==========================================================================
   Arabic / Urdu script
   ========================================================================== */

[lang="ar"], .amt-arabic {
  font-family: var(--amt-font-arabic);
  direction: rtl;
  line-height: 1.8;
}

[lang="ur"], .amt-urdu {
  font-family: var(--amt-font-urdu);
  direction: rtl;
  line-height: 2.2;
  font-size: 1.15em;
}

/* ==========================================================================
   Mobile responsiveness — sitewide
   ========================================================================== */

@media (max-width: 640px) {
  .btn,
  .navbar__toggle,
  .whatsapp-float,
  .footer__social a,
  .tab-btn,
  .filter-btn {
    min-height: 44px;
  }

  .hero__ctas .btn,
  .page-hero__ctas .btn,
  .whatsapp-strip .btn,
  .booking-card .btn,
  .article-tip + .btn,
  .form-cta .btn {
    width: 100%;
  }

  .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;
  }

  .form-group label,
  .route-card__meta,
  .section-label,
  .footer__bottom,
  .hero__badge,
  .marquee__item {
    font-size: 14px;
  }
}

/* ==========================================================================
   Button — nuclear override: ensure ALL .btn text is ALWAYS visible
   and sizing/hover is 100% consistent everywhere on the site
   ========================================================================== */

/* Force all buttons to have deterministic text color — no inheritance bleed */
.btn,
a.btn,
button.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--amt-font-body) !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  padding: 12px 24px !important;
  border-radius: 10px !important;
  border: 2px solid transparent !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  transition: background-color 0.25s ease, border-color 0.25s ease,
              color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease !important;
  -webkit-font-smoothing: antialiased !important;
}

/* Primary — Gold */
.btn--primary,
a.btn--primary,
button.btn--primary {
  background-color: var(--amt-accent) !important;
  color: var(--amt-dark) !important;
  -webkit-text-fill-color: var(--amt-dark) !important;
  border-color: var(--amt-accent) !important;
  box-shadow: 0 4px 16px rgba(201, 159, 62, 0.30) !important;
}
.btn--primary:hover,
a.btn--primary:hover,
button.btn--primary:hover {
  background-color: var(--amt-accent-hover) !important;
  color: var(--amt-dark) !important;
  -webkit-text-fill-color: var(--amt-dark) !important;
  border-color: var(--amt-accent-hover) !important;
  box-shadow: 0 6px 24px rgba(201, 159, 62, 0.40) !important;
  transform: translateY(-1px) !important;
}

/* Secondary — Emerald */
.btn--secondary,
a.btn--secondary,
button.btn--secondary {
  background-color: var(--amt-primary) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: var(--amt-primary) !important;
}
.btn--secondary:hover,
a.btn--secondary:hover,
button.btn--secondary:hover {
  background-color: var(--amt-primary-hover) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: var(--amt-primary-hover) !important;
  transform: translateY(-1px) !important;
}

/* Outline on light bg */
.btn--outline,
a.btn--outline,
button.btn--outline {
  background-color: transparent !important;
  color: var(--amt-primary) !important;
  -webkit-text-fill-color: var(--amt-primary) !important;
  border-color: var(--amt-primary) !important;
}
.btn--outline:hover,
a.btn--outline:hover,
button.btn--outline:hover {
  background-color: var(--amt-primary-light) !important;
  color: var(--amt-primary) !important;
  -webkit-text-fill-color: var(--amt-primary) !important;
  transform: translateY(-1px) !important;
}

/* Outline on dark bg */
.btn--outline-light,
a.btn--outline-light,
button.btn--outline-light {
  background-color: transparent !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
}
.btn--outline-light:hover,
a.btn--outline-light:hover,
button.btn--outline-light:hover {
  border-color: var(--amt-accent) !important;
  color: var(--amt-accent) !important;
  -webkit-text-fill-color: var(--amt-accent) !important;
  transform: translateY(-1px) !important;
}

/* Urgency */
.btn--urgency,
a.btn--urgency,
button.btn--urgency {
  background-color: var(--amt-urgency) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: var(--amt-urgency) !important;
}
.btn--urgency:hover,
a.btn--urgency:hover,
button.btn--urgency:hover {
  background-color: #9a3d2b !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: #9a3d2b !important;
  transform: translateY(-1px) !important;
}

/* WhatsApp */
.btn--whatsapp,
a.btn--whatsapp,
button.btn--whatsapp {
  background-color: #25D366 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: #25D366 !important;
}
.btn--whatsapp:hover,
a.btn--whatsapp:hover,
button.btn--whatsapp:hover {
  background-color: #1ebe5a !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: #1ebe5a !important;
  transform: translateY(-1px) !important;
}

/* Size modifiers */
.btn--sm,
a.btn--sm,
button.btn--sm {
  font-size: 14px !important;
  padding: 9px 18px !important;
}
.btn--lg,
a.btn--lg,
button.btn--lg {
  font-size: 16px !important;
  padding: 16px 36px !important;
}

/* ==========================================================================
   Table text visibility — all tables site-wide
   ========================================================================== */

/* Light tables (services, savings) */
table:not(.pricing-table) th {
  color: #ffffff;
  background-color: var(--amt-dark);
}

table:not(.pricing-table) td {
  color: var(--amt-text-primary);
}

/* Pricing table (dark bg) explicit text fix */
.pricing-table thead th {
  color: #ffffff !important;
}
.pricing-table thead th small {
  color: var(--amt-text-on-dark-muted) !important;
}
.pricing-table tbody td {
  color: var(--amt-text-on-dark-muted) !important;
}
.pricing-table tbody td:first-child,
.pricing-table tbody th {
  color: #ffffff !important;
}
.pricing-table td.price {
  color: var(--amt-accent) !important;
}

/* ==========================================================================
   Reduced motion — disable all animations for users who prefer it
   and for performance on low-end devices
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

