/* Murali Enterprises - HP Gas distributor site
   Palette follows HP Gas brand cues: deep blue, HP red, flame amber on white. */

/* Colours sampled directly from the official HP Gas logo artwork. */
:root {
  --blue: #012967;
  --blue-mid: #0B4EA2;
  --blue-tint: #E7EDF6;
  --red: #E30D18;
  --red-dark: #AF0912;
  --amber: #F5A623;
  --ink: #1B2430;
  --muted: #5C6B7A;
  --line: #DCE3EC;
  --bg: #FFFFFF;
  --bg-soft: #F5F7FB;
  --radius: 14px;
  --shadow: 0 2px 8px rgba(0, 47, 108, .07), 0 12px 28px rgba(0, 47, 108, .07);
  --wrap: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }

a { color: var(--blue-mid); }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; color: var(--blue); }
h1 { font-size: clamp(1.75rem, 4.2vw, 2.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 2rem); margin-inline: auto; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }

.pending {
  color: var(--muted);
  font-style: italic;
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 0 .4em;
  font-size: .92em;
}

.skip {
  position: absolute; left: -999px;
  background: var(--blue); color: #fff; padding: .6rem 1rem; z-index: 200;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Emergency bar ---------- */
.emergency-bar {
  background: var(--red);
  color: #fff;
  font-size: .9rem;
  padding: .45rem 0;
}
.emergency-bar .wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
  justify-content: center; text-align: center;
}
.emergency-bar a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.emergency-bar .pending { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.5); color: #fff; }
.em-sep { opacity: .6; }
.pulse {
  width: 9px; height: 9px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,.8);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.head-inner { display: flex; align-items: center; gap: 1rem; padding: .6rem 0; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: inherit; margin-right: auto; }
.brand img { display: block; }
.brand-name { display: block; font-weight: 800; color: var(--blue); font-size: 1.12rem; letter-spacing: -.01em; }
.brand-sub { display: block; font-size: .76rem; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  padding: .55rem .8rem; border-radius: 8px; text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: .95rem;
}
.nav a:hover { background: var(--blue-tint); color: var(--blue); }
.nav a.active { color: var(--blue); box-shadow: inset 0 -3px 0 var(--red); border-radius: 8px 8px 0 0; }
.nav-cta { margin-left: .5rem; }

.nav-toggle {
  display: none; width: 44px; height: 40px; border: 1px solid var(--line);
  background: #fff; border-radius: 8px; cursor: pointer; padding: 9px 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--blue); margin: 4px 0; border-radius: 2px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: 100% 0 auto 0; background: #fff;
    flex-direction: column; align-items: stretch; gap: 0;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none; padding: .5rem 1rem 1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem .5rem; border-bottom: 1px solid var(--line); }
  .nav a.active { box-shadow: none; border-left: 3px solid var(--red); padding-left: .8rem; }
  .nav-cta { margin: .6rem 0 0; text-align: center; border-bottom: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.25rem; border-radius: 10px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-mid); }
