/* ==========================================================================
   WE HURT DIRT — shared stylesheet
   Loaded on every page. Page-specific rules live in a <style> block
   inside each page's own <head>, after this file.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@600;700;800;900&family=Work+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap');

:root{
  /* -- color tokens -- */
  --ink:        #12161a;   /* near-black, blue cast — nav/footer/hero overlay */
  --ink-2:      #1b2128;   /* raised panels on dark */
  --line-dark:  #2a323b;   /* hairlines on dark */
  --mist:       #f3f5f6;   /* light section background */
  --paper:      #ffffff;
  --line-light: #dde2e5;   /* hairlines on light */
  --stone:      #5b6670;   /* muted body text */
  --stone-dark: #333c44;   /* body text on light */
  --hurt-green: #33c26a;   /* brand — "HURT" */
  --dirt-blue:  #2f6fed;   /* brand — "DIRT" */
  --white-92:   rgba(255,255,255,.92);
  --white-70:   rgba(255,255,255,.7);

  /* -- type -- */
  --f-display: 'Big Shoulders Display', sans-serif;
  --f-body:    'Work Sans', sans-serif;
  --f-mono:    'IBM Plex Mono', monospace;

  /* -- layout -- */
  --max: 1180px;
  --pad: clamp(20px, 5vw, 56px);
  --radius: 3px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: var(--f-body);
  color: var(--stone-dark);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.05; /* Lifted from .95 to give multi-line headings breathing room */
  letter-spacing: .01em;
  margin: 0 0 .6em; /* Increased from .4em */
  text-transform: uppercase;
}
p{ margin:0 0 1em; }
.wrap{ max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
:focus-visible{ outline: 3px solid var(--dirt-blue); outline-offset: 2px; }

/* eyebrow / mono label used above section headings */
.eyebrow{
  display:inline-flex; align-items:center; gap:.55em;
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hurt-green);
  margin-bottom: 1.2em;
}
.eyebrow::before{
  content:"";
  width: 22px; height: 2px;
  background: var(--hurt-green);
  display:inline-block;
}

/* ==========================================================================
   SITE HEADER / NAV  (built by js/nav.js into <header id="site-header">)
   ========================================================================== */
.site-nav{
  position: fixed; top:0; left:0; right:0; z-index: 500;
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px var(--pad);
  background: linear-gradient(to bottom, rgba(10,13,16,.75), rgba(10,13,16,0));
  transition: background .25s ease;
}
.site-nav.is-solid{ background: var(--ink); box-shadow: 0 1px 0 var(--line-dark); }

.brand{ display:flex; align-items:center; gap:.6em; }
.brand-mark{
  font-family: var(--f-display);
  font-weight:900; font-size: 1.5rem; letter-spacing:.02em;
  color: var(--white-92);
}
.brand-mark b{ color: var(--hurt-green); font-style: normal; }
.brand-tag{
  font-family: var(--f-mono); font-size:.62rem; letter-spacing:.12em;
  color: var(--white-70); text-transform:uppercase;
  border-left: 2px solid var(--line-dark); padding-left: .7em; display:none;
}
@media (min-width:640px){ .brand-tag{ display:block; } }

.nav-toggle{
  width: 46px; height: 46px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line-dark);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; flex: none;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:""; display:block; width:18px; height:2px; background:#fff;
  position:relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before{ position:absolute; top:-6px; }
