/* ==========================================================================
   PREMIER WOOD CARPENTRY LLC — Design System v2
   Direction: Modern, Premium, Minimalist, Elegant (client brief, verbatim).
   Gold is a rare accent only — brief explicitly asked to avoid "flashy" color.
   Signature motif: the blueprint / measuring-line — dimension ticks and
   corner-registration brackets, drawn from a carpenter's own tools
   (tape measure, plumb line, blueprint) rather than a generic template cue.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --navy-deep:  #001535;
  --navy:       #062d68;
  --navy-soft:  #163b7d;
  --gold:       #f3bb3a;
  --gold-dark:  #a97a17;
  --stone:      #cbcac5;
  --stone-line: #dedcd5;
  --stone-light:#f1efe9;
  --paper:      #fbfaf7;
  --white:      #ffffff;
  --ink:        #171b22;
  --ink-soft:   #5c6270;

  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --maxw: 1220px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
  font-weight: 400;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.16;
  margin: 0 0 0.5em;
  color: var(--navy-deep);
  letter-spacing: -0.01em;
}
h1 strong, h2 strong, h3 strong { font-weight: 700; color: var(--navy); }
h1 { font-size: clamp(2.5rem, 4.4vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.7vw, 1.4rem); font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: var(--navy-deep);
  padding: 12px 20px; z-index: 999; font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---- Eyebrow + dimension-tick underline (signature motif #1) ---- */
