/*
 * CCMZ Power Wash — Main Stylesheet
 * Clean modern industrial. Single source for shared + page-specific components.
 * Table of contents:
 *   1. Reset & base
 *   2. Design tokens (CSS variables)
 *   3. Typography
 *   4. Layout utilities
 *   5. Header & nav
 *   6. Buttons & CTAs
 *   7. Sections, panels, dividers
 *   8. Capability bar & industry chips
 *   9. Forms
 *  10. Footer
 *  11. Home page (hero, outcomes, how it works, fleet, rig & capability, CTA band)
 *  12. Services page
 *  13. Gallery (grid, filter, lightbox, before/after)
 *  14. Contact page
 *  15. Utilities & accessibility
 */

/* ===== 1. Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ===== 2. Design tokens ===== */
:root {
  --teal: #164C54;
  --teal-light: #1e5f6a;
  --yellow: #F2C230;
  --yellow-dark: #d4a328;
  --bg: #F4F6F8;
  --bg-steel: #e8eaed;
  --header-bg: #f8f9fa;
  --header-border: rgba(22, 76, 84, 0.12);
  --text: #0E1A1D;
  --text-muted: #3d4f54;
  --white: #fff;
  --radius: 10px;
  --radius-sm: 8px;
  --radius-pill: 4px;
  --shadow: 0 2px 8px rgba(14, 26, 29, 0.08);
  --shadow-md: 0 4px 16px rgba(14, 26, 29, 0.1);
  --shadow-header: 0 2px 12px rgba(14, 26, 29, 0.06);
  --transition: 280ms ease-out;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
  /* Spacing scale */
  --s8: 0.5rem;
  --s12: 0.75rem;
  --s16: 1rem;
  --s24: 1.5rem;
  --s32: 2rem;
  --s48: 3rem;
  --s72: 4.5rem;
  --container: min(1200px, 100% - var(--s32));
}

/* ===== 3. Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--teal);
  margin: 0 0 var(--s16);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: 0.02em; text-transform: uppercase; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: var(--s24); }
h3 { font-size: 1.25rem; margin-bottom: var(--s12); }
.label, .section-label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s8);
}
@media (min-width: 768px) {
  .label, .section-label { font-size: 2rem; }
}
p { margin: 0 0 var(--s16); color: var(--text); }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.125rem; color: var(--text-muted); }

/* ===== 4. Layout utilities ===== */
.container { width: 100%; max-width: var(--container); margin-left: auto; margin-right: auto; padding-left: var(--s24); padding-right: var(--s24); }
.section { padding-top: var(--s48); padding-bottom: var(--s48); }
.section-lg { padding-top: var(--s72); padding-bottom: var(--s72); }
.main { min-height: 60vh; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--s16);
  padding: var(--s12) var(--s24);
  background: var(--teal);
  color: var(--white);
  font-weight: 600;
  z-index: 100;
  border-radius: var(--radius-sm);
  transition: top var(--transition);
}
.skip-link:focus { top: var(--s16); outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ===== 5. Header & nav ===== */
/* Structure/weight: light steel tint + bottom divider; shadow only when scrolled */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  box-shadow: 0 2px 8px rgba(14, 26, 29, 0.06);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--s16);
  padding-bottom: var(--s16);
}
.logo {
  display: inline-block;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-img {
  display: block;
  height: 7rem;
  width: auto;
  object-fit: contain;
}
@media (max-width: 768px) {
  .site-header .logo-img { height: 5rem; }
}
.site-footer .logo-img--footer {
  height: 8rem;

}

.nav-wrap { display: flex; align-items: center; gap: var(--s24); }
.nav-social {
  display: flex;
  align-items: center;
  gap: var(--s12);
}
.nav-social a {
  color: var(--teal);
  padding: var(--s8);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-social a:hover { color: var(--teal-light); background: var(--bg); }
.nav-social svg { display: block; }
.nav-main { display: flex; align-items: center; gap: var(--s8); }
.nav-main a {
  padding: var(--s8) var(--s12);
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.nav-main a:hover { background: var(--bg); color: var(--teal); text-decoration: none; }
.nav-main a.active { background: var(--teal); color: var(--white); }
.nav-main a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* Mobile nav trigger */
.nav-trigger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.nav-trigger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teal);
  transition: var(--transition);
}
.nav-trigger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-trigger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-trigger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-trigger:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.nav-close { display: none; }

@media (max-width: 768px) {
  .nav-trigger { display: flex; }
  .nav-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--teal);
    padding: var(--s48);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .nav-open .nav-overlay { opacity: 1; visibility: visible; }
  .nav-close {
    position: absolute;
    top: var(--s16);
    right: var(--s16);
    width: 48px;
    height: 48px;
    padding: 0;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition);
  }
  .nav-close:hover { background: rgba(255, 255, 255, 0.25); }
  .nav-close:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
  .nav-open .nav-close { display: flex; align-items: center; justify-content: center; }
  .nav-main {
    flex-direction: column;
    justify-content: center;
    gap: var(--s16);
    padding: 0;
    background: none;
  }
  .nav-main a { color: var(--white); font-size: 1.25rem; }
  .nav-main a:hover { background: rgba(255,255,255,0.1); color: var(--white); }
  .nav-main a.active { background: var(--yellow); color: var(--teal); }
  .nav-wrap .btn { display: none; }
  .nav-wrap .nav-social { display: none; }
  .nav-open .nav-wrap .btn { display: inline-flex; }
}