.nav-toggle span::after{ position:absolute; top:6px; }
.nav-toggle[aria-expanded="true"] span{ background: transparent; }
.nav-toggle[aria-expanded="true"] span::before{ top:0; transform: rotate(45deg); background:#fff; }
.nav-toggle[aria-expanded="true"] span::after{ top:0; transform: rotate(-45deg); background:#fff; }

/* full-screen menu panel */
.nav-panel{
  position: fixed; inset:0; z-index: 490;
  background: var(--ink);
  padding: 108px var(--pad) 40px;
  overflow-y:auto;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.65,0,.2,1);
}
.nav-panel.is-open{ transform: translateX(0); }
.nav-panel a, .nav-panel button{
  font-family: var(--f-display); font-weight:800;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  text-transform:uppercase; letter-spacing:.01em;
  color: var(--white-92); background:none; border:0;
  cursor:pointer; text-align:left; width:100%;
}
.nav-group{ border-top: 1px solid var(--line-dark); }
.nav-group:last-child{ border-bottom: 1px solid var(--line-dark); }
.nav-group > a, .nav-group > button{
  display:flex; align-items:center; justify-content:space-between;
  padding: 18px 0;
}
.nav-group.services > button{ color: var(--hurt-green); }
.nav-group.services > button svg{ transition: transform .25s ease; flex: none; }
.nav-group.services.is-open > button svg{ transform: rotate(180deg); }
.nav-sub{
  max-height:0; overflow:hidden;
  transition: max-height .3s ease;
  display:flex; flex-direction:column;
}
.nav-group.services.is-open .nav-sub{ max-height: 640px; }
.nav-sub a{
  font-family: var(--f-body); font-weight:500; text-transform:none;
  font-size: 1.05rem; color: var(--white-70);
  padding: 11px 0 11px 4px;
  border-top: 1px solid var(--line-dark);
}
.nav-sub a:hover, .nav-sub a:focus-visible{ color: var(--hurt-green); }
.nav-panel .nav-cta{
  margin-top: 28px;
  display:inline-block; width:auto;
  font-family: var(--f-mono); font-size:.85rem; letter-spacing:.08em;
  text-transform:uppercase; color: var(--ink);
  background: var(--hurt-green); padding: 14px 28px; border-radius: var(--radius);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn{
  display:inline-flex; align-items:center; gap:.6em;
  font-family: var(--f-mono); font-size:.82rem; letter-spacing:.08em;
  text-transform:uppercase; padding: 15px 30px; border-radius: var(--radius);
  border: 1px solid transparent; cursor:pointer;
}
.btn-solid{ background: var(--hurt-green); color: var(--ink); }
.btn-solid:hover{ background:#48d67f; }
.btn-line{ border-color: var(--white-70); color:#fff; }
.btn-line:hover{ border-color:#fff; background: rgba(255,255,255,.08); }
.btn-line.on-light{ border-color: var(--stone-dark); color: var(--stone-dark); }
.btn-line.on-light:hover{ background: var(--ink); border-color: var(--ink); color:#fff; }

/* ==========================================================================
   PAGE HERO — full-bleed image used on index.html
   ========================================================================== */
.hero {
  position: relative;
  /* Switch from fixed height to min-height so content can breathe on smaller screens */
  min-height: 100svh;
  display: flex;
  align-items: center; /* Center vertically instead of flexing to bottom edge */
  background: var(--ink);
  overflow: hidden;
  padding-top: 80px; /* Gives room below fixed top nav */
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px var(--pad); /* Replaces tight bottom-only 8vh padding */
  width: 100%;
}

.hero img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
}
.hero::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(to top, rgba(10,13,16,.92) 0%, rgba(10,13,16,.35) 48%, rgba(10,13,16,.55) 100%);
}
.hero h1{
  font-size: clamp(3rem, 11vw, 7.2rem);
  color: var(--white-92);
  margin-bottom: .4em;
}
.hero h1 b{ color: var(--hurt-green); font-style:normal; }
.hero .lede {
  font-family: var(--f-mono);
  color: var(--white-70);
  font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  line-height: 1.5; /* Add an explicit line-height for readability */
  letter-spacing: .02em;
  max-width: 34em;
  margin-bottom: 2.2em; /* Increased from 1.6em */
}
.hero .btn-row{ display:flex; flex-wrap:wrap; gap: 14px; }


@media (min-width: 520px) {
  .hero .btn-row {
    flex-direction: row; /* Side-by-side on desktop */
  }
}
.scroll-cue{
  position:absolute; right: var(--pad); bottom: 34px; z-index:2;
  writing-mode: vertical-rl; color: var(--white-70);
  font-family: var(--f-mono); font-size:.72rem; letter-spacing:.18em;
  display:flex; align-items:center; gap:.8em;
}
.scroll-cue::after{ content:""; width:1px; height:44px; background: var(--white-70); }

/* ==========================================================================
   PAGE HEADER — image banner used on every inner page
   ========================================================================== */
.page-header {
  position: relative;
  min-height: 380px; /* Increased from 320px */
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  overflow: hidden;
}
.page-header img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  opacity:.75;
}
.page-header::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(to top, rgba(10,13,16,.95), rgba(10,13,16,.25) 60%, rgba(10,13,16,.55));
}
.page-header-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad) 60px; /* Increased from 44px */
}
.page-header h1{ color:#fff; font-size: clamp(2.2rem, 6vw, 4.2rem); }
.page-header .eyebrow{ color: var(--hurt-green); }

/* ==========================================================================
   SPRAY DIVIDER — signature element: a diagonal streak, standing in for
   the jet of water in the brand's own photography. Used between sections.
   ========================================================================== */
.spray-divider{
  position:relative; height: 64px; overflow:hidden;
  background: var(--paper);
}
.spray-divider::before{
  content:""; position:absolute; left:-10%; right:-10%; top:50%;
  height: 2px; background: var(--line-light);
  transform: rotate(-2deg);
}
.spray-divider::after{
  content:""; position:absolute; width: 46%; height: 6px; top:50%;
  left:6%; transform: translateY(-50%) rotate(-2deg);
  background: linear-gradient(90deg, transparent, var(--hurt-green) 40%, var(--dirt-blue) 92%, transparent);
  filter: blur(.3px);
}
.spray-divider.on-dark{ background: var(--ink); }
.spray-divider.on-dark::before{ background: var(--line-dark); }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
section{ padding: clamp(56px, 9vw, 108px) 0; }
.section-light{ background: var(--paper); }
.section-mist{ background: var(--mist); }
.section-dark{ background: var(--ink); color: var(--white-92); }
.section-dark .eyebrow{ color: var(--hurt-green); }
.section-head{ max-width: 40em; margin-bottom: 2.4em; }
.section-head h2{ font-size: clamp(2rem, 5vw, 3.2rem); }
.section-dark h2{ color:#fff; }
.lead{ font-size: 1.15rem; color: var(--stone); max-width: 42em; }
.section-dark .lead{ color: var(--white-70); }

/* service list grid (about-company) */
.checklist{
  list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns: repeat(auto-fill, minmax(190px,1fr));
  gap: 2px; background: var(--line-light); border:1px solid var(--line-light);
}
.checklist li{
  background: var(--paper); padding: 20px 22px;
  display:flex; align-items:center; gap:.7em;
  font-family: var(--f-mono); font-size:.85rem; letter-spacing:.04em; text-transform:uppercase;
}
.checklist li::before{ content:"›"; color: var(--hurt-green); font-weight:700; font-size:1.2em; }
.checklist a{ display:contents; }
.checklist a li:hover{ background: var(--mist); color: var(--dirt-blue); }
.checklist a:hover li::before{ color: var(--dirt-blue); }

/* stat row */
.stat-row{ display:flex; flex-wrap:wrap; gap: clamp(28px,6vw,64px); margin-top: 2.4em; }
.stat b{
  display:block; font-family: var(--f-display); font-size: clamp(2.4rem,5vw,3.6rem);
  color: var(--hurt-green); line-height:1;
}
.stat span{ font-family: var(--f-mono); font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color: var(--white-70); }
.section-light .stat span{ color: var(--stone); }

/* service tiles (home page) */
/* compact & minimal service tiles */
.tile-grid {
  display: grid;
  /* Min 180px for smaller screens, scales up smoothly up to 260px on wide screens */
  grid-template-columns: repeat(auto-fill, minmax(clamp(180px, 15vw, 260px), 1fr));
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
}

.tile {
  position: relative;
  background: var(--paper);
  padding: 14px 18px;
  min-height: auto;
  display: flex;
  align-items: center;
  /* Left-align both items together */
  justify-content: flex-start; 
  gap: 10px;
  transition: background .18s ease;
}

.tile:hover { 
  background: var(--ink); 
}

.tile:hover .tile-title { 
  color: #fff; 
}

.tile:hover .tile-arrow { 
  color: var(--hurt-green); 
  /* Nudge arrow top-right on hover for feedback */
  transform: translate(2px, -2px); 
}

.tile-arrow {
  position: static;
  color: var(--stone);
  transition: all .18s ease;
  font-size: 0.95rem;
  flex-shrink: 0;
  line-height: 1;
}

.tile-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  line-height: 1.1;
}

/* testimonial / quote card */
.quote-grid{ display:grid; gap: 1px; background: var(--line-light); border:1px solid var(--line-light);
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); }
.quote-card{ background: var(--paper); padding: 32px 30px; }
.quote-card p{ font-size: 1.05rem; color: var(--stone-dark); }
.quote-card cite{
  font-style:normal; font-family: var(--f-mono); font-size:.78rem;
  letter-spacing:.06em; text-transform:uppercase; color: var(--hurt-green);
}
.stars{ color: var(--hurt-green); letter-spacing:.15em; margin-bottom:.8em; display:block; }

