/* Precision Woodworks Idaho — "Atelier" theme
   Design language inspired by high-end bespoke cabinetry houses:
   near-black canvas, brass/gold accents, ivory breaks, serif caps. */
:root {
  --black: #12100e;
  --black-soft: #1b1916;
  --ink: #23211e;
  --gold: #b99a5b;
  --gold-light: #d3b878;
  --gold-deep: #8f6f3a;
  --gold-ink: #7a5f30;
  --ivory: #f7f4ef;
  --ivory-dim: #efe9df;
  --white: #fdfcf9;
  --gray-warm: #8d867a;
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', 'Avenir Next', sans-serif;
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  font-size: 17px;
  letter-spacing: .01em;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-deep); text-decoration: none; }
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.18;
  text-transform: uppercase;
  letter-spacing: .06em;
}
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 1rem; color: var(--gold-deep); }
h3 { font-size: 1.35rem; letter-spacing: .08em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.center { text-align: center; margin-top: 3rem; }

/* Buttons — squared, uppercase, letterspaced */
.btn {
  display: inline-block;
  padding: .9rem 2.2rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
}
.btn-primary { background: var(--gold); color: var(--black); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-secondary { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-secondary:hover { background: var(--ink); color: var(--ivory); }
.section-alt .btn-secondary { border-color: rgba(185,154,91,.8); color: var(--gold-light); }
.section-alt .btn-secondary:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.btn-ghost { border-color: rgba(247,244,239,.7); color: var(--ivory); background: transparent; }
.btn-ghost:hover { border-color: var(--ivory); background: rgba(247,244,239,.12); }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--black);
  border-bottom: 1px solid rgba(185,154,91,.25);
}
.header-inner {
  display: flex; align-items: center; gap: 1.75rem;
  height: 76px;
}
.logo { display: flex; align-items: center; gap: .8rem; margin-right: auto; }
.medallion-sm { width: 50px; height: 50px; display: block; flex-shrink: 0; }
.hero-medallion { width: 150px; height: 150px; margin: 0 auto 1.75rem; display: block; }
.footer-medallion { width: 60px; height: 60px; margin-bottom: 1rem; display: block; }
.logo-text {
  font-family: var(--font-head); font-weight: 600;
  color: var(--gold-light); font-size: 1.12rem; line-height: 1.25;
  text-transform: uppercase; letter-spacing: .14em;
}
.logo-text em {
  font-style: normal; color: var(--gold); display: block;
  font-family: var(--font-body); font-weight: 400;
  font-size: .62rem; letter-spacing: .42em;
}
.site-nav { display: flex; gap: 1.75rem; align-items: center; }
.site-nav a {
  color: var(--ivory); font-weight: 400; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .18em;
}
.site-nav a:hover { color: var(--gold-light); }
.site-nav .nav-cta {
  border: 1px solid var(--gold); color: var(--gold);
  padding: .55rem 1.3rem; background: transparent;
}
.site-nav .nav-cta:hover { background: var(--gold); color: var(--black); }
.header-phone {
  color: var(--gold); font-weight: 400; white-space: nowrap;
  font-size: .85rem; letter-spacing: .08em;
}
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 26px; height: 1px; background: var(--gold); margin: 7px 0; transition: .2s; }

/* Hero */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; background: var(--black); }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(18,16,14,.55), rgba(18,16,14,.55));
}
.hero-content {
  position: relative; padding-top: 5rem; padding-bottom: 5rem;
  max-width: var(--maxw); width: 100%;
  text-align: center;
}
.hero-kicker {
  color: var(--gold-light); text-transform: uppercase;
  letter-spacing: .45em; font-weight: 400; font-size: .78rem; margin-bottom: 1.5rem;
}
.hero h1 {
  color: var(--gold-light);
  font-size: clamp(2.4rem, 5.8vw, 4.6rem);
  font-weight: 600;
  letter-spacing: .08em;
  margin-bottom: 1.5rem;
}
.hero-sub {
  color: rgba(247,244,239,.85); max-width: 44rem; font-size: 1.05rem;
  margin: 0 auto 2.5rem; font-weight: 300;
}
.hero-actions { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center; }

