:root {
  --ink: #111b46;
  --ink-soft: #5f6d88;
  --blue: #2f70d3;
  --blue-dark: #245cb7;
  --blue-pale: #eaf2ff;
  --orange: #f47b36;
  --green: #41a878;
  --line: #d9dfeb;
  --soft: #f6f8fc;
  --white: #ffffff;
  --shadow: 0 18px 44px rgba(31, 60, 109, .12);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }

.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(217,223,235,.75);
  backdrop-filter: blur(16px);
}
.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 0; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { display: none; }
.brand::before { content: ""; display: block; width: 218px; height: 48px; background: url("/assets/david-sacramento-logo.webp") center / contain no-repeat; }
.brand-name { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: .9rem; font-weight: 650; color: #39496b; }
.nav-links a { transition: color .2s ease; }
.nav-links a:hover { color: var(--blue); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.language { display: inline-flex; align-items: center; gap: 7px; color: var(--blue); font-weight: 800; font-size: .83rem; }
.language span { font-size: 1rem; }
.menu-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 10px; color: var(--ink); }

.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; color: var(--blue); font-size: .78rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 55px; height: 7px; border-radius: 8px; background: linear-gradient(90deg, var(--orange) 0 43%, var(--green) 43% 100%); }
h1, h2, h3 { margin: 0; line-height: 1.02; letter-spacing: -.065em; }
h1 { font-size: clamp(3rem, 5.2vw, 5.4rem); max-width: 700px; }
h2 { font-size: clamp(2.35rem, 4.5vw, 4.45rem); }
h3 { font-size: 1.35rem; }
.lead { color: var(--ink-soft); font-size: clamp(1.06rem, 1.55vw, 1.25rem); line-height: 1.75; }
.muted { color: var(--ink-soft); }