/* ===== 6. Buttons & CTAs ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--s12) var(--s24);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.15s ease;
  text-decoration: none;
}
.btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.btn-primary {
  background: var(--yellow);
  color: var(--teal);
  border-color: var(--yellow);
}
.btn-primary:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); color: var(--teal); text-decoration: none; }
.btn-secondary {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-secondary:hover { background: var(--teal); color: var(--white); text-decoration: none; }
.btn-white {
  background: var(--white);
  color: var(--teal);
  border-color: var(--white);
}
.btn-white:hover { background: var(--bg); color: var(--teal); border-color: var(--bg); text-decoration: none; }

/* ===== 7. Sections, panels, dividers ===== */
/* Outcomes panels: subtle yellow top accent (industrial fleet feel) */
.panel-teal {
  background: var(--teal);
  color: var(--white);
  padding: 2.5rem var(--s24);
  border-radius: var(--radius);
  margin-bottom: var(--s16);
  border-top: 3px solid rgba(242, 194, 48, 0.5);
  position: relative;
}
.panel-teal h2, .panel-teal h3 { color: var(--white); }
.panel-teal p { color: rgba(255,255,255,0.9); }
.panel-teal .label { color: var(--yellow); }
.section-divider {
  height: 4px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--yellow) 100%);
  margin: var(--s32) 0;
  border: none;
}

/* ===== 8. Capability bar & industry chips ===== */
.capability-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s12);
  justify-content: center;
  padding: var(--s24) 0;
  border-top: 1px solid rgba(14, 26, 29, 0.08);
  border-bottom: 1px solid rgba(14, 26, 29, 0.08);
}
/* Industrial pills: slightly squared, defined border, subtle yellow accent */
.capability-bar .badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s8);
  padding: var(--s8) var(--s16);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid rgba(22, 76, 84, 0.2);
  border-radius: var(--radius-pill);
  border-bottom: 2px solid var(--yellow);
  position: relative;
}
.capability-bar .badge strong { color: var(--teal); margin-right: 0; }
.capability-bar .badge .badge-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  opacity: 0.7;
}
.capability-bar .badge .badge-icon svg { width: 100%; height: 100%; display: block; }
.capability-bar .badge .badge-icon [fill] { fill: var(--teal); }
.capability-bar .badge .badge-icon [stroke] { stroke: var(--teal); }
.capability-bar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s12);
}
.industry-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s12);
  justify-content: center;
  margin: var(--s24) 0;
}
.industry-chips .chip {
  padding: var(--s8) var(--s16);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--teal);
  background: var(--white);
  border: 1px solid var(--teal);
  border-radius: var(--radius-sm);
}
.industry-chips .chip:hover { background: var(--teal); color: var(--white); text-decoration: none; }

