/* =====================================================================
   SAKTHI GAS AGENCY - shared styles for every page
   Colours and sizes are set once in :root. Change them there.
   ===================================================================== */

:root {
  --navy: #12256e;      /* HP / Navya navy */
  --navy-d: #0b1849;    /* darker navy (footer, hover) */
  --red: #d3202a;       /* HP red */
  --red-d: #a9161f;     /* darker red (hover) */
  --yellow: #f7b500;    /* Navya yellow */
  --purple: #11005b;    /* "Book" buttons */
  --green: #178a43;     /* WhatsApp */
  --green-d: #0f6e34;
  --ink: #14213d;       /* main text */
  --muted: #566074;     /* grey text */
  --line: #e3e7ee;      /* thin borders */
  --soft: #f4f6fb;      /* light section background */
  --white: #ffffff;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(18, 37, 110, 0.10);
  --shadow-lg: 0 18px 44px rgba(18, 37, 110, 0.18);
  --font: 'Poppins', Arial, sans-serif;
  --wrap: 1160px;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; font-weight: 700; }
p { margin: 0 0 14px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 1000; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 26px;
  border: 2px solid transparent; border-radius: 999px;
  font: 600 16px/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-d); box-shadow: 0 8px 20px rgba(211, 32, 42, .35); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-d); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-d); box-shadow: 0 8px 20px rgba(23, 138, 67, .35); }
