/* Gnanadeepam Oil Industries - static site styles */

:root {
  --green: #3dad49;
  --green-dark: #2d8437;
  --ink: #23291f;
  --muted: #5c6b56;
  --paper: #ffffff;
  --cream: #f7f8f4;
  --border: #e2e6dd;
  --radius: 6px;
  --max-width: 1180px;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

html, body { overflow-x: clip; }

.site-top-bar {
  background: var(--green);
  color: #fff;
  font-size: 0.85rem;
}
.site-top-bar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 12px;
}
.site-top-bar a { color: #fff; }
.site-top-bar a:hover { text-decoration: none; opacity: 0.85; }
.site-top-bar .top-contacts {
  display: flex;
  gap: 20px;
  min-width: 0;
}
.site-top-bar .top-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.site-top-bar .top-socials { flex: none; }
.site-top-bar .top-socials a {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  margin-left: 6px;
  font-size: 0.8rem;
}

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
  position: relative;
}
.site-header .logo { flex: none; }
.site-header .logo img { height: 58px; width: auto; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--green-dark);
  border-bottom-color: var(--green);
  text-decoration: none;
}

/* Hamburger button (3 bars -> X) */
.nav-toggle {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Tablet / mobile: collapse the menu into a dropdown */
@media (max-width: 1100px) {
  .nav-toggle { display: block; }

  .site-header .wrap { padding-top: 10px; padding-bottom: 10px; }
  .site-header .logo img { height: 48px; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.3s ease, visibility 0s linear 0.3s;
  }
  .main-nav.open {
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    visibility: visible;
    transition: max-height 0.3s ease, visibility 0s;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 6px 0;
  }
  .main-nav li + li { border-top: 1px solid var(--border); }
  .main-nav a {
    padding: 14px 24px;
    border-bottom: none;
    border-left: 3px solid transparent;
    white-space: normal;
  }
  .main-nav a:hover,
  .main-nav a.active {
    background: var(--cream);
    border-left-color: var(--green);
  }
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .site-top-bar { font-size: 0.8rem; }
  .site-top-bar .wrap { padding-top: 6px; padding-bottom: 6px; }
  .site-top-bar .top-contacts { gap: 14px; }
  /* email is long - show just the icon on small phones, phone number stays */
  .site-top-bar .top-email .txt { display: none; }
  .site-header .logo img { height: 42px; }
  .main-nav a { padding: 14px 16px; }
}

/* Mobile: hide the green top bar (email / phone / facebook) */
@media (max-width: 767px) {
  .site-top-bar { display: none; }
}

/* ---------- Hero / slider ---------- */

.hero-slider {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 5; /* matches the 1600x500 banner images, so nothing gets cropped */
  background: var(--cream);
}
.hero-slider .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slider .slide.active { opacity: 1; }
.hero-slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #fff;
  background: rgba(255,255,255,0.4);
  padding: 0;
  cursor: pointer;
}
.hero-dots button.active { background: #fff; }

/* ---------- Page header (non-home pages) ---------- */

.page-banner {
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 46px 24px;
}
.page-banner h1 { margin: 0; font-size: clamp(1.4rem, 3vw, 2.2rem); }
@media (max-width: 600px) {
  .page-banner { padding: 30px 16px; }
  .section { padding: 40px 0; }
}

/* ---------- Section basics ---------- */

.section { padding: 56px 0; }
.section.alt { background: var(--cream); }
.section-heading {
  text-align: center;
  margin-bottom: 34px;
}
.section-heading .kicker-mark {
  height: 40px;
  margin: 0 auto 10px;
}
.section-heading h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin: 0;
  color: var(--ink);
}
.section-heading.left { text-align: left; }
.section-heading.left .kicker-mark { margin: 0 0 10px; }

.lede {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
}

/* ---------- Feature grid ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
@media (max-width: 800px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
.feature-card { text-align: center; }
.feature-card .icon-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.5rem;
}
.feature-card h3 { font-size: 1.02rem; margin: 0; }

/* ---------- Two column split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 11px 28px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--green-dark); color: #fff; text-decoration: none; }
.btn-center { text-align: center; margin-top: 16px; }

/* ---------- Product highlight cards (home) ---------- */

.product-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
@media (max-width: 760px) {
  .product-highlight { grid-template-columns: 1fr; }
}
.product-highlight .card {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.product-highlight .card img { margin: 0 auto 16px; max-height: 260px; object-fit: contain; }

/* ---------- Product package cards (Shop now / detail) ---------- */

.pack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
@media (max-width: 900px) {
  .pack-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pack-grid { grid-template-columns: 1fr; }
}
.pack-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.pack-card h3 { font-size: 1.02rem; margin: 0 0 2px; }
.pack-card .pack-size { font-size: 0.92rem; color: var(--muted); margin-bottom: 12px; }
.pack-card img {
  border: 1px solid var(--green);
  border-radius: 5px;
  margin: 0 auto 14px;
  max-height: 220px;
  object-fit: contain;
}
.pack-card .price-line { margin-bottom: 12px; font-size: 0.95rem; }
.pack-card .mrp { text-decoration: line-through; color: var(--muted); }
.pack-card .discount { color: var(--green-dark); font-weight: 700; }

/* ---------- About item list ---------- */

.about-item-list { list-style: none; padding: 0; margin: 0; }
.about-item-list li {
  padding: 6px 0 6px 22px;
  position: relative;
  color: var(--muted);
}
.about-item-list li::before {
  content: '\00bb';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ---------- Benefit row (image + text pairs) ---------- */

.benefit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 760px) {
  .benefit-row { grid-template-columns: 1fr; }
}
.benefit-block { text-align: left; }
.benefit-block img {
  border-radius: 50%;
  width: 140px;
  height: 140px;
  object-fit: cover;
  margin-bottom: 14px;
}
.benefit-block h3 { margin: 0 0 8px; font-size: 1.05rem; }
.benefit-block p { color: var(--muted); margin: 0; }

/* ---------- Contact page ---------- */

.contact-info-list { list-style: none; margin: 0; padding: 0; }
.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.contact-info-list .icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-map iframe {
  width: 100%;
  height: 350px;
  border: 0;
  border-radius: var(--radius);
}
.socials-row { display: flex; gap: 10px; margin-top: 18px; }
.socials-row a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

/* ---------- Terms page ---------- */

.terms-content h2 {
  font-size: 1.1rem;
  color: var(--green-dark);
  margin-top: 34px;
}
.terms-content ul { color: var(--muted); }
.terms-content li { margin-bottom: 10px; }

/* ---------- Footer ---------- */

.site-footer {
  background: #223021;
  color: #cfd8c9;
  padding: 46px 0 20px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h4 { color: #fff; margin-top: 0; font-size: 1rem; }
.site-footer a { color: #cfd8c9; }
.site-footer .footer-logo {
  height: 64px;
  width: auto;
  margin-bottom: 14px;
  background: #fff;          /* white card so the original colour logo shows clearly on the dark footer */
  padding: 8px 14px;
  border-radius: 8px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 16px;
  text-align: center;
  font-size: 0.85rem;
}
.footer-bottom a { color: #fff; }

/* ---------- Scroll reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
