/* ── HOAG SYSTEMS · SHARED STYLES ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Barlow:wght@300;400;500;600&family=Barlow+Condensed:wght@400;600;700&display=swap');

:root {
  --black:   #0e0d0b;
  --ink:     #1a1915;
  --forest:  #1e2e1c;
  --paper:   #f0ebe0;
  --warm:    #e6dfd0;
  --line:    #cfc8b8;
  --rust:    #a63820;
  --rust2:   #c44825;
  --gold:    #9a7018;
  --gold2:   #b88a28;
  --text:    #211f1a;
  --muted:   #6a6558;
  --faint:   #a8a298;
  --white:   #faf8f3;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY UTILITIES ── */
.eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold2);
}
.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}
h2.page-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
}
h2.dark-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--black);
  border-bottom: 1px solid #2a2822;
  padding: 0 4rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-brand .brand-name span { color: var(--gold2); }
.nav-brand .brand-tag {
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a.nav-cta {
  background: var(--rust);
  color: var(--white);
  padding: 0.45rem 1.3rem;
  border-radius: 2px;
  transition: background 0.2s;
}
.nav-links a.nav-cta:hover { background: var(--rust2); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--forest);
  padding: 5rem 4rem 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 100% at 80% 50%, rgba(154,112,24,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero p.hero-sub {
  font-size: 1.1rem;
  color: rgba(240,235,224,0.65);
  max-width: 580px;
  margin-top: 1.2rem;
  line-height: 1.75;
}

/* ── STRIP ── */
.strip {
  background: var(--rust);
  padding: 1rem 4rem;
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.strip-item {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.strip-item::before { content: '—'; color: rgba(255,255,255,0.4); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--rust);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 2.4rem;
  text-decoration: none;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--rust2); transform: translateY(-1px); }

.btn-white {
  display: inline-block;
  background: var(--white);
  color: var(--rust);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 2.4rem;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s;
}
.btn-white:hover { background: var(--paper); }

.btn-ghost {
  display: inline-block;
  color: rgba(240,235,224,0.6);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(240,235,224,0.2);
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--white); border-color: rgba(240,235,224,0.5); }

/* ── CTA BAND ── */
.cta-band {
  background: var(--rust);
  padding: 5rem 4rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}
.cta-band h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.8rem;
}
.cta-band p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  max-width: 520px;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
  min-width: 210px;
}
.cta-contact a {
  display: block;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  text-align: center;
  transition: color 0.2s;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.06em;
}
.cta-contact a:hover { color: var(--white); }

