/* Shoreline Plumbing — concept site
   BRAND: colour and type are the custom properties below.
   BRAND: copy, phone, and address live in index.html.
   Fraunces and Source Sans 3, SIL Open Font License. Latin woff2. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* BRAND: colour — deep teal on a light grey page */
  --paper: #f3f5f6;
  --white: #ffffff;
  --ink: #16282e;
  --muted: #3c535a;
  --line: #d5dee0;
  --teal: #0c4c54;
  --teal-deep: #08383e;
  --sea: #1a6560;
  --foam: #e6f2ef;
  --open: #0c6842;
  --open-bg: #e4f5eb;
  --closed: #6e452c;
  --closed-bg: #f8efe6;
  --danger: #8a2424;
  --danger-bg: #fdeeee;
  --focus: #0b5f68;
  --shadow: 0 16px 40px rgba(22, 40, 46, 0.08);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --wrap: 1120px;
  --header: 8.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
.wordmark-name {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(2.35rem, 5vw, 4.15rem);
}

h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

h3 {
  margin-bottom: 0.35rem;
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--teal);
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--teal-deep);
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 80;
  transform: translateY(-160%);
  background: var(--white);
  color: var(--ink);
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  font-weight: 700;
}

.skip:focus {
  transform: none;
}

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

.wrap {
  width: min(var(--wrap), calc(100% - 2rem));
  margin-inline: auto;
}

section[id],
#quote {
  scroll-margin-top: var(--header);
}

.sticky-shell {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
}

.sticky-shell.is-stuck {
  box-shadow: 0 10px 28px rgba(22, 40, 46, 0.07);
}

.concept-bar {
  background: var(--teal);
  color: #f4faf8;
}

.concept-bar p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.7rem;
  margin: 0;
  padding: 0.48rem 0;
  font-size: 0.92rem;
  line-height: 1.35;
}

.badge {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  color: var(--teal);
  font-weight: 700;
  font-size: 0.84rem;
  line-height: 1.2;
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
}

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

.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  min-height: 4.15rem;
  padding: 0.55rem 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--ink);
}

.mark {
  flex: none;
}

.wordmark-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.wordmark-name {
  font-size: 1.28rem;
}

.wordmark-trade {
  margin-top: 0.22rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sea);
}

.site-nav {
  display: flex;
  flex-basis: 100%;
  flex-direction: column;
  order: 5;
  margin-left: 0;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: var(--teal);
}

.nav-quote {
  margin-top: 0.75rem;
  border-top: 0;
}

.js .site-nav {
  display: none;
}

.js .site-nav.is-open {
  display: flex;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-tools .header-quote {
  display: none;
}

.call-number {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.nav-toggle-icon {
  position: relative;
  width: 1.05rem;
  height: 1px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
  box-shadow: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before,
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.05rem;
  height: 1px;
  background: currentColor;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  transform: rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 48px;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}

.btn-solid {
  background: var(--teal);
  color: var(--white);
}

.btn-solid:hover {
  background: var(--teal-deep);
  color: var(--white);
}

.btn-solid:focus-visible {
  outline-color: var(--teal-deep);
}

.btn-ghost {
  background: var(--white);
  color: var(--teal);
  border-color: var(--teal);
}

.btn-ghost:hover {
  background: var(--foam);
  color: var(--teal-deep);
}

.btn-block {
  width: 100%;
}

.band {
  padding: 3.75rem 0;
}

.band-white {
  background: var(--white);
}

.kicker {
  margin: 0 0 0.45rem;
  color: var(--sea);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lede {
  max-width: 38rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}

.section-head p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.hero {
  padding-top: 2.25rem;
}

.hero-grid {
  display: grid;
  gap: 1.75rem;
}

.actions {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  margin: 1.1rem 0 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.18rem 0.7rem 0.18rem 0.55rem;
  background: #ece7df;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.status-pill::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
}

.status-pill.is-open {
  background: var(--open-bg);
  color: var(--open);
}

.status-pill.is-closed {
  background: var(--closed-bg);
  color: var(--closed);
}

.status-detail {
  color: var(--ink);
  font-weight: 600;
}

.fine {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-photo img,
.gallery img,
.steps-photo img,
.areas-photo img,
.visit-photo img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(22, 40, 46, 0.08);
}

.hero-photo figcaption,
.gallery figcaption,
.steps-photo figcaption,
.areas-photo figcaption,
.visit-photo figcaption {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.service-list {
  display: grid;
  gap: 0.85rem;
}

.service {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.15rem 1.25rem;
}

.band-white .service {
  background: var(--paper);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  background: var(--foam);
  color: var(--teal);
}

.service p {
  margin: 0;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 0.75rem;
  margin-top: 1.75rem;
}

.gallery img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  height: auto;
}

.gallery .pos-hands {
  object-position: center 68%;
}

.gallery .pos-tap {
  object-position: center 42%;
}

.gallery .pos-hob {
  object-position: center 78%;
}

.steps-grid,
.areas-grid,
.visit-grid {
  display: grid;
  gap: 1.75rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.65rem;
  line-height: 1;
  color: var(--teal);
  padding-top: 0.1rem;
}

.steps h3 {
  margin-top: 0.1rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.steps-photo img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 36%;
  max-height: 34rem;
}

.suburbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.suburbs li {
  padding: 0.38rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-weight: 600;
}

.band-white .suburbs li {
  background: var(--white);
}

.suburbs li.is-primary {
  background: var(--foam);
  border-color: #b7d5cf;
  color: var(--teal-deep);
}

.areas-photo img,
.visit-photo img {
  height: auto;
}

.facts {
  margin: 1.35rem 0 0.4rem;
}

.facts div + div {
  margin-top: 0.85rem;
}

.facts dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sea);
}

.facts dd {
  margin: 0.12rem 0 0;
  font-size: 1.08rem;
}

.hours {
  width: 100%;
  margin-top: 1.1rem;
  border-collapse: collapse;
}

.hours th,
.hours td {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  text-align: left;
  vertical-align: baseline;
}

.hours th {
  color: var(--muted);
  font-weight: 600;
  padding-right: 1rem;
}

.hours td {
  text-align: right;
}

.form-card,
.thanks {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem 1.15rem 1.3rem;
  box-shadow: var(--shadow);
}

.form-card h3,
.thanks h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.field {
  margin: 0 0 0.9rem;
}

.field label {
  display: block;
  margin-bottom: 0.32rem;
  font-weight: 700;
}

.req {
  color: var(--teal);
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.75rem;
  border: 1px solid #c5d0d3;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
}

textarea {
  min-height: 8.5rem;
  resize: vertical;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--teal) 50%), linear-gradient(135deg, var(--teal) 50%, transparent 50%);
  background-position: calc(100% - 1.1rem) 55%, calc(100% - 0.75rem) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--teal);
}

