/* Copperline Plumbing & Gas (sample): copper pipe and its green patina, on clean
   paper white. Barlow was drawn from road and highway signs, so it reads fast and
   feels practical. Built to work with no photos at all. */

:root {
  --patina: #0f4c4a;
  --patina-2: #0a3634;
  --patina-3: #16625f;
  --copper: #c46a2f;
  --copper-hi: #db7e3e;
  --paper: #f6f7f4;
  --pale: #e3efec;
  --text: #1b2626;
  --muted: #56625f;
  --line: #d6dfdc;
  --wrap: 1140px;
  --gutter: clamp(20px, 5vw, 48px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Barlow", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Barlow Condensed", "Barlow", sans-serif;
  font-weight: 700;
  line-height: 1.02;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.85em 1.4em;
  border: 2px solid transparent;
  border-radius: 8px;
  font: 700 1.05rem/1.2 "Barlow", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn-copper {
  background: var(--copper);
  color: #fff;
}

.btn-copper:hover {
  background: var(--copper-hi);
}

.btn-line {
  border-color: #fff;
  color: #fff;
}

.btn-line:hover {
  background: #fff;
  color: var(--patina);
}

.btn-patina {
  background: var(--patina);
  color: #fff;
}

.btn-patina:hover {
  background: var(--patina-3);
}

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

/* Top strip and header */

.top-strip {
  background: var(--patina-2);
  color: #dcebe7;
  font-size: 0.95rem;
}

.top-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  padding-block: 8px;
}

.top-strip a {
  color: #fff;
  font-weight: 700;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 14px;
}

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

.logo svg {
  width: 42px;
}

.logo-words {
  display: grid;
  line-height: 1;
}

.logo-name {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--patina);
}

.logo-sub {
  color: var(--copper);
  font-size: 0.85rem;
  font-weight: 700;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

.nav a:not(.btn) {
  text-decoration: none;
}

.nav a:not(.btn):hover {
  color: var(--copper);
}

.nav .btn {
  padding: 0.6em 1em;
}

/* Hero */

.hero {
  background: var(--patina);
  color: #fff;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding-block: clamp(48px, 8vw, 96px);
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
}

.hero h1 span {
  color: #f3b27e;
}

.hero .lede {
  max-width: 44ch;
  margin-top: 20px;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: #d6e8e4;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

.trust li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.pipes {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}

/* The drip falls from the tap and starts again */
.pipes .drip {
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: drip 2.6s cubic-bezier(0.5, 0, 0.9, 0.6) infinite;
}

@keyframes drip {
  0%, 20% { transform: translateY(0) scale(0.2); opacity: 0; }
  35% { transform: translateY(0) scale(1); opacity: 1; }
  80% { transform: translateY(70px) scale(1); opacity: 1; }
  100% { transform: translateY(78px) scale(1.4, 0.3); opacity: 0; }
}

/* Sections */

.section {
  padding-block: clamp(64px, 9vw, 104px);
}

.section-head {
  max-width: 640px;
}

.section-head p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Copper pipe between sections. --above and --below are the colours of the
   sections either side, so the pipe sits right on the join. */

.pipe-run {
  --above: var(--patina);
  --below: #fff;
  position: relative;
  z-index: 1;
  height: 28px;
  background:
    repeating-linear-gradient(90deg, transparent 0 176px, #8a4a1c 176px 179px, #b8662c 179px 197px, #8a4a1c 197px 200px),
    linear-gradient(to bottom, transparent 4px, #7c3f15 4px, #c46a2f 8px, #f3b27e 11px, #db7e3e 14px, #a4561f 20px, #7c3f15 24px, transparent 24px),
    linear-gradient(to bottom, var(--above) 50%, var(--below) 50%);
}

.pipe-run-bottom {
  --above: var(--pale);
  --below: var(--patina);
}

.pipe-gauge {
  position: absolute;
  right: 14%;
  bottom: 14px;
  width: 50px;
}

/* What's the problem? helper */

.fix {
  background: #fff;
}

.fix-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
  margin-top: 36px;
}

.fix-options {
  display: grid;
  gap: 10px;
}

.fix-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--text);
  font: 700 1.1rem/1.2 "Barlow", sans-serif;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.fix-option svg {
  width: 40px;
  height: 40px;
  flex: none;
}

.fix-option:hover {
  border-color: var(--patina-3);
}

.fix-option.is-active {
  border-color: var(--copper);
  background: #fdf1e8;
}

.fix-panel {
  padding: clamp(22px, 3vw, 32px);
  border-radius: 16px;
  background: var(--patina);
  color: #fff;
  scroll-margin-top: 16px;
}

/* Without the script, every answer shows in a list */
.fix-panel + .fix-panel {
  margin-top: 16px;
}

.js .fix-panel:not(.is-active) {
  display: none;
}

/* Gas gets a burnt-copper panel, so it reads as the urgent one */
.fix-panel-urgent {
  background: #6e2a12;
}

.fix-speed {
  display: inline-block;
  padding: 0.4em 0.85em;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.95rem;
}

.fix-speed strong {
  color: #f3b27e;
}

.fix-panel h3 {
  margin-top: 16px;
  font-size: clamp(1.7rem, 3vw, 2.1rem);
}

.fix-steps {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: fix;
}

.fix-steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  counter-increment: fix;
  color: #e6f1ee;
}

.fix-steps li::before {
  content: counter(fix);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--copper);
  color: #fff;
  font: 700 1.1rem/1 "Barlow Condensed", sans-serif;
}

