/* =========================================
   Pawan Services – Landing Page Styles
   ========================================= */

:root {
  --primary: #0b4f9c;
  --primary-dark: #083a73;
  --accent: #ff7a1a;
  --accent-dark: #e5640a;
  --whatsapp: #25d366;
  --text: #1d2533;
  --muted: #5d6879;
  --bg: #ffffff;
  --bg-alt: #f3f7fc;
  --border: #e2e8f1;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 79, 156, 0.10);
  --shadow-lg: 0 20px 50px rgba(11, 79, 156, 0.18);
  --header-h: 72px;
  --transition: 0.3s ease;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
address { font-style: normal; }

.container { width: min(1180px, 92%); margin-inline: auto; }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; }

.text-accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 50px;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 0.9rem 1.8rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(255, 122, 26, 0.35); }
.btn--primary:hover { background: var(--accent-dark); }

.btn--outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn--outline:hover { background: var(--primary); color: #fff; }

.btn--light { background: #fff; color: var(--primary); }
.btn--light:hover { background: #eaf2fc; }

.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--whatsapp:hover { background: #1ebe5a; }

/* ---------- Top bar ---------- */
.topbar { background: var(--primary-dark); color: #d7e5f7; font-size: 0.85rem; }
.topbar__inner { display: flex; gap: 1.5rem; justify-content: flex-end; padding: 0.45rem 0; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 0.4rem; transition: color var(--transition); }
.topbar__item svg { width: 15px; height: 15px; fill: var(--accent); }
a.topbar__item:hover { color: #fff; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.header.scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07); border-color: var(--border); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.logo__mark {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), #1d7be0);
}
.logo__mark svg { width: 22px; height: 22px; fill: #fff; }
.logo__text { font-size: 1.35rem; font-weight: 500; color: var(--primary); letter-spacing: -0.3px; }
.logo__text strong { color: var(--accent); font-weight: 800; margin-left: 2px; }
.logo--light .logo__text { color: #fff; }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav__link { font-weight: 500; font-size: 0.95rem; position: relative; padding: 0.3rem 0; transition: color var(--transition); }
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--accent);
  transition: width var(--transition);
}
.nav__link:hover, .nav__link.active { color: var(--primary); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; padding: 8px; }
.nav-toggle span { display: block; height: 2px; background: var(--primary); margin: 5px 0; border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 6rem;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 122, 26, 0.12), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(11, 79, 156, 0.12), transparent 45%),
    var(--bg-alt);
}
.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }

.badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  background: rgba(11, 79, 156, 0.1);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; color: var(--primary-dark); margin-bottom: 1.2rem; }
.hero__lead { font-size: 1.08rem; color: var(--muted); max-width: 540px; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero__points { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.hero__points li { position: relative; padding-left: 1.6rem; font-weight: 500; font-size: 0.95rem; }
.hero__points li::before {
  content: "✓";
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 0.7rem; display: grid; place-items: center;
}

.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__image {
  position: relative;
  width: 100%;
  max-width: 520px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
}
.hero__image img { width: 100%; height: 460px; object-fit: cover; object-position: 35% center; }
.hero__stats-card {
  position: absolute;
  left: -20px;
  bottom: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  background: #fff;
  padding: 1rem 1.4rem;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}
.hero__stats-card strong { display: block; font-size: 1.7rem; line-height: 1.1; color: var(--accent); font-weight: 800; }
.hero__stats-card span { font-size: 0.78rem; color: var(--muted); }

.hero__float {
  position: absolute;
  background: #fff;
  padding: 0.65rem 1.1rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  animation: float 4s ease-in-out infinite;
}
.hero__float--1 { top: 24px; left: -10px; color: var(--primary); }
.hero__float--2 { top: 50%; right: -14px; color: var(--accent-dark); animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 3.2rem; }
.section__head p { color: var(--muted); margin-top: 0.8rem; }
.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.section h2 { color: var(--primary-dark); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about__media { position: relative; padding: 0 3rem 3rem 0; }
.about__img { border-radius: 22px; object-fit: cover; box-shadow: var(--shadow-lg); }
.about__img--main { width: 100%; height: 420px; }
.about__img--small {
  position: absolute;
  right: 0; bottom: 0;
  width: 48%; height: 200px;
  border: 6px solid #fff;
}
.about__badge {
  position: absolute;
  top: 24px; left: -18px;
  background: var(--accent);
  color: #fff;
  border-radius: 18px;
  padding: 1rem 1.3rem;
  display: flex; align-items: center; gap: 0.7rem;
  box-shadow: 0 12px 28px rgba(255, 122, 26, 0.4);
}
.about__badge strong { font-size: 2rem; font-weight: 800; line-height: 1; }
.about__badge span { font-size: 0.8rem; line-height: 1.3; font-weight: 500; }
.about__content h2 { margin-bottom: 1.1rem; }
.about__content > p { color: var(--muted); margin-bottom: 1rem; }
.about__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 1.4rem; margin: 1.6rem 0 2rem; }
.about__list li { position: relative; padding-left: 1.8rem; font-weight: 500; font-size: 0.95rem; }
.about__list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0.15rem;
  width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: rgba(11, 79, 156, 0.1); color: var(--primary);
  font-size: 0.72rem; font-weight: 700;
  display: grid; place-items: center;
}

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.service-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(11, 79, 156, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card__media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; }
.service-card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8, 58, 115, 0.35), transparent 55%);
}
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.service-card:hover .service-card__media img { transform: scale(1.08); }
.service-card__body { padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { margin-bottom: 0.5rem; color: var(--primary-dark); }
.service-card p { color: var(--muted); font-size: 0.9rem; flex: 1; }
.service-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 1.2rem; }
.btn--sm { padding: 0.6rem 0.6rem; font-size: 0.82rem; gap: 0.35rem; }
.btn--sm svg { width: 15px; height: 15px; }
.service-card__actions .btn--outline { border-width: 1.5px; }
.service-card__actions .btn--primary { box-shadow: 0 6px 14px rgba(255, 122, 26, 0.3); }

