/* ============================================================
   Plumb — pre-prototype feedback microsite
   Design system: warm cream background, deep ink, institutional green accent
   Mobile-first, single breakpoint at 720px
   ============================================================ */

:root {
  --bg: #fafaf7;          /* warm cream page background */
  --ink: #1a1a1a;         /* primary text */
  --muted: #6a6a65;       /* secondary text */
  --rule: #cfcfca;        /* hairline dividers */
  --accent: #2d4a3e;      /* institutional green */
  --accent-hover: #1f342b;
  --warm: #e8e0d2;        /* bamboo card tone */
  --card-border: #e0d8c8;
  --max-w: 720px;
  --max-w-wide: 1080px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover, a:focus-visible { color: var(--accent-hover); text-decoration-thickness: 2px; }

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

/* ============================================================
   Header
   ============================================================ */
.site-header {
  border-bottom: 1px solid var(--ink);
}
.header-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.wordmark {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover, .wordmark:focus-visible { color: var(--ink); }
.back-link {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  font-style: italic;
}
.back-link:hover, .back-link:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}

/* ============================================================
   Sections — single column, generous whitespace
   ============================================================ */
main { padding: 0; }
.section { padding: 3.5rem 0 0.5rem; }
.section:first-child { padding-top: 2.5rem; }
.section + .section { padding-top: 4rem; }

.content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Full-width assets break past the 720px content column */
.full-width {
  max-width: var(--max-w-wide);
  margin: 2rem auto 0;
  padding: 0 1.25rem;
}
.full-width img { width: 100%; }
.full-width figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.75rem;
}

/* ============================================================
   Type
   ============================================================ */
h1, h2, h3 { margin: 0 0 0.5em; line-height: 1.2; }

h1 {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  font-style: italic;
  margin: 0 0 1.8rem;
}

.lede {
  font-size: 1.08rem;
  color: var(--ink);
  margin: 0;
  max-width: 36em;
}

h2 {
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0;
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

/* ============================================================
   2x2 problem grid
   ============================================================ */
.grid-2x2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-top: 1.5rem;
}
.card {
  background: var(--warm);
  border-radius: 8px;
  padding: 1.4rem 1.4rem 1.3rem;
}
.card h3 {
  position: relative;
  padding-left: 1.1rem;
  margin: 0 0 0.4em;
}
.card h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.55em;
  height: 0.55em;
  background: var(--accent);
}
.card p {
  margin: 0;
  font-size: 0.97rem;
  color: var(--ink);
  line-height: 1.55;
}

/* ============================================================
   Project status list
   ============================================================ */
.status-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}
.status-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1rem;
}
.status-list li:last-child { border-bottom: none; }
.status-list strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   Technical drawing toggle
   ============================================================ */
.tech-toggle {
  margin-top: 1.2rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: white;
}
.tech-toggle summary {
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
  list-style: none;
  position: relative;
  user-select: none;
}
.tech-toggle summary::-webkit-details-marker { display: none; }
.tech-toggle summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--accent);
  line-height: 1;
}
.tech-toggle[open] summary::after { content: "−"; }
.tech-toggle summary:hover { background: rgba(45, 74, 62, 0.04); }
.tech-toggle figure {
  margin: 0;
  padding: 0.5rem 1.1rem 1.1rem;
}
.tech-toggle img {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 4px;
}

/* ============================================================
   Buttons
   ============================================================ */
.button {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0.85rem 1.6rem;
  border-radius: 4px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
  margin-top: 1rem;
}
.button:hover, .button:focus-visible {
  background: var(--accent-hover);
  color: white;
  text-decoration: none;
}
.button-secondary {
  background: white;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.button-secondary:hover, .button-secondary:focus-visible {
  background: var(--accent);
  color: white;
}

/* ============================================================
   Logo vote grid
   ============================================================ */
.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;
}
.logo-vote-wrap {
  max-width: var(--max-w-wide);
  margin: 1.5rem auto 0;
  padding: 0 1.25rem;
}
.logo-grid {
  border: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.logo-card {
  position: relative;
  display: block;
  cursor: pointer;
  border: 2px solid var(--rule);
  border-radius: 6px;
  padding: 0.6rem;
  background: white;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.logo-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.logo-card input[type="radio"] {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 1.15em;
  height: 1.15em;
  accent-color: var(--accent);
  z-index: 2;
}
.logo-card:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}
.logo-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
}
.logo-card-label {
  display: block;
  text-align: center;
  margin-top: 0.55rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.vote-extras {
  padding-left: 0;
  padding-right: 0;
}

/* ============================================================
   Form
   ============================================================ */
#feedback-form { margin-top: 1.5rem; }
.field {
  margin-bottom: 1.3rem;
  border: none;
  padding: 0;
}
.field label, .field legend {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.field .opt {
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
}
.field .req {
  color: var(--accent);
  font-weight: 400;
}
input[type="text"], input[type="email"], textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid var(--rule);
  border-radius: 4px;
  background: white;
  color: var(--ink);
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 74, 62, 0.15);
}
textarea {
  resize: vertical;
  min-height: 4.5em;
  font-family: inherit;
}
.radio-group {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
}
.radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 400;
  cursor: pointer;
  margin: 0;
}
.radio-group input[type="radio"] {
  width: 1.1em;
  height: 1.1em;
  accent-color: var(--accent);
}

