/* huttodecks.com. Bright, roomy, cedar on off white. Light only. */
@font-face { font-family: "Quicksand"; src: url("/fonts/quicksand-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/fonts/outfit-var-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Outfit Fallback"; src: local("Arial"); size-adjust: 98%; ascent-override: 100%; descent-override: 26%; }

:root {
  color-scheme: light;
  --ground: #fffcf7;
  --ground-rgb: 255 252 247;
  --panel: #ffffff;
  --sand: #f8f0e5;
  --sand-2: #f2e4d2;
  --ink: #231c15;
  --ink-2: #57493c;
  --line: #eadccb;
  --cedar: #e07b39;
  --cedar-rgb: 224 123 57;
  --cedar-ink: #a5480f;
  --cedar-deep: #833a0c;
  --slate: #2d5468;
  --slate-rgb: 45 84 104;
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 12px;
  --gap: clamp(20px, 3vw, 32px);
  --pad: clamp(56px, 8vw, 112px);
  --wide: 1180px;
  --read: 720px;
  --display: "Quicksand", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: "Outfit", "Outfit Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  interpolate-size: allow-keywords;
}

/* Reset (R1, R2, R3) */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 1.09rem; line-height: 1.65; font-variant-numeric: tabular-nums; overflow-x: clip; }
figure, blockquote, dl, dd { margin: 0; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.45rem); }
p, li { text-wrap: pretty; }
p { margin: 0 0 1.1em; }
a { color: var(--cedar-ink); text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--cedar-deep); }
:focus-visible { outline: 3px solid var(--slate); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 50; }
.skip:focus { top: 12px; color: #fff; }

.shell { width: min(var(--wide), 100% - 32px); margin-inline: auto; }
.shell-read { width: min(var(--read), 100% - 32px); margin-inline: auto; }

/* Buttons */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 50px; padding: 12px 26px; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: 1.05rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; text-box: trim-both cap alphabetic; line-height: 1.2; }
.pill-solid { background: var(--cedar-ink); color: #fff; }
.pill-solid:hover { background: var(--cedar-deep); color: #fff; }
.pill-soft { background: var(--panel); color: var(--ink); border-color: var(--line); }
.pill-soft:hover { border-color: var(--cedar); color: var(--ink); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 30; background: rgb(var(--ground-rgb) / .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brandmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 700; font-size: 1.35rem; flex-shrink: 0; }
.brandmark svg { width: 38px; height: 38px; flex-shrink: 0; }
.brandmark:hover { color: var(--ink); }
.toplinks { display: none; flex-shrink: 0; }
.toplinks ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.toplinks a { display: block; padding: 10px 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.toplinks a:hover, .toplinks a[aria-current="page"] { background: var(--sand); color: var(--ink); }
.top-cta { display: none; }
.top-cta.pill-solid { color: #fff; }
.menu-open-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 8px 18px; border-radius: 999px; background: var(--sand); border: 1px solid var(--line); font: 600 1rem var(--display); color: var(--ink); cursor: pointer; }
@media (min-width: 1040px) {
  .toplinks, .top-cta { display: flex; }
  .menu-open-btn { display: none; }
}

/* Mobile menu dialog */
.menu-sheet { border: 0; padding: 0; margin: 0 0 0 auto; width: min(420px, 100%); max-width: 100%; height: 100%; max-height: 100%; background: var(--ground); color: var(--ink);
  opacity: 0; translate: 24px 0; transition: opacity .22s, translate .22s, display .22s allow-discrete, overlay .22s allow-discrete; }
.menu-sheet[open] { opacity: 1; translate: 0 0; }
@starting-style { .menu-sheet[open] { opacity: 0; translate: 24px 0; } }
.menu-sheet::backdrop { background: rgb(35 28 21 / .45); }
.menu-inner { padding: 20px 24px 32px; display: grid; gap: 20px; }
.menu-head { display: flex; justify-content: space-between; align-items: center; }
.menu-close-btn { min-height: 46px; padding: 8px 18px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font: 600 1rem var(--display); color: var(--ink); cursor: pointer; }
.menu-inner ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.menu-inner ul a { display: block; padding: 14px 16px; border-radius: var(--r-sm); background: var(--panel); color: var(--ink); text-decoration: none; font: 600 1.1rem var(--display); border: 1px solid var(--line); }
.menu-inner .pill-solid { color: #fff; }

/* Hero */
.lead-in { padding: clamp(36px, 6vw, 80px) 0 calc(var(--pad) * .9); background: linear-gradient(180deg, var(--ground) 0%, var(--sand) 100%); }
@supports (clip-path: shape(from 0 0, line to 100% 0)) {
  .lead-in { clip-path: shape(from 0 0, line to 100% 0, line to 100% 92%, curve to 0 100% with 50% 104%, close); }
}
.lead-grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
.lead-copy p.lead-line { font-size: clamp(1.15rem, 1.8vw, 1.3rem); color: var(--ink-2); max-width: 34ch; }
.lead-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.lead-photo .ph { position: relative; display: block; isolation: isolate; }
.lead-photo img { border-radius: var(--r-lg); width: 100%; box-shadow: 0 24px 60px -28px rgb(var(--slate-rgb) / .45); }
.lead-photo .ph::before { content: ""; position: absolute; inset: auto -14px -14px 28px; height: 60%; border-radius: var(--r-lg); background: repeating-linear-gradient(180deg, rgb(var(--cedar-rgb) / .9) 0 14px, rgb(var(--cedar-rgb) / .55) 14px 16px); z-index: -1; }
.lead-photo figcaption { margin-top: 28px; font-size: .95rem; color: var(--ink-2); }
@media (min-width: 900px) { .lead-grid { grid-template-columns: 1.05fr 1fr; } }

/* Section rhythm */
.band { padding: var(--pad) 0; }
.band-sand { background: var(--sand); }
.band-white { background: var(--panel); }
.band-head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 48px); }
.band-head p { color: var(--ink-2); font-size: 1.12rem; }
.kicker { display: inline-block; font: 700 .95rem var(--display); color: var(--slate); background: rgb(var(--slate-rgb) / .09); padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }

/* Yard path, three steps */
.yardpath { display: grid; gap: var(--gap); list-style: none; margin: 0; padding: 0; counter-reset: step; }
.yardpath li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; position: relative; counter-increment: step; }
.yardpath li::before { content: counter(step); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--cedar-ink); color: #fff; font: 700 1.3rem var(--display); margin-bottom: 16px; }
.yardpath p { margin: 0; color: var(--ink-2); }
@media (min-width: 820px) { .yardpath { grid-template-columns: repeat(3, 1fr); } }

/* Service tiles */
.tilegrid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s, translate .2s; content-visibility: auto; contain-intrinsic-size: auto 220px; }
.tile:hover { border-color: var(--cedar); translate: 0 -3px; color: var(--ink); }
.tile h3 { margin: 0; }
.tile p { margin: 0; color: var(--ink-2); }
.tile .go { margin-top: auto; padding-top: 8px; font: 700 1rem var(--display); color: var(--cedar-ink); }
.tile-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--sand); display: grid; place-items: center; }
.tile-icon svg { width: 30px; height: 30px; }

