/* Haden Joinery — site stylesheet.
   Built by Fenwick Digital, Oxford, 2016. Refreshed 2021 (responsive nav, planner). */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.65 "Helvetica Neue", Arial, sans-serif;
  color: #33291f;
  background: #f7f3ec;
}
h1, h2, h3, h4, legend, .brand-name { font-family: Georgia, "Times New Roman", serif; color: #3d2b1f; }
h1 { font-size: 2rem; margin: 1.2em 0 .5em; }
h2 { font-size: 1.45rem; margin: 1.6em 0 .5em; }
h3 { font-size: 1.15rem; margin: 1.2em 0 .4em; }
a { color: #8a5a2b; }
a:hover { color: #5d3a17; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 720px; }
.small { font-size: .85rem; color: #6b5d4d; }
.lede { font-size: 1.08rem; color: #4a3d2e; }
.more a { font-weight: bold; }

/* header */
.topstrip { background: #3d2b1f; color: #e9ddcb; font-size: .85rem; }
.topstrip .wrap { display: flex; justify-content: space-between; padding-top: 5px; padding-bottom: 5px; }
.topstrip a { color: #e9ddcb; }
.site-header { background: #fffdf8; border-bottom: 4px solid #b5824c; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: 14px; padding-bottom: 10px; }
.brand a { text-decoration: none; }
.brand-name { font-size: 1.7rem; letter-spacing: .04em; color: #3d2b1f; text-transform: uppercase; }
.brand-sub { display: block; font-size: .8rem; color: #8a7a63; letter-spacing: .02em; }
.site-nav ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.site-nav a { display: block; padding: 6px 11px; text-decoration: none; color: #4a3d2e; border-radius: 3px; }
.site-nav a:hover { background: #f0e6d6; }
.site-nav a.current { background: #b5824c; color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid #b5824c; color: #3d2b1f; padding: 6px 12px; font-size: 1rem; border-radius: 3px; }

/* hero */
.hero { position: relative; max-height: 430px; overflow: hidden; background: #241a12; }
.hero img { width: 100%; display: block; opacity: .62; object-fit: cover; max-height: 430px; }
.hero-text { position: absolute; left: 0; right: 0; bottom: 12%; text-align: center; color: #fff; padding: 0 20px; }
.hero-text h1 { color: #fff; font-size: 2.3rem; margin: 0 0 .3em; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.hero-text p { font-size: 1.1rem; text-shadow: 0 1px 3px rgba(0,0,0,.7); margin: 0 0 1em; }
.btn { display: inline-block; background: #b5824c; color: #fff; padding: 9px 20px; border-radius: 3px; text-decoration: none; border: none; font-size: 1rem; cursor: pointer; }
.btn:hover { background: #9a6c3b; color: #fff; }
.btn.ghost { background: transparent; border: 2px solid #fff; margin-left: 8px; }
.btn.ghost:hover { background: rgba(255,255,255,.15); }

/* cards */
.cards { display: flex; gap: 22px; flex-wrap: wrap; }
.card { flex: 1 1 280px; background: #fffdf8; border: 1px solid #e4d7c2; border-radius: 4px; overflow: hidden; }
.card img { width: 100%; height: 190px; object-fit: cover; display: block; }
.card h3 { margin: 12px 14px 4px; }
.card p { margin: 4px 14px 16px; }
.card a { text-decoration: none; }

.pull blockquote, .quotes blockquote {
  background: #fffdf8; border-left: 4px solid #b5824c; margin: 1em 0; padding: 14px 20px;
  font-family: Georgia, serif; font-style: italic; color: #4a3d2e;
}
blockquote cite { display: block; margin-top: 8px; font-style: normal; font-size: .9rem; color: #8a7a63; }
.planner-teaser { background: #efe5d2; border-radius: 4px; padding: 6px 22px 18px; margin: 2em 0; }

/* services */
.svc-layout { display: flex; gap: 30px; align-items: flex-start; }
.svc-list { flex: 1; min-width: 0; }
.enquiry-box { width: 265px; flex-shrink: 0; background: #fffdf8; border: 1px solid #e4d7c2; border-radius: 4px; padding: 4px 18px 18px; position: sticky; top: 12px; }
.enquiry-box .toc { padding-left: 18px; margin: 6px 0; }
.service { border-bottom: 1px solid #e4d7c2; padding-bottom: 1.4em; margin-bottom: .6em; overflow: hidden; }
.svc-img { float: right; width: 300px; margin: 10px 0 12px 22px; border-radius: 3px; }
.price { color: #6b5d4d; }
.price strong { color: #3d2b1f; }
.faq { background: #fffdf8; border: 1px solid #e4d7c2; border-radius: 4px; padding: 4px 24px 20px; margin: 2em 0; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin: 1.5em 0 2.5em; }
.gallery figure { margin: 0; background: #fffdf8; border: 1px solid #e4d7c2; border-radius: 4px; overflow: hidden; }
.gallery img { width: 100%; height: 220px; object-fit: cover; display: block; }
.gallery figcaption { padding: 10px 12px; font-size: .88rem; color: #6b5d4d; }

/* about */
.about-layout { display: flex; gap: 32px; align-items: flex-start; margin-bottom: 2.5em; }
.about-text { flex: 1; }
.about-imgs { width: 300px; flex-shrink: 0; }
.about-imgs figure { margin: 0 0 18px; }
.about-imgs figcaption { font-size: .82rem; color: #6b5d4d; padding-top: 4px; }
.about-imgs img { border-radius: 3px; display: block; }

/* contact */
.contact-layout { display: flex; gap: 40px; align-items: flex-start; margin-bottom: 2.5em; }
.contact-layout > div { flex: 1.2; }
.contact-details { flex: 1; background: #fffdf8; border: 1px solid #e4d7c2; border-radius: 4px; padding: 2px 22px 18px; }
.contact-form label { display: block; margin: 14px 0 4px; font-weight: bold; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 8px 10px; border: 1px solid #c9b999; border-radius: 3px;
  font: inherit; background: #fffdf8;
}
.contact-form .req { color: #a33; }
.contact-form button { margin-top: 16px; }
.form-msg { padding: 10px 14px; border-radius: 3px; margin: 12px 0; }
.form-msg.err { background: #f6e0dc; border: 1px solid #cf9a8d; }
.hours td { padding: 2px 14px 2px 0; }
.addr { line-height: 1.5; }

/* planner */
.planner-app { display: flex; gap: 26px; align-items: flex-start; margin: 1.5em 0; }
.planner-controls { width: 250px; flex-shrink: 0; }
.planner-controls fieldset { border: 1px solid #d8c8ad; border-radius: 4px; margin-bottom: 14px; background: #fffdf8; }
.planner-controls legend { padding: 0 6px; font-size: 1rem; }
.planner-controls label { display: block; margin: 6px 0; }
.planner-controls input[type=number] { width: 62px; padding: 4px; border: 1px solid #c9b999; border-radius: 3px; }
.planner-controls button { display: block; width: 100%; margin: 6px 0; padding: 7px; background: #efe5d2; border: 1px solid #c9b999; border-radius: 3px; cursor: pointer; font: inherit; }
.planner-controls button:hover { background: #e4d3b4; }
.palette button { text-align: left; }
.planner-canvas-wrap { flex: 1; min-width: 0; }
#plannerCanvas { background: #fffdf8; border: 1px solid #c9b999; border-radius: 3px; max-width: 100%; touch-action: none; }

/* footer */
.site-footer { background: #3d2b1f; color: #d9cbb5; margin-top: 3em; }
.site-footer h4 { color: #f0e6d6; margin: 0 0 .5em; }
.site-footer a { color: #e0b585; }
.cols3 { display: flex; gap: 40px; padding-top: 30px; padding-bottom: 22px; flex-wrap: wrap; }
.cols3 > div { flex: 1 1 240px; }
.footlinks { list-style: none; padding: 0; margin: 0; }
.footlinks li { margin: 3px 0; }
.site-footer .hours td { color: #d9cbb5; }
.botbar { background: #2c1f16; font-size: .8rem; padding: 10px 0; }
.botbar .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }

/* cookie notice */
.cookie-note { position: fixed; bottom: 0; left: 0; right: 0; background: #2c1f16; color: #e9ddcb; font-size: .9rem; box-shadow: 0 -2px 8px rgba(0,0,0,.3); z-index: 50; }
.cookie-note .wrap { display: flex; gap: 18px; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.cookie-note a { color: #e0b585; }
.cookie-note button { background: #b5824c; border: none; color: #fff; padding: 7px 16px; border-radius: 3px; cursor: pointer; white-space: nowrap; font: inherit; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .svc-layout, .about-layout, .contact-layout, .planner-app { flex-direction: column; }
  .enquiry-box, .about-imgs, .planner-controls { width: auto; position: static; }
  .svc-img { float: none; width: 100%; margin: 10px 0; }
  .hero-text h1 { font-size: 1.5rem; }
  .topstrip .wrap { flex-direction: column; }
}