.service-card--cta {
  background: linear-gradient(135deg, var(--primary), #1d7be0);
  color: #fff;
  padding: 1.8rem 1.5rem;
  justify-content: center;
}
.service-card--cta h3 { color: #fff; font-size: 1.3rem; }
.service-card--cta p { color: #d7e5f7; margin-bottom: 1.2rem; flex: 0; }
.service-card--cta .btn { align-self: flex-start; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.feature {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.feature:hover { transform: translateY(-5px); }
.feature__icon {
  width: 60px; height: 60px; margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: rgba(255, 122, 26, 0.12);
  display: grid; place-items: center;
}
.feature__icon svg { width: 28px; height: 28px; fill: var(--accent); }
.feature h3 { margin-bottom: 0.5rem; color: var(--primary-dark); }
.feature p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; position: relative; }
.steps::before {
  content: "";
  position: absolute;
  top: 32px; left: 16%; right: 16%;
  border-top: 2px dashed var(--border);
  z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; }
.step__num {
  width: 64px; height: 64px; margin: 0 auto 1.2rem;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.5rem; font-weight: 800;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 0 0 8px #fff, 0 0 0 10px rgba(11, 79, 156, 0.15);
}
.step h3 { margin-bottom: 0.5rem; color: var(--primary-dark); }
.step p { color: var(--muted); font-size: 0.95rem; max-width: 300px; margin: 0 auto; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--primary-dark), var(--primary) 60%, #1d7be0); color: #fff; padding: 3.5rem 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); color: #fff; }
.cta-band p { color: #d7e5f7; margin-top: 0.4rem; }
.cta-band__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: stretch; }
.contact__info > p { color: var(--muted); margin: 0.8rem 0 2rem; }
.contact__list { display: grid; gap: 1.2rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__icon {
  flex-shrink: 0;
  width: 50px; height: 50px;
  border-radius: 12px;
  background: rgba(11, 79, 156, 0.08);
  display: grid; place-items: center;
}
.contact__icon svg { width: 22px; height: 22px; fill: var(--primary); }
.contact__list small { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 600; }
.contact__list a, .contact__list address { font-weight: 500; color: var(--text); }
.contact__list a:hover { color: var(--accent); }

.contact__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

.map { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); min-height: 380px; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ---------- Footer ---------- */
.footer { background: #0a1f3a; color: #b6c4d8; padding-top: 4rem; font-size: 0.92rem; }
.footer__inner { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__col p { margin-top: 1rem; max-width: 280px; }
.footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1.1rem; }
.footer ul { display: grid; gap: 0.55rem; }
.footer a { transition: color var(--transition); }
.footer a:hover { color: var(--accent); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 1.2rem 0; text-align: center; font-size: 0.85rem; }

/* ---------- Floating buttons ---------- */
.floating { position: fixed; right: 20px; bottom: 20px; display: grid; gap: 12px; z-index: 90; }
.floating__btn {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition);
}
.floating__btn:hover { transform: scale(1.08); }
.floating__btn svg { width: 26px; height: 26px; fill: currentColor; }
.floating__btn--wa { background: var(--whatsapp); }
.floating__btn--call { background: var(--accent); animation: pulse 2s infinite; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 122, 26, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(255, 122, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 122, 26, 0); }
}

.back-to-top {
  position: fixed; left: 20px; bottom: 20px;
  width: 46px; height: 46px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: var(--primary); color: #fff;
  font-size: 1.2rem; font-weight: 700;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 90;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Enquiry popup ---------- */
.popup {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.popup.open { opacity: 1; visibility: visible; }
.popup__overlay { position: absolute; inset: 0; background: rgba(8, 25, 50, 0.65); backdrop-filter: blur(3px); }
.popup__box {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  padding: 2.2rem 2rem 1.6rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
  border-top: 5px solid var(--accent);
  transform: translateY(30px) scale(0.96);
  transition: transform 0.35s ease;
}
.popup.open .popup__box { transform: none; }
.popup__close {
  position: absolute;
  top: 12px; right: 14px;
  width: 36px; height: 36px;
  border: 0; border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text);
  font-size: 1.6rem; line-height: 1;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.popup__close:hover { background: var(--accent); color: #fff; }
.popup__head { text-align: center; margin-bottom: 1.4rem; }
.popup__icon {
  display: grid; place-items: center;
  width: 58px; height: 58px; margin: 0 auto 0.9rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), #1d7be0);
}
.popup__icon svg { width: 28px; height: 28px; fill: #fff; }
.popup__head h3 { font-size: 1.35rem; color: var(--primary-dark); margin-bottom: 0.3rem; }
.popup__head p { color: var(--muted); font-size: 0.92rem; }
.popup__form .form-group { display: grid; gap: 0.9rem; margin-bottom: 1.1rem; }
.popup__form .form-control {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--text);
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.popup__form .form-control:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(11, 79, 156, 0.1); }
.popup__note { text-align: center; font-size: 0.85rem; color: var(--muted); margin-top: 1rem; }
.popup__note a { color: var(--accent); font-weight: 600; }
body.popup-open { overflow: hidden; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 1rem 4% 1.5rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }
  .nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__link { padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 1rem; }

  .hero { padding: 3.5rem 0 4.5rem; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero__points { justify-content: center; }
  .hero__visual { margin-top: 1.5rem; }
  .hero__image img { height: 380px; }
  .hero__stats-card { left: 50%; transform: translateX(-50%); bottom: -30px; }
  .about { grid-template-columns: 1fr; gap: 3rem; }

  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .contact { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; text-align: center; }
  .cta-band__actions { justify-content: center; }
}

@media (max-width: 560px) {
  .topbar__hide-sm { display: none; }
  .topbar__inner { justify-content: center; gap: 1rem; font-size: 0.78rem; }
  .section { padding: 4rem 0; }
  .services, .features, .footer__inner { grid-template-columns: 1fr; }
  .hero__float { display: none; }
  .hero__image img { height: 300px; }
  .hero__stats-card { position: static; transform: none; margin-top: 1rem; }
  .hero__visual { flex-direction: column; align-items: center; }
  .about__media { padding: 0 1.5rem 2rem 0; }
  .about__img--main { height: 300px; }
  .about__img--small { height: 140px; }
  .about__badge { left: -6px; }
  .about__list { grid-template-columns: 1fr; }
  .map, .map iframe { min-height: 300px; }
  .hero__actions .btn { width: 100%; }
}