.eyebrow {
  display: inline-flex; flex-direction: column; gap: 10px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--gold-dark); margin-bottom: 20px;
}
.eyebrow.on-dark { color: var(--gold); }
.eyebrow .tick-line { display: block; width: 64px; height: 8px; }
.eyebrow .tick-line svg { width: 100%; height: 100%; display: block; }
.eyebrow.centered { align-items: center; text-align: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; font-weight: 600; font-size: 0.9rem;
  letter-spacing: 0.03em; border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #e0a827; transform: translateY(-2px); }
.btn-outline { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-navy { border-color: rgba(6,45,104,0.35); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-text { color: var(--navy); font-weight: 700; font-size: 0.86rem; letter-spacing: 0.02em; gap: 8px; padding: 0; }
.btn-text svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.btn-text:hover svg { transform: translateX(4px); }
.btn-block { width: 100%; justify-content: center; }

/* ---- Corner brackets (signature motif #2): blueprint registration marks ---- */
.bracket-frame { position: relative; }
.bracket-frame::before, .bracket-frame::after,
.bracket-frame .bf-tl, .bracket-frame .bf-br { display:none; }
.bracket-frame > .bf-corner {
  position: absolute; width: 22px; height: 22px; z-index: 3;
  border: 1.5px solid var(--gold);
}
.bf-corner.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.bf-corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.topbar {
  background: var(--navy-deep); color: rgba(255,255,255,0.75);
  font-size: 0.8rem; font-weight: 500;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding: 9px 32px; }
.topbar a:hover { color: var(--gold); }
.topbar-left { display: flex; gap: 26px; align-items: center; }
.topbar-left span { display: inline-flex; align-items: center; gap: 7px; }
.topbar-left svg { width: 13px; height: 13px; color: var(--gold); }
@media (max-width: 700px) { .topbar-left span:nth-child(2) { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,250,247,0.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(6,45,104,0.08);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 26px rgba(0,10,30,0.07); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; max-width: var(--maxw); margin: 0 auto; gap: 24px;
}
.brand-logo { height: 54px; width: auto; }

.main-nav ul { display: flex; gap: 38px; align-items: center; }
.main-nav a {
  font-weight: 500; font-size: 0.9rem; letter-spacing: 0.03em;
  color: var(--navy-deep); position: relative; padding: 6px 0;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1.5px; background: var(--gold); transition: right .28s var(--ease);
}
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.main-nav a.active { font-weight: 700; }

.header-cta { display: flex; align-items: center; gap: 22px; }
.nav-toggle {
  display: none; background: none; border: none; width: 40px; height: 40px; position: relative;
}
.nav-toggle span {
  position: absolute; left: 8px; right: 8px; height: 1.5px; background: var(--navy-deep);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .main-nav {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy-deep); transform: translateX(100%);
    transition: transform .35s var(--ease); padding: 100px 34px 40px; overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 28px; }
  .main-nav a { color: var(--white); font-size: 1.3rem; font-weight: 400; }
  .header-cta .btn-outline-navy { display: none; }
  .nav-toggle { display: block; z-index: 101; }
  .nav-toggle.open span { background: var(--white); }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; background: var(--navy-deep); color: var(--white);
  overflow: hidden; padding: 100px 0 0;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
  position: relative; z-index: 2;
}
.hero-copy { padding-bottom: 90px; }
.hero h1 { color: var(--white); margin-bottom: 26px; }
.hero h1 strong { color: var(--gold); font-weight: 700; }
.hero-lede { font-size: 1.1rem; color: rgba(255,255,255,0.72); max-width: 480px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-art { position: relative; height: 100%; min-height: 420px; display: flex; align-items: flex-end; justify-content: center; }
.hero-art svg { width: 100%; max-width: 480px; height: auto; }

.hero-meta {
  display: flex; gap: 0; border-top: 1px solid rgba(255,255,255,0.14);
  padding: 26px 0; flex-wrap: wrap;
}
.hero-meta-item { flex: 1; min-width: 160px; padding-right: 24px; }
.hero-meta-item strong { display: block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em; color: var(--white); margin-bottom: 4px; }
.hero-meta-item span { font-size: 0.82rem; color: rgba(255,255,255,0.55); }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .hero-copy { padding-bottom: 50px; }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: 108px 0; }
.section-tight { padding: 72px 0; }
.section-header { max-width: 620px; margin-bottom: 60px; }
.section-header.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-header p { font-size: 1.04rem; }

.bg-navy { background: var(--navy-deep); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: rgba(255,255,255,0.68); }
.bg-stone { background: var(--stone-light); }
.bg-white { background: var(--white); }

/* ---- Services grid (hairline, no shadow) ---- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--stone-line); }
.service-cell {
  padding: 40px 28px; border-right: 1px solid var(--stone-line); border-bottom: 1px solid var(--stone-line);
  position: relative; transition: background .3s ease;
}
.service-cell:nth-child(4n) { border-right: none; }
.service-cell:hover { background: var(--white); }
.service-cell .num { font-size: 0.78rem; font-weight: 700; color: var(--gold-dark); letter-spacing: 0.08em; margin-bottom: 18px; display: block; }
.service-cell .icon { width: 34px; height: 34px; color: var(--navy); margin-bottom: 20px; }
.service-cell .icon svg { width: 100%; height: 100%; }
.service-cell h3 { margin-bottom: 10px; font-size: 1.08rem; }
.service-cell p { font-size: 0.92rem; margin-bottom: 18px; }

@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-cell:nth-child(4n) { border-right: 1px solid var(--stone-line); }
  .service-cell:nth-child(2n) { border-right: none; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-cell:nth-child(2n) { border-right: none; }
  .service-cell { border-right: none !important; }
}

/* ---- Problem / Solution rows ---- */
.ps-list { border-top: 1px solid var(--stone-line); }
.ps-row {
  display: grid; grid-template-columns: 0.9fr 1.5fr; gap: 40px;
  padding: 34px 0; border-bottom: 1px solid var(--stone-line); align-items: start;
}
.ps-problem { font-weight: 600; color: var(--navy-deep); font-size: 1.02rem; }
.ps-problem span { display:block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; color: var(--gold-dark); margin-bottom: 8px; }
.ps-solution { font-size: 0.98rem; border-left: 1px solid var(--stone-line); padding-left: 40px; margin-left: -1px; }
.ps-solution strong { color: var(--navy); font-weight: 700; }
@media (max-width: 760px) { .ps-row { grid-template-columns: 1fr; gap: 14px; } .ps-solution { border-left: none; padding-left: 0; margin-left: 0; padding-top: 6px; } }

/* ---- Process ---- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.process-step { padding: 0 26px 0 0; position: relative; }
.process-num { font-family: var(--font); font-weight: 200; font-size: 3rem; color: var(--gold-dark); line-height: 1; margin-bottom: 18px; display: block; }
.process-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { font-size: 0.92rem; }
@media (max-width: 880px) { .process-grid { grid-template-columns: 1fr 1fr; gap: 40px 26px; } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

/* ---- Split (about teaser / story) ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-media { position: relative; background: var(--navy-deep); min-height: 400px; display: flex; align-items: center; justify-content: center; }
.split-media img { width: 46%; position: relative; z-index: 1; }
.split-quote { border-left: 2px solid var(--gold); padding-left: 22px; margin: 26px 0; font-size: 1.1rem; font-weight: 400; color: var(--navy-deep); font-style: italic; }
.check-list li { display: flex; gap: 13px; padding: 12px 0; font-size: 0.95rem; color: var(--ink-soft); }
.check-list svg { width: 17px; height: 17px; color: var(--gold-dark); flex-shrink: 0; margin-top: 3px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* ---- CTA banner ---- */
.cta-banner { background: var(--navy-deep); color: var(--white); padding: 84px 0; text-align: center; }
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.68); max-width: 500px; margin: 0 auto 8px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* ---- Portfolio / coming soon ---- */
.folio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.folio-card { position: relative; background: var(--navy-deep); aspect-ratio: 4/3; }
.folio-card .bf-corner { border-color: var(--gold); }
.folio-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; }
.folio-inner svg { width: 26px; height: 26px; color: var(--gold); }
.folio-inner strong { color: var(--white); font-size: 0.92rem; font-weight: 600; }
.folio-inner span { color: rgba(255,255,255,0.5); font-size: 0.78rem; }
@media (max-width: 760px) { .folio-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .folio-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.6); padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo { height: 36px; margin-bottom: 20px; }
.footer-grid p { color: rgba(255,255,255,0.5); font-size: 0.9rem; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 20px; font-weight: 700; }
.footer-col ul li { margin-bottom: 13px; }
.footer-col a, .footer-col span { font-size: 0.92rem; color: rgba(255,255,255,0.62); }
.footer-col a:hover { color: var(--gold); }
.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact-item svg { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; margin-top: 4px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 26px; font-size: 0.8rem; color: rgba(255,255,255,0.38); }
.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: var(--gold); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   PAGE HERO (interior)
   ========================================================================== */
.page-hero { background: var(--navy-deep); color: var(--white); padding: 76px 0 60px; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.68); max-width: 560px; font-size: 1.02rem; }
.breadcrumb { font-size: 0.82rem; color: rgba(255,255,255,0.45); margin-bottom: 22px; }
.breadcrumb a:hover { color: var(--gold); }

