/* ==========================================================================
   WE-R Lobo Construction — Design tokens
   Warm, craftsman-traditional palette. Signature motif: tape-measure rule
   dividers + blueprint-fold photo cards.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,900&family=Fraunces:ital,opsz,wght@1,9..144,500&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  /* Color */
  --plaster: #EFE7DA;
  --cream: #FAF6EE;
  --charcoal: #2B241D;
  --charcoal-soft: #55493D;
  --walnut: #4A342A;
  --walnut-dark: #33221A;
  --barn-red: #8C3B2E;
  --barn-red-dark: #722F24;
  --brass: #B08B3F;
  --brass-light: #D8B96A;
  --line: rgba(43, 36, 29, 0.14);
  --line-strong: rgba(43, 36, 29, 0.28);

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-display-italic: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --max-w: 1180px;
  --radius: 3px;
  --shadow-card: 0 1px 2px rgba(43,36,29,0.06), 0 8px 24px -12px rgba(43,36,29,0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--plaster);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--walnut);
  letter-spacing: -0.01em;
}
h1 { font-weight: 900; }

p { margin: 0 0 1em; }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--barn-red);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--barn-red);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color .15s ease, color .15s ease;
}
.btn:focus-visible { outline: 3px solid var(--brass-light); outline-offset: 2px; }
.btn-primary { background: var(--barn-red); color: var(--cream); }
.btn-primary:hover { background: var(--barn-red-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--walnut); }
.btn-ghost:hover { border-color: var(--walnut); background: rgba(74,52,42,0.05); }
.btn-on-dark { background: var(--brass); color: var(--walnut-dark); }
.btn-on-dark:hover { background: var(--brass-light); transform: translateY(-1px); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(239, 231, 218, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.28rem;
  color: var(--walnut);
}
.brand-mark {
  width: 38px; height: 38px;
  flex-shrink: 0;
}
.brand small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--brass);
  text-transform: uppercase;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--charcoal-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--barn-red); border-color: var(--barn-red); }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--walnut);
  display: none;
}
.nav-toggle { display: none; }

@media (max-width: 880px) {
  .main-nav { position: fixed; inset: 78px 0 0 0; background: var(--cream); flex-direction: column; justify-content: flex-start; padding: 30px 28px; gap: 22px; transform: translateX(100%); transition: transform .25s ease; }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: inline-flex; background: none; border: none; cursor: pointer; padding: 8px; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 22px; height: 2px; background: var(--walnut); position: relative; transition: transform .2s ease; }
  .nav-toggle span::before { position: absolute; top: -7px; }
  .nav-toggle span::after { position: absolute; top: 7px; }
}
@media (min-width: 700px) { .header-phone { display: block; } }

/* ---------- Tape-measure divider (signature element) ---------- */
.tape-rule {
  display: flex;
  align-items: flex-end;
  height: 22px;
  width: 100%;
  overflow: hidden;
  color: var(--brass);
  opacity: 0.9;
}
.tape-rule svg { width: 100%; height: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--walnut);
  color: var(--cream);
  overflow: hidden;
}
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  padding: 96px 0 72px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; padding: 60px 0 48px; } }

.hero h1 {
  color: var(--cream);
  font-size: clamp(2.4rem, 4.6vw, 3.7rem);
  margin: 0.35em 0 0.4em;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--brass-light);
}
.hero p.lede {
  font-size: 1.13rem;
  color: rgba(250,246,238,0.82);
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }

.hero-badges {
  display: flex;
  gap: 26px;
  margin-top: 46px;
  flex-wrap: wrap;
}
.hero-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(250,246,238,0.75);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-badge strong { color: var(--brass-light); font-size: 0.95rem; display: block; font-family: var(--font-display); font-weight: 700; }

.hero-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-card);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-tag {
  position: absolute;
  bottom: 16px; left: 16px;
  background: rgba(43,36,29,0.78);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 8px 12px;
  border-radius: 2px;
}