/* ===== 9. Forms ===== */
.form-group { margin-bottom: var(--s24); }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: var(--s8);
  color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--s12) var(--s16);
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid #c5cdd1;
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(22, 76, 84, 0.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-message { padding: var(--s16); border-radius: var(--radius-sm); margin-bottom: var(--s24); }
.form-message.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-message.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.form-message ul { margin: var(--s8) 0 0; padding-left: var(--s24); }

/* ===== 10. Footer ===== */
.site-footer {
  background: var(--teal);
  color: var(--white);
  padding: var(--s48) 0 var(--s32);
}
.site-footer .container { padding-left: var(--s24); padding-right: var(--s24); }
.footer-spec { padding: var(--s24) 0; border-bottom: 1px solid rgba(255,255,255,0.2); }
.footer-spec .capability-bar { border: none; padding: 0; }
.footer-spec .badge {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
  border-bottom-color: rgba(242, 194, 48, 0.4);
}
.footer-spec .badge strong { color: var(--yellow); }
.footer-main { display: flex; flex-wrap: wrap; gap: var(--s48); padding: var(--s32) 0; }
.footer-main a { color: rgba(255,255,255,0.9); }
.footer-main a:hover { color: var(--yellow); text-decoration: none; }
.footer-social {
  display: flex;
  align-items: center;
  gap: var(--s16);
}
.footer-social a {
  color: rgba(255,255,255,0.9);
  padding: var(--s8);
  border-radius: var(--radius-sm);
  transition: color var(--transition), transform var(--transition);
}
.footer-social a:hover { color: var(--yellow); transform: translateY(-2px); }
.footer-social svg { display: block; }
.footer-bottom { padding-top: var(--s24); border-top: 1px solid rgba(255,255,255,0.2); font-size: 0.875rem; color: rgba(255,255,255,0.7); }

/* ===== 11. Home page ===== */
/* Hero: Rig Proof + Spec Panel — premium fleet maintenance aesthetic */
.hero {
  position: relative;
  padding: var(--s72) var(--s24) var(--s48);
  background: linear-gradient(180deg, #eef1f4 0%, #e6e9ef 45%, #dce0e7 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, transparent -5000%, rgba(22, 76, 84, 0.4) 50%, transparent 100%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s48);
  align-items: center;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { margin-bottom: var(--s24); max-width: 14ch; }
.hero h1 .hero-h1-accent {
  display: block;
  margin-top: var(--s12);
  padding-bottom: var(--s8);
  border-bottom: 3px solid var(--yellow);
  width: fit-content;
  max-width: 12ch;
}
.hero .lead { max-width: 42rem; margin-bottom: var(--s32); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s16); margin-bottom: 0; }

/* Hero right: industrial plate frame + image (scale/depth, reduced card-in-card) */
.hero-media { position: relative; z-index: 1; }
.hero-rig-frame {
  position: relative;
  padding: var(--s8);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(22, 76, 84, 0.12);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(14, 26, 29, 0.06), 0 2px 8px rgba(14, 26, 29, 0.04), inset 0 3px 0 0 var(--yellow);
  overflow: hidden;
}

@media (max-width: 600px) {
  .hero-rig-frame {
    display:none; }
}
/* Corner bracket L-shapes (frame) */
.hero-rig-frame::before,
.hero-rig-frame::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--teal);
  border-style: solid;
  border-width: 0;
  opacity: 0.4;
  z-index: 2;
  pointer-events: none;
}
.hero-rig-frame::before {
  top: var(--s8);
  left: var(--s8);
  border-top-width: 2px;
  border-left-width: 2px;
}
.hero-rig-frame::after {
  bottom: var(--s8);
  right: var(--s8);
  border-bottom-width: 2px;
  border-right-width: 2px;
}
/* Image container: slightly larger scale, more depth (desktop) */
.hero-rig-image {
  position: relative;
  aspect-ratio: 16 / 10;
  max-height: 440px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(14, 26, 29, 0.08);
}
/* Subtle diagonal hatch in image area only (very low opacity) */
.hero-rig-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -52deg,
    transparent 0,
    transparent 18px,
    rgba(22, 76, 84, 0.03) 18px,
    rgba(22, 76, 84, 0.03) 19px
  );
  border-radius: 8px;
  pointer-events: none;
  z-index: 1;
}
.hero-rig-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 55%;
}

