/*
Theme Name: AlMaqam Theme
Theme URI: https://almaqam.com
Author: AlMaqam by Orient Travel
Description: Custom WordPress theme for AlMaqam — the Umrah platform by Orient Travel. Preserves the exact design system including green/gold palette, Inter typography, and all layout components.
Version: 1.0.0
License: Private
Text Domain: almaqam
*/

/* ============================================
   DESIGN TOKENS — AlMaqam Brand System
   ============================================ */
:root {
  --bg: #fbf7ef;
  --white: #fff;
  --green: #0c4b3c;
  --green2: #05251e;
  --gold: #c99b45;
  --gold-light: #fdf3dc;
  --soft: #fffaf1;
  --cream: #fbf7ef;
  --sand: #f5efe6;
  --muted: #68766f;
  --text: #1f2a24;
  --border: rgba(12, 75, 60, 0.12);
  --shadow: 0 24px 70px rgba(12, 75, 60, 0.12);
  --shadow-soft: 0 8px 28px rgba(12, 75, 60, 0.08);
  --wa: #25d366;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(circle at top left, #fff4dc, transparent 34%), var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ============================================
   LAYOUT
   ============================================ */
.container { width: min(1180px, calc(100% - 36px)); margin: auto; }
.section { padding: 82px 0; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3 { letter-spacing: -0.055em; line-height: 1.08; }
h1 { font-size: clamp(42px, 6vw, 78px); color: var(--green); margin-bottom: 22px; }
h1 em, h2 em { font-family: Georgia, serif; color: var(--gold); font-style: normal; }
h2 { font-size: clamp(34px, 4.5vw, 55px); color: var(--green); max-width: 820px; margin-bottom: 12px; }
h3 { color: var(--green); font-size: 25px; margin-bottom: 10px; }
.lead { font-size: clamp(17px, 2vw, 21px); color: var(--muted); max-width: 700px; margin-bottom: 24px; }
.kicker {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 14px;
  margin-bottom: 10px;
}

/* ============================================
   TOP BAR
   ============================================ */
.almaqam-topbar {
  background: var(--green2);
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 14px;
}
.almaqam-topbar strong { color: #ffe2a7; }

/* ============================================
   HEADER & NAV
   ============================================ */
.almaqam-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 239, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.almaqam-nav {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.almaqam-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 900;
  color: var(--green);
  letter-spacing: -0.04em;
}
.almaqam-logo img { height: 44px; width: auto; }
.almaqam-logo .mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green), #147058);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 25px;
  font-family: Georgia, serif;
}
.almaqam-logo small { display: block; font-size: 11px; color: var(--muted); margin-top: -4px; }

.almaqam-nav-links {
  display: flex;
  gap: 20px;
  font-weight: 800;
  color: #304139;
  font-size: 15px;
  list-style: none;
}
.almaqam-nav-links a:hover,
.almaqam-nav-links .current-menu-item a { color: var(--gold); }

.almaqam-nav-actions { display: flex; gap: 10px; align-items: center; }

.orient-btn {
  min-width: 145px;
  padding: 8px 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(201, 155, 69, 0.35);
  box-shadow: var(--shadow-soft);
  text-align: center;
  color: var(--green);
  font-weight: 900;
  line-height: 1.1;
}
.orient-btn img { height: 38px; width: auto; display: block; }
.orient-btn small {
  display: block;
  color: var(--gold);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 900;
  border: 0;
  white-space: nowrap;
  transition: 0.25s;
  cursor: pointer;
  font-size: 15px;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary, .btn.primary { background: var(--green); color: #fff; box-shadow: 0 14px 30px rgba(12, 75, 60, 0.22); }
.btn-wa, .btn.wa { background: var(--wa); color: #07351c; box-shadow: 0 14px 30px rgba(37, 211, 102, 0.24); }
.btn-ghost, .btn.ghost { background: #fff; color: var(--green); border: 1px solid var(--border); }

/* ============================================
   CARDS & GRID SYSTEM
   ============================================ */
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 24px;
  box-shadow: 0 14px 40px rgba(12, 75, 60, 0.08);
  transition: 0.25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card p { color: var(--muted); }

.badge {
  display: inline-flex;
  background: rgba(12, 75, 60, 0.08);
  color: var(--green);
  font-weight: 900;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  margin-bottom: 15px;
}
.icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--soft);
  display: grid;
  place-items: center;
  font-size: 25px;
  margin-bottom: 18px;
}
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.meta span {
  font-size: 13px;
  font-weight: 900;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(12, 75, 60, 0.08);
  color: var(--green);
}
.price { color: var(--muted); margin: 16px 0; }
.price strong { display: block; font-size: 30px; color: var(--green); letter-spacing: -0.04em; }

/* Dark section variant */
.dark { background: linear-gradient(135deg, #082d25, #12634f); color: #fff; }
.dark h2, .dark h3 { color: #fff; }
.dark p, .dark .lead { color: rgba(255, 255, 255, 0.76); }
.dark .card { background: rgba(255, 255, 255, 0.09); border: 1px solid rgba(255, 255, 255, 0.13); }
.dark .kicker { color: #ffe2a7; }

/* ============================================
   SECTION HEAD
   ============================================ */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 34px;
}
.section-head p { color: var(--muted); max-width: 470px; }

/* ============================================
   EYEBROW / CHIPS
   ============================================ */
.eyebrow {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--green);
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 20px;
}
.eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 800;
  color: #304139;
}

/* ============================================
   FORMS
   ============================================ */
.formbox {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 38px;
  padding: 36px;
  box-shadow: var(--shadow);
}
.form {
  background: var(--soft);
  border: 1px solid rgba(201, 155, 69, 0.22);
  border-radius: 28px;
  padding: 24px;
}
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.field {
  width: 100%;
  padding: 15px 14px;
  border-radius: 15px;
  border: 1px solid var(--border);
  background: #fff;
  font: inherit;
  outline: none;
}
.field:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 155, 69, 0.12); }

/* ============================================
   FAQ / DETAILS
   ============================================ */
details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: 0 14px 40px rgba(12, 75, 60, 0.08);
}
summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 900;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 24px; color: var(--gold); }
details[open] summary::after { content: '−'; }
details p { color: var(--muted); margin-top: 12px; }
.faqs { display: grid; gap: 12px; }

