:root {
  --ink: #142126;
  --muted: #526168;
  --line: #d7dde0;
  --concrete: #f0f2ef;
  --foam: #f8faf8;
  --steel: #6d7d83;
  --teal: #0b6f78;
  --teal-dark: #084e56;
  --tide: #d7ecec;
  --rust: #b96732;
  --white: #ffffff;
  --shadow: 0 22px 50px rgba(20, 33, 38, 0.14);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--foam);
  font-family: Aptos, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

main,
section,
div,
article {
  min-width: 0;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 48px);
  background: #ffffff;
  border-bottom: 1px solid rgba(215, 221, 224, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
}

.brand-icon {
  width: clamp(44px, 7vw, 60px);
  height: auto;
}

.brand-text {
  width: clamp(128px, 18vw, 186px);
  height: auto;
}

.site-nav {
  display: none;
  gap: 8px;
  align-items: center;
}

.site-nav a {
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--teal-dark);
  background: var(--tide);
  outline: none;
}

.nav-toggle {
  display: inline-grid;
  gap: 5px;
  width: 44px;
  height: 44px;
  place-content: center;
  background: var(--ink);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--white);
}

.hero {
  display: grid;
  gap: 34px;
  min-height: calc(100svh - 76px);
  padding: clamp(52px, 10vw, 96px) clamp(18px, 4vw, 48px) 34px;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(11, 111, 120, 0.12), transparent 42%),
    linear-gradient(180deg, var(--foam), var(--concrete));
}

.page-hero {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 10vw, 118px) 0 clamp(48px, 7vw, 82px);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 920px;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-copy {
  max-width: 690px;
  align-self: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 8vw, 5.9rem);
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 3.8rem);
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.hero-copy > p:not(.eyebrow),
.intro > p,
.split-copy p,
.quote p,
.area-panel p {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button.primary {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 12px 28px rgba(11, 111, 120, 0.25);
}

.button.secondary {
  color: var(--teal-dark);
  background: var(--white);
  border: 1px solid var(--line);
}

.hero-visual {
  position: relative;
  width: 100%;
  min-height: 320px;
  align-self: stretch;
  border: 1px solid rgba(20, 33, 38, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent 45%),
    repeating-linear-gradient(90deg, rgba(20, 33, 38, 0.06) 0 1px, transparent 1px 58px),
    linear-gradient(135deg, #dfe5e3, #9fb2b5 55%, #d7ecec);
  box-shadow: var(--shadow);
}

.hero-photo {
  width: 100%;
  min-height: 320px;
  margin: 0;
  align-self: stretch;
  border: 1px solid rgba(20, 33, 38, 0.1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-photo img,
.image-band img,
.photo-grid img,
.photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sun-line {
  position: absolute;
  inset: 20% 12% auto auto;
  width: 34%;
  height: 2px;
  background: var(--rust);
}

.pile-grid {
  position: absolute;
  right: 10%;
  bottom: 16%;
  left: 10%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(8px, 2vw, 18px);
  align-items: end;
}

.pile-grid span {
  display: block;
  min-height: 210px;
  border: 1px solid rgba(20, 33, 38, 0.12);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.44), transparent 28%, rgba(20, 33, 38, 0.1)),
    repeating-linear-gradient(180deg, transparent 0 32px, rgba(20, 33, 38, 0.05) 32px 34px),
    #cfd4d2;
  transform: skewX(-9deg);
}

.pile-grid span:nth-child(2) {
  min-height: 255px;
}

.pile-grid span:nth-child(4) {
  min-height: 240px;
}

.water-line {
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.38) 0 2px, transparent 2px 22px),
    linear-gradient(90deg, rgba(11, 111, 120, 0.72), rgba(8, 78, 86, 0.82));
}

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 108px) 0;
}

.intro {
  display: grid;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.product-grid {
  display: grid;
  gap: 16px;
}

.product-grid article {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(20, 33, 38, 0.06);
}

.article-number {
  display: block;
  margin-bottom: 42px;
  color: var(--rust);
  font-weight: 900;
}

.product-grid p,
.application-list p {
  color: var(--muted);
}

.image-band {
  display: grid;
  gap: 24px;
  align-items: center;
  border-top: 1px solid var(--line);
}

.image-band img {
  min-height: 260px;
  max-height: 440px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-band p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.photo-grid {
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--line);
}

.photo-grid figure {
  margin: 0;
}

.photo-grid figure {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(20, 33, 38, 0.06);
}

.photo-grid img {
  aspect-ratio: 4 / 3;
}

.photo-grid figcaption {
  padding: 14px 16px;
  color: var(--ink);
  font-weight: 900;
}

.photo-strip {
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--line);
}

