@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;600&family=Barlow+Condensed:wght@600;700;800&display=swap');

/* ── Tokens ──────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --dark:        #0D0D0D;
  --dark-mid:    #1A1A1A;
  --dark-light:  #3A2A1E;

  /* Rust */
  --rust:        #C04E1A;
  --rust-dark:   #8C2F17;

  /* Text */
  --cream:       #F2E9DC;
  --offcream:    #F7F3EC;
  --white:       #FFFFFF;
  --muted:       #A69D90;

  /* Borders */
  --border-dark: rgba(255,255,255,0.08);
  --border-cream: rgba(0,0,0,0.12);
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--offcream);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ── Announce bar ────────────────────────────────────────────── */
.announce-bar {
  background: var(--dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 7px 24px;
}
.announce-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.announce-inner span {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--white);
}

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  background: var(--dark);
  border-bottom: 3px solid var(--rust);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  height: 80px;
}

/* Logo placeholder — will be replaced with actual logo image */
.logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 140px;
}
.logo-img {
  height: 56px;
  width: auto;
  display: block;
}
.logo-placeholder {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  line-height: 1;
}
.logo-placeholder span { color: var(--rust); }
.logo-tagline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--white);
}

/* ── Nav ─────────────────────────────────────────────────────── */
.site-nav {
  display: flex;
  justify-content: center;
  gap: 0;
}
.site-nav a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  padding: 8px 14px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.site-nav a:hover { color: var(--rust); }
.site-nav a.active { color: var(--white); border-bottom-color: var(--rust); }

/* Mobile menu toggle (hamburger) — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  justify-self: end;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-call { display: none; }

/* ── Header phone ────────────────────────────────────────────── */
.header-phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}
.header-phone span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--white);
}
.header-phone a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--white);
  letter-spacing: 0.03em;
  transition: color 0.15s;
}
.header-phone a:hover { color: var(--white); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-rust {
  display: inline-block;
  background: var(--rust);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 13px 28px;
  border-radius: 2px;
  transition: background 0.15s;
}
.btn-rust:hover { background: var(--rust-dark); }

.btn-ghost {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 11px 28px;
  border-radius: 2px;
  transition: border-color 0.15s, color 0.15s;
}
.btn-ghost:hover { border-color: var(--rust); color: var(--rust); }

/* ── Page hero (inner pages) ─────────────────────────────────── */
.page-hero {
  background: var(--dark);
  padding: 40px 24px;
  text-align: center;
  border-bottom: 3px solid var(--rust);
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); color: var(--white); }
.page-hero h1 span { color: var(--rust); }
.page-hero p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Equipment grid ──────────────────────────────────────────── */
.equipment-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}
.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  border-bottom: 2px solid var(--border-cream);
  padding-bottom: 8px;
  margin-bottom: 24px;
}
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ── Card ────────────────────────────────────────────────────── */
.equipment-card {
  background: var(--offcream);
  border: 1px solid var(--border-cream);
  border-top: 3px solid var(--rust);
  border-radius: 3px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.equipment-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}
.card-photo {
  aspect-ratio: 4/3;
  background: var(--dark-mid);
  position: relative;
  overflow: hidden;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 3rem;
}
.card-type-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--rust);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 2px;
}
.sold-ribbon {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
}
.sold-ribbon span {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  border: 4px solid var(--white);
  padding: 4px 20px;
  transform: rotate(-12deg);
  background: var(--rust-dark);
}
.card-body { padding: 16px; }
.card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 4px;
}
.card-desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-cta {
  display: inline-block;
  background: var(--rust);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 7px 16px;
  border-radius: 2px;
  transition: background 0.15s;
}
.card-cta:hover { background: var(--rust-dark); }

/* ── Empty state ─────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--muted);
}
.empty-state h2 { font-size: 1.8rem; color: var(--dark); margin-bottom: 12px; }
.empty-state .phone-link {
  display: inline-block;
  margin-top: 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--rust);
  letter-spacing: 0.05em;
}

/* ── Detail page ─────────────────────────────────────────────── */
.detail-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
}
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 20px;
  transition: color 0.15s;
}
.back-link::before { content: '←'; }
.back-link:hover { color: var(--dark); }

.gallery-main {
  aspect-ratio: 4/3;
  background: var(--dark-mid);
  border-radius: 3px; overflow: hidden;
  position: relative;
  border: 1px solid var(--border-cream);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumb {
  width: 72px; height: 54px;
  border-radius: 2px; overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s;
}
.gallery-thumb.active { border-color: var(--rust); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.detail-sold-badge {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.detail-sold-badge span {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 3rem;
  letter-spacing: 0.15em; color: var(--white);
  border: 5px solid var(--white);
  padding: 6px 28px;
  transform: rotate(-12deg);
  background: var(--rust-dark);
}

.detail-title { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--dark); margin-bottom: 6px; }
.detail-meta {
  font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--muted);
  margin-bottom: 20px;
}
.specs-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; font-size: 0.9rem; }
.specs-table tr { border-bottom: 1px solid var(--border-cream); }
.specs-table td { padding: 8px 4px; }
.specs-table td:first-child {
  font-weight: 600; color: var(--dark-light);
  width: 38%; text-transform: uppercase;
  font-size: 0.75rem; letter-spacing: 0.06em;
}

