/*
Theme Name: Lumber Chop
Theme URI: https://lumberchop.com
Author: Lumber Chop
Description: Lightweight one-page theme for tree removal, emergency tarping, and board-up services. Edit phone, email, service area, and hours under Appearance > Customize > Lumber Chop Details.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: lumberchop
*/

:root {
	--tarp: #1d56a8;
	--tarp-deep: #143f7d;
	--plywood: #d8b47a;
	--bark: #2b2119;
	--saw: #f26a1b;
	--paper: #f2f3ef;
	--line: #d6d4cb;
	--display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
	--body: "Barlow", "Helvetica Neue", Arial, sans-serif;
	--wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--paper);
	color: var(--bark);
	font-family: var(--body);
	font-size: 1.125rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--tarp); }
a:hover { color: var(--tarp-deep); }

:focus-visible { outline: 3px solid var(--saw); outline-offset: 3px; }

h1, h2, h3 {
	font-family: var(--display);
	font-weight: 700;
	line-height: 1.05;
	margin: 0 0 0.5em;
	letter-spacing: 0.005em;
}
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.6rem; }

p { margin: 0 0 1em; max-width: 64ch; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 0.5rem; left: 0.5rem; z-index: 100;
	width: auto; height: auto; clip: auto;
	background: #fff; padding: 0.75rem 1rem;
}