.photo-strip img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(20, 33, 38, 0.06);
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--teal-dark);
  font-weight: 900;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.feature-band {
  display: grid;
  gap: 24px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.pricing-section {
  display: grid;
  gap: 28px;
  align-items: start;
}

.pricing-intro p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.pricing-grid {
  display: grid;
  gap: 16px;
}

.price-card {
  padding: clamp(24px, 4vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(20, 33, 38, 0.06);
}

.price-card.featured {
  border-color: rgba(11, 111, 120, 0.45);
  box-shadow: 0 22px 45px rgba(11, 111, 120, 0.14);
}

.price-card h3 {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: clamp(3rem, 9vw, 5rem);
}

.price-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 800;
}

.shipping-note {
  padding: clamp(22px, 4vw, 32px);
  background: linear-gradient(135deg, var(--ink), var(--teal-dark));
  border-radius: 8px;
  color: var(--white);
  box-shadow: var(--shadow);
}

.shipping-note .eyebrow {
  color: var(--tide);
}

.shipping-note h3 {
  margin-bottom: 10px;
}

.shipping-note p:not(.eyebrow) {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.calculator-card {
  padding: clamp(18px, 4vw, 28px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(20, 33, 38, 0.06);
}

.calculator-heading,
.calculator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.calculator-heading h3,
.calculator-results h3 {
  margin-bottom: 0;
}

.calculator-row-controls {
  display: flex;
  justify-content: flex-start;
  margin: -6px 0 22px;
}

.add-line {
  min-height: 42px;
}

.calculator-table {
  margin: 22px 0;
  overflow-x: auto;
}

.calculator-table table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.calculator-table th,
.calculator-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.calculator-table th {
  color: var(--teal-dark);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calculator-table input,
.calculator-table select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
}

.calculator-table td:nth-child(4),
.calculator-table td:nth-child(5) {
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}

.remove-line {
  width: 34px;
  height: 34px;
  color: var(--muted);
  background: var(--foam);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 900;
}

.remove-line:hover,
.remove-line:focus-visible {
  color: var(--teal-dark);
  border-color: var(--teal);
  outline: none;
}

.remove-line:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.calculator-actions p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.calculator-results {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.calculator-results[hidden] {
  display: none;
}

.result-line {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.result-line strong,
.estimate-total {
  color: var(--ink);
}

.estimate-total {
  margin: 18px 0 0;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  font-weight: 900;
}

.spec-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.spec-list li {
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.split {
  display: grid;
  gap: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.application-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.application-list div {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.application-list h3 {
  margin-bottom: 6px;
}

.area-panel {
  display: grid;
  gap: 28px;
  padding: clamp(24px, 5vw, 42px);
  color: var(--white);
  background: linear-gradient(135deg, var(--ink), var(--teal-dark));
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.area-panel p {
  color: rgba(255, 255, 255, 0.82);
}

.map-mark {
  position: relative;
  min-height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at 56% 45%, rgba(185, 103, 50, 0.9) 0 6px, transparent 7px),
    linear-gradient(100deg, transparent 0 45%, rgba(255, 255, 255, 0.22) 45% 47%, transparent 47%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 34px);
}

.map-mark span {
  position: absolute;
  top: 44%;
  left: 55%;
  width: 88px;
  height: 88px;
  border: 1px solid rgba(185, 103, 50, 0.9);
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.area-list li {
  padding: 9px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-weight: 700;
}

.quote {
  display: grid;
  gap: 24px;
  align-items: center;
}

.contact-block {
  display: grid;
  gap: 10px;
}

.contact-block a {
  display: block;
  padding: 18px;
  color: var(--teal-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(18px, 4vw, 48px);
  color: rgba(255, 255, 255, 0.76);
  background: var(--ink);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 767px) {
  .hero {
    min-height: auto;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .site-nav {
    position: fixed;
    inset: 76px 12px auto;
    display: grid;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  body.nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 14px;
  }

  .calculator-card {
    padding: 18px;
  }

  .calculator-table {
    margin: 18px 0 14px;
    overflow: visible;
  }

  .calculator-table table,
  .calculator-table tbody,
  .calculator-table tr,
  .calculator-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .calculator-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .calculator-table tr {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
    background: var(--foam);
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .calculator-table tr + tr {
    margin-top: 14px;
  }

  .calculator-table td {
    padding: 0;
    border-bottom: 0;
  }

  .calculator-table td::before {
    display: block;
    margin-bottom: 6px;
    color: var(--teal-dark);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .calculator-table td:nth-child(1)::before {
    content: "Pile Size (LF)";
  }

  .calculator-table td:nth-child(2)::before {
    content: "Quantity";
  }

  .calculator-table td:nth-child(3)::before {
    content: "Strand Count";
  }

  .calculator-table td:nth-child(4)::before {
    content: "Rate";
  }

  .calculator-table td:nth-child(5)::before {
    content: "Line Total";
  }

  .calculator-table td:nth-child(4),
  .calculator-table td:nth-child(5) {
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
  }

  .calculator-table td:nth-child(6) {
    display: flex;
    justify-content: flex-end;
  }

  .remove-line {
    width: auto;
    min-width: 96px;
    padding: 0 12px;
  }

  .calculator-heading,
  .calculator-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .calculator-row-controls {
    display: block;
  }

  .add-line {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
  }

  .hero {
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
    align-items: center;
  }

  .hero-visual {
    min-height: 560px;
  }

  .hero-photo {
    min-height: 560px;
  }

  .intro,
  .split,
  .image-band,
  .feature-band,
  .quote {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .image-band.reverse {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .image-band.reverse img {
    order: 2;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .photo-grid,
  .photo-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .area-panel {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
  }
}
