/* ==========================================================================
   Ghufran Travel & Tours — Design System v2
   Modern, minimal, airline-style visual language.
   Load AFTER Bulma, BEFORE css/index.css and any page-level <style> blocks.
   ========================================================================== */

:root {
  /* Brand */
  --gt-navy-900: #0d2740;
  --gt-navy-800: #123a5c;
  --gt-navy-700: #1a4d76;
  --gt-navy-600: #235f8f;
  --gt-navy-100: #e7eef5;
  --gt-gold-600: #c9932f;
  --gt-gold-500: #d9a62e;
  --gt-gold-100: #fbf1de;
  --gt-ink: #1b232c;
  --gt-ink-soft: #5b6773;
  --gt-line: #e6e9ed;
  --gt-surface: #ffffff;
  --gt-surface-muted: #f6f8fa;
  --gt-success: #1e8e6f;
  --gt-success-bg: #e8f6f0;

  /* Type */
  --gt-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Shape */
  --gt-radius-lg: 20px;
  --gt-radius-md: 14px;
  --gt-radius-sm: 10px;
  --gt-shadow-sm: 0 1px 3px rgba(13, 39, 64, 0.08);
  --gt-shadow-md: 0 8px 24px rgba(13, 39, 64, 0.10);
  --gt-shadow-lg: 0 20px 48px rgba(13, 39, 64, 0.16);
}

/* ---------- Base ---------- */
body {
  font-family: var(--gt-font);
  color: var(--gt-ink);
  background: var(--gt-surface);
  -webkit-font-smoothing: antialiased;
}

a { transition: color 0.2s ease; }

.gt-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Section rhythm ---------- */
.gt-section {
  padding: 64px 0;
}
.gt-section--tight { padding: 40px 0; }
.gt-section--muted { background: var(--gt-surface-muted); }

.gt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gt-gold-600);
  margin-bottom: 10px;
}

.gt-heading {
  font-weight: 700;
  color: var(--gt-navy-900);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.gt-heading--xl { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.gt-heading--lg { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.gt-heading--md { font-size: 1.25rem; }

.gt-subtext {
  color: var(--gt-ink-soft);
  font-size: 1.02rem;
  line-height: 1.65;
}

/* ---------- Nav (modern, minimal, airline-style) ---------- */
#nav-mobile,
.gt-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--gt-line);
  padding: 4px 0;
}
.gt-nav .navbar-item {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gt-ink);
  padding: 0.75rem 1rem;
}
.gt-nav .navbar-item:hover {
  color: var(--gt-navy-800);
  background: transparent;
}
.gt-nav .navbar-end .navbar-item {
  font-weight: 600;
}
.gt-nav-cta {
  background: var(--gt-navy-800) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 0.55rem 1.3rem !important;
  font-weight: 700 !important;
  margin-left: 4px;
}
.gt-nav-cta:hover { background: var(--gt-navy-700) !important; color: #fff !important; }

.language-toggler {
  border-radius: 999px;
  padding: 6px 10px;
}
.language-toggler:hover {
  background: var(--gt-navy-100) !important;
}

/* ---------- Buttons ---------- */
.gt-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.gt-btn-primary {
  background: var(--gt-navy-800);
  color: #fff !important;
}
.gt-btn-primary:hover { background: var(--gt-navy-700); box-shadow: var(--gt-shadow-md); }
.gt-btn-gold {
  background: var(--gt-gold-500);
  color: var(--gt-navy-900) !important;
}
.gt-btn-gold:hover { background: var(--gt-gold-600); box-shadow: var(--gt-shadow-md); }
.gt-btn-outline {
  background: transparent;
  color: var(--gt-navy-800) !important;
  border: 1.5px solid var(--gt-navy-800);
}
.gt-btn-outline:hover {
  background: #fff;
  color: var(--gt-navy-900) !important;
  border-color: var(--gt-navy-900);
}
/* Same outline button, used on dark hero/photo backgrounds — starts white,
   flips to a solid white pill with dark text on hover (instead of relying
   on an inline style, which would otherwise fight this hover rule). */
.gt-btn-outline--on-dark {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.7);
}
.gt-btn-outline--on-dark:hover {
  background: #fff;
  color: var(--gt-navy-900) !important;
  border-color: #fff;
}
.gt-btn-whatsapp {
  background: #1ea952;
  color: #fff !important;
}
.gt-btn-whatsapp:hover { background: #178a42; }

/* ---------- Hero / slider ----------
   Structure: .gt-hero-wrap holds a Splide image slideshow (background only,
   absolutely positioned) plus one fixed text overlay (.gt-hero-content)
   that does NOT change between slides. */
.gt-hero-wrap {
  position: relative;
  border-radius: var(--gt-radius-lg);
  overflow: hidden;
  min-height: 460px;
}
.gt-hero-splide {
  position: absolute;
  inset: 0;
}
/* Splide measures each slide's own height and applies that (as an inline
   style) to .splide__track/.splide__list — a percentage height here would
   try to resolve against that not-yet-measured value and collapse to 0.
   Giving the slide itself a real, fixed height sidesteps that entirely. */
.gt-hero-slide {
  width: 100%;
  height: 460px;
  background-size: cover;
  background-position: center;
}
.gt-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 18, 30, 0.8) 0%, rgba(6, 18, 30, 0.5) 45%, rgba(6, 18, 30, 0.8) 100%);
}
.gt-hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  width: 100%;
  padding: 0 24px;
}
/* Legacy single-slide hero (still used by other pages) keeps the old
   self-contained behavior: background + text together, no slideshow. */