/* Spec overlay on image (desktop only) */
.hero-spec-overlay {
  position: absolute;
  bottom: var(--s16);
  left: var(--s16);
  right: var(--s16);
  max-width: 220px;
  padding: var(--s16);
  background: rgba(22, 76, 84, 0.92);
  border-radius: 8px;
  color: var(--white);
}
.hero-spec-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 var(--s8);
}
.hero-spec-rule {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--yellow);
  margin-bottom: var(--s12);
}
.hero-spec-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.hero-spec-list li {
  position: relative;
  padding-left: var(--s24);
  margin-bottom: var(--s8);
}
.hero-spec-list li:last-child { margin-bottom: 0; }
.hero-spec-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 4px;
  height: 4px;
  background: var(--yellow);
  border-radius: 50%;
}

/* Mobile: compact chip row below image (3 chips only, no overlay) */
.hero-mobile-chips {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s8);
  margin-top: var(--s12);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--teal);
}
.hero-mobile-chips span {
  padding: var(--s8) var(--s12);
  background: var(--white);
  border: 1px solid rgba(22, 76, 84, 0.2);
  border-radius: 6px;
}

/* Mobile hero: single column, shorter height, no overlay, chips below image */
@media (max-width: 768px) {
  .hero { padding: var(--s32) var(--s24) var(--s24); }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--s24);
  }
  .hero-content .lead {
    max-width: 100%;
    margin-bottom: var(--s24);
    font-size: 1rem;
    line-height: 1.5;
  }
  .hero-ctas {
    gap: var(--s12);
    align-items: center;
    margin-bottom: var(--s24);
  }
  .hero-cta-call {
    font-size: 0.9375rem;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--teal);
  }
  .hero-cta-call:hover { text-decoration: underline; background: transparent; color: var(--teal-light); }
  .hero-media { order: 2; }
  .hero-spec-overlay { display: none; }
  .hero-mobile-chips { display: flex; }
}
/* Mobile image: portrait-friendly aspect, constrained height */
@media (max-width: 600px) {
  .hero-rig-image {
    aspect-ratio: 4 / 5;
    max-height: 260px;
  }
  .hero-rig-image img {
    object-position: 60% 55%;
  }
}

/* Outcomes: each panel has its own faded background heading (complements h3, no repetition) */
.outcomes-list { display: flex; flex-direction: column; gap: var(--s24); }
.outcomes-list .panel-teal { margin-bottom: 0; position: relative; overflow: hidden; }
.outcomes-list .panel-teal h3 { margin-bottom: var(--s12); position: relative; z-index: 1; }

@media (max-width: 768px) {
  .panel-bg-heading {
    top: var(--s24);
    transform: none;
    font-size: clamp(1rem, 5vw, 2.5rem);
  }
}

.how-it-works { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s32); text-align: center; }
.how-it-works .step { position: relative; }
.how-it-works .step-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--s16);
  background: var(--teal);
  color: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
}
.how-it-works .step-num { font-family: var(--font-heading); font-size: 0.875rem; color: var(--text-muted); margin-bottom: var(--s8); }
.how-it-works .step h3 { margin-bottom: var(--s8); }

.fleet-cta-band {
  background: var(--teal);
  color: var(--white);
  padding: var(--s48) var(--s24);
  border-radius: var(--radius);
  text-align: center;
}
.fleet-cta-band h2 { color: var(--white); }
.fleet-cta-band p { color: rgba(255,255,255,0.9); }
.fleet-cta-band .btn { margin-top: var(--s24); }