.btn-white { background: #fff; color: var(--red-d); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.link { font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ---- Top bar ---- */
.topbar { background: var(--navy-d); color: #dfe5f7; font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* ---- Header and menu ---- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.header.scrolled { box-shadow: 0 6px 20px rgba(18, 37, 110, .08); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand img { width: 190px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  position: relative; padding: 10px 12px; white-space: nowrap;
  color: var(--ink); font-weight: 500; font-size: 15px; text-decoration: none; border-radius: 10px;
}
.nav a:not(.btn):hover { color: var(--red); }
.nav a[aria-current="page"] { color: var(--red); font-weight: 600; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px;
  border-radius: 3px; background: var(--red);
}
.nav .tag {
  display: inline-block; margin-left: 4px; padding: 1px 7px; vertical-align: 2px;
  border-radius: 999px; background: var(--yellow); color: var(--navy);
  font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
}
.nav-cta { white-space: nowrap; margin-left: 10px; min-height: 42px; padding: 9px 20px; font-size: 15px; }
.menu-btn {
  display: none; width: 46px; height: 46px; padding: 11px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
}
.menu-btn span { display: block; height: 2.5px; margin: 4px 0; border-radius: 2px; background: var(--navy); transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---- Sections ---- */
.section { padding: 80px 0; }
.section.soft { background: var(--soft); }
.section.navy { background: var(--navy); color: #fff; }
.eyebrow {
  display: inline-block; margin-bottom: 10px;
  color: var(--red); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.section.navy .eyebrow { color: var(--yellow); }
.h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.lead { font-size: 18px; color: var(--muted); max-width: 680px; }
.section.navy .lead { color: #cfd7f2; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 44px; }

/* ---- Home hero ---- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--navy-d) url("/assets/img/office-front-desk.webp") center / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11, 24, 73, .95) 0%, rgba(18, 37, 110, .86) 45%, rgba(18, 37, 110, .35) 100%);
}
.hero-in {
  position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
  min-height: 600px; padding-top: 70px; padding-bottom: 90px;
}
.hero .pill {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: rgba(255, 255, 255, .1);
  font-size: 14px; font-weight: 500;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(247, 181, 0, .25); }
.hero h1 { font-size: clamp(36px, 5.4vw, 62px); font-weight: 800; line-height: 1.08; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p.lead { color: #dfe5f7; font-size: 19px; margin-bottom: 30px; }
.hero-card {
  justify-self: end; width: 100%; max-width: 360px; padding: 16px;
  border-radius: 24px; background: #fff; color: var(--ink); text-decoration: none;
  box-shadow: var(--shadow-lg); transform: rotate(2deg); transition: transform .3s;
}
.hero-card:hover { transform: rotate(0) translateY(-4px); }
.hero-card img { border-radius: 16px; }
.hero-card-txt { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 4px 2px; }
.hero-card-txt b { font-size: 17px; color: var(--navy); }
.hero-card-txt span { font-size: 13px; color: var(--muted); }
.hero-card-txt .arrow {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px;
  border-radius: 50%; background: var(--red); color: #fff; font-size: 20px;
}

/* ---- Stats bar (overlaps the hero) ---- */
.stats {
  position: relative; z-index: 2; margin-top: -56px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-radius: 22px; background: #fff; box-shadow: var(--shadow-lg); overflow: hidden;
}
.stat { padding: 26px 22px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; line-height: 1.1; color: var(--navy); }
.stat:nth-child(2) b { color: var(--red); }
.stat span { font-size: 14px; color: var(--muted); }

/* ---- Two-column split (text + picture) ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
.photo { position: relative; }
.photo img { border-radius: 24px; box-shadow: var(--shadow-lg); }
.photo .badge {
  position: absolute; left: -18px; bottom: -18px; padding: 16px 20px;
  border-radius: 18px; background: var(--red); color: #fff; box-shadow: var(--shadow);
  font-size: 14px; line-height: 1.3;
}
.photo .badge b { display: block; font-size: 30px; font-weight: 800; }
.checks { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 2px;
  display: grid; place-items: center; width: 22px; height: 22px;
  border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700;
}

/* ---- Cards (services, products) ---- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  box-shadow: 0 4px 14px rgba(18, 37, 110, .05);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-img.contain { position: relative; background: linear-gradient(160deg, #f7f9fd, #e9eef9); }
/* Whole product always visible inside the card (tall cylinders were cut off before) */
.card-img.contain img { position: absolute; inset: 18px; width: calc(100% - 36px); height: calc(100% - 36px); object-fit: contain; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.card h3 { font-size: 18px; color: var(--ink); }
.card p { font-size: 15px; color: var(--muted); }
.card .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.chip { padding: 3px 11px; border-radius: 999px; background: var(--soft); color: var(--navy); font-size: 13px; font-weight: 600; }
.card .more { margin-top: auto; }
.card-num {
  display: grid; place-items: center; width: 44px; height: 44px; margin: -42px 0 12px;
  position: relative; border: 4px solid #fff; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 800; font-size: 15px;
}

/* ---- Navya promo band ---- */
.promo {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  padding: 50px; border-radius: 30px;
  background: radial-gradient(circle at 85% 20%, rgba(247, 181, 0, .25), transparent 45%), linear-gradient(120deg, var(--navy-d), var(--navy));
  color: #fff; box-shadow: var(--shadow-lg);
}
.promo h2 { font-size: clamp(28px, 3.8vw, 44px); font-weight: 800; }
.promo p { color: #d6ddf5; }
.promo .price { display: flex; gap: 28px; margin: 22px 0 28px; }
.promo .price b { display: block; font-size: 30px; font-weight: 800; color: var(--yellow); line-height: 1.1; }
.promo .price span { font-size: 13px; color: #c3cdee; }
.promo img { border-radius: 22px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }

/* ---- Gallery ---- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: 16px; }
.gallery figure.wide { grid-column: span 2; }
.gallery figure.tall { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px;
  background: linear-gradient(transparent, rgba(11, 24, 73, .85)); color: #fff; font-size: 14px; font-weight: 500;
}

/* Gallery page: equal-size photos, 3 per row (2 on tablets, 1 on phones) */
.gallery.even { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; }
.gallery.even a { display: block; height: 100%; color: inherit; }
@media (max-width: 900px) { .gallery.even { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; } }
@media (max-width: 560px) { .gallery.even { grid-template-columns: 1fr; grid-auto-rows: 240px; } }

/* ---- Event pictures (shown whole, not cropped; tap to open full size) ---- */
.events { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; align-items: start; }
.events figure { margin: 0; }
.events a { display: block; }
.events img { width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow-lg); }
@media (max-width: 700px) { .events { grid-template-columns: 1fr; } }

/* ---- Call-to-action band ---- */
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 800; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #cfd7f2; }

/* ---- Inner page banner ---- */
.page-hero {
  position: relative; color: #fff; padding: 76px 0 70px;
  background: var(--navy) var(--bg, none) center / cover no-repeat;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11, 24, 73, .94), rgba(18, 37, 110, .72)); }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; margin-bottom: 10px; }
.page-hero p { color: #dfe5f7; font-size: 18px; max-width: 640px; margin: 0; }
.crumbs { margin-bottom: 14px; font-size: 14px; color: #b9c4ea; }
.crumbs a { color: #fff; text-decoration: none; }

/* ---- Timeline (About) ---- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.value .vi { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 16px; border-radius: 16px; background: var(--soft); font-size: 26px; }
.value h3 { font-size: 19px; }
.value p { color: var(--muted); margin: 0; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-list { display: grid; gap: 16px; }
.contact-item {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
a.contact-item:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.contact-item .ci { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--navy); color: #fff; font-size: 22px; }
.contact-item .ci .ico { width: 24px; height: 24px; }
.contact-item.wa .ci { background: var(--green); }
.contact-item.em .ci { background: var(--red); }
.contact-item b { display: block; font-size: 16px; }
.contact-item span { color: var(--muted); font-size: 15px; }
.form {
  display: grid; gap: 16px; padding: 32px;
  border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.form h2 { font-size: 26px; margin: 0; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form input, .form textarea, .form select {
  width: 100%; padding: 13px 15px; border: 1.5px solid #c9d0dc; border-radius: 12px;
  font: 400 16px var(--font); color: var(--ink); background: #fff;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--navy); border-color: var(--navy); }
.form .err { min-height: 1.2em; margin: 0; color: #b3261e; font-size: 14px; }
.form .note { margin: 0; font-size: 13px; color: var(--muted); }

/* ---- Safety strip + footer ---- */
.safety-strip { background: var(--red); color: #fff; }
.safety-in { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.safety-in strong { font-size: 18px; }
.safety-in span { flex: 1; min-width: 240px; }
.safety-in .btn { min-height: 44px; padding: 10px 22px; }
.footer { background: var(--navy-d); color: #c3cdee; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; padding-top: 60px; padding-bottom: 40px; }
.footer h2 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--yellow); }
.footer-logo { width: 74px; margin-bottom: 14px; border-radius: 10px; background: #fff; padding: 6px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: #8f9cc9;
}

/* ---- Floating WhatsApp ---- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: grid; place-items: center; width: 60px; height: 60px;
  border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float .ico { width: 32px; height: 32px; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25d366; animation: ring 2.4s ease-out infinite;
}
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* ---- Navya popup (home page) ---- */
.popup {
  position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px;
  background: rgba(8, 14, 40, .65); backdrop-filter: blur(3px);
}
.popup.open { display: flex; animation: fade .3s ease; }
.popup-box {
  position: relative; width: 100%; max-width: 420px; max-height: 92vh; overflow-y: auto;
  padding: 14px 20px 24px; border-radius: 20px; background: #fff; text-align: center;
  animation: pop .35s cubic-bezier(.2, 1.3, .5, 1);
}
.popup-top { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.popup-close {
  display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
  border: 0; border-radius: 50%; background: var(--navy); color: #fff; cursor: pointer;
}
.popup-close:hover, .popup-close:focus-visible { background: var(--red); }
.popup img { width: 100%; max-height: 52vh; object-fit: contain; border-radius: 12px; margin-bottom: 14px; }
.popup h2 { font-size: 22px; margin-bottom: 6px; }
.popup p { color: var(--muted); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.9) translateY(10px); } }

/* ---- Reveal on scroll (added by site.js) ---- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---- Tablet ---- */
@media (max-width: 1100px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 20px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 13px 12px; font-size: 16px; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { background: var(--soft); }
  .nav-cta { margin: 10px 0 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .section { padding: 60px 0; }
  .hero-in, .split, .promo, .contact-grid { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .hero-in { min-height: 0; padding-top: 50px; padding-bottom: 100px; }
  .hero-card { justify-self: start; transform: none; max-width: 320px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cards.three { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .promo { padding: 32px 24px; }
  .photo .badge { left: 12px; bottom: 12px; }
}

/* ---- Phone ---- */
@media (max-width: 600px) {
  .topbar-in span { display: none; }
  .topbar-in { justify-content: center; }
  .brand img { width: 150px; }
  .header-in { min-height: 66px; }
  .cards, .cards.three { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .gallery figure.wide { grid-column: span 2; }
  .gallery figure.tall { grid-row: span 1; }
  .hero p.lead { font-size: 17px; }
  .promo .price { gap: 20px; }
  .wa-float { right: 14px; bottom: 14px; width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
