/* =========================================================
   Om Sai Power Solution — style.css
   Mobile-first. Deep blue + energetic orange/amber.
   ========================================================= */

:root {
  --blue:        #0b3d91;   /* deep blue */
  --blue-dark:   #082b66;
  --blue-light:  #1657c4;
  --orange:      #ff7a00;   /* energetic orange */
  --amber:       #ffb400;
  --green:       #25d366;   /* WhatsApp */
  --green-dark:  #1da851;
  --ink:         #16202e;   /* dark text */
  --muted:       #5a6673;
  --line:        #e3e8ef;
  --bg:          #ffffff;
  --bg-alt:      #f4f7fb;
  --white:       #ffffff;
  --radius:      14px;
  --radius-sm:   10px;
  --shadow:      0 6px 22px rgba(11,61,145,.10);
  --shadow-lg:   0 14px 40px rgba(11,61,145,.16);
  --wrap:        1180px;
  --tap:         48px;      /* min tap target */
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 74px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1,h2,h3,h4 { line-height: 1.2; font-weight: 700; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }
.container-narrow { max-width: 820px; }
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 34px; }
.section-head h2 { font-size: clamp(1.5rem, 4.5vw, 2.15rem); color: var(--blue); }
.section-head h2::after {
  content: ""; display: block; width: 62px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--orange), var(--amber));
  margin: 12px auto 0;
}
.section-head p { color: var(--muted); margin-top: 12px; font-size: 1.02rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 18px;
  border-radius: 50px; font-weight: 600; font-size: .98rem; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-call { background: var(--orange); color: #fff; }
.btn-call:hover { background: #e56e00; box-shadow: 0 8px 20px rgba(255,122,0,.35); }
.btn-whatsapp { background: var(--green); color: #fff; }
.btn-whatsapp:hover { background: var(--green-dark); box-shadow: 0 8px 20px rgba(37,211,102,.35); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-light); box-shadow: 0 8px 20px rgba(11,61,145,.3); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 66px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; color: var(--blue); }
.logo-mark { color: var(--orange); display: inline-flex; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; font-size: 1.05rem; }
.logo-text span { font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: .5px; }

.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 8px 12px; border-radius: 8px; font-weight: 500;
  color: var(--ink); font-size: .95rem; transition: background .2s, color .2s;
}
.main-nav a:hover { background: var(--bg-alt); color: var(--blue); }

.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-cta .btn { padding: 0 14px; min-height: 42px; font-size: .9rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px; padding: 0 8px;
}
.nav-toggle span { height: 3px; width: 26px; background: var(--blue); border-radius: 3px; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(255,122,0,.18), transparent 60%),
    linear-gradient(135deg, var(--blue-dark), var(--blue) 55%, var(--blue-light));
  color: #fff; padding: 52px 0 60px; position: relative;
}
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 34px; align-items: center; }
.hero-eyebrow { font-weight: 600; color: var(--amber); margin-bottom: 10px; font-size: .95rem; }
.hero h1 { font-size: clamp(1.8rem, 6vw, 3rem); font-weight: 800; }
.hero-sub { margin: 16px 0 24px; font-size: 1.08rem; color: #dbe6fb; max-width: 620px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.trust-badges { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 26px; }
.trust-badges li { font-size: .9rem; font-weight: 500; color: #eaf1ff; }

.hero-media { position: relative; }
.hero-media img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  object-fit: cover; background: #0a2b63;
}
.hero-rating {
  position: absolute; bottom: -14px; left: 16px;
  background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 50px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 8px;
}
.hero-rating strong { color: var(--orange); font-size: 1.15rem; }
.hero-rating span { color: var(--muted); font-size: .85rem; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(255,122,0,.4); }
.service-icon {
  width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.6rem; background: linear-gradient(135deg, rgba(11,61,145,.1), rgba(255,122,0,.14)); margin-bottom: 14px;
}
.service-card h3 { font-size: 1.12rem; color: var(--blue); }
.service-card p { color: var(--muted); margin: 8px 0 16px; font-size: .95rem; flex: 1; }
.link-enquire { color: var(--orange); font-weight: 600; align-self: flex-start; min-height: 32px; display: inline-flex; align-items: center; }
.link-enquire:hover { color: #e56e00; text-decoration: underline; }

/* ---------- Capacity ---------- */
.capacity-grid { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: stretch; max-width: 980px; margin: 0 auto; }
.capacity-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 20px; text-align: center; box-shadow: var(--shadow); transition: transform .2s;
}
.capacity-card:hover { transform: translateY(-4px); }
.capacity-visual { font-size: 2.4rem; width: 80px; height: 80px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; }
.capacity-visual.small  { background: rgba(37,211,102,.14); }
.capacity-visual.medium { background: rgba(255,180,0,.18); }
.capacity-visual.large  { background: rgba(11,61,145,.12); }
.capacity-card h3 { color: var(--blue); font-size: 1.25rem; }
.capacity-card p { color: var(--ink); font-weight: 600; margin: 4px 0; }
.capacity-tag { color: var(--muted); font-size: .85rem; }
.capacity-arrow { display: none; align-self: center; color: var(--orange); font-size: 1.8rem; font-weight: 700; }
.capacity-note { text-align: center; margin-top: 22px; color: var(--muted); }
.capacity-note a { color: var(--blue); font-weight: 600; text-decoration: underline; }

/* ---------- Why Choose Us ---------- */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.why-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: flex-start;
  transition: transform .2s, box-shadow .2s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.why-icon { font-size: 1.7rem; line-height: 1; }
.why-card h3 { font-size: 1.05rem; color: var(--blue); }
.why-card p { color: var(--muted); font-size: .92rem; margin-top: 4px; }

/* ---------- How It Works ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 18px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px 22px; text-align: center; box-shadow: var(--shadow); position: relative;
}
.step-num {
  display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 12px;
  border-radius: 50%; background: linear-gradient(135deg, var(--orange), var(--amber));
  color: #fff; font-weight: 700; font-size: 1.2rem;
}
.step h3 { color: var(--blue); font-size: 1.05rem; }
.step p { color: var(--muted); font-size: .92rem; margin-top: 6px; }
.steps-note { text-align: center; margin-top: 24px; font-weight: 600; color: var(--ink); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery-item {
  position: relative; border: 0; padding: 0; cursor: pointer; overflow: hidden;
  border-radius: var(--radius); box-shadow: var(--shadow); background: #dfe6f1; aspect-ratio: 4/3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0; color: #fff; font-size: .82rem; font-weight: 600;
  padding: 20px 12px 8px; text-align: left;
  background: linear-gradient(transparent, rgba(8,43,102,.85));
}
.gallery-item:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(6,20,45,.92);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; cursor: pointer;
  width: 50px; height: 50px; border-radius: 50%; font-size: 1.6rem; display: grid; place-items: center;
  transition: background .2s;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.3); }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Reviews ---------- */
.rating-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 14px;
  background: #fff; border: 1px solid var(--line); padding: 10px 18px; border-radius: 50px; box-shadow: var(--shadow);
}
.rating-badge strong { color: var(--orange); font-size: 1.3rem; }
.rating-badge span { color: var(--muted); font-size: .88rem; }
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.review-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); border-left: 4px solid var(--orange);
}
.stars { color: var(--amber); letter-spacing: 2px; margin-bottom: 8px; }
.review-card p { color: var(--ink); font-style: italic; }
.review-card cite { display: block; margin-top: 12px; font-weight: 600; color: var(--blue); font-style: normal; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px 20px; font-size: 1.02rem; font-weight: 600; color: var(--blue); min-height: var(--tap);
}
.faq-q:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.faq-icon { font-size: 1.5rem; color: var(--orange); transition: transform .3s; flex: none; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 20px 18px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
.contact-info, .contact-form-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.info-row { display: flex; gap: 12px; margin-bottom: 16px; }
.info-icon { font-size: 1.3rem; }
.info-row strong { color: var(--blue); display: block; }
.info-row p { color: var(--muted); font-size: .95rem; }
.info-row a { color: var(--orange); font-weight: 600; }
.contact-btns { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.map-wrap { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.map-wrap iframe { display: block; }

/* Form */
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; color: var(--ink); }
.form-field label span { color: var(--orange); }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff; min-height: var(--tap);
  transition: border-color .2s, box-shadow .2s;
}
.enquiry-form textarea { min-height: 110px; resize: vertical; }
.enquiry-form input:focus, .enquiry-form select:focus, .enquiry-form textarea:focus {
  outline: 0; border-color: var(--blue-light); box-shadow: 0 0 0 3px rgba(22,87,196,.15);
}
.enquiry-form input.invalid, .enquiry-form textarea.invalid { border-color: #e23b3b; box-shadow: 0 0 0 3px rgba(226,59,59,.12); }
.form-status { margin-top: 12px; font-weight: 600; text-align: center; min-height: 22px; }
.form-status.success { color: var(--green-dark); }
.form-status.error { color: #e23b3b; }

/* ---------- Mobile Action Bar ---------- */
.mobile-bar { display: none; }
.mobile-bar-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; color: #fff; font-weight: 600; font-size: 1rem;
}
.mobile-bar-btn.call { background: var(--orange); }
.mobile-bar-btn.whatsapp { background: var(--green); }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-dark); color: #d6e2fb; padding-top: 46px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 26px; padding-bottom: 30px; }
.footer-logo { color: #fff; margin-bottom: 12px; }
.footer-logo .logo-text span { color: #aebfe0; }
.footer-blurb { font-size: .92rem; color: #b8c8ea; max-width: 320px; }
.footer-rating { margin-top: 10px; font-weight: 600; color: var(--amber); }
.footer-col h4 { color: #fff; margin-bottom: 14px; font-size: 1.05rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a:hover { color: var(--amber); }
.footer-col p { font-size: .92rem; margin-bottom: 8px; color: #b8c8ea; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; }
.footer-bottom .container { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; }
.footer-bottom p { font-size: .85rem; color: #a8bade; }
.credit strong { color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */

/* >= 480px : 2-col services & why */
@media (min-width: 480px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

/* >= 768px : tablet */
@media (min-width: 768px) {
  .section { padding: 72px 0; }
  .hero { padding: 70px 0 80px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .capacity-grid { grid-template-columns: 1fr auto 1fr auto 1fr; }
  .capacity-arrow { display: block; }
  .footer-grid { grid-template-columns: 2fr 1fr 1.4fr; }
  .footer-bottom .container { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* >= 1024px : desktop */
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1.15fr .85fr; gap: 48px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile nav behaviour (< 900px) */
@media (max-width: 899px) {
  .main-nav {
    position: fixed; top: 66px; right: 0; width: min(280px, 82vw); height: calc(100vh - 66px);
    background: #fff; box-shadow: -8px 0 30px rgba(0,0,0,.14);
    transform: translateX(100%); transition: transform .3s ease; padding: 18px; overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-toggle { display: flex; }
  .nav-cta .btn .btn-label { display: none; }   /* icon-only compact buttons on mobile */
  .nav-cta .btn { padding: 0 12px; min-width: 42px; }
}

/* Show mobile action bar only on small screens */
@media (max-width: 767px) {
  .mobile-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1500;
    box-shadow: 0 -4px 16px rgba(0,0,0,.18);
  }
  body { padding-bottom: 56px; }  /* space so footer isn't hidden behind bar */
  .hero-rating { left: 50%; transform: translateX(-50%); }
}

/* Larger desktop nav labels back */
@media (min-width: 900px) {
  .nav-cta .btn .btn-label { display: inline; }
}
