/* ============================================================
   NEWOOD MILLWORK — DESIGN SYSTEM
   Palette: deep navy + brushed copper, on a clean off-white field.
   Built for a B2B/homeowner audience: fast, scannable, sales-focused.
   ============================================================ */

:root {
  /* Navy — brand anchor, sampled directly from the logo's background so the
     header/footer bars blend seamlessly with the logo artwork */
  --navy-950: #000A1F;
  --navy-900: #05112C;
  --navy-800: #11203E;
  --navy-line: rgba(255, 255, 255, 0.10);

  /* Copper / bronze — the metallic accent, used sparingly */
  --copper: #B9895A;
  --copper-deep: #8C6239;
  --copper-light: #E4C9A6;

  /* Neutral field */
  --paper: #FFFFFF;
  --paper-soft: #F5F5F3;
  --ink: #14181F;
  --ink-soft: #545B68;
  --ink-faint: #6E7480;
  --line: #E3E3E0;

  --max: 1180px;
  --radius: 2px;

  --display: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0 0 0.4em; line-height: 1.15; letter-spacing: -0.01em; color: var(--navy-950); }
h2 { font-size: clamp(1.5rem, 1.1vw + 1.2rem, 2rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; color: var(--ink-soft); font-size: 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

.eyebrow {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--copper-deep);
  margin: 0 0 14px;
}
.eyebrow-light { color: var(--copper-light); }

/* Signature motif: architectural corner brackets, echoing shop-drawing marks */
.bracket { position: relative; }
.bracket::before, .bracket::after {
  content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none; z-index: 2;
}
.bracket::before { top: -1px; left: -1px; border-top: 2px solid var(--copper); border-left: 2px solid var(--copper); }
.bracket::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--copper); border-right: 2px solid var(--copper); }

/* ---------- Buttons ---------- */
.btn-primary, .btn-ghost, .btn-call {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 0.95rem;
  padding: 14px 26px; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn-primary { background: var(--copper); color: var(--navy-950); }
.btn-primary:hover { background: var(--copper-light); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--navy-line); color: #fff; }
.btn-ghost:hover { border-color: var(--copper); color: var(--copper-light); }
.btn-call {
  padding: 10px 18px; font-size: 0.9rem; background: transparent;
  border: 1px solid var(--copper); color: var(--copper); flex: 0 0 auto;
}
.btn-call:hover { background: var(--copper); color: var(--navy-950); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy-950); border-bottom: 1px solid var(--navy-line);
}
.header-inner { display: flex; align-items: center; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand-logo { height: 50px; width: auto; object-fit: contain; }

.main-nav { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 34px; }
.main-nav a {
  font-size: 0.92rem; font-weight: 500; color: rgba(255,255,255,0.82);
  transition: color 0.2s var(--ease); position: relative; white-space: nowrap;
}
.main-nav a:hover { color: var(--copper-light); }

.nav-toggle {
  display: none; width: 40px; height: 40px; border: none; background: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: #fff; transition: transform 0.2s var(--ease), opacity 0.2s var(--ease); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; background: var(--navy-950) url('assets/hero/hero-kitchen.webp') center 30%/cover no-repeat; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,14,23,0.55) 0%, rgba(10,14,23,0.35) 40%, rgba(10,14,23,0.92) 100%);
}
.hero-inner { position: relative; z-index: 1; padding-bottom: 64px; padding-top: 120px; max-width: 720px; }
.hero-breadcrumb {
  position: relative; z-index: 1; display: inline-block; margin: 24px 0 0 24px;
  font-family: var(--mono); font-size: 0.78rem; color: rgba(255,255,255,0.7);
}
.hero-breadcrumb:hover { color: var(--copper-light); }
.hero h1 {
  color: #fff; font-size: clamp(2.1rem, 4vw + 1rem, 3.6rem); margin-bottom: 20px;
  border-left: 3px solid var(--copper); padding-left: 20px;
}
.hero-sub { color: rgba(255,255,255,0.82); font-size: 1.08rem; max-width: 560px; margin-bottom: 32px; }
.hero-slogan {
  font-family: var(--mono); font-weight: 500; font-size: 0.95rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--copper-light); max-width: 560px; margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
/* ---------- Trust strip ---------- */
.trust-strip { background: var(--navy-900); padding: 16px 0; border-bottom: 1px solid var(--navy-line); }
.trust-strip-inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 44px; }
.trust-badge {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}
.trust-badge-link {
  display: inline-flex; align-items: center; gap: 6px; border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.trust-badge-link:hover { color: var(--copper-light); border-color: var(--copper); }

/* ---------- Pillars (3 core services) ---------- */
.pillars { padding: 88px 0; background: var(--paper); }
.pillars-head { max-width: 640px; margin-bottom: 48px; }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar-card {
  display: block; position: relative; border: 1px solid var(--line);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.pillar-card:hover { border-color: var(--copper); transform: translateY(-4px); }
.pillar-photo { aspect-ratio: 4 / 5; overflow: hidden; }
.pillar-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.pillar-card:hover .pillar-photo img { transform: scale(1.04); }
.pillar-body { padding: 22px 22px 26px; }
.pillar-num { font-family: var(--mono); font-size: 0.72rem; color: var(--copper-deep); letter-spacing: 0.1em; }
.pillar-body h3 { font-size: 1.25rem; margin: 8px 0 8px; color: var(--navy-950); }
.pillar-body p { font-size: 0.92rem; margin-bottom: 14px; }
.pillar-link { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--copper-deep); display: inline-flex; align-items: center; gap: 6px; }
.pillar-card:hover .pillar-link { color: var(--copper); }

/* ---------- About ---------- */
/* ---------- Work / gallery ---------- */
.work-item { position: relative; aspect-ratio: 4 / 3; overflow: hidden; cursor: pointer; }
.work-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s var(--ease); }
.work-item:hover img { transform: scale(1.05); }