.btn-ghost { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-ghost:hover { background: var(--blue-tint); }
.btn-wa { background: #25D366; color: #06331a; }
.btn-wa:hover { background: #1eb85a; }
.btn-lg { padding: .95rem 1.6rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 420px at 88% -10%, rgba(227,30,36,.22), transparent 60%),
    linear-gradient(160deg, var(--blue) 0%, #013F8C 55%, #0B4EA2 100%);
  color: #fff; padding: 3rem 0 3.4rem;
}
.hero h1 { color: #fff; margin-bottom: .5rem; }
.hero p.lede { font-size: 1.1rem; color: #DCE7F6; max-width: 58ch; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.hero-note { margin-top: 1.1rem; font-size: .9rem; color: #BFD3EC; }
.hero-card {
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius); padding: 1.3rem; backdrop-filter: blur(4px);
}
.hero-card h3 { color: #fff; margin-bottom: .8rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.hero-card ul { margin: 0; padding-left: 1.1rem; color: #E4EDFA; }
.hero-card li { margin-bottom: .45rem; }
.hero-card .pending { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); color: #fff; }
.hero-card a { color: #fff; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
section.band { padding: 3rem 0; }
section.band.soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.sec-head { max-width: 62ch; margin-bottom: 1.8rem; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .09em;
  text-transform: uppercase; color: var(--red); margin-bottom: .4rem;
}

.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .35rem; }
.card p:last-child { margin-bottom: 0; }
.card .ico {
  width: 44px; height: 44px; border-radius: 11px; background: var(--blue-tint);
  display: grid; place-items: center; font-size: 1.35rem; margin-bottom: .8rem;
}
.card.accent { border-top: 4px solid var(--red); }

/* ---------- Composite cylinder feature ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center;
  background: linear-gradient(135deg, #fff, var(--blue-tint));
  border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem;
}
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } }
.badge {
  display: inline-block; background: var(--red); color: #fff; font-weight: 800;
  font-size: .75rem; letter-spacing: .07em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px; margin-bottom: .6rem;
}
.ticks { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.ticks li { padding-left: 1.8rem; position: relative; margin-bottom: .5rem; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: #fff; background: var(--red); width: 1.25rem; height: 1.25rem;
  border-radius: 50%; font-size: .78rem; display: grid; place-items: center;
}

/* ---------- Updates ---------- */
.update {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue);
  border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; box-shadow: var(--shadow);
}
.update.pinned { border-left-color: var(--red); }
.update-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .5rem; }
.tag {
  background: var(--blue-tint); color: var(--blue); font-size: .74rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em; padding: .22rem .6rem; border-radius: 999px;
}
.tag.hot { background: #FDE7E8; color: var(--red-dark); }
.update h3 { margin-bottom: .3rem; }
.update ul { margin: 0 0 1em; padding-left: 1.2rem; }
.update-date { font-size: .85rem; color: var(--muted); }

/* ---------- Steps ---------- */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps li {
  counter-increment: s; position: relative; padding: 1rem 1rem 1rem 3.6rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.steps li::before {
  content: counter(s); position: absolute; left: 1rem; top: 1rem;
  width: 2rem; height: 2rem; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.steps strong { display: block; color: var(--blue); }

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; font-size: .93rem; color: var(--blue); }
.field .hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .85rem; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: inherit; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid rgba(11,78,162,.2); border-color: var(--blue-mid);
}
.field textarea { min-height: 130px; resize: vertical; }
.req { color: var(--red); }
.hp-field { position: absolute; left: -9999px; }

.alert { border-radius: 10px; padding: .9rem 1.1rem; margin-bottom: 1.2rem; border: 1px solid; }
.alert-ok { background: #E8F7EE; border-color: #9BD8B4; color: #14603A; }
.alert-err { background: #FDECEC; border-color: #F0A9AC; color: #8E1418; }
.alert ul { margin: .4rem 0 0; padding-left: 1.1rem; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: .9rem 0; border-bottom: 1px solid var(--line);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: var(--blue-tint); display: grid; place-items: center; font-size: 1.15rem; }
.contact-list strong { display: block; color: var(--blue); font-size: .95rem; }

.danger-box { background: #FDECEC; border: 1px solid #F0A9AC; border-left: 5px solid var(--red); border-radius: var(--radius); padding: 1.2rem; }
.danger-box h3 { color: var(--red-dark); }

.map-embed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Misc ---------- */
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { margin-bottom: .4rem; }

.faq { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: .7rem; }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; color: var(--blue); }
.faq[open] summary { border-bottom: 1px solid var(--line); }
.faq .faq-body { padding: 1rem 1.2rem; }

.cta-strip {
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  color: #fff; border-radius: 18px; padding: 2rem; text-align: center;
}
.cta-strip h2 { color: #fff; }
.cta-strip p { color: #D8E5F6; max-width: 55ch; margin-inline: auto; }
.cta-strip .hero-actions { justify-content: center; }
.cta-strip.with-mascot {
  display: grid; grid-template-columns: 190px 1fr; gap: 1.5rem;
  align-items: center; text-align: left;
}
.cta-strip.with-mascot p { margin-inline: 0; }
.cta-strip.with-mascot .hero-actions { justify-content: flex-start; }
.cta-strip .mascot { max-height: 230px; width: auto; margin-inline: auto; display: block; }
@media (max-width: 700px) {
  .cta-strip.with-mascot { grid-template-columns: 1fr; text-align: center; }
  .cta-strip.with-mascot p { margin-inline: auto; }
  .cta-strip.with-mascot .hero-actions { justify-content: center; }
  .cta-strip .mascot { max-height: 170px; }
}

/* ---------- Footer ---------- */
.site-foot { background: var(--blue); color: #C9D8EC; margin-top: 3rem; padding: 2.5rem 0 1.5rem; }
.site-foot h3 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; }
.site-foot a { color: #fff; }
.site-foot .pending { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); color: #E3ECF8; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand { display: flex; gap: .8rem; align-items: center; margin-bottom: .8rem; color: #fff; }
/* The HP Gas mark is navy, so it needs a white plate on the dark footer. */
.logo-plate {
  background: #fff; border-radius: 10px; padding: .45rem .6rem;
  display: inline-flex; align-items: center; flex: 0 0 auto;
}
.foot-bottom { border-top: 1px solid rgba(255,255,255,.18); margin-top: 2rem; padding-top: 1.2rem; }
.foot-bottom p { margin: 0 0 .5rem; font-size: .88rem; }
.site-foot .muted { color: #9FB6D4; }

/* ---------- Mobile sticky action bar ---------- */
.mobile-bar { display: none; }
@media (max-width: 720px) {
  body { padding-bottom: 64px; }
  .mobile-bar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 120;
    background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(0,47,108,.12);
  }
  .mobile-bar a {
    padding: 1rem .5rem; text-align: center; font-weight: 800; text-decoration: none; font-size: .95rem;
  }
  .mb-call { color: var(--blue); }
  .mb-wa { color: #128C4B; border-inline: 1px solid var(--line); }
  .mb-book { color: var(--red); }
}

/* ---------- Admin ---------- */
.admin-body { background: var(--bg-soft); }
.admin-head { background: var(--blue); color: #fff; padding: .9rem 0; }
.admin-head .wrap { display: flex; align-items: center; gap: 1rem; }
.admin-head a { color: #fff; text-decoration: none; font-weight: 600; }
.admin-head .spacer { margin-left: auto; }
.admin-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.5rem 0 1rem; }
.admin-tabs a { padding: .55rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.admin-tabs a.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.admin-list { list-style: none; padding: 0; margin: 0; }
.admin-list li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1rem; margin-bottom: .7rem; }
.row-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.row-actions form { display: inline; }
.btn-sm { padding: .4rem .8rem; font-size: .85rem; border-radius: 8px; }
.login-wrap { max-width: 420px; margin: 4rem auto; }
table.enq { width: 100%; border-collapse: collapse; background: #fff; }
table.enq th, table.enq td { border: 1px solid var(--line); padding: .6rem .7rem; text-align: left; vertical-align: top; font-size: .92rem; }
table.enq th { background: var(--blue-tint); color: var(--blue); }

@media print {
  .emergency-bar, .nav, .mobile-bar, .nav-toggle { display: none !important; }
}