.gt-hero {
  position: relative;
  border-radius: var(--gt-radius-lg);
  overflow: hidden;
  min-height: 460px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.gt-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 39, 64, 0.55) 0%, rgba(13, 39, 64, 0.15) 45%, rgba(13, 39, 64, 0.55) 100%);
}
.gt-hero .gt-hero-content {
  position: relative;
  inset: auto;
}
.gt-hero-eyebrow {
  color: var(--gt-gold-100);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.gt-hero-title {
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-weight: 800;
  margin: 10px 0 6px;
  letter-spacing: -0.01em;
}
.gt-hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 400;
  opacity: 0.92;
}
.gt-hero-actions {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
@media screen and (max-width: 768px) {
  .gt-hero,
  .gt-hero-wrap { min-height: 340px; border-radius: var(--gt-radius-md); }
  .gt-hero-slide { height: 340px; }
}

/* ---------- Signature image card (replaces .full-image-card / .card-overlay) ---------- */
.gt-card {
  position: relative;
  height: 340px;
  border-radius: var(--gt-radius-md);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--gt-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gt-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--gt-shadow-lg);
}
.gt-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  background: var(--gt-navy-900);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.gt-card-badge--price {
  background: var(--gt-success);
}
.gt-card-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(13, 39, 64, 0.92) 0%, rgba(13, 39, 64, 0.02) 100%);
  color: #fff;
}
.gt-card-overlay .gt-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.gt-card-overlay .gt-card-meta {
  font-size: 0.85rem;
  opacity: 0.9;
  line-height: 1.5;
}
@media screen and (max-width: 768px) {
  .gt-card { height: 250px; }
  .gt-card-overlay .gt-card-title { font-size: 1rem; }
  .gt-card-overlay .gt-card-meta { font-size: 0.78rem; }
}

