/* JAMCo Woodworks site. Sawmill palette: bark #1E1B18, sawdust #F3EEE5, fir orange #A84B18. */
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:#F3EEE5;color:#1E1B18;font-family:'Work Sans',system-ui,-apple-system,sans-serif}
h1,h2,h3{font-family:'Zilla Slab',Georgia,serif;margin:0;text-wrap:balance}
p{margin:0}
a{color:#9A4516}
figure{margin:0}
img{max-width:100%}
.page{display:flex;flex-direction:column;overflow-x:hidden}
.page > section{width:100%}
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #A84B18;outline-offset:2px}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* header */
.site-header{width:100%;position:sticky;top:0;z-index:50}
.site-header .nl{background:linear-gradient(#A84B18,#A84B18) left bottom/0 2px no-repeat;transition:background-size .25s ease}
.site-header .nl:hover{background-size:100% 2px}
.mnav{display:none;position:relative}
.mnav summary{list-style:none;cursor:pointer;height:48px;padding:0 18px;border:2px solid #1E1B18;border-radius:4px;display:flex;align-items:center;font-weight:600}
.mnav summary::-webkit-details-marker{display:none}
.mnav-panel{position:absolute;right:0;top:56px;width:min(300px,calc(100vw - 32px));background:#FFFFFF;border:1px solid #DDD3C3;border-radius:8px;box-shadow:0 18px 40px -20px rgba(30,27,24,.5);display:flex;flex-direction:column;padding:8px}
.mnav-panel a{padding:12px 14px;color:#1E1B18;text-decoration:none;font-weight:500;border-radius:6px}
.mnav-panel a:hover{background:#F3EEE5}
.mnav-panel .mnav-cta{background:#A84B18;color:#FFFFFF;margin-top:6px;text-align:center;font-weight:600}

/* footer */
.site-footer{width:100%}
.site-footer .copy{grid-column:1/-1;font-size:13px;color:#8A7E70;border-top:1px solid #3A332C;padding-top:20px;margin-top:8px}
.sent{padding:32px;background:#FFFFFF;border-radius:8px;display:flex;flex-direction:column;gap:10px}

.bgform{display:flex;flex-direction:column;gap:10px;min-width:0}
.bgalt{font-size:14px!important;color:#6B6055}

/* instagram block */
.reels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:start}
.reel{background:#FFFFFF;border-radius:8px;padding:20px;display:flex;flex-direction:column;gap:12px;box-shadow:0 1px 0 #D8CDBB}
.reel .instagram-media{margin:0!important;min-width:0!important;width:100%!important}

/* blog */
.post{max-width:720px;margin:0 auto;padding:72px 20px 96px;display:flex;flex-direction:column;gap:20px;font-size:18px;line-height:1.75;color:#3A332C}
.post h1{font-size:clamp(40px,6vw,64px);line-height:1;color:#1E1B18}
.post h2{font-size:28px;color:#1E1B18;margin-top:12px}
.post ul{margin:0;padding-left:22px}
.post .meta{font-size:14px;color:#8A7E70;letter-spacing:.06em;text-transform:uppercase}

/* tablets: tighten the desktop layout */
@media (max-width:1240px){
  .site-header nav{gap:18px!important;font-size:15px!important}
  .site-header .hdr-phone{display:none!important}
}
@media (max-width:1080px){
  .site-header nav{display:none!important}
  .mnav{display:block}
  .site-header{padding:0 20px!important;justify-content:space-between}
}

/* phones and small tablets: stack everything */
@media (max-width:900px){
  .site-header{height:80px!important}
  .site-header img{height:64px!important}
  .site-header > a[href="quote.html"]{height:48px;padding:0 14px!important;font-size:15px}
  .page section,.page aside{padding-left:20px!important;padding-right:20px!important}
  .page section[style*="padding: 1"],.page section[style*="padding: 8"],.page section[style*="padding: 9"]{padding-top:56px!important;padding-bottom:56px!important}
  .page [style*="grid-template-columns"]{grid-template-columns:1fr!important;gap:20px!important}
  .page [style*="repeat(4"],.page [style*="repeat(5"],.page [style*="repeat(6"],.page [style*="repeat(7"]{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .page .reels{grid-template-columns:1fr}
  .page div[style*="justify-content: space-between"],.page section[style*="justify-content: space-between"]{flex-direction:column!important;align-items:flex-start!important}
  .page div[style*="flex-shrink: 0"],.page [style*="width: 400px"],.page [style*="max-width"]{width:100%!important;max-width:100%!important}
  .page [style*="grid-column: span 2"]{grid-column:auto!important}
  .page [style*="grid-row: span 2"]{grid-row:auto!important}
  .page [style*="grid-template-rows"]{grid-template-rows:none!important}
  .page .tile [style*="space-between"],.page .path{flex-direction:row!important;align-items:flex-end!important}
  .page .path{align-items:center!important}
  .page .arrow{width:48px!important;flex-shrink:0}
  .page .pin{width:26px!important;height:26px!important;font-size:12px!important;border-width:2px!important}
  .page button[style*="flex: 1"]{width:100%}
  .page h1{font-size:46px!important;line-height:1!important;letter-spacing:0!important}
  .page h2{font-size:32px!important;line-height:1.05!important}
  .page h3{font-size:22px!important}
  .page p{font-size:17px!important}
  .page img:not([style*="100%; height: 100%"]):not([style*="inset: 0"]){height:auto!important;max-height:340px;aspect-ratio:4/3;object-fit:cover}
  .page figure[style*="grid"] img,.page [style*="grid-template-rows"] img{height:240px!important}
  /* full-bleed heroes: let the text flow instead of floating */
  .page section[style*="position: relative"][style*="height:"]{height:auto!important;min-height:560px;display:flex;flex-direction:column;justify-content:flex-end}
  .page section[style*="position: relative"] > div[style*="position: absolute"][style*="bottom"]{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;width:auto!important;padding:160px 20px 40px;flex-direction:column!important;align-items:flex-start!important}
  .page section[style*="position: relative"] > div[style*="position: absolute"][style*="background: linear-gradient(90deg"]{background:linear-gradient(180deg,rgba(20,16,12,.25) 0%,rgba(20,16,12,.9) 55%)!important}
  .page a[style*="height: 5"]{height:auto!important;min-height:52px;padding-top:12px!important;padding-bottom:12px!important;white-space:normal}
  .page [style*="display: flex; gap: 1"]{flex-wrap:wrap}
  .page table{display:block;overflow-x:auto}
  .site-footer{grid-template-columns:1fr 1fr!important;padding:48px 20px!important;height:auto!important}
}
@media (max-width:520px){
  .page [style*="repeat(4"],.page [style*="repeat(5"],.page [style*="repeat(6"],.page [style*="repeat(7"]{grid-template-columns:1fr!important}
  .site-footer{grid-template-columns:1fr!important}
  .page h1{font-size:40px!important}
}

/* job application */
.rate{display:flex;flex-direction:column}
.rate-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 24px;padding:12px 0;border-top:1px solid #DDD3C3}
.rate-opts{display:flex;gap:4px}
.rate-opts label{display:flex;flex-direction:column;align-items:center;gap:3px;width:46px;padding:4px 0;font-size:13px;font-weight:600;color:#4A423A;cursor:pointer}
.rate-opts input{width:22px;height:22px;margin:0;accent-color:#A84B18}
#apply-form input[type=radio],#apply-form input[type=checkbox]{accent-color:#A84B18}
#apply-form button[disabled]{opacity:.6;cursor:default}
.form-err a{color:#9A4516;font-weight:600}
@media(max-width:900px){.rate-row{grid-template-columns:1fr}.rate-opts{justify-content:space-between;max-width:320px}
#apply-form input[type=radio],#apply-form input[type=checkbox]{width:20px;height:20px;vertical-align:-4px;margin-right:6px}
#apply-form fieldset label:has(>input[type=radio]),#apply-form fieldset label:has(>input[type=checkbox][name=ran]){padding:5px 0}}

/* quote + contact forms */
.field{display:flex;flex-direction:column;gap:10px;min-width:0}
.field-label{font-size:15px;font-weight:600}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{position:relative;cursor:pointer}
.chip input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.chip span{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border:1.5px solid #B8AC9B;border-radius:999px;background:#FFFFFF;font-size:15px;font-weight:500;color:#1E1B18;transition:background .15s,border-color .15s,color .15s}
.chip:hover span{border-color:#1E1B18}
.chip input:checked + span{background:#1E1B18;border-color:#1E1B18;color:#FFFFFF}
.chip input:focus-visible + span{outline:3px solid #A84B18;outline-offset:2px}
.drop{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:190px;padding:28px;border:2px dashed #B8AC9B;border-radius:6px;background:#FAF7F1;text-align:center;cursor:pointer;transition:background .15s,border-color .15s}
.drop:hover,.drop.over{border-color:#A84B18;background:#F6EDE2}
.drop:focus-within{outline:3px solid #A84B18;outline-offset:2px}
.drop input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.drop-title{font-size:18px;font-weight:600;color:#1E1B18}
.drop-hint{font-size:14px;color:#6B6055}
.drop-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.drop-list li{display:flex;align-items:center;gap:12px;padding:10px 14px;background:#F3EEE5;border-radius:4px;font-size:15px}
.drop-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
.drop-size{color:#6B6055;font-size:13px;white-space:nowrap}
.drop-list button{border:0;background:none;color:#9A4516;font:inherit;font-size:14px;font-weight:600;cursor:pointer;padding:6px 4px}
.drop-note{font-size:14px;line-height:1.5;color:#8A3A10}
form[data-api] button[disabled]{opacity:.6;cursor:default}
form[data-api] ::placeholder{color:#8A7E70}
@media(max-width:900px){form[data-api]{padding:22px!important}.drop{min-height:150px;padding:20px}.chip span{min-height:46px}.dircard{height:260px!important}.dircard img{max-height:none!important;height:100%!important;aspect-ratio:auto!important}}

/* pergola builder */
.stepper{display:inline-flex;align-items:center;border:1.5px solid #B8AC9B;border-radius:6px;overflow:hidden;align-self:flex-start;background:#FFFFFF}
.stepper button{width:52px;height:48px;border:0;background:#F3EEE5;font:inherit;font-size:24px;font-weight:600;color:#1E1B18;cursor:pointer}
.stepper button:hover:not(:disabled){background:#EAE2D4}
.stepper button:disabled{color:#B8AC9B;cursor:default}
.stepper output{min-width:92px;text-align:center;font-size:19px;font-weight:600;font-variant-numeric:tabular-nums}
.pkg-pick:hover{background:#A84B18!important}
@media(max-width:900px){#pergola-canvas,#pergola-fallback{height:360px!important}.pkg img{height:220px!important;max-height:none!important;aspect-ratio:auto!important}#pergola-fallback{max-height:none!important;aspect-ratio:auto!important}}

/* customer logs page */
.logtag{display:inline-block;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:14px;font-weight:700;color:#9A4516;border:2px solid #9A4516;border-radius:4px;padding:1px 7px;white-space:nowrap}
.loggrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
#logs-form button:disabled{opacity:.5;cursor:default}
@media(max-width:900px){.page .opts{grid-template-columns:1fr!important}.page .opts .or{justify-self:center}}

/* form text: always dark ink on a light field, whatever the phone or app theme is doing */
:root{color-scheme:light only}
input,select,textarea{color:#1E1B18;-webkit-text-fill-color:#1E1B18;caret-color:#1E1B18;background-color:#FFFFFF}
select option{color:#1E1B18;background-color:#FFFFFF}
input::placeholder,textarea::placeholder{color:#776C60;-webkit-text-fill-color:#776C60;opacity:1}
input:-webkit-autofill,textarea:-webkit-autofill,select:-webkit-autofill{-webkit-text-fill-color:#1E1B18;box-shadow:0 0 0 1000px #FFFFFF inset}
