/* ==========================================================================
   ZIS Plumbing & Drain Works — design tokens
   Ink navy + steel from the brand badge, amber for action (echoes the
   caution tape/cones in the crew's own job photos), blueprint grid for trust.
   ========================================================================== */

:root {
  --ink: #0b1524;
  --ink-2: #101e33;
  --ink-3: #16283f;
  --paper: #f4f6f8;
  --paper-2: #e7ebef;
  --steel: #8fa1b3;
  --steel-dark: #3d4f61;
  --line: #26374d;
  --blue: #2f8fe0;
  --blue-glow: #6fc1ff;
  --amber: #f2a93c;
  --amber-dark: #d98a1a;
  --white: #ffffff;
  --ok: #3fb27f;

  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --container: 1180px;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.01em;
}

p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-glow);
  margin: 0 0 0.9rem;
}
.eyebrow--dark { color: var(--blue); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.75rem 1.3rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn__icon { width: 16px; height: 16px; fill: currentColor; }

.btn--lg { padding: 1rem 1.7rem; font-size: 0.95rem; }

.btn--amber { background: var(--amber); color: var(--ink); }
.btn--amber:hover { background: var(--amber-dark); }

.btn--call { background: var(--amber); color: var(--ink); }
.btn--call:hover { background: var(--amber-dark); }

.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn--ghost:hover { border-color: var(--white); }

.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-2); }

/* ==========================================================================
   Utility bar + header
   ========================================================================== */

.utility-bar {
  background: var(--ink);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}
.utility-bar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.45rem 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.utility-bar__item--emergency { color: var(--amber); }
.utility-bar__email:hover { color: var(--white); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 21, 36, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand__mark { width: 44px; height: 44px; object-fit: contain; }
.brand__wordmark {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.05rem;
  line-height: 1.15;
  text-transform: uppercase;
}
.brand__wordmark em { display: block; font-style: normal; font-size: 0.62rem; letter-spacing: 0.1em; color: var(--steel); }

.site-nav { display: flex; gap: 1.7rem; }
.site-nav a {
  color: var(--paper-2);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--blue-glow); }

.header-actions { display: flex; align-items: center; gap: 1.1rem; }
.header-phone { display: none; text-align: right; }
.header-phone__label { display: block; font-size: 0.68rem; color: var(--steel); }
.header-phone__number { display: block; font-family: var(--font-mono); font-weight: 600; color: var(--white); font-size: 0.95rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 18px; margin: 0 auto; background: var(--white); }

/* ==========================================================================
   Hero — full-bleed background video
   ========================================================================== */

.hero {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  padding: 6.5rem 0 5rem;
  /* Locked to just above the source video's own 1280:720 ratio. This makes
     object-fit: cover crop only a sliver of top/bottom (the video's own flat
     padding, never the badge — see hero__video-bg) at any viewport width,
     instead of leaving side margins that expose a seam between the video's
     background and the page's. */
  aspect-ratio: 1.8 / 1;
  min-height: 560px;
  display: flex;
  align-items: center;
}
.hero__bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(11,21,36,0.95) 0%, rgba(11,21,36,0.85) 38%, rgba(11,21,36,0.6) 62%, rgba(11,21,36,0.45) 100%),
    linear-gradient(to top, rgba(11,21,36,0.85), transparent 25%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}
.hero__copy { max-width: 680px; }

.hero__title {
  font-family: var(--font-body);
  color: var(--white);
  font-size: clamp(2.1rem, 3.9vw, 3.15rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.015em;
}
.hero__title-accent { color: var(--amber); }
.hero__sub {
  color: var(--paper-2);
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: 54ch;
  margin: 1.4rem 0 2.1rem;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.trust-strip {
  list-style: none;
  margin: 2.1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--paper-2);
}
.trust-strip li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(6px);
}
.trust-strip__icon { width: 14px; height: 14px; fill: var(--ok); flex-shrink: 0; }

/* ==========================================================================
   Ticker
   ========================================================================== */

.ticker {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 0.85rem 0;
}
.ticker__track {
  display: flex;
  width: max-content;
  gap: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  white-space: nowrap;
  animation: ticker-scroll 32s linear infinite;
}
.ticker__dot { color: var(--amber); }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Section shell
   ========================================================================== */

.section { padding: 5.5rem 0; }
.section--dark { background: var(--ink); }
.section--blueprint {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(63,90,117,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63,90,117,0.07) 1px, transparent 1px);
  background-size: 42px 42px;
}

