/* Woodward Finish Carpentry */
:root {
  --ground: #F4F2EC;
  --ground-2: #E9E6DD;
  --ink: #1B1D1C;
  --ink-2: #3D4039;
  --muted: #55594F;
  --line: #DCD8CD;
  --line-2: #C8C3B6;
  --line-3: #B9B3A4;
  --accent: #5C4523;
  --accent-hover: #3E2E17;
  --dark: #1B1D1C;
  --dark-2: #121413;
  --dark-line: #3A3D38;
  --on-dark: #F4F2EC;
  --on-dark-2: #C9C7BF;
  --on-dark-3: #A9A79F;
  --tan: #D9BC93;
  --display: 'Archivo', system-ui, sans-serif;
  --body: 'Public Sans', system-ui, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.dark :focus-visible { outline-color: var(--tan); }
h1, h2, h3 { font-family: var(--display); margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 12px 16px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; color: #fff; }

.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.dark .eyebrow { color: var(--tan); }
.h-xl { font-weight: 800; font-size: clamp(2.4rem, 5.5vw, 3.6rem); line-height: 1.02; letter-spacing: -0.01em; }
.h-lg { font-weight: 800; font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.05; }
.h-md { font-weight: 700; font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.15; }
.lead { font-size: 1.15rem; line-height: 1.6; color: var(--ink-2); max-width: 36rem; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 14px 24px; font-weight: 600; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--ground); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--ground); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: block; padding: 4px 0; }
.logo img { height: 52px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; font-weight: 500; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; padding: 12px 0; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav .btn { padding: 10px 16px; min-height: 44px; }
.nav .btn-primary { color: #fff; }
.nav .btn:hover { text-decoration: none; color: #fff; }
@media (max-width: 640px) {
  .site-header { position: static; }
  .site-header .wrap { justify-content: center; }
  .logo img { height: 46px; }
  .nav { justify-content: center; gap: 0 16px; font-size: 14px; }
  .nav .btn { flex-basis: 100%; justify-content: center; margin-top: 4px; }
}

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 72px; }
.hero-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-media { flex: 1 1 380px; min-width: 0; position: relative; }
.hero-media img { width: 100%; height: clamp(360px, 50vw, 600px); object-fit: cover; }
.tag { position: absolute; left: 0; bottom: 0; background: var(--dark); color: var(--on-dark); padding: 12px 16px; font-size: 14px; }

/* Dark bands */
.dark { background: var(--dark); color: var(--on-dark); }
.dark a { color: var(--on-dark); }
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; padding-top: 64px; padding-bottom: 64px; }
.path { border: 1px solid var(--dark-line); padding: clamp(24px, 4vw, 36px); display: flex; flex-direction: column; gap: 16px; }
.path p { line-height: 1.6; color: var(--on-dark-2); }
.path .more { font-weight: 600; margin-top: auto; padding-top: 8px; }

/* Sections */
.section { padding-top: 80px; padding-bottom: 80px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-head .link { font-weight: 600; padding: 12px 0; }

/* Photo grids */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.card { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--ground-2); }
.card figcaption { display: flex; flex-direction: column; gap: 2px; }
.card strong { font-weight: 600; }
.card span { font-size: 14px; color: var(--muted); }
.dark .card span { color: var(--on-dark-2); }

/* Services */
.band { background: var(--ground-2); }
.services { display: flex; flex-wrap: wrap; gap: 48px; }
.services-intro { flex: 1 1 300px; min-width: 0; }
.services-intro p { line-height: 1.6; color: var(--ink-2); }
.service-list { flex: 2 1 480px; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 0 32px; }
.service-list li { border-top: 1px solid var(--line-2); padding: 18px 0; display: flex; flex-direction: column; gap: 4px; }
.service-list strong { font-family: var(--display); font-size: 1.15rem; }
.service-list span { color: var(--muted); font-size: 15px; }

/* About */
.about { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.about-photo { flex: 0 1 340px; min-width: 0; width: 340px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
.about-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.about-copy > p { line-height: 1.7; color: var(--ink-2); font-size: 1.05rem; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 0; padding: 0; list-style: none; }
.badges li { background: #fff; border: 1px solid var(--line); padding: 10px 14px; font-size: 14px; font-weight: 500; }
.area { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.area h3 { font-weight: 700; font-size: 1.3rem; }
.area p { line-height: 1.6; color: var(--ink-2); }
.area .small { font-size: 14px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { background: var(--accent); color: #fff; padding: 8px 14px; font-size: 14px; font-weight: 600; }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 56px; }
.contact-copy { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-copy p { line-height: 1.6; color: var(--on-dark-2); }
.contact-links { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; font-size: 1.1rem; }
.contact-links a { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; padding: 6px 0; word-break: break-word; }
.contact-links a:hover { text-decoration: underline; }
.quote-form { flex: 1 1 420px; min-width: 0; background: var(--ground); color: var(--ink); padding: clamp(20px, 4vw, 32px); display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 16px; }
.quote-form label > span:first-child { display: block; }
.quote-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.quote-form input, .quote-form select, .quote-form textarea { font: inherit; font-weight: 400; font-size: 16px; padding: 12px; border: 1px solid var(--line-3); background: #fff; color: var(--ink); min-height: 44px; width: 100%; border-radius: 0; }
.quote-form textarea { resize: vertical; }
.quote-form .btn { justify-content: center; width: 100%; }
.req { color: #8A2B1E; }
.hidden { position: absolute; left: -9999px; }
.form-note { font-size: 13px; color: var(--muted); }

/* Gallery page */
.page-head { padding-top: 56px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.filters button { font: inherit; font-size: 15px; font-weight: 600; min-height: 44px; padding: 10px 18px; cursor: pointer; border: 2px solid var(--line-3); background: transparent; color: var(--ink); }
.filters button:hover { border-color: var(--accent); }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 24px 20px; padding-bottom: 72px; }
.gallery a { display: block; }
.gallery .card[hidden] { display: none; }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.videos video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #000; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 72px; padding-bottom: 72px; }
.cta-band h2 { font-weight: 800; font-size: 2rem; line-height: 1.1; flex: 1 1 320px; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(10, 10, 10, 0.88); }
.lightbox img { max-width: 92vw; max-height: 84vh; width: auto; height: auto; margin: 0 auto; }
.lightbox p { color: #fff; text-align: center; padding: 12px 8px 0; }
.lightbox button { position: fixed; top: 12px; right: 12px; min-width: 48px; min-height: 48px; font-size: 28px; line-height: 1; background: rgba(0,0,0,0.6); color: #fff; border: 1px solid rgba(255,255,255,0.4); cursor: pointer; }

/* Simple pages */
.simple { min-height: 50vh; display: flex; flex-direction: column; gap: 20px; justify-content: center; padding-top: 80px; padding-bottom: 80px; }

/* Footer */
.site-footer { background: var(--dark-2); color: var(--on-dark-3); font-size: 14px; }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--on-dark-3); }
