/* Sentinel Water Heaters — shared layout + local-site UX baseline */

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Comfortable reading: local service pages are scanned on phones */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100%;
}

/* Keyboard / focus visibility (WCAG-friendly; does not show ring on mouse click) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #e27200;
  outline-offset: 2px;
}

footer a:focus-visible,
footer a:hover {
  color: rgb(255 255 255);
}

.site-footer-link {
  text-underline-offset: 3px;
}

.site-footer-link:hover,
.site-footer-link:focus-visible {
  text-decoration: underline;
}

/* Form controls — consistent touch height + focus (pairs with Tailwind on inputs) */
input.site-field,
textarea.site-field,
select.site-field {
  min-height: 2.75rem;
  font-size: 1rem;
}

textarea.site-field {
  min-height: 5rem;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  display: inline-block;
  line-height: 1;
  letter-spacing: normal;
  white-space: nowrap;
}

.depth-gradient {
  background: linear-gradient(135deg, #270e00 0%, #e27200 100%);
}

.glass-nav {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.bg-gradient-primary {
  background: linear-gradient(135deg, #270e00 0%, #e27200 100%);
}

.glass-header {
  background: rgba(248, 249, 251, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tonal-transition {
  background: linear-gradient(to bottom, transparent, #f2f4f6);
}

/* Homepage hero — lead card (sits beside headline on lg+) */
.home-lead-card {
  border-radius: 1.25rem;
  border: 1px solid rgb(226 232 240 / 0.95);
  background: rgb(255 255 255 / 0.97);
  box-shadow:
    0 4px 6px -1px rgb(15 23 42 / 0.06),
    0 25px 50px -12px rgb(15 23 42 / 0.14);
  padding: 1.25rem 1.25rem 1.35rem;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

@media (min-width: 1024px) {
  .home-lead-card {
    padding: 1.5rem 1.5rem 1.6rem;
  }
}

.city-spoke-prose p {
  text-wrap: pretty;
}

[x-cloak] {
  display: none !important;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: #270e00;
  color: #fff;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Nav drawer (mobile) */
#nav-panel:not(.hidden) {
  animation: navIn 0.2s ease-out;
}
@keyframes navIn {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  min-height: 100dvh;
}

/* Service pages — step list as cards (not blog OL) */
.service-page-steps ol.service-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: svcstep;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .service-page-steps ol.service-step-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}

.service-page-steps ol.service-step-list > li {
  position: relative;
  margin: 0;
  padding: 1rem 1rem 1rem 2.75rem;
  border-radius: 0.875rem;
  border: 1px solid rgb(226 232 240);
  background: rgb(255 255 255);
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.05);
  counter-increment: svcstep;
}

.service-page-steps ol.service-step-list > li::before {
  content: counter(svcstep);
  position: absolute;
  left: 0.75rem;
  top: 0.85rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #270e00 0%, #e27200 100%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.5rem;
  text-align: center;
  font-family: "Work Sans", system-ui, sans-serif;
}

/* Service FAQ — card stack */
.service-faq-wrap .space-y-6 > div {
  border-radius: 1rem;
  border: 1px solid rgb(226 232 240);
  background: rgb(255 255 255);
  padding: 1.1rem 1.25rem;
  box-shadow: 0 1px 3px rgb(15 23 42 / 0.06);
}

.service-faq-wrap .space-y-6 > div h3 {
  margin-top: 0;
}

.service-faq-wrap > h3:first-child {
  margin-top: 0;
}

.service-faq-wrap > p.text-sm,
.service-faq-wrap p.text-sm {
  line-height: 1.55;
}

.bg-hero-wh {
  background-image: linear-gradient(
      105deg,
      rgba(25, 28, 30, 0.92) 0%,
      rgba(39, 14, 0, 0.88) 45%,
      rgba(226, 114, 0, 0.35) 100%
    ),
    url("https://images.unsplash.com/photo-1585704032915-c3400ca95ae4?auto=format&fit=crop&w=1920&q=60");
  background-size: cover;
  background-position: center;
}

/* Homepage hero — matches client industrial/plumbing workshop template */
.bg-industrial-hero {
  background-image: linear-gradient(rgba(25, 28, 30, 0.85), rgba(25, 28, 30, 0.95)),
    url(https://lh3.googleusercontent.com/aida-public/AB6AXuB5mkP7YzG9zfKxEMHkVI5vy_uEjko_EFPAcJjRLm5Ia_-S_YCtRKvQvhIKfbFUS2i3vUZNj2BvqeXC0poYaW-aPskfsf2NCTuk5CMV3HW9uXRNtMyTe7A1ke0XgY7MZnXRCWJVdpP6MHowY3eAwAFFsrwM2Vqq1xgzxO0hwjjtaGERCrHgZ-cF7l3uT-NVQnsDqSIs07VlUUZpFDF5baZ3J39IpuinKfZ4BZ3U6AGtjEyQB2_WCvMvty5mOUbGLXiWdve8ejJ4pQU);
  background-size: cover;
  background-position: center;
}

/* Service page hero photo — GPU layer for smoother scroll on large images */
.service-hero-figure img {
  transform: translateZ(0);
}
