/* 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;
}

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

/* benefits */
.benefits {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 2px;
  justify-content: center;
  background: var(--line);
  border: 1px solid var(--line);
  flex-wrap: wrap;
}

.benefits li {
  background: var(--concrete);
  padding: 24px;
  flex: 1 1 200px;
}

.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 !important;
}

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


/* gallery */
.gallery {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.gallery img {
  width: 20%;
  aspect-ratio: 6/10;
  background: var(--slab);
  border-radius: 3px;
  flex: 0 1;
}

/* form */
.form-lede {
  max-width: 1000px;
  margin-bottom: 28px;
  color: #c9c6c0;
  text-align: center;
}

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

form {
  max-width: 1000px;
  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;
}

@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;
  }
}