/* Intercity Laundry, shared stylesheet */

:root {
  /* Tuned to the logo: navy #254963 and sky #7baecb */
  --ink: #1d3c54;          /* deep navy: hero, footer */
  --ink-2: #254963;        /* logo navy */
  --blue: #2b6891;         /* laundry blue: buttons, links */
  --blue-dark: #21557a;
  --sky: #ebf3f8;          /* pale tint: alternating sections */
  --sky-2: #d3e5f0;
  --light: #7baecb;        /* logo sky: accents on dark ground */
  --steel: #4a6378;        /* secondary text */
  --text: #172b3b;
  --bg: #fbfaf6;           /* cotton white */
  --white: #ffffff;
  --line: #d5e3ec;
  --focus: #2b6891;

  --r: 6px;                /* the one border radius */
  --wrap: 72rem;
  --gutter: 1rem;

  --font-head: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Public Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 7vw, 4.25rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-dark); }

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

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

@media (min-width: 40em) {
  :root { --gutter: 1.5rem; }
}

.measure { max-width: 66ch; }
.lede { font-size: 1.15rem; color: var(--steel); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--r);
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border: 2px solid var(--blue);
  border-radius: var(--r);
  background: var(--blue);
  color: var(--white);
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }

.btn-secondary {
  background: transparent;
  color: var(--blue);
}
.btn-secondary:hover { background: var(--sky); color: var(--blue-dark); }

.on-dark .btn { background: #2f72a0; border-color: #2f72a0; }
.on-dark .btn:hover { background: #2b6891; border-color: #7baecb; }
.on-dark .btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}
.on-dark .btn-secondary:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand:hover { color: var(--ink); }
.brand img { width: auto; height: 2.75rem; max-width: none; flex: none; }

@media (min-width: 56.25em) {
  .brand img { height: 3.5rem; }
}

.menu-toggle {
  display: none;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--line);
  border-radius: var(--r);
  background: var(--white);
  color: var(--ink);
  font: 600 1rem/1 var(--font-body);
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a:not(.btn) {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding-block: 0.4rem;
}
.site-nav a:not(.btn):hover { color: var(--blue); text-decoration: underline; }
.site-nav a[aria-current="page"]:not(.btn) {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
.site-nav .btn { min-height: 2.75rem; padding: 0.55rem 1.1rem; }

/* Without JavaScript the nav simply wraps under the logo on small screens. */
@media (max-width: 56.24em) {
  .header-inner { flex-wrap: wrap; column-gap: 0.75rem; }
  .brand { min-height: 4.5rem; }

  .js .menu-toggle { display: inline-flex; align-items: center; }
  .js .site-nav { display: none; width: 100%; }
  .js .site-nav.is-open { display: block; }

  .js .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 1rem;
  }
  .js .site-nav li { border-top: 1px solid var(--line); }
  .js .site-nav a:not(.btn) { display: block; padding: 0.85rem 0; }
  .js .site-nav li:last-child { border-top: 0; padding-top: 0.75rem; }
  .js .site-nav .btn { width: 100%; }
}

/* Sections */

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-sky { background: var(--sky); }
.section-white { background: var(--bg); }

.section-head { max-width: 44rem; margin-bottom: 2.75rem; }
.section-head p { color: var(--steel); font-size: 1.125rem; }

/* Dark bands (hero, page heads, footer) */

.on-dark {
  --focus: var(--light);
  background-color: var(--ink);
  color: #e6eef8;
}
.on-dark a:not(.btn) { color: var(--white); }
.on-dark a:not(.btn):hover { color: var(--light); }

/* A very quiet woven texture: warp and weft threads */
.woven {
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.035) 0 1px, transparent 1px 8px),
    linear-gradient(160deg, var(--ink-2) 0%, var(--ink) 65%);
}

/* Hero */

.hero { padding-block: clamp(3.5rem, 9vw, 6.5rem); }

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

@media (min-width: 60em) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
  }
}

