/* Humphrey Enterprise Software — site styles */

:root {
  --navy: #14213d;
  --navy-deep: #0c1529;
  --gold: #b8923a;
  --gold-soft: #e6d3a3;
  --cream: #f7f4ee;
  --paper: #ffffff;
  --ink: #1c1f26;
  --ink-soft: #4b5060;
  --line: #e3ded3;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 33, 61, 0.10);
  --font-head: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max: 1120px;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; color: var(--navy); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-intro { color: var(--ink-soft); font-size: 1.05rem; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9em;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  border: 1.5px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: rgba(20, 33, 61, 0.06); }
.btn-block { display: block; text-align: center; width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--navy); color: var(--gold-soft);
  font-family: var(--font-head); font-size: 1.35rem; font-weight: 600;
  display: grid; place-items: center;
}
.brand-text { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; line-height: 1.1; }
.brand-text span { display: block; font-family: var(--font-body); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--ink); }
.site-nav a:hover { color: var(--navy); }
.nav-cta { padding: 0.5rem 1.1rem; border-radius: 999px; background: var(--navy); color: #fff !important; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 7vw, 88px); background: linear-gradient(180deg, #fbf9f5 0%, var(--cream) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-panel { position: relative; display: grid; gap: 16px; }
.panel-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow);
}
.panel-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 0.95rem; border-bottom: 1px dashed var(--line); }
.panel-row:last-child { border-bottom: 0; }
.panel-row.muted { color: var(--ink-soft); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--navy); flex: none; }
.dot-gold { background: var(--gold); box-shadow: 0 0 0 4px rgba(184, 146, 58, 0.18); }
.dot-empty { background: transparent; border: 2px solid var(--line); }
.panel-card-secondary { margin-left: 15%; background: var(--navy); border-color: var(--navy); color: #fff; }
.panel-stat { display: flex; justify-content: space-between; align-items: baseline; }
.panel-stat-label { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-soft); }
.panel-stat-value { font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; }

/* Trust bar */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.trust-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding: 20px 0; }
.trust-row p { margin: 0; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.trust-row ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.trust-row li { font-family: var(--font-head); font-size: 0.95rem; font-weight: 600; color: var(--navy); }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.product {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(20, 33, 61, 0.06); color: var(--navy); display: grid; place-items: center; margin-bottom: 18px; }
.product-icon svg { width: 24px; height: 24px; }
.product h3 { margin-bottom: 0.2em; }
.product-tag { font-size: 0.85rem; color: var(--gold); font-weight: 600; margin-bottom: 0.9em; }
.product > p:not(.product-tag) { color: var(--ink-soft); }
.product-points { margin: 0 0 1.2em; padding-left: 1.1em; color: var(--ink); font-size: 0.95rem; }
.product-points li { margin-bottom: 0.3em; }
.product-link { margin-top: auto; font-weight: 600; font-size: 0.9rem; text-decoration: none; border-bottom: 1.5px solid var(--gold-soft); align-self: flex-start; }
.product-link:hover { border-color: var(--gold); }

/* Approach */
.section-dark { background: var(--navy); color: #e9e6df; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--gold-soft); }
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 48px; }
.pillar { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 22px; }
.pillar-num { font-family: var(--font-head); color: var(--gold-soft); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; display: block; margin-bottom: 10px; }
.pillar p { color: rgba(233, 230, 223, 0.8); margin: 0; }

/* Founder */
.founder-grid { display: grid; grid-template-columns: 400px 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.founder-photo { margin: 0; position: relative; }
.founder-photo img { border-radius: var(--radius); box-shadow: var(--shadow); }
.founder-photo::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 1.5px solid var(--gold-soft); border-radius: var(--radius); z-index: -1;
}
.founder-title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; color: var(--gold); margin-bottom: 1.2em; }
.founder-copy p { color: var(--ink-soft); }
.founder-copy blockquote { margin: 1.6em 0 0; padding-left: 20px; border-left: 3px solid var(--gold); }
.founder-copy blockquote p { font-family: var(--font-head); font-size: 1.15rem; font-weight: 500; color: var(--navy); margin: 0; }

/* Contact */
.section-contact { background: var(--paper); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.contact-card dl { margin: 0 0 24px; display: grid; gap: 18px; }
.contact-card dt { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.contact-card dd { margin: 0; font-size: 1.05rem; }
.contact-card dd a { text-decoration: none; font-weight: 500; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 28px 0; }
.footer-row p { margin: 0; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,0.8); text-decoration: none; }
.footer-links a:hover { color: var(--gold-soft); }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .founder-grid, .contact-grid { grid-template-columns: 1fr; }
  .founder-grid { max-width: 640px; }
  .founder-photo { max-width: 400px; }
  .hero-panel { max-width: 520px; }
}
@media (max-width: 720px) {
  .product-grid, .pillars { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 10px; text-align: center; border-bottom: 0 !important; }
  .brand-text span { display: none; }
  .panel-card-secondary { margin-left: 0; }
  .founder-photo::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .product { transition: none; }
}
