/* Tub Pro mockup. Palette sampled by pixel from the build's own photographs, see BUILD_NOTE.md and palette.json. Frame adapted from the Beautiful Bathrooms style.css. */
@font-face { font-family: 'Yeseva One'; src: url(fonts/YesevaOne-Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Neuton'; src: url(fonts/Neuton-Regular.ttf) format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Neuton'; src: url(fonts/Neuton-Italic.ttf) format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Neuton'; src: url(fonts/Neuton-Bold.ttf) format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
:root {
  --ground: #b4edeb;
  --ink: #1d3e47;
  --accent: #293466;
  --on-accent: #ffffff;
  --rule: rgba(29, 62, 71, .32);
  --head: 'Yeseva One', Georgia, serif;
  --body: 'Neuton', Georgia, serif;
  --m: 48px;
}
* { box-sizing: border-box; }
html { background: var(--ground); color: var(--ink); font: 400 21px/1.5 var(--body); }
body { margin: 0; }
section, form { scroll-margin-top: 96px; }
@media (max-width: 760px) { section, form { scroll-margin-top: 120px; } }
img { display: block; max-width: 100%; }
a, button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, .fname, .mark { font-family: var(--head); font-weight: 400; }
h1 { font-size: clamp(40px, 4vw, 52px); line-height: 1.1; margin: 0 0 16px; }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(30px, 2.8vw, 38px); line-height: 1.15; margin: 0 0 14px; }
h3 { font-size: 23px; line-height: 1.2; margin: 0 0 4px; }
p { margin: 0 0 14px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--m); }
.lead { font-size: 23px; line-height: 1.45; max-width: 34em; }
.small { font-size: 17px; }

.top { background: var(--ground); position: sticky; top: 0; z-index: 5; box-shadow: 0 1px 0 var(--rule); }
.bar { max-width: 1280px; margin: 0 auto; padding: 12px var(--m); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 40px; }
.mark { font-size: 27px; text-decoration: none; line-height: 1.1; }
.bar nav { display: flex; gap: 30px; justify-content: flex-end; }
.bar nav a { text-decoration: none; padding: 4px 0; }
.bar nav a[aria-current] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; }

/* buttons: navy, 6 pixel corners (not pills, not square, not the 12 pixel Beautiful Bathrooms corner) */
.btn { display: inline-block; background: var(--accent); color: var(--on-accent); text-decoration: none; border: 0; padding: 12px 22px; border-radius: 6px; font: 700 19px/1.2 var(--body); letter-spacing: .01em; cursor: pointer; }
@media (hover: hover) { .btn:hover { background: var(--ink); } }
a[href^="tel:"] { white-space: nowrap; }
.em { overflow-wrap: anywhere; }
.ph { width: 100%; object-fit: cover; border-radius: 4px; }

/* hero: headline, lead and actions left on the ground, one found photograph beside them; under both, the drawn tub with the step notch and the gun */
.htop { max-width: 1280px; margin: 0 auto; padding: 36px var(--m) 0; display: grid; grid-template-columns: 1fr 360px; gap: 56px; align-items: start; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin: 20px 0 0; }
.ask { padding: 10px 0; text-decoration-thickness: 2px; }
.hfig { margin: 0; }
.hpic { height: 250px; object-position: 50% 55%; }
.hfig figcaption { font-size: 15px; line-height: 1.35; margin-top: 8px; }
.draw { margin-top: 12px; }
.tb { display: block; width: 100%; height: auto; }
.tb.tall { display: none; }

/* the written warranty line, once, set plain and large under the drawing */
.promise { padding-top: 6px; }
.promise p { font-family: var(--head); font-size: 30px; line-height: 1.25; margin: 0; max-width: 30em; }

/* services: heading across, then six short rows in two columns, each a name over its one line, a rule above */
.svcs { padding-top: 104px; }
.rows { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.row { padding: 18px 0 20px; border-top: 1px solid var(--rule); }
.row p { margin: 0; max-width: 28em; }
.more { margin-top: 18px; }
.more a { text-decoration-thickness: 2px; }

/* shower within 2 hours: the heading, then the two own claims stacked in one reading column (not side by side: the Precise leaders section) */
.hours2 { padding-top: 96px; }
.claims { max-width: 40em; margin-top: 10px; }
.claims p { margin: 0 0 12px; font-size: 23px; line-height: 1.45; }

/* pictures: two columns, the right column set lower by a step, the shape of the step notch */
.pics { padding-top: 96px; padding-bottom: 104px; }
.figs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.col { display: grid; gap: 24px; }
.col.low { margin-top: 120px; }
figure { margin: 0; }
.fimg { height: 340px; }
.f-curtain .fimg { object-position: 50% 70%; }
.f-mansion .fimg { object-position: 50% 62%; }
.f-tiles .fimg { object-position: 50% 60%; }
.f-glass .fimg { object-position: 50% 40%; }
figcaption { font-size: 17px; line-height: 1.4; margin-top: 8px; }
.found { font-size: 17px; margin-top: 18px; }

/* services page: heading at the left, the slipper tub photograph at the right, then one section per service */
.shead { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; padding-top: 44px; padding-bottom: 44px; }
.mailline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 20px; }
.spic { aspect-ratio: 4 / 3; max-height: 420px; object-position: 50% 60%; }
.svc { display: grid; grid-template-columns: 4fr 7fr; column-gap: 48px; align-items: baseline; padding: 26px 0 28px; border-top: 1px solid var(--rule); }
.svc h2 { font-size: 30px; }
.svclist { padding-bottom: 96px; }
.go { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 0; }
.go a { text-decoration-thickness: 2px; }
.go .ask { padding: 0; }