/* Rig & Capability — industrial showcase (two-column desktop, stacked mobile) */
.rig-section {
  background: var(--bg);
}
.rig-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s48);
  align-items: center;
}
/* Desktop: image left, text right */
.rig-content { order: 2; }
.rig-media { order: 1; }
@media (max-width: 900px) {
  .rig-grid {
    grid-template-columns: 1fr;
    gap: var(--s32);
  }
  .rig-content { order: 1; }
  .rig-media { order: 2; }
}
.rig-label {
  margin-bottom: var(--s8);
}
.rig-heading {
  margin-bottom: var(--s16);
  padding-bottom: var(--s12);
  border-bottom: 3px solid var(--yellow);
  display: inline-block;
}
.rig-lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: var(--s24);
  max-width: 42ch;
}
.rig-specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s8);
  margin-bottom: var(--s24);
}
.rig-specs li {
  padding: var(--s8) var(--s12);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--teal);
  background: var(--white);
  border: 1px solid rgba(22, 76, 84, 0.2);
  border-radius: 8px;
  border-left: 3px solid var(--yellow);
}
.rig-authority {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--s24);
}
.rig-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s16);
  align-items: center;
}
.rig-ctas .btn { margin-bottom: 0; }

/* Rig media: industrial frame (border, shadow, corner brackets, subtle overlay) */
.rig-media {
  position: relative;
}
.rig-frame {
  position: relative;
  padding: var(--s12);
  background: var(--bg-steel);
  border: 1px solid rgba(22, 76, 84, 0.15);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
/* Corner bracket accents (CSS-only) */
.rig-frame::before,
.rig-frame::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--teal);
  border-style: solid;
  border-width: 0;
  opacity: 0.4;
  z-index: 1;
  pointer-events: none;
}
.rig-frame::before {
  top: var(--s12);
  left: var(--s12);
  border-top-width: 3px;
  border-left-width: 3px;
}
.rig-frame::after {
  bottom: var(--s12);
  right: var(--s12);
  border-bottom-width: 3px;
  border-right-width: 3px;
}
/* Image: cover, max-height, preserve equipment detail (center/top) */
.rig-frame > img {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  max-height: 720px;
  object-fit: cover;
  object-position: center top;
  border-radius: 6px;
}
.rig-frame::after { border-radius: 0 0 6px 0; }
.rig-frame::before { border-radius: 6px 0 0 0; }

/* Tablet: scale image with viewport so rig stays prominent (avoid tiny fixed height) */
@media (min-width: 601px) and (max-width: 900px) {
  .rig-frame > img {
    max-height: min(50vh, 480px);
    object-position: center 35%;
  }
}
/* Optional diagonal overlay on image (very low opacity, masked) */
.rig-frame-overlay {
  position: absolute;
  top: var(--s12);
  left: var(--s12);
  right: var(--s12);
  bottom: var(--s12);
  background: repeating-linear-gradient(
    -52deg,
    transparent 0,
    transparent 20px,
    rgba(22, 76, 84, 0.04) 20px,
    rgba(22, 76, 84, 0.04) 21px
  );
  border-radius: 6px;
  pointer-events: none;
  z-index: 1;
}
/* Badge overlay on image */
.rig-badge {
  position: absolute;
  top: calc(var(--s12) + 12px);
  left: calc(var(--s12) + 12px);
  z-index: 2;
  padding: var(--s8) var(--s12);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--teal);
  color: var(--yellow);
  border-radius: 4px;
  box-shadow: var(--shadow);
}
@media (max-width: 600px) {
  .rig-frame > img {
    max-height: 280px;
    object-position: center 40%;
  }
}

.final-cta-band {
  background: var(--bg-steel);
  padding: var(--s48) var(--s24);
  text-align: center;
  border-top: 4px solid var(--teal);
}
.final-cta-band .contact-inline { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s24); margin-top: var(--s16); }
.final-cta-band a { font-weight: 600; }

/* ===== 12. Services page ===== */
.service-section { margin-bottom: var(--s72); }
.service-section h2 { padding-bottom: var(--s8); border-bottom: 3px solid var(--yellow); display: inline-block; font-size: clamp(1.5rem, 3vw, 2.3rem) }
.service-section p {border-bottom: 1px solid rgba(22, 76, 84, 0.12); padding-bottom: var(--s24);}

/* Services page typography: editorial readability */
.service-section p,
.equipment-coverage-block .section-intro,
.faq-block .section-intro,
.faq-list .faq-answer p {
  line-height: 1.65;
  max-width: 720px;
}

