/* Reveal Sites sales site. Brand: trades/kitchen-bath.md, Brand. One signature move: the hero's two door leaves part along a brass seam (the reveal). */

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

:root {
  --soapstone: #232B29;
  --soapstone-deep: #1B2220;
  --soapstone-edge: #2F3936;
  --brass: #B4935A;
  --brass-light: #C9A96A;
  --plaster: #F3EFE8;
  --sage: #93A199;
  --brass-dark: #7F6230;
  --ink-soft: #4A5350;
  --line: #D6CEC1;
  --white: #FFFFFF;
  --head: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wide: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--plaster);
  color: var(--soapstone);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { color: var(--brass-dark); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); max-width: 22ch; }
h3 { font-size: 1.3rem; line-height: 1.25; margin-bottom: 0.35em; }
p { margin: 0 0 1em; max-width: 62ch; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }

/* Buttons: one button color across the site (brand rule 1). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 6px;
  background: var(--brass);
  color: var(--soapstone);
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  border: 0;
}
.btn:hover { background: var(--brass-light); }
.textlink {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 4px;
  font-weight: 700;
  color: inherit;
  text-underline-offset: 4px;
}

/* Header */
.top { background: var(--soapstone); color: var(--plaster); }
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}
.brand { display: inline-flex; align-items: center; min-height: 48px; }
.brand img { display: block; width: 150px; height: auto; }
.top__right { display: flex; align-items: center; gap: 20px; }
.top__phone { color: var(--plaster); text-decoration: none; font-weight: 600; min-height: 48px; display: inline-flex; align-items: center; }
.top .btn { min-height: 48px; padding: 10px 18px; font-size: 1rem; }

/* Hero */
.hero { background: var(--soapstone); color: var(--plaster); padding: 40px 0 88px; overflow: hidden; }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}
.hero h1 { max-width: 13ch; }
.hero__lead { font-size: 1.25rem; color: #DDD6CA; max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.hero .textlink { color: var(--plaster); }

.door {
  position: relative;
  margin: 0;
}
.door__frame {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--soapstone-deep);
  box-shadow: 0 0 0 1px var(--soapstone-edge), 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.door__frame img, .door__frame picture { display: block; width: 100%; }
/* The two leaves: shaker-style panels that part along the brass seam when the door
   comes on screen (site.js adds .js and then .door--open). No script, no leaves. */
.door__seam { display: none; }
.js .door__frame::before, .js .door__frame::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: var(--soapstone-edge);
  box-shadow: inset 0 0 0 18px var(--soapstone), inset 0 0 0 19px rgba(180, 147, 90, 0.45);
  transition: transform 2.2s cubic-bezier(0.65, 0, 0.25, 1) 0.6s;
}
.js .door__frame::before { left: 0; }
.js .door__frame::after { right: 0; }
.js .door__seam {
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 1px);
  width: 2px;
  background: var(--brass);
  z-index: 2;
  transition: opacity 0.6s ease 1.9s;
}
.js .door--open .door__frame::before { transform: translateX(-101%); }
.js .door--open .door__frame::after { transform: translateX(101%); }
.js .door--open .door__seam { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .door__frame::before, .door__frame::after, .door__seam { display: none; }
}
.door figcaption { margin-top: 12px; font-size: 0.9375rem; color: var(--sage); max-width: 52ch; }

/* Sections */
.band { padding: 88px 0; }
.band--light { background: var(--plaster); }
.band--white { background: var(--white); }
.band--dark { background: var(--soapstone); color: var(--plaster); }
.band--dark a:not(.btn) { color: var(--brass-light); }
.band--dark .muted { color: var(--sage); }
.intro { font-size: 1.1875rem; color: var(--ink-soft); }
.band--dark .intro { color: #DDD6CA; }

/* Problem and answer pairs */
.pairs { display: grid; gap: 0; margin: 40px 0 0; border-top: 1px solid var(--line); }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.pair dt { font-family: var(--head); font-size: 1.3rem; line-height: 1.3; font-weight: 600; }
.pair dd { margin: 0; color: var(--ink-soft); }

/* Dry fit */
.dryfit .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.dryfit p { font-size: 1.1875rem; }

/* Steps: a real sequence, hung on one brass line */
.steps { list-style: none; counter-reset: step; margin: 40px 0 0; padding: 0 0 0 40px; border-left: 2px solid var(--brass); max-width: 720px; }
.steps li { counter-increment: step; position: relative; padding: 0 0 32px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: -61px;
  top: -2px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--plaster);
  border: 2px solid var(--brass);
  color: var(--brass-dark);
  font-family: var(--head);
  font-weight: 600;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps p { margin: 0; color: var(--ink-soft); }
.steps .note { margin-top: 6px; font-size: 1rem; }

/* Sample */
.sample { display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-top: 40px; }
.sample figure { margin: 0; }
.sample img { display: block; border-radius: 4px; box-shadow: 0 0 0 1px var(--line), 0 24px 48px -28px rgba(35, 43, 41, 0.45); }
.sample figcaption { margin-top: 10px; font-size: 0.9375rem; color: var(--ink-soft); }

/* What you get */
.get { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; margin-top: 40px; }
.get ul { margin: 0; padding: 0 0 0 1.1em; }
.get li { margin-bottom: 10px; }
.get li::marker { color: var(--brass-dark); }
.get__care { border-left: 2px solid var(--brass); padding-left: 28px; }

/* Price */
.price { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.price__figure { font-family: var(--head); line-height: 1; margin: 0 0 12px; }
.price__was { display: block; font-size: 1.75rem; color: var(--sage); text-decoration: line-through; text-decoration-thickness: 2px; margin-bottom: 8px; }
.price__now { font-size: clamp(4rem, 9vw, 6.5rem); color: var(--brass-light); font-weight: 600; }
.price ul { margin: 0 0 28px; padding: 0 0 0 1.1em; }
.price li { margin-bottom: 10px; }
.price li::marker { color: var(--brass); }

/* Guarantees */
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 40px; }
.promises p { color: var(--ink-soft); }

/* Not a fit */
.notfit { columns: 2; column-gap: 48px; margin: 32px 0 0; padding: 0 0 0 1.1em; max-width: 900px; }
.notfit li { margin-bottom: 12px; break-inside: avoid; }

/* FAQ */
.faq { margin-top: 32px; max-width: 760px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  font-family: var(--head);
  font-size: 1.25rem;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--body); font-size: 1.5rem; color: var(--brass-dark); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--ink-soft); padding-bottom: 8px; }

/* Close */
.close .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.close h2 { margin: 0; max-width: 18ch; }

/* Footer */
.foot { background: var(--soapstone-deep); color: var(--sage); padding: 40px 0; font-size: 1rem; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.foot img { display: block; width: 130px; height: auto; }
.foot p { margin: 0; }
.foot a { color: var(--plaster); display: inline-flex; min-height: 44px; align-items: center; }

/* Page not found */
.lost { background: var(--soapstone); color: var(--plaster); padding: 96px 0; min-height: 60vh; }

@media (max-width: 860px) {
  .hero .wrap, .dryfit .wrap, .price, .get { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero { padding-bottom: 64px; }
  .door { max-width: 340px; }
  .pair { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .promises { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sample { grid-template-columns: minmax(0, 1fr); }
  .sample__phone { max-width: 240px; }
  .notfit { columns: 1; }
  .band { padding: 64px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .top__phone { display: none; }
  .brand img { width: 124px; }
  .steps { padding-left: 32px; }
  .steps li::before { left: -53px; width: 36px; height: 36px; font-size: 1rem; }
}