/* Numbers */
.numbers { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); list-style: none; margin: 0; padding: 0; }
.numbers li { background: var(--panel); border-radius: var(--r-md); padding: 24px; border: 1px solid var(--line); }
.numbers strong, .numbers b { display: block; font: 700 clamp(1.8rem, 3vw, 2.3rem) var(--display); color: var(--slate); line-height: 1.1; }
.numbers span { display: block; margin-top: 6px; color: var(--ink-2); }
.growth { margin-top: var(--gap); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: grid; gap: 14px; }
.growth-row { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 14px; }
.growth-row span { font: 700 1.05rem var(--display); }
.growth-bar { height: 34px; border-radius: 999px; background: var(--cedar); display: flex; align-items: center; justify-content: flex-end; padding: 0 14px; color: var(--ink); font: 700 1rem var(--display); min-width: max-content; }
.growth-bar.then { background: var(--sand-2); }
.fineprint { font-size: .95rem; color: var(--ink-2); margin-top: 18px; }

/* Split rows */
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split img { border-radius: var(--r-lg); width: 100%; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.flip > :first-child { order: 2; } }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.ticks li { padding-left: 34px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 20px; height: 20px; border-radius: 50%; background: var(--cedar) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23231c15' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }

/* Inner page head */
.page-top { padding: clamp(28px, 5vw, 56px) 0 clamp(28px, 4vw, 44px); background: var(--sand); border-bottom: 1px solid var(--line); }
.crumbs { font-size: .97rem; color: var(--ink-2); margin-bottom: 14px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }
.page-top p.qt { font-size: 1.2rem; max-width: 46ch; color: var(--ink); margin: 0; }

/* Prose */
.prose { padding: clamp(36px, 5vw, 64px) 0; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose figure { margin: 1.6em 0; }
.prose figure img { border-radius: var(--r-lg); }
.prose figcaption { font-size: .95rem; color: var(--ink-2); margin-top: 10px; }
.four-up { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; margin: 0 0 2em; padding: 0; list-style: none; }
.four-up li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; margin: 0; }
.four-up span { display: block; font-size: .95rem; color: var(--ink-2); }
.four-up em, .four-up i { display: block; font-style: normal; font: 700 1.1rem var(--display); color: var(--ink); }
.callout { background: rgb(var(--slate-rgb) / .07); border-left: 5px solid var(--slate); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 20px 24px; margin: 1.6em 0; }
.callout p:last-child { margin: 0; }
.sources { font-size: .97rem; color: var(--ink-2); border-top: 1px solid var(--line); margin-top: 2.4em; padding-top: 1.2em; }
.sources ul { padding-left: 1.1em; }
.facts-table { width: 100%; border-collapse: collapse; margin: 1.2em 0 2em; background: var(--panel); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.facts-table th, .facts-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts-table th { font-family: var(--display); background: var(--sand); }
.facts-table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }
.more-links { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); list-style: none; padding: 0; margin: 1em 0 0; }
.more-links a { display: block; padding: 16px 20px; border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line); font: 700 1.05rem var(--display); text-decoration: none; color: var(--ink); }
.more-links a:hover { border-color: var(--cedar); }

