/* Shape rule: actions and inputs 6px, panels 10px. One accent: orange. Cool greys only. */
:root {
  --navy: #12263f;
  --navy-2: #1d3a5c;
  --orange: #e8710a;
  --orange-ink: #b85a06;
  --ink: #14202e;
  --grey: #546474;
  --line: #d3dbe3;
  --paper: #f4f6f8;
  --white: #fff;
  --head: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --r-sm: 6px;
  --r-md: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font: 400 1.0625rem/1.6 var(--body); color: var(--ink); background: var(--paper); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
section { padding: clamp(56px, 8vw, 96px) 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-sm); border: 2px solid var(--orange);
  background: var(--orange); color: var(--white); font: 600 1rem var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .12s ease-out, transform .12s ease-out;
}
.btn:hover { background: var(--orange-ink); border-color: var(--orange-ink); }
.btn:active { transform: scale(.97); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: var(--white); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .95rem; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: var(--navy); color: var(--white); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.2rem var(--head); }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a:not(.btn) { text-decoration: none; opacity: .85; }
.top { transition: box-shadow .2s ease-out; }
.top.is-scrolled { box-shadow: 0 6px 20px rgba(18,38,63,.25); }
.nav a:not(.btn) { position: relative; padding: 4px 0; transition: opacity .15s ease-out; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: left; transition: transform .25s cubic-bezier(.23,1,.32,1); }
.nav a:not(.btn):hover, .nav a[aria-current] { opacity: 1; }
.nav a:not(.btn):hover::after, .nav a[aria-current]::after { transform: scaleX(1); }

