/* Vesala: a fictional bathroom renovation company. Concept demo by JN design. */
:root {
  --paper: #f1f2ee;
  --paper-2: #e6e8e3;
  --ink: #1c2630;
  --ink-2: #4a5560;
  --grout: #c4c8c2;
  --blue: #2d5bd3;
  --blue-deep: #1f44a8;
  --blue-wash: #dbe4f8;
  --tape: #f3c433;
  --font: "Archivo", "Segoe UI", system-ui, sans-serif;
  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); font-variation-settings: "wdth" 100; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--tape); color: var(--ink); }
html { scrollbar-color: var(--ink-2) var(--paper-2); accent-color: var(--blue); }
input, textarea { caret-color: var(--blue); }
.services__price, .job dd, .steps__day, .top__tel { font-variant-numeric: tabular-nums; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 800; font-stretch: 118%; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

.concept { background: var(--ink); color: var(--paper); font-size: .875rem; text-align: center; padding: .45rem var(--gutter); }
.concept a { color: var(--tape); }

.top { border-bottom: 2px solid var(--ink); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.top__in { display: flex; align-items: center; gap: 2rem; min-height: 4rem; }
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 900; font-stretch: 125%; font-size: 1.35rem; text-decoration: none; letter-spacing: -0.02em; }
.logo svg { width: 1.6rem; height: 1.6rem; color: var(--blue); }
.nav { display: flex; gap: 1.5rem; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.top__tel { font-weight: 800; font-stretch: 110%; text-decoration: none; background: var(--tape); padding: .4rem .75rem; }
@media (max-width: 860px) { .nav { display: none; } .top__tel { display: none; } .top { position: static; } }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.3rem; font: 700 1rem/1.2 var(--font); font-stretch: 108%; text-decoration: none; border: 2px solid var(--ink); cursor: pointer; }
.btn--blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--tape { background: var(--tape); border-color: var(--tape); color: var(--ink); }
.btn--tape:hover { background: #ffd54f; }

/* The masking-tape label is the one decorative device on the page. */
.tape { display: inline-block; background: var(--tape); padding: .25rem .8rem; font-weight: 700; font-size: .95rem; transform: rotate(-1.5deg); clip-path: polygon(1% 0, 99% 4%, 100% 96%, 0 100%); }

.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 4rem); }
.hero__in { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.9rem); hyphens: manual; margin: 0 0 1.25rem; font-stretch: 112%; max-width: 15ch; text-wrap: balance; }
.lead { font-size: 1.2rem; max-width: 36ch; color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__media { position: relative; display: grid; gap: .9rem; }
.hero__photo { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; }
.hero__tape { position: absolute; top: 1.1rem; left: -0.5rem; z-index: 1; box-shadow: 0 2px 6px rgba(28,38,48,.2); }
.plan { margin: 0; position: absolute; right: -1.25rem; bottom: 3.6rem; width: 52%; background: var(--paper); border: 2px solid var(--ink); padding: .4rem; box-shadow: 0 10px 24px rgba(28,38,48,.22); }
.plan svg { width: 100%; height: auto; }
.plan__wet { fill: var(--blue-wash); }
.plan__fall { stroke-dasharray: 70; stroke-dashoffset: 70; animation: draw 1.2s .5s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero__note { font-size: .9rem; color: var(--ink-2); max-width: min(44ch, 50%); }
@media (max-width: 560px) { .hero__note { max-width: 44ch; } }
@media (max-width: 1100px) { .plan { right: .75rem; } }
@media (max-width: 560px) { .plan { position: static; width: 100%; box-shadow: none; } }
@media (max-width: 860px) { .hero__in { grid-template-columns: 1fr; } }

.proof { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--paper-2); }
.proof__in { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof p { padding: 1.1rem 1.25rem; font-size: .95rem; border-left: 1px solid var(--grout); }
.proof p:first-child { border-left: 0; padding-left: 0; }
.proof strong { display: block; font-stretch: 110%; }
@media (max-width: 560px) { .proof__in { grid-template-columns: 1fr !important; } .proof p:nth-child(2) { border-top: 1px solid var(--grout) !important; } }
@media (max-width: 860px) { .proof__in { grid-template-columns: 1fr 1fr; } .proof p { border-left: 0; padding-left: 0; border-top: 1px solid var(--grout); } .proof p:nth-child(-n+2) { border-top: 0; } }

.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.sub { max-width: 60ch; color: var(--ink-2); margin-bottom: 2.5rem; }

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 2rem; border-top: 2px solid var(--ink); }
.services article { padding: 1.75rem 2rem 1.75rem 0; border-bottom: 1px solid var(--grout); display: grid; gap: .6rem; align-content: start; }
.services article:nth-child(even) { padding: 1.75rem 0 1.75rem 2rem; border-left: 1px solid var(--grout); }
.services h3 { font-size: 1.45rem; }
.services p { max-width: 48ch; color: var(--ink-2); }
.services .services__price { color: var(--ink); font-weight: 800; font-stretch: 110%; }
@media (max-width: 700px) { .services { grid-template-columns: 1fr; } .services article, .services article:nth-child(even) { padding: 1.5rem 0; border-left: 0; } }

.estimate { background: var(--ink); color: var(--paper); }
.estimate__in { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.estimate__intro p { color: #c3cad1; max-width: 34ch; }
.calc { display: grid; gap: 1.75rem; }
.calc fieldset { border: 0; margin: 0; padding: 0; }
.calc legend { font-weight: 700; margin-bottom: .6rem; font-stretch: 108%; }
.calc__size { display: flex; align-items: center; gap: 1rem; }
.calc input[type=range] { flex: 1; accent-color: var(--tape); height: 2.75rem; }
.calc output { font-weight: 800; font-size: 1.5rem; font-stretch: 112%; min-width: 4.5ch; text-align: right; font-variant-numeric: tabular-nums; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--paper); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: .7rem .5rem; cursor: pointer; font-weight: 600; }
.seg input:checked + span { background: var(--tape); color: var(--ink); }
.seg input:checked + span::before { content: ""; display: inline-block; width: .55rem; height: .3rem; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg) translateY(-.15rem); margin-right: .45rem; }
.seg input:not(:checked) + span { color: #c3cad1; }
.seg input:focus-visible + span { outline: 3px solid var(--tape); outline-offset: -3px; }
.checks { display: grid; gap: .55rem; }
.checks label { display: flex; gap: .65rem; align-items: center; cursor: pointer; min-height: 2.75rem; }
.checks input:disabled + span { color: #8a949e; text-decoration: line-through; cursor: not-allowed; }
.checks__note { font-size: .9rem; color: #c3cad1; margin-top: .4rem; }
.checks input { width: 1.25rem; height: 1.25rem; accent-color: var(--tape); }
.result { background: var(--paper); color: var(--ink); padding: 1.75rem; display: grid; gap: 1rem; }
.result__label { justify-self: start; }
.result__price { font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 900; font-stretch: 112%; line-height: 1; font-variant-numeric: tabular-nums; }
.result__rows { margin: 0; display: grid; gap: .35rem; border-top: 1px solid var(--grout); padding-top: .9rem; }
.result__rows div { display: flex; justify-content: space-between; gap: 1rem; }
.result__rows dt { color: var(--ink-2); }
.result__rows dd { margin: 0; font-weight: 700; }
.result__note { font-size: .875rem; color: var(--ink-2); }
@media (max-width: 960px) { .estimate__in { grid-template-columns: 1fr 1fr; } .estimate__intro { grid-column: 1 / -1; } }
@media (max-width: 640px) { .estimate__in { grid-template-columns: 1fr; } .result { position: sticky; bottom: 4.25rem; z-index: 2; box-shadow: 0 -6px 18px rgba(28,38,48,.25); padding: 1rem 1.25rem; gap: .5rem; } .result__note { display: none; } .result__rows { padding-top: .5rem; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: s; }
.steps li { border-top: 6px solid var(--grout); padding: 1rem 1rem 0 0; display: grid; gap: .45rem; align-content: start; }
.steps li.steps__key { border-top-color: var(--blue); }
.steps__why { font-size: .875rem; font-weight: 700; color: var(--blue-deep) !important; }
.steps__day { font-size: .875rem; font-weight: 700; color: var(--blue); }
.steps h3 { font-size: 1.2rem; }
.steps p { font-size: .95rem; color: var(--ink-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 1.5rem; } .steps li { border-top: 0; border-left: 6px solid var(--grout); padding: 0 0 0 1rem; } .steps li.steps__key { border-left-color: var(--blue); } }

.work { background: var(--paper-2); border-top: 2px solid var(--ink); }
.jobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2rem); margin-top: 2rem; }
.job { background: var(--paper); border: 2px solid var(--ink); padding: 1.25rem; display: grid; gap: .9rem; align-content: start; }
.job img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.job h3 { font-size: 1.2rem; }
.job dl { margin: 0; display: grid; gap: .25rem; font-size: .95rem; }
.job dl div { display: grid; grid-template-columns: 5rem 1fr; }
.job dt { color: var(--ink-2); }
.job dd { margin: 0; font-weight: 600; }
.job blockquote { margin: 0; font-size: .95rem; background: #fbf0c8; padding: .75rem .9rem; }
.job cite { display: block; margin-top: .4rem; font-style: normal; font-weight: 700; font-size: .875rem; }
@media (max-width: 900px) { .jobs { grid-template-columns: 1fr; } }

.quote__in { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 4rem); }
.quote__in > div > p { color: var(--ink-2); max-width: 44ch; }
.area-h { font-size: 1.05rem; margin-top: 2rem; }
.area { margin: .4rem 0 0; font-weight: 600; max-width: 40ch; }
.contact { margin-top: 2rem; line-height: 1.8; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; background: #fff; border: 2px solid var(--ink); padding: clamp(1.25rem, 3vw, 2rem); align-content: start; }
.field { display: grid; gap: .35rem; }
.field--wide { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field select, .field textarea { font: inherit; color: inherit; padding: .7rem .8rem; border: 2px solid var(--grout); background: var(--paper); border-radius: 0; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; }
.field :is(input, select, textarea):focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.field [aria-invalid=true] { border-color: #b42318; }
.field__err { color: #b42318; font-size: .875rem; font-weight: 600; min-height: 0; }
.field__err:empty { display: none; }
.field ::placeholder { color: #5f6a74; opacity: 1; }
.opt { font-weight: 400; color: var(--ink-2); }
.form__small { font-size: .875rem; color: var(--ink-2); margin-top: .6rem; }
.done { background: #fff; border: 2px solid var(--ink); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: .8rem; align-content: start; }
.done:focus { outline: 3px solid var(--blue); outline-offset: 3px; }
.done h3 { font-size: 1.5rem; }
.done__demo { font-size: .875rem; color: var(--ink-2); }
.done .btn { justify-self: start; }
#quote-form, section[id] { scroll-margin-top: 5rem; }
.form__msg { margin-top: .6rem; font-weight: 600; min-height: 1.6em; }
.form__msg.is-error { color: #b42318; }
@media (max-width: 860px) { .quote__in { grid-template-columns: 1fr; } #quote-form, section[id] { scroll-margin-top: 1rem; } }
@media (max-width: 480px) { .form { grid-template-columns: 1fr; } }

.foot { background: var(--ink); color: #c3cad1; padding: 2.5rem 0 6rem; font-size: .9rem; }
.foot__in { display: grid; gap: .6rem; }
.foot__in p { max-width: 60rem; }
.foot a { text-underline-offset: 3px; }
.foot a { color: var(--tape); }
@media (min-width: 861px) { .foot { padding-bottom: 2.5rem; } }

.dock { display: none; }
@media (max-width: 860px) {
  .dock { display: grid; grid-template-columns: 1fr 2fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; border-top: 2px solid var(--ink); padding-bottom: env(safe-area-inset-bottom); background: var(--paper); }
  .dock a { text-align: center; padding: .95rem .5rem; font-weight: 800; text-decoration: none; background: var(--paper); }
  .dock .dock__main { background: var(--blue); color: #fff; }
}