/* Reading progress on long guides (Tier 2, gated) */
.readbar { display: none; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .readbar { display: block; position: fixed; inset: 0 0 auto; height: 4px; z-index: 40; background: var(--cedar); transform-origin: left; animation: readgrow linear; animation-timeline: scroll(root); }
    @keyframes readgrow { from { scale: 0 1; } to { scale: 1 1; } }
  }
}

/* FAQ, exclusive accordion */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); }
.faq summary { cursor: pointer; padding: 20px 56px 20px 22px; font: 700 1.12rem var(--display); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; font-size: 1.3rem; color: var(--cedar-ink); }
.faq details[open] summary::after { content: "\2212"; }
.faq-a { padding: 0 22px 20px; color: var(--ink-2); }
.faq-a p:last-child { margin: 0; }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .3s, content-visibility .3s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* Estimate card */
.estimate-wrap { padding: var(--pad) 0; background: var(--panel); }
.estimate-card { display: grid; gap: clamp(24px, 4vw, 48px); background: var(--sand); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 48px); border-top: 6px solid var(--cedar); }
@media (min-width: 900px) { .estimate-card { grid-template-columns: .85fr 1.15fr; } }
.estimate-card h2 { margin-bottom: .35em; }
.estimate-card .side p { color: var(--ink-2); }
.estimate-form { display: grid; gap: 16px; }
.fields-2 { display: grid; gap: 16px; }
@media (min-width: 620px) { .fields-2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font: 700 1rem var(--display); }
.field label small { font: 500 .95rem var(--body); color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--panel); border: 1.5px solid #cdbba6; border-radius: var(--r-sm); padding: 13px 14px; min-height: 52px; }
.field textarea { field-sizing: content; min-block-size: 4lh; max-block-size: 12lh; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--slate); outline: 3px solid rgb(var(--slate-rgb) / .25); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: #b3261e; }
.consent { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: .95rem; color: var(--ink-2); line-height: 1.5; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--cedar-ink); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; font-weight: 500; color: #8c1d18; }
.estimate-form .pill { justify-self: start; }

/* Footer */
.foot { background: var(--ink); color: #efe6da; padding: clamp(48px, 6vw, 80px) 0 32px; }
.foot a { color: #ffd9bd; }
.foot a:hover { color: #fff; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot h2 { color: #fff; font-size: 1.15rem; margin-bottom: .8em; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot .brandmark { color: #fff; }
.foot-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .16); font-size: .95rem; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* Mobile call bar, only when a phone is set */
.callbar { position: fixed; inset: auto 12px 12px 12px; z-index: 35; display: flex; gap: 10px; }
.callbar .pill { flex: 1; box-shadow: 0 10px 30px -10px rgb(35 28 21 / .5); }
.callbar .pill-solid { color: #fff; }
.has-callbar { padding-bottom: 84px; }
@media (min-width: 1040px) { .callbar { display: none; } .has-callbar { padding-bottom: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Card lists inside prose keep their own edges */
.prose .four-up, .prose .more-links { padding-left: 0; }
@media (max-width: 600px) { .lead-photo .ph::before { right: -6px; bottom: -10px; } }
