/* Patna LPG Distributors - main stylesheet */

:root {
  --primary: #0a7d4b;
  --primary-dark: #06532f;
  --secondary: #0d6efd;
  --accent: #ff8a00;
  --text: #2b2b2b;
  --muted: #6b7280;
  --bg-light: #f4f8f6;
  --white: #ffffff;
  --border: #e6ebe8;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(10, 60, 40, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
  background: var(--white);
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top bar */
.top-bar {
  background: var(--primary-dark);
  color: var(--white);
  font-size: 13px;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a { color: var(--white); }
.top-bar a:hover { color: #cfe9da; }
.top-bar .top-contact { display: flex; gap: 20px; flex-wrap: wrap; }
.top-bar .top-contact span { display: inline-flex; align-items: center; gap: 6px; }
.top-bar img { width: 14px; height: 14px; filter: brightness(0) invert(1); }

/* Header / Nav */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--primary-dark);
  flex-shrink: 0;
}
.logo img { height: 44px; width: auto; border-radius: 6px; }

.nav-toggle {
  display: none;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--primary-dark);
  order: 3;
}

.main-nav { order: 2; flex: 1 1 auto; }
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 26px;
  margin: 0;
  padding: 0;
  justify-content: center;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  text-decoration: none;
}

.header-cta {
  background: var(--accent);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  order: 4;
}
.header-cta:hover { background: #e67c00; color: var(--white); text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 64px 0;
}
.hero .container {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-content { flex: 1 1 380px; }
.hero-content .eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.hero-content h1 { font-size: 38px; margin: 0 0 16px; line-height: 1.2; }
.hero-content p { font-size: 17px; margin-bottom: 28px; color: #eaf6ef; }
.hero-image {
  flex: 1 1 260px;
  text-align: center;
}
.hero-logo-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  display: inline-block;
  box-shadow: var(--shadow);
}
.hero-image img { max-width: 220px; margin: 0 auto; }

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: #e67c00; color: var(--white); text-decoration: none; }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary-dark); text-decoration: none; }
.btn-secondary { background: var(--white); color: var(--primary-dark); border-color: var(--white); }
.btn-secondary:hover { background: var(--bg-light); color: var(--primary-dark); text-decoration: none; }
.btn-group { display: flex; gap: 14px; flex-wrap: wrap; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-light); }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title .eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title h2 { font-size: 30px; margin: 0 0 10px; color: var(--primary-dark); }
.section-title p { color: var(--muted); max-width: 640px; margin: 0 auto; }

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 24px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(10,60,40,0.14); }
.product-card img {
  height: 220px;
  width: 100%;
  object-fit: contain;
  object-position: center;
  background: #f7faf8;
  border-radius: 8px;
  padding: 18px;
  margin: 0 auto 16px;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .product-card img {
    height: 180px;
    padding: 12px;
  }
}
.product-card h3 { margin: 0 0 6px; font-size: 20px; color: var(--primary-dark); }
.product-card .tag {
  display: inline-block;
  background: var(--bg-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.product-card p { margin: 0 0 16px; color: var(--muted); font-size: 14px; flex: 1; }
.product-card .btn { align-self: center; }

/* Why choose / features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 20px;
  text-align: center;
}
.feature-card .icon-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 26px;
  color: var(--primary);
}
.feature-card h3 { margin: 0 0 8px; font-size: 18px; color: var(--primary-dark); }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* About */
.about-content { display: flex; gap: 40px; flex-wrap: wrap; align-items: center; }
.about-content .about-text { flex: 1 1 360px; }
.about-content .about-image { flex: 1 1 260px; text-align: center; }
.about-image img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-text h2 { color: var(--primary-dark); margin-top: 0; }
.about-text p { color: var(--muted); }

.list-check { list-style: none; padding: 0; margin: 16px 0; }
.list-check li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--text);
}
.list-check li::before {
  content: "\2713";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Steps (new connection process) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 20px;
  position: relative;
}
.step-number {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 14px;
}
.step-card h3 { margin: 0 0 8px; font-size: 18px; color: var(--primary-dark); }
.step-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* Documents list */
.docs-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.docs-list li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.docs-list li::before {
  content: "\1F4C4";
  font-size: 18px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-card .icon-circle {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-card .icon-circle img { width: 22px; height: 22px; }
.contact-card h3 { margin: 0 0 6px; font-size: 17px; color: var(--primary-dark); }
.contact-card p, .contact-card a { margin: 0; color: var(--muted); }
.contact-card a { display: block; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  margin-top: 32px;
}
.contact-form h3 { margin: 0 0 20px; color: var(--primary-dark); }
.contact-form .form-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.contact-form .form-group { flex: 1 1 220px; }
.contact-form label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}
.contact-form textarea { min-height: 130px; resize: vertical; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
  padding: 56px 0;
}
.cta-banner h2 { margin: 0 0 12px; font-size: 28px; }
.cta-banner p { margin: 0 0 26px; color: #e9f5ee; }

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: #cfe6da;
  padding: 44px 0 22px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}
.footer-grid h3 { color: var(--white); margin: 0 0 14px; font-size: 17px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #cfe6da; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 18px;
  text-align: center;
  color: #a9c8b8;
  font-size: 13px;
}

/* Responsive nav (works without JS too, via checkbox-less fallback: nav stays visible by default on small screens unless toggled) */
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }

  .main-nav {
    flex-basis: 100%;
    order: 5;
    display: none;
  }
  .main-nav.open { display: block; }

  /* If JS is disabled, the toggle button is hidden via noscript styling
     and the nav remains visible (see .no-js rule below). */
  .no-js .main-nav { display: block; }
  .no-js .nav-toggle { display: none; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    justify-content: flex-start;
  }
  .main-nav li { border-top: 1px solid var(--border); }
  .main-nav a {
    display: block;
    padding: 12px 4px;
    border-bottom: none;
  }
  .main-nav a.active { background: var(--bg-light); }

  .site-header .container { flex-wrap: wrap; }
}