/* contact: heading, ways in and the numbers at the left, the form at the right; the service areas below */
.ctop { display: grid; grid-template-columns: 5fr 6fr; column-gap: 64px; padding-top: 40px; padding-bottom: 80px; align-items: start; }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin: 18px 0 18px; }
.nums { list-style: none; margin: 0 0 16px; padding: 0; }
.qform { display: grid; gap: 4px; }
.qform label { margin-top: 6px; }
.qform input, .qform select, .qform textarea { font: 19px/1.4 var(--body); color: var(--ink); background: #e3f8f7; border: 1px solid var(--ink); border-radius: 4px; padding: 8px 12px; width: 100%; }
.qform .btn { margin-top: 14px; justify-self: start; }
.qform .small { margin-top: 8px; }
.areas { padding-top: 52px; padding-bottom: 96px; border-top: 1px solid var(--rule); }

/* footer: on the same ground under a rule */
.foot { border-top: 1px solid var(--rule); padding: 44px 0; }
.fname { font-size: 38px; line-height: 1.1; margin: 0 !important; }
.fline { margin: 4px 0 20px !important; }
.fgrid .em { overflow-wrap: normal; }
.fgrid { display: grid; grid-template-columns: 3fr 2fr 5fr; gap: 28px; align-items: start; }
.foot p { margin: 0 0 6px; }
.flinks { display: flex; gap: 20px; }
.parent { font-size: 18px; }
.credits { margin-top: 36px; font-size: 16px; line-height: 1.45; }
.credits ul { margin: 6px 0 0; padding-left: 1.1em; }
.credits li { overflow-wrap: anywhere; }
.concept { font-size: 16px; margin-top: 18px !important; }

@media (max-width: 760px) {
  :root { --m: 18px; }
  html { font-size: 19px; }
  .bar { grid-template-columns: 1fr; gap: 4px; padding-top: 10px; padding-bottom: 8px; }
  .bar .hb { display: none; }
  .bar nav { gap: 26px; justify-content: flex-start; }
  .mark { font-size: 25px; }
  /* recomposed: the words, then the photograph, then the actions in their own zone, then the camera closer on the tub and the gun */
  .htop { grid-template-columns: 1fr; padding-top: 18px; gap: 0; }
  .htext { display: contents; }
  h1 { font-size: 33px; margin-bottom: 10px; }
  .htop h1 { order: 1; }
  .htop .lead { font-size: 19px; line-height: 1.4; order: 2; margin-bottom: 12px; }
  .hfig { order: 3; }
  .hpic { height: 170px; }
  .hfig figcaption { margin-bottom: 4px; }
  .acts { order: 4; flex-direction: column; align-items: stretch; gap: 4px; margin-top: 10px; }
  .acts .btn { text-align: center; }
  .ask { padding: 4px 0; }
  .draw { margin-top: 10px; }
  .tb.wide { display: none; }
  .tb.tall { display: block; }
  .promise { padding-top: 8px; }
  .promise p { font-size: 24px; }
  .rows, .figs, .shead, .ctop, .fgrid, .svc { grid-template-columns: 1fr; }
  .svcs { padding-top: 60px; }
  .svcs h2, .hours2 h2 { font-size: 28px; }
  .claims p { font-size: 19px; }
  .hours2 { padding-top: 56px; }
  .pics { padding-top: 56px; padding-bottom: 64px; }
  .figs { grid-template-columns: 1fr 1fr; gap: 12px; }
  .col { gap: 12px; }
  .col.low { margin-top: 64px; }
  .fimg { height: 200px; }
  figcaption { font-size: 15px; }
  .shead { padding-top: 24px; padding-bottom: 24px; gap: 22px; }
  .shead h1 { font-size: 34px; }
  .svc { padding: 20px 0; }
  .svc h2 { font-size: 26px; }
  .svclist { padding-bottom: 56px; }
  .ctop { padding-top: 20px; padding-bottom: 56px; row-gap: 8px; }
  .cside { display: contents; }
  .quick { flex-direction: column; align-items: stretch; }
  .quick .btn { text-align: center; }
  .ctop .qform { margin-top: 14px; }
  .areas { padding-top: 40px; padding-bottom: 56px; }
  .fname { font-size: 31px; }
  .fgrid { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