.hero h1 { color: var(--white); max-width: 14ch; }
.hero-text { font-size: 1.2rem; max-width: 36rem; color: #d2e0ea; margin-bottom: 2rem; }

/* How it works: the route line */

.route-panel h2 {
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.route {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: stop;
}

.route li {
  position: relative;
  counter-increment: stop;
  padding-left: 3.5rem;
  padding-bottom: 1.75rem;
}
.route li:last-child { padding-bottom: 0; }

/* The line between stops */
.route li::after {
  content: "";
  position: absolute;
  left: calc(1.125rem - 2px);
  top: 2.25rem;
  bottom: 0;
  width: 4px;
  border-radius: 2px;
  background: var(--light);
  opacity: 0.55;
}
.route li:last-child::after { display: none; }

/* The stop marker */
.route li::before {
  content: counter(stop);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 3px solid var(--light);
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font: 700 0.95rem/1 var(--font-head);
}
/* Termini are filled, like the ends of a line on a route map */
.route li:first-child::before,
.route li:last-child::before {
  background: var(--light);
  color: var(--ink);
}

.route h3 {
  font-size: 1.15rem;
  color: var(--white);
  margin: 0.3rem 0 0.25rem;
}
.route p { margin: 0; color: #c3d3e0; }

/* Page head (inner pages) */

.page-head { padding-block: clamp(3rem, 7vw, 4.5rem); }
.page-head h1 { color: var(--white); font-size: clamp(2.1rem, 5.5vw, 3.25rem); max-width: 20ch; }
.page-head p { color: #d2e0ea; font-size: 1.15rem; max-width: 40rem; margin: 0; }

/* Who we serve */

.serve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: 2.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 68em) {
  .serve-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.serve-grid svg {
  width: 3rem;
  height: 3rem;
  color: var(--blue);
  margin-bottom: 1rem;
}
.serve-grid h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.serve-grid p { margin: 0; color: var(--steel); font-size: 1rem; }

/* Fabric swatches, drawn with gradients */

.swatch {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(12, 35, 64, 0.08),
    0 10px 24px -14px rgba(12, 35, 64, 0.45);
}

/* The sheen and the fold, shared by every swatch */
.swatch::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.34) 46%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(12, 35, 64, 0) 0 62%, rgba(12, 35, 64, 0.16) 66%, rgba(255, 255, 255, 0.45) 67.5%, rgba(12, 35, 64, 0.04) 70%, rgba(12, 35, 64, 0.06) 100%),
    linear-gradient(90deg, rgba(12, 35, 64, 0.06), rgba(12, 35, 64, 0) 12%, rgba(12, 35, 64, 0) 88%, rgba(12, 35, 64, 0.08));
  pointer-events: none;
}

/* Hotel linen: satin stripe */
.swatch-satin {
  background-color: #f6f8fb;
  background-image:
    repeating-linear-gradient(90deg,
      #ffffff 0 11px,
      #e2ecf2 11px 12px,
      #eef4f8 12px 23px,
      #e2ecf2 23px 24px),
    repeating-linear-gradient(90deg, rgba(37, 73, 99, 0.035) 0 1px, transparent 1px 3px);
}

/* Table linen: fine diagonal lattice */
.swatch-lattice {
  background-color: #fdfdfb;
  background-image:
    repeating-linear-gradient(45deg, rgba(37, 73, 99, 0.16) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(-45deg, rgba(37, 73, 99, 0.16) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(45deg, rgba(37, 73, 99, 0.05) 0 1px, transparent 1px 3px);
}

/* Spa towels: waffle weave with two pale stripes near the hem */
.swatch-waffle {
  background-color: #fbfcfd;
  background-image:
    linear-gradient(180deg,
      transparent 0 76%,
      rgba(123, 174, 203, 0.8) 76% 79.5%,
      transparent 79.5% 83%,
      rgba(123, 174, 203, 0.8) 83% 86.5%,
      transparent 86.5%),
    repeating-linear-gradient(0deg, rgba(74, 100, 130, 0.16) 0 2px, rgba(255, 255, 255, 0.6) 2px 3px, transparent 3px 11px),
    repeating-linear-gradient(90deg, rgba(74, 100, 130, 0.16) 0 2px, rgba(255, 255, 255, 0.6) 2px 3px, transparent 3px 11px),
    radial-gradient(circle at 50% 50%, rgba(74, 100, 130, 0.05) 0 3px, transparent 4px);
  background-size: auto, auto, auto, 11px 11px;
}

/* Jackets and aprons: navy pinstripe */
.swatch-pinstripe {
  background-color: #20405a;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 13px, rgba(214, 232, 243, 0.4) 13px 14px),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px 3px);
}
.swatch-pinstripe::after {
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.12) 46%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0 62%, rgba(0, 0, 0, 0.28) 66%, rgba(255, 255, 255, 0.1) 67.5%, rgba(0, 0, 0, 0) 74%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0) 12%, rgba(0, 0, 0, 0) 88%, rgba(0, 0, 0, 0.18));
}

/* Products overview (home) */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 2.5rem 2rem;
  margin: 0 0 2.5rem;
  padding: 0;
  list-style: none;
}
.product-grid .swatch { margin-bottom: 1.25rem; }
.product-grid h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.product-grid h3 a { color: var(--ink); text-decoration: none; }
.product-grid h3 a:hover { color: var(--blue); text-decoration: underline; }
.product-grid p { margin: 0; color: var(--steel); font-size: 1rem; }