/* ==========================================================================
   SERVICES DETAIL PAGE
   ========================================================================== */
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; padding: 84px 0; border-bottom: 1px solid var(--stone-line); }
.service-detail:last-of-type { border-bottom: none; }
.service-detail:nth-of-type(even) .service-detail-media { order: 2; }
.service-detail-media { position: relative; background: var(--navy-deep); min-height: 340px; display: flex; align-items: center; justify-content: center; }
.service-detail-media svg { width: 28%; color: var(--gold); opacity: 0.95; }
.service-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 18px; }
.service-detail ul.check-list { margin-top: 22px; border-top: 1px solid var(--stone-line); }
.service-detail .check-list li { border-bottom: 1px solid var(--stone-line); }
@media (max-width: 900px) { .service-detail { grid-template-columns: 1fr; gap: 34px; } .service-detail:nth-of-type(even) .service-detail-media { order: 0; } }

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */
.about-hero-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.stat-row { display: flex; gap: 0; margin-top: 36px; border-top: 1px solid var(--stone-line); }
.stat-item { flex: 1; padding: 22px 20px 0 0; }
.stat-item strong { display: block; font-size: 1.9rem; font-weight: 300; color: var(--navy-deep); }
.stat-item strong b { font-weight: 700; }
.stat-item span { font-size: 0.82rem; color: var(--ink-soft); }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--stone-line); }
.value-card { padding: 38px 30px; border-right: 1px solid var(--stone-line); border-bottom: 1px solid var(--stone-line); }
.value-card:nth-child(3n) { border-right: none; }
.value-card .icon { width: 32px; height: 32px; color: var(--navy); margin-bottom: 20px; }
.value-card .icon svg { width: 100%; height: 100%; }
.value-card h3 { font-size: 1.05rem; }
.value-card p { font-size: 0.92rem; margin: 0; }
@media (max-width: 900px) { .about-hero-split { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 760px) { .values-grid { grid-template-columns: 1fr 1fr; } .value-card:nth-child(3n) { border-right: 1px solid var(--stone-line);} .value-card:nth-child(2n) { border-right: none; } }
@media (max-width: 520px) { .values-grid { grid-template-columns: 1fr; } .value-card { border-right: none !important; } }

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: start; }
.contact-info-card { background: var(--navy-deep); color: var(--white); padding: 44px 36px; }
.contact-info-card h3 { color: var(--white); }
.contact-info-list { border-top: 1px solid rgba(255,255,255,0.14); margin-top: 8px; }
.contact-info-list li { display: flex; gap: 15px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.14); align-items: flex-start; }
.contact-info-list svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.contact-info-list a, .contact-info-list span { font-size: 0.95rem; color: rgba(255,255,255,0.85); }
.contact-info-list a:hover { color: var(--gold); }
.contact-info-list .label { display: block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 4px; }
.map-embed { margin-top: 26px; border: 1px solid rgba(255,255,255,0.16); }
.map-embed iframe { width: 100%; height: 210px; border: 0; display: block; filter: grayscale(0.2) contrast(1.05); }

.form-card { background: var(--white); border: 1px solid var(--stone-line); padding: 46px 42px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { margin-bottom: 24px; }
.field label { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; color: var(--navy-deep); margin-bottom: 9px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--stone-line); font-family: var(--font);
  font-size: 0.95rem; color: var(--ink); background: var(--paper); transition: border-color .2s ease; border-radius: 2px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-dark); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 16px; }
.form-success { display: none; background: rgba(6,45,104,0.05); border: 1.5px solid var(--navy); padding: 20px 22px; margin-bottom: 26px; align-items: center; gap: 14px; }
.form-success.show { display: flex; }
.form-success svg { width: 22px; height: 22px; color: var(--navy); flex-shrink: 0; }
.form-success p { margin: 0; color: var(--navy-deep); font-weight: 600; font-size: 0.92rem; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ==========================================================================
   SCROLL REVEAL + UTIL
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.text-center { text-align: center; }