.hero { padding: 76px 0 84px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .96fr) minmax(390px, 1.04fr); gap: 70px; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 4.25vw, 4.65rem); }
.hero h1 span { color: var(--blue); }
.hero-copy .lead { max-width: 600px; margin: 24px 0 28px; font-size: clamp(1rem, 1.35vw, 1.1rem); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 25px; border: 1.5px solid var(--blue); border-radius: 999px; color: var(--blue); background: #fff; font-size: .82rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(47,112,211,.18); }
.button.primary { color: #fff; background: var(--blue); box-shadow: 0 13px 28px rgba(47,112,211,.23); }
.button.primary:hover { background: var(--blue-dark); }
.button.small { min-height: 42px; padding: 0 17px; font-size: .72rem; }
.hero-photo { position: relative; min-height: 600px; border-radius: 30px; overflow: hidden; background: #dbe5f3; box-shadow: var(--shadow); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,27,70,.04), rgba(17,27,70,.15)); pointer-events: none; }
.hero-photo img { width: 100%; height: 100%; min-height: 600px; object-fit: cover; object-position: center 20%; }
.photo-note { position: absolute; right: 20px; bottom: 20px; z-index: 1; padding: 10px 14px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; background: rgba(17,27,70,.75); color: #fff; font-size: .77rem; font-weight: 750; backdrop-filter: blur(10px); }

.section { padding: 104px 0; }
.section.soft { background: var(--soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 44px; }
.section-head > div { width: 100%; max-width: none; }
.section-head .lead { max-width: none; margin: 22px 0 0; }
.section-head .eyebrow { margin-bottom: 20px; }
.sectors-head > div, .sectors-head .lead { max-width: none; }
.problems-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.problem { min-height: 190px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: #293756; font-size: 1rem; font-weight: 680; }
.problem-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 15px; color: var(--blue); background: var(--blue-pale); }
.problem-icon svg { width: 25px; height: 25px; }

.hub-band { padding: 30px; border-radius: 30px; background: var(--ink); color: #fff; display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; overflow: hidden; }
.hub-band .eyebrow { color: #9fc4ff; }
.hub-band h2 { max-width: 620px; }
.hub-band .lead { color: #bdc9e3; margin: 24px 0 28px; max-width: 590px; }
.hub-preview { min-height: 300px; padding: 22px; border: 1px solid rgba(255,255,255,.17); border-radius: 22px; background: linear-gradient(140deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); transform: rotate(2deg); }
.hub-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; color: #dfe8fa; font-size: .77rem; font-weight: 750; }
.hub-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 17px 0 var(--orange), 34px 0 #8db3ff; }
.hub-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hub-card { min-height: 92px; padding: 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.07); }
.hub-card strong { display: block; font-size: .85rem; }
.hub-card span { display: block; margin-top: 8px; color: #aebddd; font-size: .7rem; }

.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.product-card { display: flex; flex-direction: column; min-height: 300px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.product-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; color: var(--ink-soft); font-size: .72rem; font-weight: 750; }
.product-status { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; }
.product-card p { color: var(--ink-soft); margin: 16px 0 22px; font-size: .96rem; line-height: 1.7; }
.product-card .button { margin-top: auto; width: 100%; }
.trial { color: var(--blue); font-size: .75rem; font-weight: 800; }

.sectors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sector { min-height: 0; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; font-size: .9rem; font-weight: 800; transition: transform .2s ease, border-color .2s ease; }
.sector:hover { transform: translateY(-4px); border-color: var(--blue); }
.sector-image { display: block; width: 100%; aspect-ratio: 1.85; object-fit: cover; }
.sector-label { display: block; padding: 20px 22px 22px; }
.sector-title { display: block; color: var(--ink); font-size: 1.15rem; line-height: 1.2; }
.sector-subtitle { display: block; margin-top: 6px; color: var(--blue); font-size: .78rem; line-height: 1.35; }
.sector-description { margin: 16px 0; color: var(--ink); font-size: .9rem; font-weight: 500; line-height: 1.55; }
.sector-benefits { display: grid; gap: 9px; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .78rem; font-weight: 500; line-height: 1.4; list-style: none; }
.sector-benefits li { display: flex; align-items: flex-start; gap: 9px; }
.sector-benefits li::before { content: ""; flex: 0 0 7px; width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--orange); }
.sector-cta { display: block; margin-top: 18px; color: var(--blue); font-size: .82rem; font-weight: 800; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.process-step { padding: 24px 0 0; border-top: 2px solid var(--blue); }
.process-step b { display: block; color: var(--blue); font-size: .82rem; letter-spacing: .12em; }
.process-step h3 { margin-top: 24px; }
.process-step p { color: var(--ink-soft); margin: 15px 0 0; }

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.about-photo { min-height: 500px; overflow: hidden; border-radius: 26px; background: #dbe5f3; box-shadow: var(--shadow); }
.about-photo img { width: 100%; height: 100%; min-height: 500px; object-fit: cover; object-position: center; }
.about-copy .lead { margin: 25px 0; }
.about-copy h2 { max-width: 650px; font-size: clamp(2.1rem, 3.25vw, 3.3rem); }
.project-list { display: flex; flex-wrap: wrap; gap: 9px; margin: 26px 0 30px; }
.project-list span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: #3b4a68; background: #fff; font-size: .8rem; font-weight: 750; }

.contact-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: start; }
.contact-copy .lead { margin: 25px 0; }
.contact-details { display: grid; gap: 12px; margin-top: 30px; }
.contact-detail { padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.contact-detail small { display: block; color: var(--ink-soft); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-detail a { display: inline-block; margin-top: 4px; color: var(--blue); font-weight: 750; }
.contact-form { padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 12px 32px rgba(31,60,109,.07); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #3e4b68; font-size: .8rem; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; outline: none; color: var(--ink); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,112,211,.12); }
.honeypot { position: absolute; left: -9999px; opacity: 0; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; }
.form-note { color: var(--ink-soft); font-size: .75rem; }
.form-status { min-height: 24px; margin-top: 14px; color: var(--blue); font-size: .82rem; font-weight: 700; }

.page-hero { padding: 92px 0 74px; background: linear-gradient(135deg, var(--soft), #fff 65%); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr); gap: 70px; align-items: center; }
.page-hero h1 { font-size: clamp(3rem, 5.1vw, 5.2rem); }
.page-hero .lead { max-width: 720px; margin-top: 26px; }
.page-hero-photo { min-height: 480px; overflow: hidden; border-radius: 26px; background: #dbe5f3; box-shadow: var(--shadow); }
.page-hero-photo img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; object-position: center 18%; }
.page-content { padding: 78px 0 110px; }
.page-content .content-narrow { max-width: 830px; }
.page-content h2 { margin: 48px 0 20px; font-size: clamp(2rem, 4vw, 3.4rem); }
.page-content h3 { margin: 32px 0 10px; }
.page-content p, .page-content li { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.8; }
.page-content ul { padding-left: 22px; }
.legal-meta { margin-top: 18px; color: var(--ink-soft); font-size: .86rem; font-weight: 700; }
.legal-notice { margin: 0 0 34px; padding: 18px 20px; border: 1px solid #cfe0ff; border-radius: 16px; color: #3e5278; background: var(--blue-pale); }
.mini-products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 35px; }
.mini-products .product-card { min-height: 245px; }

.site-footer { padding: 64px 0 28px; border-top: 1px solid var(--line); background: #fbfcff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 35px; padding-bottom: 44px; }
.footer-copy { max-width: 390px; margin-top: 18px; color: var(--ink-soft); font-size: .92rem; }
.footer-col h3 { font-size: .83rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-col a { display: block; margin-top: 12px; color: var(--ink-soft); font-size: .9rem; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .78rem; }

@media (max-width: 1000px) {
  .nav-links { gap: 14px; }
  .hero-grid, .about-grid, .contact-wrap, .hub-band { gap: 35px; }
  .hero-photo, .hero-photo img { min-height: 520px; }
  .sectors-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .nav { min-height: 68px; }
  .brand::before { width: 190px; height: 42px; }
  .menu-toggle { display: inline-flex; }
  .nav-links { position: absolute; left: 14px; right: 14px; top: 74px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-actions .button { display: none; }
  .hero { padding: 54px 0 60px; }
  .hero-grid, .about-grid, .contact-wrap, .hub-band { grid-template-columns: 1fr; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 38px; }
  h1 { font-size: clamp(3.1rem, 14vw, 5rem); }
  h2 { font-size: clamp(2.2rem, 11vw, 3.5rem); }
  .hero-photo { min-height: 470px; }
  .hero-photo img { min-height: 470px; }
  .section { padding: 72px 0; }
  .section-head { display: block; margin-bottom: 30px; }
  .problems-grid, .products-grid, .process-grid, .mini-products { grid-template-columns: 1fr; }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-preview { transform: none; }
  .about-photo, .about-photo img { min-height: 380px; }
  .page-hero-photo, .page-hero-photo img { min-height: 420px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .form-footer, .footer-bottom { display: block; }
  .form-footer .button { margin-top: 14px; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
  .footer-bottom > * { margin-top: 10px; }
}
@media (max-width: 640px) {
  .sectors-grid { grid-template-columns: 1fr; }
}