.section__inner { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.section__inner--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.section__title {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  text-transform: uppercase;
  max-width: 18ch;
}
.section__title--light { color: var(--white); }
.section__lede { color: var(--steel); max-width: 55ch; margin-top: 0.9rem; }
.section__lede--dark { color: var(--steel-dark); }

/* ==========================================================================
   Services — ticket cards
   ========================================================================== */

.ticket-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.ticket {
  position: relative;
  background: var(--white);
  border: 1px dashed var(--steel);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
}
.ticket__notch {
  position: absolute;
  top: -8px;
  left: 28px;
  width: 16px;
  height: 16px;
  background: var(--paper);
  border: 1px dashed var(--steel);
  border-radius: 50%;
}
.ticket__icon { width: 34px; height: 34px; color: var(--blue); margin-bottom: 0.9rem; }
.ticket h3 { font-size: 1.1rem; text-transform: uppercase; margin-bottom: 0.5rem; }
.ticket p { color: var(--steel-dark); font-size: 0.92rem; line-height: 1.55; }

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  gap: 1rem;
}
.gallery__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.7rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--paper-2);
  background: linear-gradient(to top, rgba(11,21,36,0.88), transparent);
}

/* ==========================================================================
   Why us — feature grid
   ========================================================================== */

.feature-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.8rem;
}
.feature__num {
  font-family: var(--font-mono);
  color: var(--blue);
  font-size: 0.85rem;
}
.feature h3 { margin: 0.6rem 0 0.5rem; font-size: 1.05rem; text-transform: uppercase; }
.feature p { color: var(--steel-dark); font-size: 0.9rem; line-height: 1.55; }

/* ==========================================================================
   Service area
   ========================================================================== */

.area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem 1.5rem;
  align-content: start;
}
.area-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--ink);
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--paper-2);
}
.area-list__pin { width: 16px; height: 16px; fill: var(--blue); flex-shrink: 0; }

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  background: linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 100%);
  padding: 3.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-band__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-transform: uppercase;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-form { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.1rem; max-width: 480px; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-form label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.85rem; color: var(--steel-dark); font-weight: 500; }
.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--paper-2);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  outline: none;
}
.contact-form__note { font-size: 0.8rem; color: var(--steel); margin-top: -0.3rem; }
.contact-form__note a { color: var(--blue); }

.contact-card {
  background: var(--ink);
  border-radius: 10px;
  padding: 2.2rem;
  align-self: stretch;
}
.contact-card h3 {
  color: var(--white);
  font-size: 1.15rem;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.contact-card__row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  transition: color 0.15s ease;
}
.contact-card__row svg { width: 18px; height: 18px; fill: var(--blue); flex-shrink: 0; }
a.contact-card__row:hover { color: var(--white); }
.contact-card__row--static { cursor: default; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--ink); border-top: 1px solid var(--line); padding: 3.5rem 0 0; }
.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
.site-footer__brand img { width: 56px; margin-bottom: 0.9rem; }
.site-footer__brand p { color: var(--steel); font-size: 0.88rem; max-width: 32ch; line-height: 1.5; margin-bottom: 1.1rem; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: color 0.15s ease;
}
.social-link svg { width: 20px; height: 20px; fill: var(--blue-glow); flex-shrink: 0; }
.social-link:hover { color: var(--white); }

.site-footer__col h4 {
  color: var(--white);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.site-footer__col { display: flex; flex-direction: column; gap: 0.65rem; }
.site-footer__col a,
.site-footer__col span {
  color: var(--steel);
  font-size: 0.9rem;
}
.site-footer__col a:hover { color: var(--blue-glow); }

.site-footer__bottom {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  padding: 1.3rem 1.5rem;
  text-align: center;
  color: var(--steel-dark);
  font-size: 0.78rem;
  font-family: var(--font-mono);
}

/* ==========================================================================
   Mobile call bar
   ========================================================================== */

.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem;
}
.mobile-call-bar svg { width: 18px; height: 18px; fill: var(--ink); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 901px) {
  .header-phone { display: block; }
}

@media (max-width: 900px) {
  .site-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1rem;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .site-nav.is-open { max-height: 320px; }
  .site-nav a { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .btn--call { display: none; }

  .hero { aspect-ratio: auto; min-height: 600px; padding: 5rem 0 3.5rem; }
  .hero__video-bg {
    /* On a narrow/portrait screen, cover would crop this wide video's sides
       right into the badge. Contain guarantees full visibility; its flat
       background is set to match --ink so the letterboxed edges blend. */
    object-fit: contain;
    background: var(--ink);
  }
  .hero__overlay {
    background: linear-gradient(180deg, rgba(11,21,36,0.5) 0%, rgba(11,21,36,0.82) 45%, var(--ink) 85%);
  }

  .section__inner--split { grid-template-columns: 1fr; }
  .ticket-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .area-list { grid-template-columns: 1fr; }

  .site-footer__inner { grid-template-columns: 1fr; gap: 2rem; }

  .mobile-call-bar { display: flex; }
  body { padding-bottom: 56px; }
}

@media (max-width: 560px) {
  .ticket-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .contact-form__row { grid-template-columns: 1fr; }
  .utility-bar__inner { flex-direction: column; gap: 0.2rem; padding: 0.5rem 1.2rem; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}