/* ── FOOTER ── */
footer {
  background: var(--black);
  padding: 2.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #252320;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.foot-brand {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240,235,224,0.3);
}
.foot-brand span { color: var(--gold2); }
.foot-info {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}
.foot-info a, .foot-info span {
  font-size: 0.8rem;
  color: rgba(240,235,224,0.28);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.foot-info a:hover { color: rgba(240,235,224,0.7); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.65s ease both; }
.fade-up-1 { animation: fadeUp 0.65s 0.1s ease both; }
.fade-up-2 { animation: fadeUp 0.65s 0.25s ease both; }
.fade-up-3 { animation: fadeUp 0.65s 0.4s ease both; }
.fade-up-4 { animation: fadeUp 0.65s 0.55s ease both; }

/* ── HAMBURGER MENU ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
  z-index: 200;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  display: none;
  position: fixed;
  top: 60px;
  left: 0; right: 0;
  background: var(--black);
  border-bottom: 2px solid var(--rust);
  z-index: 99;
  flex-direction: column;
  padding: 1.5rem 2rem;
  gap: 0;
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240,235,224,0.65);
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s;
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a:hover { color: var(--white); }
.nav-drawer a.nav-cta {
  color: var(--white);
  background: var(--rust);
  text-align: center;
  padding: 1rem;
  border-radius: 2px;
  border: none;
  margin-top: 0.8rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .page-hero, .strip, footer { padding-left: 1.5rem; padding-right: 1.5rem; }
  .cta-band {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3.5rem 1.5rem;
  }
  .cta-band p { max-width: 100%; }
  .cta-actions {
    width: 100%;
    align-items: stretch;
  }
  .cta-actions .btn-white {
    width: 100%;
    text-align: center;
  }
  .cta-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }
  .cta-contact a {
    font-size: 0.95rem;
  }
}

/* ── COMPREHENSIVE MOBILE FIXES ── */
@media (max-width: 860px) {

  /* Typography scale down */
  body { font-size: 16px; }

  /* Nav brand tag hidden on mobile - too long */
  .nav-brand .brand-tag { display: none; }

  /* Page hero */
  .page-hero { padding: 3rem 1.5rem 2.5rem; }
  .page-hero .page-title { font-size: 1.8rem; }
  .page-hero .hero-sub { font-size: 0.97rem; }

  /* Strip - scroll horizontally */
  .strip {
    padding: 0.8rem 1.5rem;
    gap: 1.5rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .strip-item { font-size: 0.65rem; white-space: nowrap; }

  /* CTA band - already stacked, fix spacing */
  .cta-band { padding: 3rem 1.5rem; gap: 2rem; }
  .cta-band h2 { font-size: 1.5rem; }
  .cta-band p { font-size: 0.97rem; }
  .cta-actions { width: 100%; }
  .cta-actions .btn-white { display: block; width: 100%; text-align: center; }
  .cta-contact { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }
  .cta-contact a { font-size: 0.9rem; color: rgba(255,255,255,0.7); }

  /* Footer */
  footer { padding: 2rem 1.5rem; flex-direction: column; align-items: flex-start; gap: 1rem; }
  .foot-info { flex-direction: column; gap: 0.4rem; }

  /* Deliverables grid */
  .del-grid { grid-template-columns: 1fr !important; }

  /* Ownership section */
  .ownership { grid-template-columns: 1fr !important; padding: 3rem 1.5rem !important; gap: 2rem !important; }

  /* Steps */
  .steps { grid-template-columns: 1fr !important; }
  .how-header { flex-direction: column !important; align-items: flex-start !important; gap: 1rem !important; }
  .how-header p { text-align: left !important; max-width: 100% !important; }
  .how { padding: 3rem 1.5rem !important; }

  /* Process steps */
  .step { grid-template-columns: 1fr !important; }
  .step-left { border-right: none !important; border-bottom: 1px solid var(--line); padding: 1.2rem 1.5rem !important; flex-direction: row; }
  .step-right { padding: 1.5rem !important; }
  .process { padding: 3rem 1.5rem !important; }

  /* FAQ */
  .faq { padding: 3rem 1.5rem !important; }
  .faq-a { font-size: 0.95rem; }

  /* Pricing */
  .pricing-section { grid-template-columns: 1fr !important; gap: 2.5rem !important; padding: 3rem 1.5rem !important; }
  .price-card { position: static !important; }
  .pc-price { font-size: 3rem !important; }
  .compare { padding: 3rem 1.5rem !important; overflow-x: auto; }
  .compare-table { min-width: 480px; font-size: 0.88rem; }

  /* Offer ladder */
  .ladder { padding: 3rem 1.5rem !important; }
  .ladder-steps { grid-template-columns: 1fr !important; }
  .ladder-header h2 { font-size: 1.5rem; }

  /* Fit section */
  .fit-section { padding: 3rem 1.5rem !important; }
  .fit-grid { grid-template-columns: 1fr !important; }
  .fit-col { padding: 2rem 1.5rem !important; }

  /* About page */
  .difference { padding: 3rem 1.5rem !important; }
  .difference h2 { font-size: 1.5rem !important; }
  .ai-callout { padding: 1.5rem !important; margin: 2rem 0 !important; }
  .built { padding: 3rem 1.5rem !important; }
  .cs-top { grid-template-columns: 1fr !important; padding: 1.5rem 1.5rem 1rem !important; }
  .cs-result { margin: 0 1.5rem 1.5rem !important; }
  .cs-bottom { padding: 0 1.5rem 1.8rem !important; }
  .capabilities { padding: 3rem 1.5rem !important; }
  .cap-grid { grid-template-columns: 1fr !important; }

  /* Contact page */
  .contact-section { grid-template-columns: 1fr !important; gap: 2.5rem !important; padding: 3rem 1.5rem !important; }
  .expect-card { position: static !important; }
  .service-area { padding: 3rem 1.5rem !important; }
  .states { gap: 0.6rem; }

  /* Values grid */
  .values { padding: 3rem 1.5rem !important; }
  .values-grid { grid-template-columns: 1fr !important; }

  /* Legacy / about section */
  .legacy { grid-template-columns: 1fr !important; gap: 2.5rem !important; padding: 3rem 1.5rem !important; }

  /* Hero actions - stack buttons */
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .btn-primary { width: 100%; text-align: center; }

  /* Diagnostic card full width */
  .diagnostic-card { max-width: 100%; }
}