/* Products page detail rows */

.product-detail {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 52em) {
  .product-detail {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 4rem;
  }
  .product-detail.flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .product-detail.flip .swatch { order: 2; }
}

.product-detail h2 { margin-bottom: 0.5rem; }
.product-detail .lede { margin-bottom: 1.5rem; }

.item-list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}
.item-list li {
  position: relative;
  padding-left: 1.4rem;
}
.item-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: 2px solid var(--blue);
}
.suits { color: var(--steel); font-size: 1rem; margin: 0; }

/* Call to action */

.cta { text-align: left; }
.cta .measure { margin-bottom: 1.75rem; }
.cta p { color: var(--steel); font-size: 1.125rem; }

/* Quote page */

.quote-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 60em) {
  .quote-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 4.5rem;
    align-items: start;
  }
}

.contact-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}
.contact-list li { display: grid; gap: 0.1rem; }
.contact-list .label { color: var(--steel); font-size: 0.95rem; }
.contact-list a { font-size: 1.2rem; font-weight: 600; overflow-wrap: anywhere; }

.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.25rem, 4vw, 2.25rem);
}
.form-panel h2 { font-size: 1.5rem; }

.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.field .opt { font-weight: 400; color: var(--steel); }

.field input,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  border: 2px solid #b8cedc;
  border-radius: var(--r);
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.field textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: #6b8193; }
.field input:focus-visible,
.field textarea:focus-visible { border-color: var(--blue); outline-offset: 1px; }

@media (min-width: 36em) {
  .field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
}

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.check input {
  width: 1.3rem;
  height: 1.3rem;
  margin: 0.15rem 0 0;
  accent-color: var(--blue);
}

.honeypot { display: none !important; }

.form-actions { margin-top: 1.5rem; }
.form-actions .btn[disabled] { opacity: 0.7; cursor: progress; }

.form-status {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border-radius: var(--r);
  border-left: 4px solid var(--blue);
  background: var(--sky);
  font-weight: 500;
}
.form-status:empty { display: none; }
.form-status.is-error { border-left-color: #a33a3a; background: #fbeeee; color: #6e1f1f; }

.required-note { color: var(--steel); font-size: 0.95rem; }

/* Privacy page */

.prose { max-width: 66ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1em; }
.prose li { margin-bottom: 0.35rem; }

/* Footer */

.site-footer { padding-block: 3.5rem 2rem; font-size: 1rem; }

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 48em) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.site-footer .brand { color: var(--white); }
.site-footer .brand:hover { color: var(--white); }
.footer-about { color: #b9cbd8; max-width: 30rem; margin: 1rem 0 0; }

.site-footer h2 {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  color: #b9cbd8;
}
.site-footer .footer-list a { text-decoration: none; overflow-wrap: anywhere; }
.site-footer .footer-list a:hover { text-decoration: underline; }

.footer-base {
  margin-top: 3rem;
  padding-top: 1.5rem;
  color: #93aabb;
  font-size: 0.9rem;
}
.footer-base p { margin: 0; }