/* ---------- Section scaffolding ---------- */
section { padding: 84px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.section-head p { color: var(--charcoal-soft); font-size: 1.05rem; }
.bg-cream { background: var(--cream); }
.bg-walnut { background: var(--walnut-dark); color: var(--cream); }
.bg-walnut h2, .bg-walnut h3 { color: var(--cream); }
.bg-walnut .section-head p { color: rgba(250,246,238,0.72); }

/* ---------- Cards / grid ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.bg-walnut .card { background: rgba(250,246,238,0.06); border-color: rgba(250,246,238,0.14); }

.service-card .icon { width: 40px; height: 40px; color: var(--barn-red); margin-bottom: 18px; }
.service-card h3 { font-size: 1.18rem; margin-bottom: 0.4em; }
.service-card p { color: var(--charcoal-soft); font-size: 0.96rem; margin-bottom: 0.8em; }
.service-card .price-range { font-family: var(--font-mono); font-size: 0.78rem; color: var(--brass); }

/* Blueprint-fold photo card (signature) */
.fold-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--walnut);
  box-shadow: var(--shadow-card);
}
.fold-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .4s ease; }
.fold-card:hover img { transform: scale(1.045); }
.fold-card::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 26px 26px 0;
  border-color: transparent var(--plaster) transparent transparent;
  filter: drop-shadow(-2px 2px 2px rgba(0,0,0,0.18));
}
.fold-caption {
  padding: 14px 18px 18px;
  background: var(--cream);
}
.fold-caption .tag { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--brass); text-transform: uppercase; }
.fold-caption h4 { font-size: 1rem; margin: 4px 0 0; }

/* ---------- Process steps ---------- */
.process-list { display: flex; flex-direction: column; }
.process-step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px dashed var(--line-strong);
}
.process-step:last-child { border-bottom: 1px dashed var(--line-strong); }
.process-num { font-family: var(--font-mono); font-size: 0.95rem; color: var(--brass); font-weight: 600; }
.process-step h3 { font-size: 1.2rem; margin-bottom: 6px; }
.process-step p { color: var(--charcoal-soft); margin: 0; }

/* ---------- Testimonials ---------- */
.testimonial { padding: 30px 28px; }
.testimonial p.quote { font-family: var(--font-display); font-style: italic; font-size: 1.12rem; color: var(--walnut); margin-bottom: 18px; }
.testimonial .who { font-family: var(--font-mono); font-size: 0.76rem; color: var(--charcoal-soft); letter-spacing: 0.04em; }
.stars { color: var(--brass); letter-spacing: 2px; margin-bottom: 10px; font-size: 0.9rem; }

/* ---------- Trust strip ---------- */
.trust-strip { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-item { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--charcoal-soft); letter-spacing: 0.03em; }
.trust-item svg { width: 26px; height: 26px; color: var(--barn-red); flex-shrink: 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.field.full { grid-column: 1 / -1; }
label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--charcoal-soft); }
input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--charcoal);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--barn-red); }
textarea { resize: vertical; min-height: 120px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: 0.85rem; color: var(--charcoal-soft); margin-top: 4px; }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius); font-size: 0.92rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(139,150,90,0.15); color: #4a5a2a; border: 1px solid rgba(139,150,90,0.4); }
.form-status.err { background: rgba(140,59,46,0.1); color: var(--barn-red-dark); border: 1px solid rgba(140,59,46,0.35); }

/* ---------- FAQ ---------- */
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--walnut);
  font-weight: 600;
}
.faq-q .plus { font-family: var(--font-mono); font-size: 1.3rem; color: var(--brass); transition: transform .2s ease; flex-shrink: 0; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; color: var(--charcoal-soft); }
.faq-a p { padding-bottom: 22px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--barn-red); color: var(--cream); padding: 64px 0; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: var(--cream); margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

/* ---------- Footer ---------- */
.site-footer { background: var(--walnut-dark); color: rgba(250,246,238,0.75); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--brass-light); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { text-decoration: none; color: rgba(250,246,238,0.75); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--brass-light); }
.footer-bottom { border-top: 1px solid rgba(250,246,238,0.12); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: rgba(250,246,238,0.5); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: var(--walnut); color: var(--cream); padding: 64px 0 54px; }
.page-hero h1 { color: var(--cream); font-size: clamp(2rem, 3.6vw, 2.8rem); margin-top: 0.3em; }
.page-hero p { color: rgba(250,246,238,0.78); max-width: 60ch; font-size: 1.05rem; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: rgba(250,246,238,0.55); }
.breadcrumb a { color: rgba(250,246,238,0.55); text-decoration: none; }
.breadcrumb a:hover { color: var(--brass-light); }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