/* ============================================
   CTA BOX
   ============================================ */
.cta { padding: 70px 0; }
.ctabox {
  background: linear-gradient(135deg, var(--green), #12634f);
  color: #fff;
  border-radius: 42px;
  padding: 46px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow);
}
.ctabox h2 { color: #fff; }
.ctabox p { color: rgba(255, 255, 255, 0.78); }

/* ============================================
   FOOTER
   ============================================ */
.almaqam-footer {
  background: #082d25;
  color: #fff;
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}
.almaqam-footer h3 { color: #ffe0a6; font-size: 18px; margin-bottom: 16px; }
.almaqam-footer p,
.almaqam-footer a { color: rgba(255, 255, 255, 0.72); font-size: 15px; }
.footer-links { display: grid; gap: 9px; }
.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* ============================================
   FLOATING ELEMENTS
   ============================================ */
.floatwa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--wa);
  display: grid;
  place-items: center;
  box-shadow: 0 16px 34px rgba(37, 211, 102, 0.35);
  font-size: 30px;
}
.mobilebar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
  gap: 10px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: 0.7s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   BLOG CARDS
   ============================================ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(12, 75, 60, 0.10);
  box-shadow: 0 8px 32px rgba(12, 75, 60, 0.07);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: 0 20px 56px rgba(12, 75, 60, 0.14); }
.blog-img { width: 100%; height: 220px; background-size: cover; background-position: center; flex-shrink: 0; }
.blog-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.blog-tag {
  display: inline-block;
  background: rgba(12, 75, 60, 0.09);
  color: var(--green);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(12, 75, 60, 0.12);
}
.blog-card h3 { font-size: 19px; font-weight: 900; color: var(--green); line-height: 1.25; margin-bottom: 10px; }
.blog-card p { color: var(--muted); font-size: 14px; line-height: 1.6; flex: 1; margin-bottom: 18px; }
.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 900;
  font-size: 14px;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  transition: gap 0.2s, color 0.2s;
}
.blog-link:hover { gap: 10px; color: var(--gold); }

/* ============================================
   TALBIYAH CARD
   ============================================ */
.talbiyah { padding: 52px 0 72px; background: linear-gradient(180deg, rgba(255,250,241,0.2), rgba(246,230,199,0.35)); }
.tal-card {
  max-width: 940px;
  margin: auto;
  padding: 38px 34px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(201, 155, 69, 0.25);
  box-shadow: 0 14px 40px rgba(12, 75, 60, 0.08);
  text-align: center;
}
.arabic { font-family: Georgia, serif; font-size: clamp(34px, 5vw, 58px); color: var(--green); line-height: 1.65; direction: rtl; }
.translation { font-size: clamp(20px, 2.4vw, 28px); font-weight: 900; color: #2e4038; }

/* ============================================
   TRUST CARD
   ============================================ */
.trust-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  max-width: 650px;
  background: linear-gradient(135deg, rgba(12,75,60,0.96), rgba(18,99,79,0.92));
  color: #fff;
  border-radius: 22px;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 14px 40px rgba(12, 75, 60, 0.12);
}
.seal {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  color: #ffe2a7;
  font-weight: 900;
  font-family: Georgia, serif;
  font-size: 18px;
}
.trust-card p { color: rgba(255, 255, 255, 0.78); font-size: 14px; }