/* Bottom section panel: cohesive Equipment & Coverage + FAQ block */
.services-bottom-panel {
  background: var(--bg-steel);
  border-top: 1px solid rgba(22, 76, 84, 0.1);
}
.services-bottom-panel .container {
  display: flex;
  flex-direction: column;
  gap: 70px;
}
.equipment-coverage-block {
  padding: var(--s32);
  background: #f5f6f7;
  border-radius: var(--radius);
  border: 1px solid rgba(22, 76, 84, 0.08);
  box-shadow: var(--shadow);
}
.faq-block {
  padding: var(--s32);
  background: #fafafa;
  border-radius: var(--radius);
  border: 1px solid rgba(22, 76, 84, 0.08);
  box-shadow: var(--shadow);
}
.equipment-coverage-block h2,
.faq-block h2 {
  padding-bottom: var(--s8);
  border-bottom: 3px solid var(--yellow);
  display: inline-block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--s12);
}
.section-intro {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: var(--s24);
  max-width: 42rem;
}
.equipment-coverage-block .equipment-grid {
  margin-top: 0;
}
.equipment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s12);
}
.equipment-grid .eq-item {
  padding: var(--s8) var(--s8);
  background: var(--bg);
  border: 1px solid rgba(22, 76, 84, 0.15);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--teal);
  text-align: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
@media (hover: hover) {
  .equipment-grid .eq-item:hover {
    background: rgba(0, 90, 90, 0.05);
    border-color: #1e5b5b;
    transform: translateY(-1px);
    cursor: pointer;
  }
}
@media (max-width: 600px) {
  .equipment-grid .eq-item {
    padding: var(--s12) var(--s16);
    font-size: 0.875rem;
  }
  .services-bottom-panel .container {
    gap: var(--s48);
  }
  .equipment-coverage-block,
  .faq-block {
    padding: var(--s24);
  }
}
.faq-block .faq-list { margin-top: 0; }
.faq-list { max-width: 700px; }
.faq-list details { margin-bottom: var(--s16); border: 1px solid #e0e4e8; border-radius: var(--radius-sm); background: var(--white); }
.faq-list summary { padding: var(--s16); font-weight: 600; cursor: pointer; color: var(--teal); }
.faq-list summary:hover { background: var(--bg); }
.faq-list .faq-answer { padding: 0 var(--s16) var(--s16); color: var(--text); }

/* Services page CTA: prominent end-of-page call to action */
.services-cta-band {
  background: var(--teal-light);
  color: var(--white);
  padding: var(--s72) var(--s24);
  text-align: center;
  border-top: 4px solid var(--yellow);
  box-shadow: 0 10px 30px rgba(0,0,0,1);
}
.services-cta-band .section-label {
  color: var(--yellow);
  margin-bottom: var(--s8);
}
.services-cta-band h2 {
  color: var(--white);
  margin-bottom: var(--s16);
  border: none;
  padding: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}
.services-cta-lead {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 36rem;
  margin: 0 auto var(--s32);
  line-height: 1.6;
}
.services-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s16);
}
.services-cta-buttons .btn { margin: 0; }
@media (max-width: 600px) {
  .services-cta-band {
    padding: var(--s48) var(--s24);
  }
  .services-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .services-cta-buttons .btn { width: 100%; max-width: 280px; }
}

/* ===== 13. Gallery ===== */

.slider-section {
  margin-top: 4rem;
  margin-bottom: 4rem;
  border-top: 4px solid var(--teal);
  border-bottom: 4px solid var(--teal);
}

/* Featured Showcase (temporary replacement for filterable gallery) */
.featured-showcase { padding: var(--s48) 0 var(--s72); }
.featured-header { text-align: left; max-width: 900px; margin: 0 auto var(--s32); }
.featured-header h1,
.featured-header h2 { font-family: var(--font-heading); letter-spacing: 0.04em; color: var(--teal); margin-bottom: var(--s8); }
.featured-header p { color: var(--text-muted); line-height: 1.6; margin: 0; }

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s24);
}