.thanks {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--warm);
  border-radius: 6px;
}
.thanks h3 { color: var(--accent); margin-top: 0; }
.thanks p { margin-bottom: 0; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--ink);
  margin-top: 5rem;
  padding: 2rem 0 3rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.footer-cols {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-cols a { color: var(--muted); }
.footer-cols a:hover { color: var(--ink); }
.disclaimer {
  margin: 1.2rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.5;
  max-width: 42em;
}

/* ============================================================
   Desktop breakpoint
   ============================================================ */
@media (min-width: 720px) {
  body { font-size: 17px; }
  h1 { font-size: 3.4rem; }
  h2 { font-size: 1.75rem; }
  .lede { font-size: 1.18rem; }
  .section { padding: 4.5rem 0 0.5rem; }
  .section + .section { padding-top: 5rem; }
  .grid-2x2 {
    grid-template-columns: 1fr 1fr;
    gap: 1.3rem 1.6rem;
  }
  .logo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }
}
@media (min-width: 1100px) {
  .logo-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2rem;
  }
}

/* ============================================================
   Print
   ============================================================ */
@media print {
  .site-header, .site-footer, #feedback-form, .tech-toggle summary { display: none; }
  .tech-toggle[open] figure { display: block; }
  body { font-size: 11pt; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Header tagline (plumbsleep.com landing) */
.tagline-small {
  font-family: var(--ff-serif, Georgia, serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft, #5a6660);
  letter-spacing: 0.01em;
}
@media (max-width: 600px) {
  .tagline-small { display: none; }
}

/* FAQ accordions */
.faq {
  border-top: 1px solid #e6e3da;
  padding: 1.1rem 0;
}
.faq:last-of-type {
  border-bottom: 1px solid #e6e3da;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink, #2d4a3e);
  list-style: none;
  padding-right: 2rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--ink-soft, #5a6660);
  transition: transform 0.15s ease;
}
.faq[open] summary::after {
  content: "\2212";
}
.faq p {
  margin-top: 0.85rem;
  margin-bottom: 0.25rem;
  color: var(--ink-soft, #5a6660);
  line-height: 1.6;
}

/* 90-night guarantee section */
.hero-trust {
  display: block;
  margin-top: 0.4rem;
  font-style: normal;
  font-size: 0.95rem;
  color: var(--ink-soft, #5a6660);
  letter-spacing: 0.01em;
}
@media (min-width: 700px) {
  .hero-trust {
    display: inline;
    margin-top: 0;
    margin-left: 0.6rem;
  }
  .hero-trust::before {
    content: "\00b7\00a0";
    color: var(--ink-soft, #5a6660);
  }
}

.section-guarantee {
  background: #f4f0e6;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.section-guarantee h2 {
  font-family: var(--ff-serif, Georgia, serif);
  font-style: italic;
  font-weight: 500;
}
.guarantee-lede {
  font-size: 1.1rem;
  color: var(--ink, #2d4a3e);
  line-height: 1.55;
}
.guarantee-promise {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid #d9d3c0;
  border-bottom: 1px solid #d9d3c0;
}
.promise-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.promise-item strong {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink, #2d4a3e);
  letter-spacing: -0.005em;
}
.promise-item span {
  font-size: 0.9rem;
  color: var(--ink-soft, #5a6660);
  margin-top: 0.25rem;
}
.guarantee-fineprint {
  font-size: 0.92rem;
  color: var(--ink-soft, #5a6660);
  font-style: italic;
  margin-top: 1.5rem;
}
@media (max-width: 600px) {
  .guarantee-promise {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