/* ============================================
   POPULAR PACKAGES GRID (equal height cards)
   ============================================ */
.popular-grid { align-items: stretch; }
.popular-grid .card { display: flex; flex-direction: column; height: 100%; }
.popular-grid .badge { align-self: flex-start; }
.popular-grid h3 { min-height: 64px; }
.popular-grid p:not(.price) { min-height: 138px; }
.popular-grid .meta { min-height: 50px; align-content: flex-start; }
.popular-grid .price { margin-top: auto; }
.popular-grid .btn {
  margin-top: 14px;
  width: 100%;
  justify-content: center;
  white-space: nowrap;
  min-height: 46px;
  font-size: 14px;
  padding: 13px 14px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero { padding: 68px 0 45px; position: relative; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 10%, rgba(201,155,69,0.18), transparent 26%),
    radial-gradient(circle at 10% 70%, rgba(12,75,60,0.10), transparent 28%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 0.9fr; gap: 48px; align-items: center; }
.visual { position: relative; min-height: 560px; }
.photo {
  position: absolute;
  inset: 0;
  border-radius: 42px;
  background:
    linear-gradient(180deg, rgba(12,75,60,0.05), rgba(12,75,60,0.62)),
    url('https://images.unsplash.com/photo-1591604129939-f1efa4d9f7fa?auto=format&fit=crop&w=1200&q=80') center/cover;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.talbiyah-overlay {
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
  width: calc(100% - 40px);
  max-width: 460px;
  text-shadow: 0 4px 18px rgba(0,0,0,0.55);
}
.talbiyah-overlay .arabic-sm {
  font-family: Georgia, serif;
  font-size: clamp(22px, 3.2vw, 32px);
  color: #ffe2a7;
  line-height: 1.6;
  direction: rtl;
  display: block;
  margin-bottom: 4px;
  font-weight: 900;
}
.talbiyah-overlay .translation-sm { font-size: 14px; color: #fff; font-weight: 800; letter-spacing: 0.02em; }
.review {
  position: absolute;
  right: -18px;
  bottom: 34px;
  width: min(410px, calc(100% - 28px));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-radius: 28px;
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.stars { color: #d59d2f; letter-spacing: 2px; }
.review p { margin: 10px 0; color: #33443d; }
.verified { background: rgba(12,75,60,0.08); color: var(--green); border-radius: 999px; padding: 6px 10px; font-size: 13px; font-weight: 900; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }

/* ============================================
   WORDPRESS CONTENT STYLES
   ============================================ */
.entry-content p { color: var(--muted); margin-bottom: 1em; }
.entry-content h2 { margin-bottom: 16px; margin-top: 32px; }
.entry-content h3 { margin-bottom: 12px; margin-top: 24px; }
.wp-block-image { margin: 24px 0; }
.wp-block-image img { border-radius: 20px; }
.aligncenter { text-align: center; }
.wp-caption-text { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1080px) {
  .almaqam-nav-links { display: none; }
  .almaqam-nav-actions .btn-wa { display: none; }
  .hero-grid, .formbox, .ctabox { grid-template-columns: 1fr; }
  .blog-grid, .grid5, .grid4, .grid3, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .visual { min-height: 520px; }
  .popular-grid h3, .popular-grid p:not(.price), .popular-grid .meta { min-height: auto; }
}
@media (max-width: 720px) {
  .almaqam-nav { height: 72px; }
  .hero { padding: 46px 0 20px; }
  .visual { min-height: 500px; }
  .review { right: 14px; left: 14px; width: auto; bottom: 18px; }
  .section { padding: 58px 0; }
  .section-head { display: block; }
  .section-head p { margin-top: 14px; }
  .blog-grid, .grid5, .grid4, .grid3, .grid2, .footer-grid, .formgrid { grid-template-columns: 1fr; }
  .formbox, .ctabox { padding: 28px; border-radius: 30px; }
  .floatwa { display: none; }
  .mobilebar { display: flex; }
  body { padding-bottom: 76px; }
  .trust-card { grid-template-columns: 1fr; }
  .orient-btn { min-width: 124px; padding: 8px 12px; }
  .tal-card { padding: 30px 22px; }
}
.almaqam-logo {
    margin-left: 70px;
}
/* Lightbox styles */
.qf-lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.qf-lightbox-overlay.active {
    display: flex;
}
.qf-lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    object-fit: contain;
}
.qf-lightbox-close {
    position: fixed;
    top: 20px;
    right: 28px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
}
