/* =========================================================
   Al Harmain Tours & Travels — main stylesheet
   Brand colours come from the logo (orange + sky blue) and
   the navy used across the posters.
   ========================================================= */

:root {
  --navy: #10275a;
  --navy-deep: #0a1a40;
  --blue: #3a93d0;
  --blue-soft: #e8f3fb;
  --orange: #e5832f;
  --orange-soft: #fdf0e4;
  --gold: #e7b43c;
  --green: #0f5a3a;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;

  --ink: #1b2437;
  --muted: #5b667a;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-tint: #f6f9fc;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(16, 39, 90, .08);
  --shadow-lg: 0 20px 50px rgba(16, 39, 90, .16);

  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
svg { width: 1.2em; height: 1.2em; flex-shrink: 0; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange); margin-bottom: .6em;
}
.eyebrow-gold { color: var(--gold); }
.accent { color: var(--orange); }
.gold { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.btn-sm { padding: .6em 1.1em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-gold { background: linear-gradient(135deg, #f3cf6b, var(--gold)); color: var(--navy-deep); }
.btn-outline-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(16,39,90,.08); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 52px; height: 52px; border-radius: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-head); font-size: 1.25rem; font-weight: 800; color: var(--blue); letter-spacing: .02em; }
.brand-text small { font-size: .78rem; font-weight: 600; color: var(--ink); letter-spacing: .08em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav > a:not(.btn) {
  padding: .5em .8em; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--ink);
  transition: color .2s, background-color .2s;
}
.site-nav > a:not(.btn):hover { color: var(--orange); background: var(--orange-soft); }
.nav-cta { margin-left: 8px; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(58,147,208,.45), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(229,131,47,.30), transparent 60%),
    linear-gradient(160deg, var(--navy-deep), var(--navy) 60%, #16397a);
  color: #fff;
  padding: clamp(48px, 8vw, 96px) 0;
}
.hero::after { /* thin orange line echoing the poster footer */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: #9fd0f2; }
.hero-tagline { font-family: var(--font-head); font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 600; margin-bottom: .6em; }
.hero-tagline em { font-style: normal; color: var(--orange); }
.hero-lead { color: rgba(255,255,255,.82); font-size: 1.08rem; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.hero-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; color: rgba(255,255,255,.85); }
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges svg { color: var(--orange); }
.hero-media { margin: 0; }
.hero-media img { border-radius: 20px; box-shadow: 0 30px 70px rgba(0,0,0,.4); border: 4px solid rgba(255,255,255,.12); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-tint { background: var(--bg-tint); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head p:last-child { color: var(--muted); font-size: 1.05rem; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card p { color: var(--muted); margin: 0; font-size: .97rem; }
.service-icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; color: #fff; }
.service-icon svg { width: 28px; height: 28px; }
.service-icon.blue { background: var(--navy); }
.service-icon.orange { background: var(--orange); }

/* Split layouts with a poster */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split-reverse .poster { order: -1; }
.hero-grid > *, .split > *, .about-grid > *, .contact-grid > * { min-width: 0; }
.split-copy > p { color: var(--muted); font-size: 1.05rem; }
.poster {
  display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-lg); transition: transform .3s ease;
}
.poster:hover { transform: scale(1.015); }
.poster img { width: 100%; }

/* Umrah section */
.section-umrah {
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(231,180,60,.18), transparent 60%),
    linear-gradient(160deg, #0b1d47, var(--navy-deep));
  color: #fff;
}
.section-umrah h2 { color: #fff; }
.section-umrah .split-copy > p { color: rgba(255,255,255,.8); }
.doc-list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.doc-list li {
  display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(15,90,58,.9), rgba(15,90,58,.55));
  border: 1px solid rgba(231,180,60,.35); font-weight: 600; font-size: 1.05rem;
}
.doc-list span {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--green); font-family: var(--font-head); font-weight: 800;
}

/* Gulf section */
.country-chips { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.country-chips li { padding: .4em .95em; border-radius: 999px; background: var(--blue-soft); color: var(--navy); font-weight: 600; font-size: .9rem; }
.check-list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.check-list li { position: relative; padding-left: 28px; font-weight: 500; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* Offers */
.destinations { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 30px; }
.dest { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 10px; text-align: center; box-shadow: var(--shadow); }
.dest strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1.1rem; }
.dest span { font-size: .8rem; color: var(--muted); }

/* Why us strip */
.why { background: var(--navy); color: #fff; padding: 36px 0; border-top: 4px solid var(--orange); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-item { display: flex; align-items: center; gap: 14px; }
.why-item svg { width: 50px; height: 50px; padding: 12px; border-radius: 50%; background: var(--orange); color: #fff; }
.why-item strong { display: block; font-family: var(--font-head); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .02em; }
.why-item span { font-size: .9rem; color: rgba(255,255,255,.75); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 64px); align-items: center; }
.about-media { margin: 0; }
.about-media img { border-radius: 20px; box-shadow: var(--shadow-lg); }
.about-copy p { color: var(--muted); font-size: 1.05rem; }
.about-copy blockquote {
  margin: 24px 0 0; padding: 14px 20px; border-left: 4px solid var(--orange); background: var(--orange-soft);
  border-radius: 0 12px 12px 0; font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; color: var(--orange);
}

/* Contact */
.section-contact { background: var(--bg-tint); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; }
.contact-info { display: grid; gap: 12px; }
.contact-item {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; transition: border-color .2s, transform .2s;
  overflow-wrap: anywhere;
}
.contact-item:hover { border-color: var(--blue); transform: translateX(3px); }
.contact-item small { display: block; font-size: .75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.ci-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--navy); flex-shrink: 0; }
.social-row { display: flex; gap: 10px; margin-top: 6px; }
.social { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: transform .2s; }
.social:hover { transform: translateY(-3px); }
.social svg { width: 22px; height: 22px; }
.social.wa { background: var(--whatsapp); }
.social.ig { background: linear-gradient(45deg, #f9a83f, #e1306c 50%, #833ab4); }
.social.fb { background: #1877f2; }

.enquiry { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-lg); border-top: 5px solid var(--orange); }
.enquiry h3 { margin-bottom: .25em; }
.form-note { color: var(--muted); font-size: .92rem; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8em 1em; font: inherit; font-size: 16px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fbfcfe;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(58,147,208,.15); }
.field .invalid { border-color: #d64545; }
.form-error { color: #c23434; font-weight: 600; font-size: .92rem; }

.map { margin-top: 28px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.78); padding: 56px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 32px; padding-bottom: 36px; }
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-brand img { border-radius: 14px; background: #fff; }
.footer-brand strong { color: #fff; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; align-content: start; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.footer-contact p { margin: 0 0 .4em; overflow-wrap: anywhere; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 20px; text-align: center; font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* ---------- Floating WhatsApp ---------- */
.fab-whatsapp {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--whatsapp); color: #fff; box-shadow: 0 10px 25px rgba(37,211,102,.45);
  animation: pulse 2.4s infinite;
}
.fab-whatsapp svg { width: 32px; height: 32px; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; }
.lightbox::backdrop { background: rgba(5,12,30,.85); }
.lightbox img { max-height: 88vh; width: auto; margin: 0 auto; border-radius: 12px; }
.lightbox-close {
  position: fixed; top: 16px; right: 20px; width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: #fff; color: var(--navy); font-size: 1.8rem; line-height: 1; cursor: pointer;
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 12px 20px 22px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(16,39,90,.1);
    transform: translateY(-110%); visibility: hidden; transition: transform .3s ease, visibility .3s;
  }
  .site-nav.open { transform: none; visibility: visible; }
  .site-nav > a:not(.btn) { padding: .8em .6em; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-cta { margin: 12px 0 0; }

  .hero-grid, .split, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .split-reverse .poster { order: 0; }
  .hero-copy { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .brand img { width: 44px; height: 44px; }
  .brand-text strong { font-size: 1.1rem; }
  .services-grid, .why-grid { grid-template-columns: 1fr; }
  .destinations { grid-template-columns: repeat(2, 1fr); }
  .check-list { grid-template-columns: 1fr; }
  .btn { white-space: normal; text-align: center; }
  .hero-actions .btn { flex: 1 1 100%; }
  .split-copy .btn { width: 100%; }
  .service-card, .enquiry { padding: 22px; }
  .map iframe { height: 300px; }
  .fab-whatsapp { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .footer-bottom { padding-bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