.fix-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* Upfront prices */

.prices-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.section-head .stamp {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  margin-top: 32px;
  padding: 18px;
  border: 3px solid var(--copper);
  border-radius: 50%;
  outline: 2px dashed var(--copper);
  outline-offset: -12px;
  color: var(--copper);
  font: 700 1.45rem/1.05 "Barlow Condensed", sans-serif;
  text-align: center;
  transform: rotate(-8deg);
}

.price-rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 3px solid var(--patina);
}

.price-rows li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.price-rows .job {
  font-weight: 600;
  font-size: 1.1rem;
}

.price-rows .cost {
  flex: none;
  color: var(--copper);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1;
}

.price-rows .cost small {
  margin-right: 4px;
  color: var(--muted);
  font-family: "Barlow", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}

#areas {
  background: var(--pale);
}

/* Services */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 clamp(24px, 4vw, 48px);
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.services li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 4px 16px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.services svg {
  grid-row: span 2;
  width: 48px;
  height: 48px;
}

.services h3 {
  font-size: 1.5rem;
}

.services p {
  color: var(--muted);
}

/* How it works */

.how {
  background: #fff;
  border-block: 1px solid var(--line);
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px clamp(24px, 4vw, 48px);
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.how-steps li {
  counter-increment: step;
}

.how-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--copper);
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
}

.how-steps h3 {
  font-size: 1.6rem;
}

.how-steps p {
  margin-top: 6px;
  color: var(--muted);
}

/* Areas */

.areas-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

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

.suburbs li {
  padding: 0.45em 0.95em;
  border: 2px solid var(--patina);
  border-radius: 999px;
  color: var(--patina);
  font-weight: 700;
}

.areas-note {
  margin-top: 20px;
  color: var(--muted);
}

.areas-note a {
  color: var(--copper);
  font-weight: 700;
}

/* Quote */

.quote {
  background: var(--patina);
  color: #fff;
}

.quote-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.quote h2 {
  color: #fff;
}

.quote .section-head p {
  color: #d6e8e4;
}

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.quote-form .full {
  grid-column: 1 / -1;
}

.quote-form label,
.quote-form legend {
  display: block;
  margin-bottom: 6px;
  padding: 0;
  font-weight: 700;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 0.75em 0.85em;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(196, 106, 47, 0.35);
}

.quote-form textarea {
  min-height: 110px;
  resize: vertical;
}

.quote-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.urgency {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.urgency label {
  margin: 0;
  cursor: pointer;
}

.urgency input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.urgency span {
  display: block;
  padding: 0.5em 1em;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  font-weight: 700;
}

.urgency input:checked + span {
  border-color: var(--copper);
  background: var(--copper);
}

.urgency input:focus-visible + span {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.quote-error {
  color: #ffd3b0;
  font-weight: 700;
}

.quote-form .btn {
  justify-self: start;
}

.call-card {
  padding: 28px 24px;
  border-radius: 12px;
  background: var(--patina-2);
}

.call-card h3 {
  font-size: 1.8rem;
}

.call-card .big-phone {
  display: block;
  margin-top: 10px;
  color: #f3b27e;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 2.3rem;
  line-height: 1.1;
  text-decoration: none;
}

.call-card p {
  margin-top: 12px;
  color: #d6e8e4;
}

.call-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--patina-3);
  font-size: 0.95rem;
}

.call-card dt {
  color: #a9cbc4;
}

.call-card dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}

/* Footer */

.site-footer {
  background: var(--patina-2);
  color: #cfe3de;
  font-size: 0.95rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 28px;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Phones: call and quote buttons always within thumb reach */
.thumb-bar {
  display: none;
}

@media (max-width: 860px) {
  .hero-inner,
  .areas-inner,
  .quote-inner,
  .fix-layout,
  .prices-inner {
    grid-template-columns: 1fr;
  }

  /* Phones and tablets: the problems sit two across, above the answer */
  .fix-options {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .fix-option {
    gap: 10px;
    padding: 10px 12px;
    font-size: 1rem;
  }

  .fix-option svg {
    width: 32px;
    height: 32px;
  }

  .section-head .stamp {
    width: 124px;
    height: 124px;
    margin-top: 24px;
    font-size: 1.2rem;
  }

  .pipe-gauge {
    right: 10%;
    width: 42px;
  }

  .pipes {
    display: none;
  }

  .services {
    grid-template-columns: 1fr 1fr;
  }

  .how-steps {
    grid-template-columns: 1fr;
  }

  .nav li:not(:last-child) {
    display: none;
  }
}

@media (max-width: 600px) {
  .services,
  .quote-form {
    grid-template-columns: 1fr;
  }

  .top-strip .wrap {
    justify-content: center;
  }

  .top-strip .hours-note {
    display: none;
  }

  .actions .btn,
  .fix-actions .btn {
    flex: 1 1 100%;
  }

  .price-rows .job {
    font-size: 1rem;
  }

  .price-rows .cost {
    font-size: 1.55rem;
  }

  .thumb-bar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px var(--gutter);
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 20px -12px rgba(15, 76, 74, 0.35);
  }

  .thumb-bar {
    transition: transform 0.25s ease;
  }

  /* Tucked away while the big hero buttons are on screen */
  .thumb-bar.is-tucked {
    transform: translateY(110%);
  }

  .thumb-bar .btn {
    padding: 0.75em 0.5em;
  }

  .quote-form .btn {
    justify-self: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pipes .drip {
    animation: none;
    opacity: 0;
  }
}
