/*
Theme Name: Allentown Deck Builder
Theme URI: https://allentowndeckbuilder.com/
Author: Site Owner
Description: A lightweight, responsive WordPress theme for a premium deck-building business serving Allentown and the Lehigh Valley.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: allentown-deck-builder
*/

/* Design tokens and base styles */
:root {
  --adb-ink: #25352e;
  --adb-muted: #637068;
  --adb-paper: #fbfaf6;
  --adb-surface: #ffffff;
  --adb-surface-soft: #f0f1e9;
  --adb-line: #dfe3d9;
  --adb-green: #294a3b;
  --adb-green-hover: #1f392d;
  --adb-clay: #b66f4f;
  --adb-cream: #f2eadc;
  --adb-radius: 18px;
  --adb-shadow: 0 18px 48px rgba(32, 43, 35, .10);
  --adb-content: 760px;
  --adb-wide: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--adb-paper);
  color: var(--adb-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
svg { max-width: 100%; }
a { color: var(--adb-green); text-underline-offset: .18em; }
a:hover { color: var(--adb-green-hover); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--adb-clay); outline-offset: 3px; }
h1, h2, h3, h4 { color: var(--adb-ink); font-weight: 750; line-height: 1.13; letter-spacing: -.035em; margin: 0 0 .65em; }
h1 { font-size: clamp(2.6rem, 5.6vw, 5rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3.1rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.35em; }
.wrap { width: min(var(--adb-wide), calc(100% - 40px)); margin-inline: auto; }
.content-width { width: min(var(--adb-content), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 84px 0; }
.section--soft { background: var(--adb-surface-soft); }
.eyebrow { color: var(--adb-clay); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 15px; }
.lead { max-width: 690px; color: var(--adb-muted); font-size: clamp(1.05rem, 1.6vw, 1.22rem); }
.muted { color: var(--adb-muted); }
.small { color: var(--adb-muted); font-size: .88rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 20px; border: 1px solid transparent;
  border-radius: 999px; font-size: .92rem; font-weight: 750; line-height: 1.25;
  text-decoration: none; cursor: pointer; transition: transform .18s ease, background-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--adb-green); color: #fff; }
.btn--primary:hover { background: var(--adb-green-hover); color: #fff; }
.btn--outline { border-color: var(--adb-line); background: transparent; color: var(--adb-ink); }
.btn--text { padding-inline: 0; color: var(--adb-green); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.site-header { position: relative; z-index: 20; background: var(--adb-paper); border-bottom: 1px solid var(--adb-line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 82px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--adb-ink); text-decoration: none; }
.brand:hover { color: var(--adb-ink); }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px 12px 12px 3px; background: var(--adb-green); color: #fff; flex: 0 0 auto; }
.brand-mark svg { width: 25px; height: 25px; }
.brand-name { display: block; font-size: 1rem; font-weight: 800; line-height: 1.15; letter-spacing: -.035em; }
.brand-sub { display: block; margin-top: 4px; color: var(--adb-muted); font-size: .68rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: 24px; }
.primary-nav > a:not(.btn) { color: var(--adb-muted); font-size: .91rem; font-weight: 650; text-decoration: none; }
.primary-nav > a:not(.btn):hover { color: var(--adb-ink); }
.menu-toggle { display: none; border: 1px solid var(--adb-line); border-radius: 10px; background: transparent; color: var(--adb-ink); padding: 9px 12px; }
.hero { padding: 70px 0 68px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: clamp(32px, 6vw, 76px); }
.hero h1 { max-width: 720px; margin: 18px 0 22px; }
.hero .lead { margin-bottom: 28px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--adb-muted); font-size: .88rem; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--adb-clay); }
.hero-art { position: relative; min-height: 455px; border-radius: 46% 46% 18px 18px; overflow: hidden; background: linear-gradient(160deg, #e8e8d9 0%, #d9e0d0 47%, #b5c5b1 100%); box-shadow: var(--adb-shadow); isolation: isolate; }
.hero-art .hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-art__sun { position: absolute; top: 48px; right: 55px; width: 72px; height: 72px; border-radius: 50%; background: #f6d9a7; }
.hero-art__tree { position: absolute; bottom: 138px; width: 165px; height: 245px; }
.hero-art__tree--left { left: -8px; }
.hero-art__tree--right { right: -8px; transform: scale(.82); transform-origin: bottom right; }
.hero-art__tree::before { content: ""; position: absolute; bottom: 0; left: 75px; width: 16px; height: 125px; background: #7d7257; border-radius: 8px; }
.hero-art__tree::after { content: ""; position: absolute; top: 0; left: 7px; width: 155px; height: 155px; border-radius: 46% 54% 50% 50%; background: #8da88a; box-shadow: 26px 32px 0 -7px #a3b89b, -19px 39px 0 -12px #789779; }
.hero-art__house { position: absolute; z-index: 2; right: 7%; top: 95px; width: 61%; height: 170px; background: #f5f0e5; border: 1px solid rgba(71,77,63,.15); box-shadow: 0 12px 24px rgba(40,54,40,.08); }
.hero-art__roof { position: absolute; left: -15px; top: -48px; width: calc(100% + 30px); height: 65px; background: #6e786e; clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.hero-art__window { position: absolute; top: 35px; width: 53px; height: 67px; border: 5px solid #e2ddce; background: #8eaaa9; }
.hero-art__window--one { left: 22px; }
.hero-art__window--two { left: 91px; }
.hero-art__door { position: absolute; right: 26px; bottom: 0; width: 44px; height: 94px; background: #8a674d; }
.hero-art__deck { position: absolute; z-index: 3; bottom: 54px; left: 10%; width: 83%; height: 130px; background: repeating-linear-gradient(0deg, #b98660 0 12px, #a97853 12px 15px); transform: perspective(360px) rotateX(8deg); box-shadow: 0 16px 20px rgba(50,53,39,.18); }
.hero-art__deck-front { position: absolute; z-index: 4; bottom: 16px; left: 10%; width: 83%; height: 40px; background: repeating-linear-gradient(90deg, #a87955 0 12px, #c18f67 12px 16px); transform: skewY(-2deg); }
.hero-art__rail { position: absolute; z-index: 4; bottom: 150px; left: 12%; width: 79%; height: 50px; border-top: 6px solid #f4f0e4; border-bottom: 4px solid #f4f0e4; }
.hero-art__rail::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 22px, #f4f0e4 22px 27px); }
.hero-art__plant { position: absolute; z-index: 5; bottom: 12px; width: 100px; height: 80px; background: #718b68; clip-path: polygon(48% 0, 62% 39%, 100% 16%, 74% 54%, 97% 72%, 57% 67%, 48% 100%, 40% 67%, 3% 77%, 25% 51%, 0 24%, 37% 39%); }
.hero-art__plant--left { left: 2%; }
.hero-art__plant--right { right: 3%; transform: scale(.8) rotate(15deg); }
.hero-art__caption { position: absolute; z-index: 6; bottom: 16px; left: 18px; padding: 7px 11px; border-radius: 8px; background: rgba(251,250,246,.9); color: #34483a; font-size: .72rem; font-weight: 700; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 36px; }
.section-heading__copy { max-width: 700px; }
.section-heading p { color: var(--adb-muted); max-width: 580px; margin-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-card { display: flex; flex-direction: column; align-items: flex-start; padding: 26px; background: var(--adb-surface); border: 1px solid var(--adb-line); border-radius: var(--adb-radius); min-height: 235px; transition: transform .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--adb-shadow); }
.service-card__icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; background: var(--adb-cream); color: var(--adb-green); margin-bottom: 22px; }
.service-card__icon svg { width: 24px; height: 24px; }
.service-card p { color: var(--adb-muted); font-size: .94rem; margin-bottom: 18px; }
.service-card__link { margin-top: auto; color: var(--adb-green); font-weight: 750; font-size: .9rem; text-decoration: none; }
.two-col { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 7vw, 92px); align-items: start; }
.sticky-copy { position: sticky; top: 28px; }
.check-list { display: grid; gap: 17px; padding: 0; list-style: none; margin: 28px 0; }
.check-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.check { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--adb-green); color: #fff; font-size: .8rem; font-weight: 900; margin-top: 2px; }
.check-list strong { display: block; margin-bottom: 3px; }
.check-list span:not(.check) { color: var(--adb-muted); font-size: .94rem; }
.material-panel { background: var(--adb-surface); border: 1px solid var(--adb-line); border-radius: 22px; padding: clamp(24px, 4vw, 40px); }
.material-row { display: grid; grid-template-columns: 100px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--adb-line); }
.material-row:first-child { padding-top: 0; }
.material-row:last-of-type { border-bottom: 0; padding-bottom: 0; }
.material-swatch { border-radius: 12px; min-height: 90px; background: repeating-linear-gradient(0deg, #bb8c67 0 9px, #a77754 9px 12px); }
.material-swatch--composite { background: repeating-linear-gradient(0deg, #8b9285 0 9px, #6f786d 9px 12px); }
.material-swatch--railings { background: repeating-linear-gradient(90deg, #e9e4d7 0 12px, #c8c5b8 12px 15px); }
.material-row p { color: var(--adb-muted); margin-bottom: 0; font-size: .93rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; counter-reset: adb-step; }
.step { padding-top: 20px; border-top: 1px solid var(--adb-line); counter-increment: adb-step; }
.step::before { content: "0" counter(adb-step); display: block; color: var(--adb-clay); font-size: .8rem; font-weight: 850; letter-spacing: .1em; margin-bottom: 20px; }
.step p { color: var(--adb-muted); font-size: .94rem; margin-bottom: 0; }
.faq-list { max-width: 850px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--adb-line); padding: 20px 0; }
.faq-item summary { cursor: pointer; font-weight: 750; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--adb-clay); font-size: 1.4rem; font-weight: 500; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--adb-muted); padding-top: 14px; margin-bottom: 0; max-width: 760px; }
.cta-band { background: var(--adb-green); color: #fff; border-radius: 24px; padding: clamp(28px, 5vw, 56px); display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.cta-band h2 { color: #fff; max-width: 650px; margin-bottom: 12px; }
.cta-band p { margin-bottom: 0; color: rgba(255,255,255,.82); }
.cta-band .eyebrow { color: #f4c9b2; }
.cta-band .btn { background: #fff; color: var(--adb-green); flex-shrink: 0; }
.site-footer { padding: 48px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; padding-bottom: 35px; }
.site-footer p, .site-footer a { color: var(--adb-muted); font-size: .9rem; }
.site-footer a { text-decoration: none; }
.footer-links { display: grid; gap: 9px; align-content: start; }
.footer-title { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid var(--adb-line); padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; color: var(--adb-muted); font-size: .8rem; }
.page-header { padding: 62px 0 42px; }
.breadcrumbs { color: var(--adb-muted); font-size: .85rem; margin-bottom: 24px; }
.breadcrumbs a { text-decoration: none; }
.entry-content { padding-bottom: 80px; }
.entry-content > * { max-width: var(--adb-content); margin-left: auto; margin-right: auto; }
.entry-content > .alignwide { max-width: var(--adb-wide); }
.entry-content > .alignfull { max-width: none; }
.entry-content h2 { margin-top: 1.7em; }
.entry-content h3 { margin-top: 1.3em; }
.entry-content img { border-radius: 12px; }
.entry-content .wp-block-button__link { background: var(--adb-green); border-radius: 999px; color: #fff; }
.entry-content .wp-block-quote { border-left: 3px solid var(--adb-clay); padding-left: 20px; color: var(--adb-muted); }
.entry-content .wp-block-separator { border: 0; border-top: 1px solid var(--adb-line); }
.estimate-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 7vw, 80px); align-items: start; }
.estimate-form { background: var(--adb-surface); border: 1px solid var(--adb-line); border-radius: 22px; padding: clamp(22px, 4vw, 36px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.form-field { display: grid; gap: 7px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-size: .87rem; font-weight: 750; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--adb-line); border-radius: 10px; background: var(--adb-paper); color: var(--adb-ink); }
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 3px solid rgba(182,111,79,.25); border-color: var(--adb-clay); }
.form-note { color: var(--adb-muted); font-size: .8rem; }
.form-feedback { margin-top: 18px; padding: 15px; border-radius: 12px; background: var(--adb-surface-soft); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
  .primary-nav { gap: 14px; }
  .primary-nav > a:not(.btn) { display: none; }
  .hero-grid, .two-col, .estimate-layout { grid-template-columns: 1fr; }
  .hero { padding-top: 52px; }
  .hero-art { min-height: 420px; max-width: 650px; width: 100%; margin-inline: auto; }
  .sticky-copy { position: static; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 68px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
  .wrap, .content-width { width: min(calc(100% - 30px), var(--adb-wide)); }
  .header-inner { min-height: 72px; }
  .brand-name { font-size: .9rem; }
  .brand-mark { width: 38px; height: 38px; }
  .menu-toggle { display: inline-flex; }
  .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 16px 20px 22px; background: var(--adb-paper); border-bottom: 1px solid var(--adb-line); box-shadow: var(--adb-shadow); }
  .primary-nav.is-open { display: grid; align-items: stretch; gap: 14px; }
  .primary-nav > a:not(.btn) { display: block; padding: 4px 0; }
  .primary-nav .btn { width: 100%; }
  .hero { padding: 44px 0 50px; }
  h1 { font-size: clamp(2.55rem, 12vw, 3.6rem); }
  .hero-art { min-height: 340px; border-radius: 38% 38% 16px 16px; }
  .hero-art__house { top: 74px; height: 135px; }
  .hero-art__roof { top: -39px; height: 52px; }
  .hero-art__window { top: 27px; width: 39px; height: 52px; border-width: 4px; }
  .hero-art__window--two { left: 70px; }
  .hero-art__door { height: 74px; width: 35px; }
  .hero-art__deck { bottom: 48px; height: 105px; }
  .hero-art__deck-front { bottom: 13px; height: 33px; }
  .hero-art__rail { bottom: 137px; height: 42px; }
  .hero-art__tree--left { transform: scale(.76); transform-origin: bottom left; }
  .hero-art__tree--right { transform: scale(.65); }
  .cards, .steps, .footer-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; }
  .material-row { grid-template-columns: 78px 1fr; gap: 14px; }
  .material-swatch { min-height: 78px; }
  .cta-band { align-items: flex-start; flex-direction: column; }
  .footer-bottom { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field--full { grid-column: auto; }
  .section { padding: 58px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