/* ---------- Simple photo grid (service pages) ---------- */
.simple-gallery { padding: 80px 0; }
.simple-gallery-head { margin-bottom: 28px; }
.simple-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.simple-grid .work-item { aspect-ratio: 1 / 1; }
/* ---------- FAQ ---------- */
/* ---------- CTA band ---------- */
.cta-band { background: var(--navy-950); padding: 64px 0; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 22px; }

/* ---------- Testimonials ---------- */
.testimonials { padding: 88px 0; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.testimonial-card { border: 1px solid var(--line); padding: 28px 24px; }
.testimonial-stars { font-size: 0.85rem; color: var(--copper); letter-spacing: 2px; margin-bottom: 12px; }
.testimonial-quote { font-size: 0.96rem; color: var(--ink); }
.testimonial-attribution { font-family: var(--mono); font-size: 0.76rem; color: var(--ink-faint); margin: 0; }

/* ---------- Contact ---------- */
.contact { padding: 90px 0; background: var(--navy-950); }
.contact h2 { color: #fff; }
.contact-lead { color: rgba(255,255,255,0.72); max-width: 420px; margin-bottom: 32px; }
.contact-flex { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }

.contact-info-list { display: flex; flex-direction: column; gap: 22px; }
.contact-info-list li { display: flex; align-items: flex-start; gap: 16px; }
.contact-info-icon {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--navy-line);
  display: flex; align-items: center; justify-content: center; color: var(--copper-light);
}
.contact-info-list strong { display: block; color: #fff; font-size: 0.95rem; margin-bottom: 3px; }
.contact-info-list a { color: rgba(255,255,255,0.68); font-size: 0.92rem; }
.contact-info-list a:hover { color: var(--copper-light); }

.contact-card { background: var(--paper); border-radius: 4px; padding: 36px; box-shadow: 0 24px 64px rgba(0,0,0,0.35); }
.contact-card h3 { font-size: 1.25rem; margin-bottom: 22px; }
.contact-card .form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.contact-card .form-field label { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.contact-card .form-field input,
.contact-card .form-field select,
.contact-card .form-field textarea {
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  padding: 12px 14px; font-family: var(--sans); font-size: 0.95rem; resize: vertical;
}
.contact-card .form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23545B68' stroke-width='1.6' fill='none' fill-rule='evenodd' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.contact-card .form-field input:focus,
.contact-card .form-field select:focus,
.contact-card .form-field textarea:focus { border-color: var(--copper); outline: none; }
.contact-card .form-field input::placeholder,
.contact-card .form-field textarea::placeholder { color: var(--ink-faint); }
.contact-card .btn-primary { width: 100%; justify-content: center; margin-top: 4px; }
.contact-card .form-note { font-size: 0.78rem; color: var(--ink-faint); margin: 12px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); padding: 44px 0 0; border-top: 1px solid var(--navy-line); }
.footer-top { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 28px; padding-bottom: 32px; }
.footer-mark { display: flex; align-items: center; flex: 0 0 auto; }
.footer-logo { height: 30px; width: auto; object-fit: contain; }
.footer-copy { flex: 1 1 auto; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.55); margin: 0; }
.footer-legal-link { color: rgba(255,255,255,0.75); }
.footer-legal-link:hover { color: var(--copper-light); }
.footer-ig { flex: 0 0 auto; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--navy-line); color: rgba(255,255,255,0.7); border-radius: 50%; transition: border-color 0.2s var(--ease), color 0.2s var(--ease); }
.footer-ig:hover { border-color: var(--copper); color: var(--copper-light); }

