/* Layout for the Spokane shower-tile lead site. Copy stays in the HTML. */

:root {
  --ink: #1f1a17;
  --muted: #5c534c;
  --bg: #f4f0e9;
  --card: #fffcf8;
  --line: #e3dbd1;
  --line-strong: #cfc4b6;
  --accent: #1c4a42;
  --accent-dark: #14362f;
  --phone: #b42318;
  --phone-dark: #8e1b12;
  --footer: #241f1c;
  --footer-ink: #f6f1ea;
  --shadow: 0 1px 2px rgba(36, 31, 28, 0.05), 0 10px 28px rgba(36, 31, 28, 0.06);
  --radius: 8px;
  --sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(1.85rem, 1.35rem + 2vw, 2.65rem);
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --tap: 48px;
  --wrap: 1120px;
  --header-offset: 0px;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

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

a { color: var(--accent); }

a:hover { color: var(--accent-dark); }

:focus { outline: none; }

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

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--card);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin: 0 auto;
}

h1, h2 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--step-3); margin: 0 0 var(--space-3); }

h2 { font-size: var(--step-2); margin: var(--space-5) 0 var(--space-3); }

p { margin: 0 0 var(--space-3); }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 252, 248, 0.96);
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}

.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand menu"
    "phone phone";
  align-items: center;
  gap: 10px 12px;
  padding: 12px 0;
}

.wordmark {
  grid-area: brand;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--tap);
  text-decoration: none;
  color: var(--ink);
  line-height: 1.05;
}

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

.wordmark-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.wordmark-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-disclosure { grid-area: menu; }

.nav-disclosure summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: var(--tap);
  min-height: var(--tap);
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.nav-disclosure summary::-webkit-details-marker { display: none; }

.nav-disclosure summary::marker { content: ""; }

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.menu-bars { position: relative; }

.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-bars::before { top: -6px; }

.menu-bars::after { top: 6px; }

#primary-nav { display: none; }

.nav-disclosure[open] ~ #primary-nav {
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  display: grid;
  max-height: calc(100dvh - 9.5rem);
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

#primary-nav a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

#primary-nav a:last-child { border-bottom: 0; }

#primary-nav a:hover {
  background: #f7f3ed;
  color: var(--accent);
}

#primary-nav a[aria-current="page"] {
  color: var(--accent);
  background: #eef4f2;
  box-shadow: inset 3px 0 0 var(--accent);
}

.phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap);
  padding: 10px 16px;
  background: var(--phone);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 4px;
}

.phone:hover { background: var(--phone-dark); color: #fff; }

.phone:focus-visible { outline-color: var(--ink); }

.header-phone { grid-area: phone; width: 100%; }

a.tel {
  color: var(--phone);
  font-weight: 700;
  text-underline-offset: 0.15em;
}

a.tel:hover { color: var(--phone-dark); }

/* Page */

main { padding: var(--space-4) 0 var(--space-3); }

.hero,
.page-hero,
.lead-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  overflow: hidden;
  margin: 0 0 var(--space-5);
}

.hero-copy { padding: var(--space-4) var(--space-4) var(--space-3); }

.hero-photo { margin: 0; }

.hero-photo img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center 28%;
}

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

.honesty {
  color: var(--muted);
  font-size: 0.95rem;
  margin: var(--space-3) 0 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}

.topics { margin: 0 0 var(--space-5); }

.topics h2 { margin-top: 0; }

.link-list {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  display: grid;
  gap: 10px;
}

.link-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--tap);
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 1px 0 rgba(36, 31, 28, 0.03);
}

.link-list a::after {
  content: "›";
  margin-left: auto;
  color: var(--accent);
  font-size: 1.35rem;
  line-height: 1;
}

.link-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.page-hero { margin: 0 0 var(--space-5); padding: var(--space-4); }

.page-hero h1,
.lead-box h1,
.lead-box h2:first-child { margin-top: 0; }

.page-hero h1 + h2 { margin-top: var(--space-3); }

.page-hero.has-photo {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.page-hero.has-photo .page-hero-copy { padding: var(--space-4); }

.page-photo { margin: 0; }

.page-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
}

.page-photo img.crop-left { object-position: 30% center; }

.page-photo img.crop-tile { object-position: center; }

.page-photo img.crop-backsplash {
  object-position: center 78%;
  height: 280px;
}

.lead-box { padding: var(--space-4); margin: 0; }

.lead-box .phone {
  width: 100%;
  margin: 0 0 var(--space-4);
}

form {
  display: grid;
  gap: 14px;
  max-width: 36rem;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 700;
}

input, textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
}

textarea {
  min-height: 128px;
  resize: vertical;
}

input:focus-visible,
textarea:focus-visible {
  border-color: var(--accent);
}

button[type="submit"] {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 0;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

button[type="submit"]:hover { background: var(--accent-dark); }

button[type="submit"]:focus-visible { outline-color: var(--ink); }

.site-footer {
  margin-top: var(--space-6);
  background: var(--footer);
  color: var(--footer-ink);
  border: 0;
  padding-bottom: env(safe-area-inset-bottom);
}

.site-footer .wrap { padding: var(--space-5) 0; }

.site-footer p {
  margin: 0 0 var(--space-2);
  font-size: 0.95rem;
  color: var(--footer-ink);
}

.site-footer p:last-child { margin-bottom: 0; }

.site-footer a {
  color: #fff;
  font-weight: 700;
}

.site-footer a:hover { color: #fff; }

@media (min-width: 720px) {
  .wrap { width: min(var(--wrap), calc(100% - 48px)); }

  main { padding-top: var(--space-5); }

  .hero-copy,
  .page-hero,
  .page-hero.has-photo .page-hero-copy,
  .lead-box { padding: var(--space-5); }

  .hero-photo img { height: 300px; }

  .page-hero h1 + h2 { margin-top: var(--space-4); }

  .page-hero.has-photo {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
  }

  .page-photo img {
    height: 100%;
    min-height: 280px;
  }

  .lead-box .phone { width: min(100%, 36rem); }
}

@media (min-width: 960px) {
  .header-inner {
    grid-template-areas:
      "brand phone"
      "nav nav";
    gap: 8px 24px;
    padding: 14px 0 0;
  }

  .header-phone {
    width: auto;
    justify-self: end;
    padding-inline: 18px;
  }

  .nav-disclosure { display: none; }

  .site-header .header-inner > #primary-nav {
    grid-area: nav;
    position: static;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 22px;
    max-height: none;
    margin: 0;
    padding: 4px 0 8px;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }

  #primary-nav a {
    display: inline-flex;
    min-height: 44px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    font-weight: 600;
  }

  #primary-nav a:hover { background: transparent; }

  #primary-nav a[aria-current="page"] {
    background: transparent;
    box-shadow: none;
    text-decoration: underline;
    text-underline-offset: 0.28em;
    text-decoration-thickness: 2px;
  }

  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
  }

  .hero-copy {
    padding: var(--space-6) var(--space-5);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-photo img {
    height: 100%;
    min-height: 420px;
  }

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