/* ---------- Listing card (image top, content below — package/ticket grids) ---------- */
.gt-package-card {
  background: var(--gt-surface);
  border: 1px solid var(--gt-line);
  border-radius: var(--gt-radius-md);
  overflow: hidden;
  box-shadow: var(--gt-shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gt-package-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--gt-shadow-md);
}
.gt-package-card-media {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--gt-surface-muted);
}
.gt-package-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gt-package-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.gt-package-card-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gt-navy-900);
  margin-bottom: 6px;
  line-height: 1.35;
}
.gt-package-card-desc {
  color: var(--gt-ink-soft);
  font-size: 0.88rem;
  margin-bottom: 12px;
  line-height: 1.5;
}
.gt-package-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: var(--gt-ink);
}
.gt-package-card-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 6px;
  line-height: 1.4;
}
.gt-package-card-list li i {
  color: var(--gt-success);
  margin-top: 3px;
  font-size: 0.78rem;
}
.gt-package-card-cta {
  margin-top: auto;
}

/* Badge variants for use on top of card media */
.gt-card-badge--bottom {
  top: auto;
  bottom: 14px;
}
.gt-card-badge--dark {
  background: rgba(13, 39, 64, 0.85);
}

/* Flat content card (for text/detail sections) */
.gt-panel {
  background: var(--gt-surface);
  border: 1px solid var(--gt-line);
  border-radius: var(--gt-radius-md);
  box-shadow: var(--gt-shadow-sm);
  padding: 28px;
}

/* ---------- Fixed mobile CTA bar (replaces .fixed-footer) ---------- */
.gt-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: #fff;
  border-top: 1px solid var(--gt-line);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 24px rgba(13, 39, 64, 0.12);
  padding: 10px 14px;
  display: none;
  gap: 10px;
}
@media screen and (max-width: 768px) {
  .gt-cta-bar { display: flex; }
}

/* ---------- Footer ---------- */
.gt-footer {
  background: var(--gt-navy-900);
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 28px;
}
.gt-footer a { color: #fff; }
.gt-footer .gt-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 6px;
  transition: background 0.2s ease;
}
.gt-footer .gt-footer-social a:hover { background: var(--gt-gold-500); color: var(--gt-navy-900); }
.gt-footer-meta {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- Splide overrides ---------- */
.splide__pagination__page.is-active { background: var(--gt-gold-500) !important; }
.splide__arrow { display: none !important; }

/* ---------- Utility ---------- */
.gt-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
@media screen and (max-width: 1024px) {
  .gt-grid { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 640px) {
  .gt-grid { grid-template-columns: 1fr; }
}

/* ---------- Phone coverflow slider (js/coverflow.js) ---------- */
.gt-cf-dots { display: none; }
@media screen and (max-width: 768px) {
  .gt-coverflow {
    display: flex !important; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 14px calc((100vw - min(82vw, 380px)) / 2 + 10px) 18px; margin: 0 -20px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .gt-coverflow::-webkit-scrollbar { display: none; }
  .gt-coverflow > * {
    flex: 0 0 min(82vw, 380px); margin: 0 -10px; scroll-snap-align: center;
    transition: transform 0.25s ease, opacity 0.25s ease; will-change: transform;
  }
  .gt-cf-dots { display: flex; justify-content: center; gap: 6px; margin-top: 2px; }
  .gt-cf-dots span { width: 7px; height: 7px; border-radius: 999px; background: var(--gt-line); transition: all 0.2s ease; }
  .gt-cf-dots span.on { width: 20px; background: var(--gt-gold-500); }
}

/* Phone menu: logo exactly in the middle between the globe and the burger */
@media screen and (max-width: 768px) {
  .gt-nav .navbar-brand { position: relative; }
  .gt-nav .gt-nav-logo { position: absolute; left: 50%; transform: translateX(-50%); margin: 0 !important; }
  .gt-nav .navbar-burger { margin-left: auto; }
}

/* Footer links (e.g. Umrah T&C) */
.gt-footer-links { margin-top: 18px; font-size: 0.85rem; }
.gt-footer-links a { color: rgba(255, 255, 255, 0.85); text-decoration: underline; text-underline-offset: 3px; }
.gt-footer-links a:hover { color: var(--gt-gold-500); }