/* Header */
.site-header { background: var(--bark); color: #fff; }
.site-header .wrap {
	display: flex; align-items: center; justify-content: space-between;
	gap: 1rem; min-height: 64px;
}
.brand {
	font-family: var(--display); font-weight: 800; font-size: 1.75rem;
	color: #fff; text-decoration: none; letter-spacing: 0.02em;
}
.brand:hover { color: var(--plywood); }
.brand img { max-height: 44px; width: auto; display: block; }
.site-nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.site-nav a { color: #fff; text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--plywood); }
.header-call {
	font-family: var(--display); font-weight: 700; font-size: 1.25rem;
	color: var(--bark); background: var(--plywood);
	padding: 0.35rem 0.9rem; border-radius: 3px; text-decoration: none;
	white-space: nowrap;
}
.header-call:hover { background: #fff; color: var(--bark); }

/* Buttons */
.btn {
	display: inline-block; font-family: var(--display); font-weight: 700;
	font-size: 1.35rem; text-decoration: none; padding: 0.7rem 1.4rem;
	border-radius: 3px; border: 2px solid transparent; cursor: pointer;
}
.btn-call { background: var(--saw); color: #fff; }
.btn-call:hover { background: #d9570c; color: #fff; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: inherit; }

/* Hero: the tarp. Grommets sit in the four corners. */
.hero {
	position: relative; background: var(--tarp); color: #fff;
	padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
	background-image:
		repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 9px),
		repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 9px);
}
.grommet {
	position: absolute; width: 22px; height: 22px; border-radius: 50%;
	background: var(--tarp-deep); box-shadow: 0 0 0 5px #c9ccd1, 0 0 0 6px rgba(0,0,0,0.25);
}
.grommet.tl { top: 22px; left: 22px; }
.grommet.tr { top: 22px; right: 22px; }
.grommet.bl { bottom: 22px; left: 22px; }
.grommet.br { bottom: 22px; right: 22px; }

.hero-status {
	display: inline-flex; align-items: center; gap: 0.5rem;
	font-weight: 600; margin-bottom: 1.25rem; color: #fff;
}
.hero-status::before {
	content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--saw);
}
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.75rem); max-width: 18ch; margin-bottom: 0.4em; }
.hero-phone {
	display: inline-block; font-family: var(--display); font-weight: 800;
	font-size: clamp(3.25rem, 11vw, 7.5rem); line-height: 1; color: #fff;
	text-decoration: none; letter-spacing: -0.01em; margin: 0.15em 0 0.3em;
	border-bottom: 6px solid var(--plywood); padding-bottom: 0.05em;
}
.hero-phone:hover { color: var(--plywood); }
.hero-lede { font-size: 1.25rem; max-width: 46ch; color: #e6edf7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.section-intro { margin-bottom: 2.5rem; }
.section-intro p { font-size: 1.2rem; }

/* Services: plywood-edged columns, no cards */
.services-grid {
	display: grid; gap: 2.5rem;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.service { border-top: 8px solid var(--plywood); padding-top: 1.25rem; }
.service svg { width: 44px; height: 44px; color: var(--tarp); margin-bottom: 0.75rem; }
.service ul { margin: 0; padding-left: 1.1rem; }
.service li { margin-bottom: 0.3rem; }

/* Recent work */
.work { padding-top: 0; }
.work figure { margin: 0; }
.work img { display: block; width: 100%; object-fit: cover; border-radius: 3px; background: var(--line); }
.work figcaption { font-size: 1rem; margin-top: 0.5rem; color: #5b4f45; }
.work-pair { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; }
@media (min-width: 700px) { .work-pair { grid-template-columns: 1fr 1fr; } }
.work-pair img { aspect-ratio: 4 / 3; }
.work-strip { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .work-strip { grid-template-columns: repeat(4, 1fr); } }
.work-strip img { aspect-ratio: 1 / 1; }

/* Storm response: a real sequence, so it is numbered */
.response { background: var(--bark); color: #fff; }
.response h2 { color: #fff; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
	content: counter(step); display: block; font-family: var(--display);
	font-weight: 800; font-size: 3.5rem; line-height: 1; color: var(--plywood);
	margin-bottom: 0.5rem;
}
.steps h3 { color: #fff; }
.steps p { color: #ddd5cc; }

/* Service area */
.area { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .area { grid-template-columns: 1fr 1fr; align-items: start; } }
.area-list { font-size: 1.2rem; font-weight: 500; }

/* Quote form */
.quote { background: #fff; border-top: 1px solid var(--line); }
.quote-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .quote-grid { grid-template-columns: 0.9fr 1.1fr; } }
.quote-form { display: grid; gap: 1rem; }
.field-row { display: grid; gap: 1rem; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.quote-form label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.quote-form input, .quote-form select, .quote-form textarea {
	width: 100%; font: inherit; font-size: 1rem; padding: 0.7rem 0.8rem;
	border: 2px solid var(--line); border-radius: 3px; background: var(--paper); color: var(--bark);
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
	border-color: var(--tarp); outline: none; background: #fff;
}
.quote-form textarea { min-height: 130px; resize: vertical; }
.quote-form .btn { justify-self: start; background: var(--tarp); color: #fff; }
.quote-form .btn:hover { background: var(--tarp-deep); }
.hp-field { position: absolute; left: -9999px; }
.notice { padding: 1rem 1.2rem; border-radius: 3px; font-weight: 600; margin-bottom: 1rem; }
.notice.ok { background: #e3f1e5; color: #1d5a2a; border-left: 6px solid #2f8a43; }
.notice.err { background: #fbe7e1; color: #8a2a0c; border-left: 6px solid var(--saw); }
.contact-lines { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.contact-lines li { margin-bottom: 0.5rem; }
.contact-lines strong { display: inline-block; min-width: 4.5rem; }

/* Generic pages */
.page-content { padding: clamp(3rem, 7vw, 5rem) 0; }
.page-content .entry { max-width: 72ch; }
.page-content h1 { font-size: clamp(2.4rem, 5vw, 3.25rem); }

/* Footer */
.site-footer { background: var(--bark); color: #cfc6bc; padding: 2.5rem 0 6rem; font-size: 1rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.site-footer a { color: #fff; }
@media (min-width: 760px) { .site-footer { padding-bottom: 2.5rem; } }

/* Mobile call bar */
.call-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
	display: flex; background: var(--saw);
	padding-bottom: env(safe-area-inset-bottom, 0px);
}
.call-bar a {
	flex: 1; text-align: center; color: #fff; text-decoration: none;
	font-family: var(--display); font-weight: 700; font-size: 1.35rem; padding: 0.85rem 0.5rem;
}
.call-bar a + a { background: var(--tarp); }
@media (min-width: 760px) { .call-bar { display: none; } }

@media (max-width: 759px) {
	.site-nav { display: none; }
	.grommet { width: 14px; height: 14px; box-shadow: 0 0 0 4px #c9ccd1; }
	.grommet.tl, .grommet.tr { top: 12px; }
	.grommet.bl, .grommet.br { bottom: 12px; }
	.grommet.tl, .grommet.bl { left: 12px; }
	.grommet.tr, .grommet.br { right: 12px; }
}