.showcase-card {
  grid-column: span 6;
  background: var(--white);
  border: 1px solid rgba(22, 76, 84, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.showcase-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.showcase-card.is-landscape { grid-column: span 12; }
.showcase-meta { padding: var(--s24); }
.showcase-meta h3 { margin: 0 0 var(--s8); color: var(--teal); font-weight: 700; letter-spacing: 0.02em; font-family: var(--font-heading); }
.showcase-meta p { margin: 0 0 var(--s12); color: var(--text-muted); line-height: 1.55; }
.showcase-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s8);
  padding: var(--s8) var(--s12);
  border-radius: 999px;
  border: 1px solid rgba(22, 76, 84, 0.12);
  background: rgba(240, 244, 245, 0.9);
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Diagonal before/after */
.ba-diagonal {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-steel);
  overflow: hidden;
}
.ba-diagonal.is-landscape { aspect-ratio: 16/9; }


.ba-diagonal img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-diagonal .ba-after { z-index: 1; }
.ba-diagonal .ba-before {
  z-index: 2;
  clip-path: polygon(0 0, 62% 0, 38% 100%, 0 100%);
}

.ba-divider {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(100deg,
      transparent 47%,
      rgba(242, 194, 48, 0.95) 50%,
      rgba(242, 194, 48, 0.95) 5%,
      transparent 53%);
  mix-blend-mode: normal;
}

#main > section.featured-showcase > div > div.showcase-grid > article.showcase-card.is-landscape > div.ba-diagonal.is-landscape > div{
  background: linear-gradient(115deg,
  transparent 47%,
  rgba(242, 194, 48, 0.95) 50%,
  rgba(242, 194, 48, 0.95) 50%,
  transparent 53%)
}

/* Corner labels */
.ba-diagonal::before,
.ba-diagonal::after {
  position: absolute;
  z-index: 4;
  top: var(--s12);
  padding: var(--s8) var(--s12);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(14, 26, 29, 0.55);
  color: var(--white);
  backdrop-filter: blur(6px);
}
.ba-diagonal::before { content: attr(data-label-before); left: var(--s12); }
.ba-diagonal::after { content: attr(data-label-after); right: var(--s12); }

/* After-only */
.after-only {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--bg-steel);
  overflow: hidden;
}
.showcase-card.is-landscape .after-only { aspect-ratio: 16/9; }
.after-only img { width: 100%; height: 100%; object-fit: cover; display: block; }
.after-badge {
  position: absolute;
  top: var(--s12);
  right: var(--s12);
  padding: var(--s8) var(--s12);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  box-shadow: var(--shadow);
}

/* Showcase CTA block */
.showcase-cta {
  margin-top: var(--s48);
  border-radius: var(--radius);
  background: var(--teal-light);
  color: var(--white);
  border: 1px solid rgba(242, 194, 48, 0.55);
  overflow: hidden;
}
.showcase-cta .cta-inner { padding: var(--s32) var(--s24); text-align: center; }
.showcase-cta h2 { margin: 0 0 var(--s12); color: var(--white); font-weight: 700; letter-spacing: 0.02em; font-family: var(--font-heading); }
.showcase-cta p { margin: 0 0 var(--s24); opacity: 0.9; }
.showcase-cta .cta-actions { display: flex; justify-content: center; gap: var(--s12); flex-wrap: wrap; }

@media (max-width: 900px) {
  .showcase-card { grid-column: span 12; }
  .featured-header { text-align: center; }
}
@media (max-width: 600px) {
  .showcase-grid { gap: var(--s16); }
  .showcase-cta .cta-inner { padding: var(--s24); }
  .showcase-cta .cta-actions { flex-direction: column; align-items: center; }
  .showcase-cta .cta-actions .btn { width: 100%; max-width: 280px; }
}

/* Original filterable gallery (kept for future) */
.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s12);
  margin-bottom: var(--s32);
  justify-content: center;
}
.gallery-filter button {
  padding: var(--s8) var(--s16);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--teal);
  background: var(--white);
  border: 1px solid var(--teal);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.gallery-filter button:hover,
