/* H Gas updates (October 2026): larger logo, photographic hero slideshow, footer credit link. */

/* ---- Larger logo ---------------------------------------------------- */
.nav { height: 6.5rem; }
.nav-brand { gap: 0.9rem; }
.nav-brand img { width: 3.5rem; height: 3.5rem; }
.nav-brand span { font-size: 1.75rem; letter-spacing: 0.01em; }
.footer-brand img { width: 3rem; height: 3rem; }
.footer-brand span { font-size: 1.5rem; }

.nav-brand span,
.nav-cta { white-space: nowrap; }

/* Tagline under "H Gas" */
.nav-brand-text { display: flex; flex-direction: column; line-height: 1; }
.nav-brand-tag {
  margin-top: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-slate-ink);
  white-space: nowrap;
}

/* Laptops and tablets (768 to 1199px): compact logo and menu so everything stays on one line */
@media (min-width: 768px) and (max-width: 1199px) {
  .nav-brand { gap: 0.7rem; }
  .nav-brand img { width: 2.75rem; height: 2.75rem; }
  .nav-brand span { font-size: 1.45rem; }
  .nav-brand-tag { font-size: 0.6rem; letter-spacing: 0.06em; margin-top: 0.3rem; }
  .nav-links { gap: 1.25rem; }
  .nav-links a { font-size: 0.9rem; }
  .nav-cta { padding: 0.8rem 1.25rem; font-size: 0.85rem; }
}

/* Tablets held upright (768 to 1023px): menu button instead of the link row, quote button kept */
@media (min-width: 768px) and (max-width: 1023px) {
  .site-header .nav-links { display: none; }
  .site-header .nav-cta { margin-left: auto; margin-right: 1rem; }
  .site-header .nav-toggle { display: flex !important; }
  .site-header .mobile-menu { display: none !important; }
  .site-header .mobile-menu.is-open { display: block !important; }
}

@media (max-width: 767px) {
  .nav { height: 5.5rem; }
  .nav-brand img { width: 2.75rem; height: 2.75rem; }
  .nav-brand span { font-size: 1.45rem; }
  .nav-brand-tag { font-size: 0.6rem; letter-spacing: 0.06em; margin-top: 0.3rem; }
}

/* ---- Hero photo slideshow (replaces the 3D flames) -------------------- */
.hero-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-charcoal-light);
  box-shadow: 0 40px 80px -32px rgba(20, 22, 26, 0.35);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hero-slide.is-active { opacity: 1; }

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(1.12) translate3d(0, 0, 0);
  will-change: transform;
}

.hero-slide.is-active img { animation: heroDrift 7.5s linear forwards; }
.hero-slide:nth-child(2).is-active img { animation-name: heroDriftAlt; }
.hero-slide--lead img { object-position: 50% 55%; }
.hero-slide--lead.is-active img { animation-name: heroDriftLead; }

@keyframes heroDrift {
  from { transform: scale(1.14) translate3d(-2%, 1.5%, 0); }
  to   { transform: scale(1.02) translate3d(1.5%, -1%, 0); }
}
@keyframes heroDriftAlt {
  from { transform: scale(1.02) translate3d(1.5%, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.5%, -1.5%, 0); }
}
@keyframes heroDriftLead {
  from { transform: scale(1.08) translate3d(-1.5%, 0.5%, 0); }
  to   { transform: scale(1.0) translate3d(1%, 0, 0); }
}

.hero-progress {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  display: flex;
  gap: 0.4rem;
}
.hero-progress i {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: rgba(250, 249, 246, 0.3);
  overflow: hidden;
  position: relative;
}
.hero-progress i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-cream);
  transform: scaleX(0);
  transform-origin: left;
}
.hero-progress i.is-done::after { transform: scaleX(1); }
.hero-progress i.is-active::after { animation: heroBar 6s linear forwards; }
@keyframes heroBar { to { transform: scaleX(1); } }

@media (max-width: 767px) {
  .hero { padding-block: 7.5rem 3.5rem; }
  .hero-grid { gap: 2.5rem; }
  .hero-photo { max-width: none; border-radius: 0.85rem; }
  .hero-progress { top: 1rem; left: 1.1rem; right: 1.1rem; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* Older iOS Safari without aspect-ratio support */
@supports not (aspect-ratio: 1 / 1) {
  .hero-photo { height: 0; padding-bottom: 75%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active img { animation: none; transform: scale(1.04); }
  .hero-progress { display: none; }
}

/* ---- Footer credit link --------------------------------------------- */
.footer-bottom a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(250, 249, 246, 0.3);
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease-smooth), text-decoration-color 0.2s var(--ease-smooth);
}
.footer-bottom a:hover {
  color: var(--color-cream);
  text-decoration-color: currentColor;
}

/* ---- Service bullet points use the logo mark ------------------------- */
.service-points li::before {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  border-radius: 0;
  background: url("../assets/logo-mark.png") center / contain no-repeat;
}

/* ---- Gradient circles replaced by the logo mark ----------------------- */
.icon-dot {
  border-radius: 0;
  background: url("../assets/logo-mark.png") center / contain no-repeat;
}
