/* =====================================================
   Sargodha Crane & Lifter Service — style.css
   Pure CSS, RTL-first (Urdu default) with LTR support
   ===================================================== */

:root {
  --navy: #0d1b2a;
  --navy-2: #14263a;
  --charcoal: #1b263b;
  --yellow: #f5b301;
  --yellow-dark: #d99a00;
  --orange: #f57c00;
  --wa-green: #25d366;
  --wa-green-dark: #1eb757;
  --text: #22303f;
  --text-light: #5b6b7c;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(13, 27, 42, 0.12);
  --font-ur: 'Noto Nastaliq Urdu', 'Noto Sans Arabic', serif;
  --font-en: 'Poppins', system-ui, -apple-system, sans-serif;
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-ur);
  color: var(--text);
  background: var(--bg);
  line-height: 2.1; /* Nastaliq needs generous line height */
  overflow-x: hidden;
}

html[dir="ltr"] body { font-family: var(--font-en); line-height: 1.65; }

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

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

ul { list-style: none; }

.container { width: min(1180px, 92%); margin-inline: auto; }
.container-narrow { width: min(860px, 92%); margin-inline: auto; }

/* Focus visibility (accessibility) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.55em 1.4em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: inherit;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-lg { padding: 0.7em 1.8em; font-size: 1.08rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-primary { background: var(--yellow); color: var(--navy); }
.btn-primary:hover { background: var(--yellow-dark); }
.btn-whatsapp { background: var(--wa-green); color: #fff; }
.btn-whatsapp:hover { background: var(--wa-green-dark); }
.btn-call { background: var(--yellow); color: var(--navy); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--charcoal); }

/* ===================== Header ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: 6px;
}
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-icon { font-size: 1.9rem; }
.brand-text { display: flex; flex-direction: column; line-height: 1.6; }
html[dir="ltr"] .brand-text { line-height: 1.25; }
.brand-text strong { font-size: 1.05rem; color: var(--yellow); }
.brand-text small { font-size: 0.72rem; color: #c9d3de; }

.main-nav ul { display: flex; gap: 1.4rem; align-items: center; }
.main-nav a {
  font-size: 0.95rem;
  color: #e6ecf2;
  padding: 0.2em 0.1em;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.main-nav a:hover, .main-nav a.active { color: var(--yellow); border-color: var(--yellow); }

.header-actions { display: flex; align-items: center; gap: 0.8rem; }

.lang-switch {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 999px;
  padding: 0.3em 0.9em;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  display: inline-flex;
  gap: 0.45em;
  align-items: center;
}
.lang-sep { opacity: 0.5; }
.lang-opt { opacity: 0.6; transition: opacity 0.15s, color 0.15s; }
.lang-opt.active { opacity: 1; color: var(--yellow); font-weight: 700; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px; height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===================== Hero ===================== */
.hero {
  position: relative;
  min-height: calc(92vh - var(--header-h));
  display: flex;
  align-items: center;
  color: #fff;
  padding-block: 4rem;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,27,42,0.82) 0%, rgba(13,27,42,0.68) 55%, rgba(13,27,42,0.88) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 780px; }
.hero-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  padding: 0.15em 1em;
  border-radius: 999px;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(1.7rem, 4.5vw, 3rem); color: #fff; margin-bottom: 0.4em; }
