/* NZ Cow Shed Grooving — built by YelloElefant */

:root {
  --ink: #1b1f24;
  --slab: #252b32;
  --concrete: #edebe7;
  --dust: #6f6a63;
  --hivis: #ff6b1a;
  /* safety orange */
  --line: #d8d4cd;
  --groove: repeating-linear-gradient(90deg,
      transparent 0 26px,
      rgba(255, 107, 26, .9) 26px 30px);
}

* {
  box-sizing: border-box;
  margin: 0;
}

body {
  font: 400 17px/1.6 "Barlow", system-ui, sans-serif;
  color: var(--ink);
  background: var(--concrete);
}

h1,
h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.05;
}

a {
  color: inherit;
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px clamp(20px, 5vw, 64px);
  padding-left: 20px;
  background: var(--ink);
  color: var(--concrete);
}

.brand {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: .02em;
}

.brand span {
  color: var(--hivis);
  padding: 0 5px;
}

.nav-phone {
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--hivis);
  color: var(--hivis);
  padding: 6px 14px;
  border-radius: 3px;
}

.nav-phone:hover {
  background: var(--hivis);
  color: var(--ink);
}

/* hero */
#toppest {
  background-image: url("assets/ruler.jpeg");
  background-size: cover;
  background-position: center;
  margin: 10px;
}

.hero {
  color: var(--concrete);
  padding: clamp(64px, 10vw, 128px) clamp(20px, 5vw, 64px) 0;
}

.hero-inner {
  max-width: 860px;
  margin-bottom: 32px;
}

.eyebrow {
  color: var(--hivis);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(52px, 9vw, 108px);
}

.lede {
  max-width: 560px;
  margin: 24px 0 32px;
  color: var(--hivis);
  font-size: 18px;
  backdrop-filter: blur(15px) brightness(0.5);
  border-radius: 3px;
  padding: 6px 12px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  font: 600 16px "Barlow", sans-serif;
  background: var(--hivis);
  color: var(--ink);
  border: 2px solid var(--hivis);
  border-radius: 3px;
  padding: 12px 22px;
}

.btn:hover {
  filter: brightness(1.1);
}

.btn.ghost {
  background: transparent;
  color: var(--concrete);
  border-color: #4a525b;
}

.btn.ghost:hover {
  border-color: var(--hivis);
  color: var(--hivis);
  filter: none;
}

.guarantee {
  margin: 22px 0 40px;
  font-size: 14px;
  color: var(--dust);
}

/* signature: the groove cut */
.grooves {
  height: 64px;
  background: var(--groove);
  border-top: 4px solid var(--hivis);
  opacity: .85;
}

/* sections */
.section {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 64px);
}

.section.alt {
  max-width: none;
  background: var(--ink);
  color: var(--concrete);
}

.section.alt>* {
  margin-left: auto;
  margin-right: auto;
}

#when-time>* {
  margin-left: 0;
  margin-right: 0;
}

.section h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  margin-bottom: 36px;
  padding-left: 16px;
  border-left: 6px solid var(--hivis);
}

.section-intro {
  max-width: 900px;
  margin: -16px 0 28px;
  font-size: 18px;
  color: var(--dust);
}

/* benefits */
.benefits {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}

.benefits li {
  background: var(--concrete);
  padding: 24px;
  min-height: 100%;
}

.benefits strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
}

/* when */
.when {
  max-width: 1050px;
  display: grid;
  gap: 16px;
  font-size: 18px;
  margin: 0 auto 0 0;
}

.when strong {
  color: var(--hivis);
}

.when a {
  color: var(--hivis);
  text-decoration: underline;
}

/* gallery */
.gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.gallery img {
  width: 100%;
  aspect-ratio: 6/10;
  object-fit: cover;
  background: var(--slab);
  border-radius: 3px;
  cursor: zoom-in;
  border: 1px solid #3a424b;
}

.gallery.compact img {
  aspect-ratio: 4/3;
}

.gallery-intro {
  max-width: 900px;
  margin-bottom: 20px;
}

.gallery-cta-wrap {
  margin-top: 18px;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 26px);
  background: rgba(0, 0, 0, 0.82);
  z-index: 1000;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(96vw, 1400px);
  max-height: 86vh;
  border-radius: 4px;
  border: 2px solid var(--hivis);
  object-fit: contain;
  background: #111;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: 1px solid #4a525b;
  background: rgba(27, 31, 36, 0.9);
  color: var(--concrete);
  cursor: pointer;
  border-radius: 3px;
  font: 600 14px/1 "Barlow", sans-serif;
  padding: 10px 12px;
}

.lightbox-close {
  top: 18px;
  right: 18px;
}

.lightbox-prev {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-caption {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(90vw, 1100px);
  color: var(--concrete);
  text-align: center;
  font-size: 14px;
}

.section.alt .gallery-intro {
  color: #d8d4cd;
}

.section.alt .gallery img {
  border-color: #4a525b;
}

/* form */
.form-lede {
  max-width: 1000px;
  margin: 0 auto 28px;
  color: var(--dust);
  text-align: center;
  font-weight: bold;
}

.form-lede a {
  color: var(--hivis);
}

form {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 500;
  font-size: 15px;
}

input,
textarea {
  font: inherit;
  color: var(--concrete);
  background: var(--slab);
  border: 1px solid #3a424b;
  border-radius: 3px;
  padding: 11px 12px;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--hivis);
  outline-offset: 1px;
}

.hp {
  position: absolute;
  left: -9999px;
}

.form-status {
  min-height: 1.5em;
  font-weight: 500;
}

.form-status.ok {
  color: #7ddb8a;
  text-align: center;
}

.form-status.err {
  color: var(--hivis);
}

/* footer */
footer {
  background: var(--ink);
  color: var(--concrete);
  padding: 32px clamp(20px, 5vw, 64px);
  border-top: 4px solid var(--hivis);
}

footer .fine {
  color: var(--dust);
  font-size: 14px;
  margin-top: 4px;
}

#contact {
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-auto-flow: dense;
}

#name {
  grid-column: 1 / span 2;
}

#phone {
  grid-column: 3;
}

#email {
  grid-column: 4;
}

.nav img {
  width: 100px;
  height: 65px;
}



#maps-pin-label {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

#maps-pin-label svg {
  width: 16px;
  height: 16px;
}

.help-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.help-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--dust);
  cursor: help;
}

.help-trigger:hover,
.help-trigger:focus-visible {
  color: var(--hivis);
  outline: none;
}

.help-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: min(300px, 78vw);
  padding: 8px 10px;
  border: 1px solid #4a525b;
  border-radius: 4px;
  background: var(--ink);
  color: var(--concrete);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 20;
}

.help-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--ink);
}

.help-wrap:hover .help-tip,
.help-wrap:focus-within .help-tip {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 560px) {
  .row {
    grid-template-columns: 1fr;
  }

  #contact {
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr 1fr 1fr;
    grid-auto-flow: row;
  }

  #contact>* {
    grid-column: 1 !important;
  }

  .nav-phone {
    font-size: 14px;
  }

  .lede {
    display: none;
  }

  #toppest h1 {
    margin-bottom: 18px;
  }

  .nav-phone {
    display: none;
  }

  .brand {
    width: 100%;
    text-align: center;
    font-size: 18px;
  }

  .nav img {
    width: 60px;
    margin-right: 0 !important;
  }
}