[aria-invalid="true"] {
  border-color: var(--danger);
}

.field-error {
  margin: 0.35rem 0 0;
  color: var(--danger);
  font-size: 0.95rem;
  font-weight: 600;
}

.form-alert {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: var(--danger-bg);
  color: var(--danger);
}

.form-alert p {
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.form-alert ul {
  margin: 0;
  padding-left: 1.1rem;
}

.form-alert a {
  color: inherit;
}

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

.thanks .btn {
  margin-top: 0.4rem;
}

.site-footer {
  background: #e7ecee;
  color: var(--ink);
  padding: 1.35rem 0 1.6rem;
}

.site-footer p {
  margin: 0;
  text-align: center;
  font-size: 0.98rem;
}

@media (max-width: 420px) {
  .wordmark-name {
    font-size: 1.12rem;
  }

  .mark {
    width: 34px;
    height: 34px;
  }

  .header-bar {
    gap: 0.4rem;
  }

  .header-tools .btn,
  .nav-toggle {
    padding-inline: 0.7rem;
  }
}

@media (min-width: 700px) {
  .actions {
    display: flex;
    flex-wrap: wrap;
  }

  .field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }

  .service-list {
    grid-template-columns: 1fr 1fr;
  }

  .service-list article:last-child {
    grid-column: 1 / -1;
  }

  .form-card,
  .thanks {
    padding: 1.45rem 1.4rem 1.5rem;
  }
}

@media (min-width: 960px) {
  :root {
    --header: 7.4rem;
  }

  .band {
    padding: 5.25rem 0;
  }

  .hero {
    padding-top: 3.25rem;
    padding-bottom: 4.5rem;
  }

  .header-bar {
    flex-wrap: nowrap;
    min-height: 4.4rem;
  }

  .wordmark {
    margin-right: 0;
  }

  .site-nav,
  .js .site-nav,
  .js .site-nav.is-open {
    display: flex;
    flex-basis: auto;
    flex-direction: row;
    align-items: center;
    order: 0;
    gap: 1.35rem;
    margin-left: auto;
  }

  .site-nav a {
    padding: 0.25rem 0;
    border-top: 0;
  }

  .site-nav a[aria-current="true"] {
    box-shadow: inset 0 -2px 0 var(--teal);
  }

  .nav-quote {
    display: none;
  }

  .header-tools .header-quote {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .call-number {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 3rem;
  }

  .service-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .service-list article:nth-child(-n + 3) {
    grid-column: span 2;
  }

  .service-list article:nth-child(n + 4) {
    grid-column: span 3;
  }

  .service-list article:last-child {
    grid-column: span 3;
  }

  .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }

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

  .steps-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.75fr);
    align-items: start;
    gap: 2.5rem;
  }

  .areas-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(16rem, 0.85fr);
    align-items: center;
    gap: 2.5rem;
  }

  .visit-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-areas:
      "details form"
      "photo form";
    align-items: start;
    gap: 1.5rem 2.5rem;
  }

  .visit-details {
    grid-area: details;
  }

  .visit-form {
    grid-area: form;
  }

  .visit-photo {
    grid-area: photo;
    align-self: end;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .badge,
  .status-pill,
  .btn,
  .service,
  .suburbs li {
    border: 1px solid ButtonText;
  }
}

::selection {
  background: #c9e4df;
  color: var(--ink);
}