/* Trust strip */
.trust-strip { background: var(--black); border-top: 1px solid rgba(185,154,91,.25); padding: 2.4rem 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.trust-item { text-align: center; }
.trust-item strong {
  display: block; font-family: var(--font-head);
  color: var(--gold); font-size: 1.5rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
}
.trust-item span {
  color: rgba(247,244,239,.65); font-size: .78rem;
  text-transform: uppercase; letter-spacing: .16em;
}

/* Sections */
.section { padding: 6.5rem 0; }
.section-alt { background: var(--black); }
.section-alt h2 { color: var(--gold-light); }
.section-alt .section-lead { color: rgba(247,244,239,.7); }
.section-kicker {
  color: var(--gold-ink); text-transform: uppercase; letter-spacing: .4em;
  font-weight: 400; font-size: .74rem; margin-bottom: .9rem;
}
.section-alt .section-kicker, .section-dark .section-kicker { color: var(--gold); }
.section-lead { max-width: 44rem; margin-bottom: 2.5rem; color: #5b554b; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin-top: 3rem; }
.service-card {
  background: var(--white);
  border: 1px solid var(--ivory-dim);
  overflow: hidden;
  transition: box-shadow .3s ease;
}
.service-card:hover { box-shadow: 0 18px 44px rgba(18,16,14,.14); }
.service-card img { height: 300px; width: 100%; object-fit: cover; transition: transform .6s ease; }
.service-card:hover img { transform: scale(1.03); }
.service-body { padding: 1.8rem 2rem 2.2rem; text-align: center; }
.service-body h3 { margin-bottom: .7rem; color: var(--gold-deep); }
.service-body h3::after {
  content: ""; display: block; width: 44px; height: 1px;
  background: var(--gold); margin: .8rem auto 0;
}
.service-body p { font-size: .95rem; color: #5b554b; }

/* Work grid */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.5rem; }
.work-item { position: relative; display: block; overflow: hidden; aspect-ratio: 4/3; }
.work-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; filter: saturate(.96); }
.work-item:hover img { transform: scale(1.05); }
.work-item span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.2rem 1.2rem 1rem;
  background: linear-gradient(transparent, rgba(18,16,14,.85));
  color: var(--gold-light);
  font-family: var(--font-head); font-weight: 600;
  text-transform: uppercase; letter-spacing: .14em; font-size: .95rem;
}

/* Feature quote (press-style strip) */
.feature-quote { background: var(--ivory); padding: 5.5rem 0; text-align: center; }
.feature-quote blockquote {
  font-family: var(--font-head); font-style: italic; font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  color: var(--gold-deep); max-width: 52rem; margin: 0 auto 1.5rem;
  line-height: 1.5;
}
.feature-quote cite {
  display: block; font-family: var(--font-body); font-style: normal;
  text-transform: uppercase; letter-spacing: .3em; font-size: .74rem;
  color: var(--gold-ink);
}

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; margin-top: 3rem; }
.process-step { text-align: center; }
.step-num {
  display: block; width: auto; height: auto; background: none;
  font-family: var(--font-head); font-weight: 500; font-size: 2.6rem;
  color: var(--gold-deep); line-height: 1; margin-bottom: .8rem;
}
.process-step h3 { font-size: 1.05rem; letter-spacing: .22em; }
.process-step h3::after {
  content: ""; display: block; width: 30px; height: 1px;
  background: var(--gold); margin: .7rem auto 0;
}
.process-step p { font-size: .92rem; color: #5b554b; margin-top: .8rem; }

/* About */
.section-dark { background: var(--black); }
.section-dark h2 { color: var(--gold-light); }
.section-dark p { color: rgba(247,244,239,.78); }
.about-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 4rem; align-items: center; }
.about-image img { filter: saturate(.92); }
.about-image { position: relative; }
.about-image::after {
  content: ""; position: absolute; inset: 14px;
  border: 1px solid rgba(185,154,91,.5); pointer-events: none;
}
.about-body p { margin-bottom: 1.1rem; font-size: .98rem; }
.about-body a { color: var(--gold-light); border-bottom: 1px solid rgba(185,154,91,.5); }
.about-area strong { color: var(--gold); font-weight: 400; text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; }
.about-body .btn { margin-top: 1rem; }