@media (max-width: 768px) {
  /* Hide the hero logo box on mobile — it stacks and makes the hero too tall */
  .hero-image { display: none; }

  .top-bar {
    font-size: 13px;
    padding: 6px 0;
  }
  .top-bar .container {
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .top-bar .top-contact {
    gap: 8px;
    align-items: flex-start;
  }

  .site-header .container {
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 10px;
  }

  .logo {
    font-size: 17px;
    line-height: 1.1;
    gap: 8px;
  }
  .logo img {
    height: 36px;
    width: auto;
  }

  .header-cta {
    padding: 8px 16px;
    font-size: 13px;
  }

  .hero {
    padding: 36px 0;
  }
  .hero-content h1 {
    font-size: 26px;
    line-height: 1.2;
  }
  .hero-content p {
    font-size: 15px;
    line-height: 1.5;
  }

  .section {
    padding: 36px 0;
  }
}

@media (max-width: 480px) {
  .top-bar {
    font-size: 12px;
    padding: 5px 0;
  }
  .top-bar .top-contact {
    flex-direction: column;
    gap: 4px;
  }

  .site-header .container {
    flex-wrap: wrap;
  }
  .logo {
    font-size: 16px;
  }
  .logo img {
    height: 32px;
  }

  .header-cta {
    padding: 7px 14px;
    font-size: 12px;
  }

  .hero {
    padding: 28px 0 32px;
  }
  .hero-content .eyebrow {
    font-size: 12px;
    padding: 5px 12px;
  }
  .hero-content h1 {
    font-size: 22px;
  }
  .hero-content p {
    font-size: 14px;
    line-height: 1.45;
  }

  .section {
    padding: 28px 0;
  }

  .product-card img {
    height: 180px;
    padding: 12px;
    object-fit: contain;
  }
}

/* ── Price table ── */
.price-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 16px;
}
.price-table thead tr {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
}
.price-table th,
.price-table td {
  padding: 16px 22px;
  text-align: left;
}
.price-table tbody tr:nth-child(even) { background: var(--bg-light); }
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody td:last-child {
  font-weight: 700;
  color: var(--primary-dark);
}

/* ── After-empty / refill info block ── */
.refill-info {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 5px solid var(--primary);
  border-radius: var(--radius);
  padding: 28px 30px;
  line-height: 1.75;
  color: var(--text);
  font-size: 15px;
  max-width: 820px;
  margin: 0 auto;
}
.refill-info p { margin: 0; }

/* ── WhatsApp floating button ── */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(37,211,102,0.45);
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover {
  background: #1ebe5d;
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37,211,102,0.55);
}
.whatsapp-float svg {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
  fill: var(--white);
}

@media (max-width: 600px) {
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    padding: 11px 14px;
    font-size: 13px;
  }
}
