/* Joel Remodeling Services — styles */
:root {
  --bg: #0E0D0B;
  --bg-2: #13110E;
  --line: #2A2620;
  --line-2: #3A352B;
  --text: #F4EFE4;
  --text-2: #C9C1B0;
  --muted: #A9A190;
  --faint: #8F8775;
  --gold: #E2C47E;
  --gold-hover: #F3DDA4;
  --ink: #14120E;
  --cream: #F4EFE4;
  --cream-2: #E3DACA;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hover); }
h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.005em; }
h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.08; }

.container { max-width: 1240px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.section { padding-top: 112px; padding-bottom: 104px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.eyebrow-dark { color: #7A5F22; }
.lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text-2); }
.muted { margin: 0; color: var(--muted); max-width: 400px; line-height: 1.6; }
.small { font-size: 13px; color: var(--faint); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border-radius: 6px; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hover); color: var(--ink); }
.btn-outline { border-color: #5A5244; color: var(--text); font-weight: 500; }
.btn-outline:hover { border-color: var(--gold); color: var(--text); }
.btn-outline-gold { border-color: var(--gold); color: var(--gold); }
.btn-outline-gold:hover { background: var(--gold); color: var(--ink); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; background: rgba(14, 13, 11, .94); backdrop-filter: blur(8px); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; }
.brand span { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: .03em; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav-links > a:not(.btn) { color: #D8D1C2; }
.nav-links > a:not(.btn):hover { color: var(--gold); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); width: 44px; height: 44px; border-radius: 6px; cursor: pointer; align-items: center; justify-content: center; }

.lang-switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; }
.lang-switch button { font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .06em; background: none; border: 0; color: var(--muted); min-width: 44px; min-height: 36px; border-radius: 999px; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; padding-top: 96px; padding-bottom: 104px; }
.hero-copy { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(46px, 6vw, 84px); line-height: 1.02; }
.hero .lead { font-size: 19px; max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero-art { flex: 1 1 320px; display: flex; justify-content: center; }
.hero-art img { width: 100%; max-width: 420px; aspect-ratio: 1; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }

/* Strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.strip-grid { list-style: none; margin: 0 auto; padding-top: 28px; padding-bottom: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px; font-size: 15px; color: #D8D1C2; }
.strip-grid li { display: flex; flex-direction: column; }
.strip-grid strong { color: var(--gold); font-weight: 600; }

/* Section heads */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.section-head > div { max-width: 660px; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.services-grid article { background: var(--bg); padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; }
.services-grid .num { font-family: var(--serif); font-size: 22px; color: var(--gold); }
.services-grid h3 { font-size: 19px; font-weight: 600; line-height: 1.3; }
.services-grid p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* Gallery */
.gallery { background: var(--cream); color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { font: inherit; font-size: 14px; font-weight: 500; padding: 0 18px; min-height: 44px; border-radius: 999px; cursor: pointer; border: 1px solid #A89A7C; background: transparent; color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.gallery-grid figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.gallery-grid img, .gallery-grid .placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.gallery-grid .placeholder { background: var(--cream-2); border: 1px dashed #A89A7C; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #6B5F48; font-size: 14px; font-weight: 500; }
.gallery-grid figcaption { font-size: 14px; color: #4A4234; }
.gallery-grid figcaption strong { color: var(--ink); }
.gallery-grid button.zoom { all: unset; cursor: zoom-in; display: block; border-radius: 4px; }
.gallery-grid button.zoom:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); }
.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.lightbox img { max-height: 86vh; width: auto; margin: 0 auto; border-radius: 4px; }
.lightbox form { text-align: right; margin-bottom: 8px; }
.lightbox button { font: inherit; background: var(--gold); color: var(--ink); border: 0; border-radius: 6px; min-height: 44px; padding: 0 18px; cursor: pointer; font-weight: 600; }

/* Band */
.band { border-bottom: 1px solid var(--line); }
.band-inner { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.band-inner > div { flex: 999 1 520px; min-width: 0; }
.band h2 { font-size: clamp(28px, 3.2vw, 42px); margin-bottom: 12px; line-height: 1.1; }
.band .lead { font-size: 17px; max-width: 640px; }

/* Area */
.area { display: flex; flex-wrap: wrap; gap: 56px; }
.area > div { flex: 1 1 360px; }
.area h2 { margin-bottom: 16px; }
.towns { flex: 999 1 500px; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; align-content: start; }
.towns li { border: 1px solid var(--line); border-radius: 6px; padding: 18px 20px; font-size: 16px; display: flex; align-items: center; gap: 10px; }
.towns li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }

/* Contact */
.contact { background: var(--bg-2); border-top: 1px solid var(--line); }
.contact-inner { display: flex; flex-wrap: wrap; gap: 64px; }
.contact-info { flex: 1 1 320px; display: flex; flex-direction: column; gap: 8px; }
.contact-info h2 { margin-bottom: 16px; }
.contact-info dl { margin: 28px 0 0; display: flex; flex-direction: column; gap: 18px; }
.contact-info dt { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.contact-info dd { margin: 0; line-height: 1.6; word-break: break-word; }
.contact-info .big { font-size: 20px; font-weight: 600; }
.contact-form { flex: 999 1 540px; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 8px; letter-spacing: .02em; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--text); background: #1A1814; border: 1px solid var(--line-2); border-radius: 6px; padding: 14px 16px; width: 100%; }
.field input::placeholder, .field textarea::placeholder { color: #7D7564; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; font-size: 14px; color: var(--faint); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 4px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--gold); }

/* Thank-you page */
.thanks { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; padding-top: 80px; padding-bottom: 80px; }
.thanks h1 { font-size: clamp(40px, 5vw, 64px); }

/* Mobile */
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav { flex-wrap: wrap; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 18px; padding: 12px 0 8px; }
  .nav-links.open { display: flex; }
  .brand span { font-size: 19px; }
}
@media (max-width: 560px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .section { padding-top: 80px; padding-bottom: 72px; }
  .hero { padding-top: 64px; padding-bottom: 72px; gap: 40px; }
  .contact-form { padding: 24px; }
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