/* contact layout */
.contact-grid{ display:grid; gap: clamp(30px,5vw,64px); grid-template-columns: 1.1fr .9fr; align-items:start; }
@media (max-width: 800px){ .contact-grid{ grid-template-columns: 1fr; } }
.info-row{ display:flex; gap: 16px; padding: 18px 0; border-top:1px solid var(--line-light); }
.info-row:last-child{ border-bottom: 1px solid var(--line-light); }
.info-row .k{ font-family: var(--f-mono); font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color: var(--hurt-green); width: 9em; flex:none; }
.info-row .v{ color: var(--stone-dark); }
.field{ margin-bottom: 18px; }
.field label{ display:block; font-family: var(--f-mono); font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; color: var(--stone); margin-bottom:.5em; }
.field input, .field textarea{
  width:100%; border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 13px 14px; font-family: var(--f-body); font-size: .98rem; background: var(--mist);
}
.field input:focus, .field textarea:focus{ background:#fff; border-color: var(--dirt-blue); }
.field textarea{ min-height: 130px; resize: vertical; }

/* ==========================================================================
   GALLERY — built by js/gallery.js from a numbered image folder
   ========================================================================== */
.gallery{
  display:grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
  gap: 10px;
}
.gallery figure{ margin:0; overflow:hidden; background: var(--mist); cursor: zoom-in; }
.gallery img{
  width:100%; height: 280px; object-fit:cover;
  transition: transform .4s ease;
}
.gallery figure:hover img{ transform: scale(1.05); }
.gallery-empty{
  font-family: var(--f-mono); font-size:.85rem; color: var(--stone);
  border: 1px dashed var(--line-light); padding: 28px; border-radius: var(--radius);
}
.gallery-loading{ font-family: var(--f-mono); font-size:.8rem; color: var(--stone); }

/* lightbox */
.lightbox{
  position:fixed; inset:0; z-index:900; background: rgba(10,13,16,.96);
  display:none; align-items:center; justify-content:center; padding: 5vw;
}
.lightbox.is-open{ display:flex; }
.lightbox img{ max-width:100%; max-height: 88vh; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close{
  position:absolute; top: 22px; right: var(--pad);
  width:46px; height:46px; border-radius:50%; border:1px solid var(--line-dark);
  background:transparent; color:#fff; font-size:1.4rem; cursor:pointer;
}
.lightbox-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  background:transparent; border:0; color:#fff; font-size:2.4rem; cursor:pointer; padding: 10px 16px;
}
.lightbox-prev{ left: 6px; } .lightbox-next{ right: 6px; }

/* ==========================================================================
   FOOTER  (built by js/nav.js into <footer id="site-footer">)
   ========================================================================== */
#site-footer{ background: var(--ink); color: var(--white-70); padding: 64px 0 28px; }
.footer-top{
  display:grid; gap: 40px; grid-template-columns: 1.3fr 1fr 1fr;
  padding-bottom: 44px; border-bottom: 1px solid var(--line-dark);
}
@media (max-width: 760px){ .footer-top{ grid-template-columns: 1fr; } }
.footer-top h4{
  color: var(--white-92); font-size: 1rem; font-family: var(--f-mono);
  letter-spacing:.1em; text-transform:uppercase; font-weight:500; margin-bottom:1em;
}
.footer-links{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:.7em; }
.footer-links a:hover{ color: var(--hurt-green); }
.footer-brand .brand-mark{ font-size:1.8rem; }
.footer-brand p{ color: var(--white-70); max-width: 30em; margin-top: 1em; }
.footer-bottom{
  padding-top: 26px; display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px;
  font-family: var(--f-mono); font-size:.72rem; letter-spacing:.05em; color: var(--stone);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.mt-0{ margin-top:0; }
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior:auto !important; }
}