.gallery-filter button.active { background: var(--teal); color: var(--white); }
.gallery-filter button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--s16);
  grid-auto-rows: 280px;
}
.gallery-grid .gallery-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-steel);
  cursor: pointer;
  grid-row: span 2;
}
.gallery-grid .gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition); }
.gallery-grid .gallery-card:hover img { transform: scale(1.03); }
.gallery-grid .gallery-card .card-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--s12);
  background: linear-gradient(transparent, rgba(14, 26, 29, 0.9));
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
}
.gallery-grid .gallery-card:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(14, 26, 29, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s24);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-inner img { max-height: 85vh; width: auto; border-radius: var(--radius-sm); }
.lightbox-caption { color: var(--white); text-align: center; margin-top: var(--s16); padding: 0 var(--s24); }
.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--teal);
}
.lightbox-close:hover { background: var(--yellow); }
.lightbox-close:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--teal);
  transition: background var(--transition), color var(--transition);
}
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }
.lightbox-prev:hover, .lightbox-next:hover { background: var(--yellow); color: var(--teal); }
@media (max-width: 768px) {
  .lightbox-prev { left: var(--s8); }
  .lightbox-next { right: var(--s8); }
}

/* Before/After slider */
.before-after-wrap { max-width: 500px; margin: 0 auto var(--s32); }
.before-after-wrap .label { margin-bottom: var(--s12); }
.before-after-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-steel);
  aspect-ratio: 3/4;
}
.before-after-slider .after-img, .before-after-slider .before-img {
  position: absolute;
  inset: 0;
}
.before-after-slider .after-img img, .before-after-slider .before-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.before-after-slider .before-img { clip-path: inset(0 50% 0 0); }
.before-after-slider .slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--yellow);
  cursor: ew-resize;
  transform: translateX(-50%);
}
.before-after-slider .slider-handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

/* ===== 14. Contact page ===== */
.contact-hero { padding: var(--s48) 0; text-align: center; }
.contact-touch {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s24);
  margin: var(--s32) 0 var(--s48);
}
.contact-touch a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s16);
  padding: var(--s32);
  background: var(--teal);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition), transform 0.15s ease;
}
.contact-touch a:hover { background: var(--teal-light); color: var(--white); text-decoration: none; transform: translateY(-2px); }
.contact-touch a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.contact-form-wrap { max-width: 600px; margin: 0 auto; }
.contact-form-wrap h2 { margin-bottom: var(--s24); }

/* Contact page: What Happens Next */
.contact-next {
  background: var(--teal-light);
  color: var(--white);
  padding: var(--s48) var(--s24);
  text-align: center;
  border-top: 4px solid var(--yellow);
}
.contact-next .container { max-width: 560px; }
.contact-next h2 {
  color: var(--white);
  margin: 0 0 var(--s16);
  font-size: clamp(1.5rem, 3vw, 2rem);
  border: none;
  padding: 0;
}
.contact-next-intro {
  margin: 0 0 var(--s24);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.0625rem;
}
.contact-next-steps {
  list-style: none;
  margin: 0 0 var(--s24);
  padding: 0;
  text-align: left;
  display: inline-block;
}
.contact-next-steps li {
  position: relative;
  padding-left: var(--s32);
  margin-bottom: var(--s12);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}
.contact-next-steps li:last-child { margin-bottom: 0; }
.contact-next-steps li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-weight: 700;
  font-size: 1.125rem;
}
.contact-response {
  margin: 0;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
}

/* Privacy policy page */
.privacy-content { max-width: 720px; margin: 0 auto; line-height: 1.65; }
.privacy-content h2 { margin-top: var(--s32); margin-bottom: var(--s12); font-size: 1.25rem; }
.privacy-content h2:first-of-type { margin-top: 0; }
.privacy-content ul { margin: 0 0 var(--s16); padding-left: var(--s24); list-style: disc; }
.privacy-content li { margin-bottom: var(--s8); }
.privacy-content p { margin-bottom: var(--s16); }

/* Service area band */
.service-area-band {
  background: var(--bg-steel);
  padding: var(--s24);
  text-align: center;
  border-radius: var(--radius);
  margin: var(--s32) 0;
}
.service-area-band .label { margin-bottom: var(--s8); }
.service-area-band p { margin: 0; font-weight: 500; color: var(--teal); }

/* ===== 15. Utilities & accessibility ===== */
@media (max-width: 768px) {
  .desktop-only { display: none !important; }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