.hero-sub { font-size: clamp(1.05rem, 2.4vw, 1.45rem); color: var(--yellow); font-weight: 600; margin-bottom: 0.6em; }
.hero-desc { color: #dbe4ee; max-width: 620px; margin-bottom: 1.6em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2rem; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 2.2rem; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { color: var(--yellow); font-size: 1.4rem; }
.hero-stats span { color: #c9d3de; font-size: 0.9rem; }

/* ===================== Sections ===================== */
.section { padding-block: 4.5rem; }
.section-dark { background: var(--navy); color: #e8eef5; }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { text-align: center; margin-bottom: 2.6rem; }
.section-kicker {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.3em;
}
.section-dark .section-kicker { color: var(--yellow); }
.section-head h2 { font-size: clamp(1.4rem, 3.2vw, 2.1rem); color: var(--navy); }
.section-dark .section-head h2 { color: #fff; }
.section-sub { color: var(--text-light); margin-top: 0.5em; }
.section-dark .section-sub { color: #b9c6d4; }

/* ===================== Services ===================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}
.service-card {
  background: var(--bg-soft);
  border: 1px solid #e4e9f0;
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--yellow);
}
.service-icon { font-size: 2.2rem; margin-bottom: 0.6rem; }
.service-card h3 { color: var(--navy); font-size: 1.1rem; margin-bottom: 0.4em; }
.service-card p { color: var(--text-light); font-size: 0.95rem; flex: 1; }
.card-link { color: var(--orange); font-weight: 700; margin-top: 1rem; font-size: 0.95rem; }
.card-link:hover { color: var(--yellow-dark); }

/* ===================== About ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: center;
}
.about-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-text h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.6em; }
.about-text p { color: #c8d3df; margin-bottom: 1em; }
.about-points { margin: 1.2rem 0 1.8rem; display: grid; gap: 0.4rem; }
.about-points li { position: relative; padding-inline-start: 1.7em; color: #e2e9f1; }
.about-points li::before {
  content: "✔";
  position: absolute;
  inset-inline-start: 0;
  color: var(--yellow);
  font-weight: 700;
}

/* ===================== Why Choose Us ===================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}
.why-item {
  background: #fff;
  border: 1px solid #e4e9f0;
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.why-item h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 0.3em; }
.why-item p { color: var(--text-light); font-size: 0.92rem; }

/* ===================== Carousel ===================== */
.carousel { position: relative; max-width: 900px; margin-inline: auto; }
.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
  direction: ltr; /* keep slide math consistent in RTL */
}
.carousel-track {
  display: flex;
  transition: transform 0.45s ease;
  touch-action: pan-y;
}
.carousel-slide {
  flex: 0 0 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.carousel-slide img,
.carousel-slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(245, 179, 1, 0.95);
  color: var(--navy);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
  transition: background 0.15s, transform 0.15s;
}
.carousel-arrow:hover { background: var(--yellow-dark); transform: translateY(-50%) scale(1.07); }
/* Physical positioning regardless of dir */
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.carousel-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1rem;
  direction: ltr;
}
.carousel-dots button {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: none;
  background: #5b6b7c;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, transform 0.15s;
}
.carousel-dots button.active { background: var(--yellow); transform: scale(1.25); }

.thumb-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 1.2rem 4px 0.5rem;
  direction: ltr;
  scrollbar-width: thin;
}
.thumb {
  flex: 0 0 auto;
  width: 92px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  background: #000;
  position: relative;
  opacity: 0.75;
  transition: opacity 0.15s, border-color 0.15s;
}
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb.active { border-color: var(--yellow); opacity: 1; }
.thumb .thumb-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

/* ===================== CTA Band ===================== */
.cta-band {
  background: linear-gradient(120deg, var(--yellow) 0%, var(--orange) 100%);
  padding-block: 3rem;
  color: var(--navy);
}
.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}
.cta-band h2 { font-size: clamp(1.25rem, 3vw, 1.8rem); }
.cta-band .btn-dark { direction: ltr; }

/* ===================== FAQ ===================== */
.faq-list { display: grid; gap: 0.9rem; }
.faq-item {
  border: 1px solid #e4e9f0;
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.3rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  text-align: start;
}
.faq-icon {
  font-size: 1.4rem;
  color: var(--orange);
  transition: transform 0.25s;
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a p { padding: 0 1.3rem 1.1rem; color: var(--text-light); }

/* ===================== Contact ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  align-items: start;
}
.contact-info { display: grid; gap: 1.1rem; }
.contact-card {
  display: flex;
  gap: 1rem;
  background: var(--navy-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}
.contact-ico { font-size: 1.7rem; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 0.3em; color: var(--yellow); }
.contact-card p { color: #d5dfe9; }
.contact-card a { color: #fff; font-weight: 600; direction: ltr; unicode-bidi: embed; }
.contact-card a:hover { color: var(--yellow); }
.contact-note { font-size: 0.85rem; color: #9fb0c1; }

.contact-form {
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
}
.contact-form h3 { color: var(--navy); margin-bottom: 0.3em; }
.form-note { font-size: 0.88rem; color: var(--text-light); margin-bottom: 1.2rem; }
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: 0.3em; color: var(--navy); }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 0.65em 0.9em;
  border: 1.5px solid #d6dee7;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg-soft);
  transition: border-color 0.15s;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--yellow); outline: none; }
.form-field textarea { resize: vertical; }

/* ===================== Footer ===================== */
.site-footer { background: #0a1420; color: #c3cedb; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 2.4rem;
  padding-block: 3.4rem 2rem;
}
.footer-col h3 { color: var(--yellow); font-size: 1.05rem; margin-bottom: 0.8em; }
.footer-col p { font-size: 0.93rem; }
.footer-nav li, .footer-contact li { margin-bottom: 0.45em; font-size: 0.93rem; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--yellow); }
.footer-contact a { direction: ltr; unicode-bidi: embed; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  padding-block: 1.1rem;
  font-size: 0.85rem;
  color: #8fa0b3;
}

/* ===================== Floating Buttons ===================== */
.floating-btns {
  position: fixed;
  bottom: 20px;
  inset-inline-end: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1100;
}
.float-btn {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s;
}
.float-btn:hover { transform: scale(1.08); }
.float-wa { background: var(--wa-green); }
.float-call { background: var(--yellow); }

/* ===================== Responsive ===================== */
@media (max-width: 992px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-media img { aspect-ratio: 16 / 10; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .header-call span:last-child { display: none; } /* icon-only call button */
  .header-call { padding: 0.5em 0.8em; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    inset-inline: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    box-shadow: 0 14px 30px rgba(0,0,0,0.35);
  }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 0.6rem 0 1rem; }
  .main-nav li { width: 100%; }
  .main-nav a {
    display: block;
    padding: 0.8em 6%;
    font-size: 1.05rem;
    border-bottom: none;
  }
  .main-nav a:hover, .main-nav a.active { background: rgba(245, 179, 1, 0.1); }
}

@media (max-width: 640px) {
  .section { padding-block: 3.2rem; }
  .hero { min-height: auto; padding-block: 3.4rem; }
  .hero-stats { gap: 1.4rem; }
  .hero-ctas .btn { flex: 1 1 100%; justify-content: center; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .cta-band .hero-ctas { margin-bottom: 0; width: 100%; }
  .carousel-slide { aspect-ratio: 4 / 3; }
  .carousel-arrow { width: 38px; height: 38px; font-size: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; padding-block: 2.6rem 1.6rem; }
  .brand-text strong { font-size: 0.95rem; }
  .lang-switch { font-size: 0.8rem; padding: 0.25em 0.7em; }
  .floating-btns { bottom: 16px; }
  .float-btn { width: 50px; height: 50px; }
}

@media (max-width: 380px) {
  .brand-text small { display: none; }
  .header-inner { gap: 0.5rem; }
  .thumb { width: 78px; height: 56px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-track { transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