/* Quote */
.quote-section { background: var(--ivory); }
.quote-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 4rem; align-items: start; }
.quote-intro p { color: #5b554b; margin-bottom: 1.5rem; }
.quote-phone {
  display: inline-block; font-family: var(--font-head);
  font-size: 1.9rem; font-weight: 600; color: var(--gold-deep);
  letter-spacing: .06em;
  border-bottom: 1px solid var(--gold);
  padding-bottom: .2rem;
}
.quote-form {
  background: var(--white); padding: 2.6rem;
  border: 1px solid var(--ivory-dim);
}
.quote-form label {
  display: block; font-weight: 400; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .2em;
  margin-bottom: 1.2rem; color: var(--ink);
}
.quote-form input, .quote-form select, .quote-form textarea {
  width: 100%; margin-top: .4rem;
  padding: .75rem .85rem;
  border: 1px solid #d9d2c4; border-radius: 0;
  font-family: var(--font-body); font-weight: 300; font-size: 1rem;
  background: var(--ivory); color: var(--ink);
}
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus {
  outline: 1px solid var(--gold); border-color: var(--gold);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.hidden-field { display: none; }

/* Footer */
.site-footer {
  background: var(--black); color: rgba(247,244,239,.65);
  padding: 4rem 0 2rem; font-size: .9rem;
  border-top: 1px solid rgba(185,154,91,.25);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.footer-logo {
  font-family: var(--font-head); font-weight: 600; color: var(--ivory);
  font-size: 1.15rem; margin-bottom: .6rem;
  text-transform: uppercase; letter-spacing: .16em;
}
.footer-logo em { font-style: normal; color: var(--gold); }
.footer-head {
  font-weight: 400; color: var(--gold); margin-bottom: .6rem;
  text-transform: uppercase; letter-spacing: .3em; font-size: .72rem;
}
.site-footer a { color: rgba(247,244,239,.85); }
.site-footer a:hover { color: var(--gold-light); }
.footer-legal {
  border-top: 1px solid rgba(185,154,91,.18); margin-top: 2.5rem;
  padding-top: 1.5rem; font-size: .78rem; color: var(--gray-warm);
  letter-spacing: .06em;
}

/* Gallery page */
.page-hero {
  background: var(--black); padding: 5.5rem 0 4rem; text-align: center;
}
.page-hero h1 {
  color: var(--gold-light); font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: .12em;
}
.page-hero p {
  color: var(--gold-light); margin-top: .8rem;
  text-transform: uppercase; letter-spacing: .3em; font-size: .76rem;
}
.filter-bar { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin: 3rem 0 2.5rem; }
.filter-btn {
  padding: .55rem 1.4rem; border-radius: 0;
  border: 1px solid var(--gold-ink); background: none;
  color: var(--gold-ink); font-family: var(--font-body); font-weight: 400;
  font-size: .74rem; text-transform: uppercase; letter-spacing: .2em;
  cursor: pointer; transition: .25s;
}
.filter-btn:hover, .filter-btn.active { background: var(--gold-ink); color: var(--ivory); }
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
  padding-bottom: 5rem;
}
.gallery-item { overflow: hidden; aspect-ratio: 4/3; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; filter: saturate(.96); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item.hide { display: none; }

/* Service area + FAQ */
.area-grid {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: .9rem 2rem; margin: 2rem 0 3.5rem; max-width: 52rem;
}
.area-grid li {
  color: var(--ivory); font-size: .92rem;
  text-transform: uppercase; letter-spacing: .14em;
  padding-left: 1.2rem; position: relative;
}
.area-grid li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 1px; background: var(--gold);
}
.faq { max-width: 52rem; }
.faq h3 { color: var(--gold-light); margin-bottom: 1.2rem; }
.faq details { border-top: 1px solid rgba(185,154,91,.3); }
.faq details:last-child { border-bottom: 1px solid rgba(185,154,91,.3); }
.faq summary {
  cursor: pointer; padding: 1.1rem 0;
  color: var(--ivory); font-weight: 400; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .12em;
  list-style: none; position: relative; padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .2rem; top: 50%;
  transform: translateY(-50%);
  color: var(--gold); font-family: var(--font-head); font-size: 1.4rem;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: rgba(247,244,239,.75); padding: 0 0 1.3rem; font-size: .95rem; max-width: 46rem; }
.faq details a { color: var(--gold-light); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .services-grid, .work-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .quote-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .header-phone { display: none; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--black);
    border-bottom: 1px solid rgba(185,154,91,.25);
    flex-direction: column; padding: 1.75rem; gap: 1.4rem;
    text-align: center;
  }
  .site-nav.open { display: flex; }
}
@media (max-width: 560px) {
  .services-grid, .work-grid, .gallery-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .hero { min-height: 80vh; }
}