.cta-card {
  background: var(--dark);
  border-left: 5px solid var(--rust);
  border-radius: 3px;
  padding: 24px;
  color: var(--white);
}
.cta-card h3 { font-size: 1.4rem; color: var(--rust); margin-bottom: 8px; }
.cta-card p { font-size: 0.9rem; color: #ccc; margin-bottom: 16px; }
.cta-phone {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 1.9rem;
  color: var(--rust); letter-spacing: 0.04em;
}
.cta-note {
  font-size: 0.72rem; color: var(--muted);
  margin-top: 6px; text-transform: uppercase; letter-spacing: 0.1em;
}

/* ── CTA Banner ──────────────────────────────────────────────── */
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding: 18px 22px;
  background: var(--offcream);
  border-top: 3px solid var(--rust);
  border-radius: 3px;
}
.cta-banner-text { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
.cta-banner-text strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dark);
  margin-bottom: 2px;
}
.cta-banner-phone {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--dark);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* ── AI Description ──────────────────────────────────────────── */
.ai-description { margin-bottom: 24px; }
.ai-description p { font-size: 0.9rem; color: #444; line-height: 1.75; margin-bottom: 12px; }
.ai-description p:last-child { margin-bottom: 0; }

/* ── Work Performed ──────────────────────────────────────────── */
.maint-wrap { margin-bottom: 24px; }
.maint-header {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--dark);
  border-bottom: 2px solid var(--rust);
  padding-bottom: 8px;
  margin-bottom: 4px;
}
.maint-list { list-style: none; }
.maint-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border-cream);
  font-size: 0.85rem;
  color: #444;
  line-height: 1.4;
}
.maint-item:last-child { border-bottom: none; }
.maint-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--rust);
  color: var(--white);
  font-size: 0.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── Inspection ──────────────────────────────────────────────── */
.insp-wrap { margin-bottom: 24px; border: 1px solid var(--border-cream); border-radius: 3px; overflow: hidden; }
.insp-toggle {
  width: 100%; display: flex; align-items: center; gap: 10px;
  background: #f0ead8; border: none; padding: 12px 14px;
  cursor: pointer; text-align: left;
  font-family: inherit; font-size: 0.85rem; color: var(--dark);
}
.insp-toggle:hover { background: #e8e0c8; }
.insp-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 2px 8px; border-radius: 2px;
}
.insp-badge-ok { background: #d1fae5; color: #065f46; }
.insp-summary { color: var(--muted); font-size: 0.82rem; }
.insp-chevron { margin-left: auto; font-size: 0.7rem; color: var(--muted); transition: transform 0.2s; }
.insp-section { border-top: 1px solid var(--border-cream); }
.insp-section:first-child { border-top: none; }
.insp-section-header {
  padding: 7px 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--dark-light); background: #f5ecd8;
  border-bottom: 1px solid var(--border-cream);
}
.insp-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.insp-table tr { border-bottom: 1px solid #f0e8d0; }
.insp-table tr:last-child { border-bottom: none; }
.insp-item-label { padding: 7px 14px; color: #444; width: 50%; }
.insp-item-result { padding: 7px 10px; font-weight: 600; width: 70px; text-align: center; }
.insp-item-notes { padding: 7px 14px; color: var(--muted); font-size: 0.78rem; }
.result-pass { color: #059669; }
.result-fair { color: #d97706; }
.result-fail { color: #dc2626; }
.insp-uninspected {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 24px; padding: 14px 16px;
  border: 2px solid #fbbf24; border-radius: 3px;
  background: #fffbeb;
}
.insp-uninspected-icon { font-size: 1.4rem; line-height: 1; color: #d97706; }
.insp-uninspected strong { display: block; font-size: 0.9rem; color: #92400e; margin-bottom: 4px; }
.insp-uninspected p { font-size: 0.82rem; color: #b45309; margin: 0; line-height: 1.5; }

/* ── Lightbox ────────────────────────────────────────────────── */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 2px; }
.lightbox-close {
  position: fixed; top: 20px; right: 28px;
  font-size: 2.5rem; color: var(--white);
  cursor: pointer; line-height: 1; opacity: 0.7;
}
.lightbox-close:hover { opacity: 1; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  border-top: 3px solid var(--rust);
  color: var(--muted);
  padding: 48px 24px 0;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 40px;
}
.footer-logo {
  margin-bottom: 14px;
}
.footer-logo img {
  height: 56px;
  width: auto;
  display: block;
}
.footer-brand p { font-size: 0.82rem; line-height: 1.8; }
.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--rust);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-dark);
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 0.82rem;
  line-height: 2;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--rust); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding: 18px 0;
  border-top: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #55483A;
}
.faith-slogan {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--rust);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .nav-toggle { display: flex; }
  .header-phone { display: none; }

  /* Nav becomes a drop-down panel toggled by the hamburger */
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--dark);
    border-bottom: 3px solid var(--rust);
    padding: 6px 0 10px;
    box-shadow: 0 14px 26px rgba(0,0,0,0.35);
  }
  .site-header.nav-open .site-nav { display: flex; }
  .site-nav a {
    padding: 14px 24px;
    font-size: 1.1rem;
    text-align: left;
    border-bottom: none;
  }
  .site-nav a.active { color: var(--rust); border-bottom-color: transparent; }
  .nav-call {
    display: block;
    color: var(--rust);
    margin-top: 6px;
    border-top: 1px solid var(--border-dark);
  }

  /* Hamburger morphs into an X when the menu is open */
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 768px) {
  .detail-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