.footer-divider { height: 1px; background: var(--navy-line); }
.footer-suppliers { padding: 28px 0 32px; text-align: center; }
.footer-suppliers-lead { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 22px; }
.footer-suppliers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 860px; margin: 0 auto 22px; }
.footer-supplier { display: flex; flex-direction: column; gap: 4px; }
.footer-supplier strong { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--copper-light); }
.footer-supplier span { font-size: 0.78rem; line-height: 1.45; color: rgba(255,255,255,0.5); }
.footer-compliance { font-size: 0.76rem; color: rgba(255,255,255,0.52); max-width: 560px; margin: 0 auto; }

/* ---------- Mobile CTA ---------- */
.mobile-cta { display: none; }

/* ---------- Legal pages ---------- */
.legal-page { padding: 72px 0 96px; }
.legal-inner { max-width: 720px; }
.legal-updated { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-faint); margin-bottom: 40px; }
.legal-inner h2 { font-size: 1.2rem; margin-top: 40px; }
.legal-list { display: flex; flex-direction: column; gap: 10px; margin: 0 0 1em; }
.legal-list li { font-size: 0.94rem; color: var(--ink-soft); padding-left: 18px; position: relative; }
.legal-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 1px; background: var(--copper); }
.legal-toc { border: 1px solid var(--line); padding: 20px 22px; margin-bottom: 40px; }
.legal-toc-label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--copper-deep); margin-bottom: 12px; }
.legal-toc-list { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.legal-toc-list a { font-size: 0.86rem; color: var(--ink-soft); border-bottom: 1px solid transparent; }
.legal-toc-list a:hover { color: var(--copper-deep); border-bottom-color: var(--copper); }

/* ---------- Section entrance ----------
   Pure CSS, runs once on page load — never tied to scroll position or JS,
   so a section below the fold can never end up stuck invisible (which a
   scroll-triggered IntersectionObserver version of this risked). */
.reveal { animation: sectionIn 0.7s var(--ease) both; }
@keyframes sectionIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(10,14,23,0.94); z-index: 200;
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 88vw; max-height: 82vh; object-fit: contain; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer;
  padding: 12px; line-height: 1;
}
.lightbox-close { top: 16px; right: 20px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { color: var(--copper-light); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .pillar-grid { grid-template-columns: 1fr; max-width: 460px; }
  .contact-flex { grid-template-columns: 1fr; gap: 40px; }
  .testimonial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .header-inner { height: 64px; }
  .btn-call { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: var(--navy-950); flex-direction: column; align-items: flex-start; gap: 0;
    padding: 12px 24px; transform: translateX(100%); transition: transform 0.25s var(--ease);
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { width: 100%; padding: 16px 0; border-bottom: 1px solid var(--navy-line); font-size: 1rem; }

  .hero { min-height: 78vh; }
  .hero-inner { padding-top: 90px; }
  .hero h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); }

  .contact-card { padding: 28px 24px; }
  .footer-suppliers-grid { grid-template-columns: 1fr; gap: 18px; text-align: center; }
  .simple-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .mobile-cta {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    border-top: 1px solid var(--navy-line);
  }
  .mobile-cta-call, .mobile-cta-quote { flex: 1; text-align: center; padding: 16px 0; font-weight: 600; font-size: 0.92rem; }
  .mobile-cta-call { background: var(--navy-950); color: #fff; }
  .mobile-cta-quote { background: var(--copper); color: var(--navy-950); }
  body { padding-bottom: 56px; }
}