/* Scroll reveal: classes added by script.js, so without JS everything stays visible */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease-out, transform .6s cubic-bezier(.23,1,.32,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* Hero */
.hero { background: var(--navy); color: var(--white); padding-top: clamp(40px, 6vw, 80px); }
.hero__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 16ch; }
.lead { margin-top: 20px; font-size: 1.15rem; color: #c9d4e0; max-width: 54ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hours { margin-top: 16px; font-size: .95rem; color: #9fb0c3; }

.schematic { margin: 0; }
.schematic svg { width: 100%; height: auto; display: block; }
.pipe { fill: none; stroke: var(--orange); stroke-width: 6; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 1400; stroke-dashoffset: 0; animation: flow 1.6s cubic-bezier(.23,1,.32,1) .2s both; }
.sch-equip { fill: var(--navy-2); stroke: #6f87a3; stroke-width: 2; }
.gauge, .needle { fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; }
.needle { transform-origin: 190px 84px; animation: needle 1.4s cubic-bezier(.23,1,.32,1) 1.2s both; }
.sch-label { fill: #9fb0c3; font: 500 13px var(--body); }
/* Gas flowing inside the pipe, starts once the pipe is drawn */
.gas { fill: none; stroke: #ffd2a6; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 3 15;
  opacity: 0; animation: gas-in .4s 1.6s forwards, gas 1.2s linear 1.6s infinite; }
.flames path { fill: var(--orange); transform-box: fill-box; transform-origin: 50% 100%;
  opacity: 0; animation: flame-in .3s ease-out 2s forwards, flicker .9s ease-in-out 2.3s infinite alternate; }
.flames path:nth-child(even) { animation-delay: 2.1s, 2.5s; animation-duration: .3s, .7s; }
@keyframes flow { from { stroke-dashoffset: 1400; } }
@keyframes gas { to { stroke-dashoffset: -18; } }
@keyframes gas-in { to { opacity: .9; } }
@keyframes needle { from { transform: rotate(-80deg); } 60% { transform: rotate(55deg); } to { transform: rotate(40deg); } }
@keyframes flame-in { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }
@keyframes flicker { from { transform: scale(1, 1); } to { transform: scale(.85, 1.15); } }

/* Hero text entrance */
.hero__text > * { animation: rise .7s cubic-bezier(.23,1,.32,1) both; }
.hero__text > :nth-child(2) { animation-delay: .1s; }
.hero__text > :nth-child(3) { animation-delay: .2s; }
.hero__text > :nth-child(4) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* Segments */
.seg-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.seg { grid-column: span 2; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.seg--main { grid-column: span 3; border-top: 4px solid var(--orange); padding: 32px; }
.seg--main h3 { font-size: 1.6rem; }
.seg p { margin-top: 10px; color: var(--grey); }
.seg { transition: transform .2s cubic-bezier(.23,1,.32,1), border-color .2s, box-shadow .2s, opacity .6s ease-out; }
.seg:hover { transform: translateY(-4px); border-color: #aebccb; box-shadow: 0 10px 24px rgba(18,38,63,.08); }

/* Services */
.services { background: var(--white); }
.svc-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.svc-list div { padding: 20px 0; border-top: 1px solid var(--line); }
.svc-list dt { font: 600 1.25rem var(--head); }
.svc-list dd { margin: 6px 0 0; color: var(--grey); max-width: 52ch; }

/* Process: a pipe with five valves */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 19px; left: 20px; right: 20px; height: 6px; background: var(--orange); border-radius: 3px; }
.steps li { counter-increment: s; position: relative; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: var(--white); font: 700 1.1rem var(--head); border: 4px solid var(--paper); position: relative; margin-bottom: 16px;
}
.steps p { margin-top: 6px; color: var(--grey); font-size: 1rem; }
/* Pipe fills left to right, then each valve lights up in turn */
.steps.reveal { opacity: 1; transform: none; }
.steps.reveal::before { transform: scaleX(0); transform-origin: left; transition: transform 1.2s cubic-bezier(.23,1,.32,1); }
.steps.reveal.in::before { transform: none; }
.steps.reveal li { opacity: 0; transform: translateY(12px); transition: opacity .4s ease-out, transform .4s ease-out; }
.steps.reveal li::before { transition: background-color .3s ease-out; }
.steps.reveal.in li { opacity: 1; transform: none; }
.steps.reveal.in li::before { background: var(--orange); }
.steps.reveal.in li:nth-child(2), .steps.reveal.in li:nth-child(2)::before { transition-delay: .2s; }
.steps.reveal.in li:nth-child(3), .steps.reveal.in li:nth-child(3)::before { transition-delay: .4s; }
.steps.reveal.in li:nth-child(4), .steps.reveal.in li:nth-child(4)::before { transition-delay: .6s; }
.steps.reveal.in li:nth-child(5), .steps.reveal.in li:nth-child(5)::before { transition-delay: .8s; }

/* Why */
.why { background: var(--navy); color: var(--white); }
.why__in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.why-list { list-style: none; margin: 0; padding: 0; }
.why-list li { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.15); color: #c9d4e0; }
.why-list strong { color: var(--white); display: block; font: 600 1.25rem var(--head); margin-bottom: 4px; }

/* Gallery */
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gal-grid figure { margin: 0; }
.gal-grid img, .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); display: block; }
.ph { display: grid; place-items: center; color: var(--grey); font-size: .95rem; border: 2px dashed var(--line);
  background: repeating-linear-gradient(-45deg, transparent 0 12px, #e9edf1 12px 14px); }
.gal-grid figcaption { margin-top: 8px; font-size: .95rem; }
.gal-grid figure > :first-child { transition: transform .3s cubic-bezier(.23,1,.32,1); }
.gal-grid figure:hover > :first-child { transform: scale(1.03); }

/* FAQ */
.faq { background: var(--white); }
.faq__in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 32px 18px 0; font: 600 1.15rem var(--head); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.5rem; color: var(--orange); transition: transform .25s cubic-bezier(.23,1,.32,1); }
.faq summary:hover { color: var(--navy-2); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--grey); max-width: 60ch; }
.faq details[open] p { animation: rise .35s cubic-bezier(.23,1,.32,1); }

/* Contact */
.contact__in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.contact__in > div p { color: var(--grey); max-width: 40ch; }
.contact__alt { margin-top: 16px; }
.contact__alt a { color: var(--ink); font-weight: 600; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--white); padding: 28px; border: 1px solid var(--line); border-radius: var(--r-md); }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
.opt { color: var(--grey); font-weight: 400; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid #b7c3cf; border-radius: var(--r-sm); background: var(--white); color: var(--ink); width: 100%;
}
.form [aria-invalid="true"] { border-color: #c0392b; }
.form__err { color: #c0392b; font-weight: 500; }
.full { grid-column: 1 / -1; }

/* Footer */
.foot { background: var(--navy); color: #c9d4e0; padding: 40px 0 96px; font-size: .95rem; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot strong { color: var(--white); }

/* Floating WhatsApp */
.wa-float { position: fixed; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(18,38,63,.3); z-index: 15; }
.wa-float svg { width: 30px; height: 30px; fill: var(--white); }
.wa-float { transition: transform .15s ease-out; animation: pop .5s cubic-bezier(.23,1,.32,1) 1.5s backwards; }
.wa-float:hover { transform: scale(1.08); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366;
  animation: ring 2s ease-out 2.5s 3; opacity: 0; }
@keyframes pop { from { transform: scale(0); } }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.8); opacity: 0; } }
.form input, .form select, .form textarea { transition: border-color .15s, box-shadow .15s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232,113,10,.2); }

@media (max-width: 900px) {
  .hero__in, .why__in, .faq__in, .contact__in, .svc-list { grid-template-columns: 1fr; }
  .why__in, .faq__in, .contact__in { gap: 8px; }
  .schematic { max-width: 440px; }
  .seg, .seg--main { grid-column: span 6; }
  .gal-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .steps::before { top: 20px; bottom: 20px; left: 19px; right: auto; width: 6px; height: auto; }
  .steps li { padding-left: 64px; }
  .steps.reveal::before { transform: scaleY(0); transform-origin: top; }
  .steps li::before { position: absolute; left: 0; top: -6px; margin: 0; }
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; padding: 20px; }
  .cta .btn { width: 100%; }
  .brand span { font-size: 1.05rem; }
}
