/* ==========================================================================
   ADU MEP Plans — Global Stylesheet
   Clean, professional, California ADU MEP brand
   ========================================================================== */

:root {
  /* Brand: California-ADU green over deep navy (matches home page) */
  --navy: #1D4354;
  --navy-700: #16384a;
  --blue: #14A800;      /* primary = green */
  --blue-600: #108A00;  /* primary hover */
  --blue-50: #f0faf0;   /* light green tint */
  --teal: #0e8f58;      /* secondary green (gradients) */
  --ink: #16252e;
  --body: #3c4858;
  --muted: #2f353c;
  --line: #e7ebe9;
  --bg: #ffffff;
  --bg-soft: #f6f8f7;
  --bg-soft-2: #eef2f0;
  --gold: #f4b740;
  --success: #14A800;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 35, 60, .06), 0 1px 3px rgba(16, 35, 60, .08);
  --shadow-md: 0 6px 24px rgba(16, 35, 60, .10);
  --shadow-lg: 0 18px 50px rgba(16, 35, 60, .16);
  --maxw: 1520px;
  /* Times New Roman for headers; Arial for body/article/answer text */
  --font-head: "Times New Roman", Times, Georgia, serif;
  --font-body: Arial, Helvetica, sans-serif;
  --font: var(--font-body); /* legacy alias — defaults to body font */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; font-family: var(--font-head); letter-spacing: -.01em; }
h1 span, h2 span, h3 span, h4 span, h5 span, h6 span { font-family: inherit; }
button, input, select, textarea { font-family: Arial, Helvetica, sans-serif; }
.answer-prose h2, .answer-prose h3, .answer-prose h4, .acc-panel-inner h2, .acc-panel-inner h3, .acc-panel-inner h4, .acc-body h3, .acc-body h4, .article-content h3, .article-content h4 { font-family: Arial, Helvetica, sans-serif; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: var(--navy); color: #d7e0ec; }
.section--navy h2, .section--navy h3 { color: #fff; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--blue); margin: 0 0 .6rem; }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 14px 26px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(20,168,0,.28); }
.btn-primary:hover { background: var(--blue-600); }
.btn-secondary { background: #fff; color: #000; border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: #c7d2e0; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header / Nav (shared green header — matches home page) ---------- */
header.site-nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; height: 68px; padding: 0 40px; max-width: 1520px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo .lw { font-size: 18px; font-weight: 800; letter-spacing: .04em; color: #000; font-family: var(--font-head); text-transform: uppercase; }
.logo .ls { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; color: var(--muted); font-family: var(--font-body); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 28px; margin: 0 28px 0 0; padding: 0; list-style: none; }
.nav-links > a, .has-drop > a { font-size: 14px; font-weight: 600; color: #000; transition: color .12s; display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-body); cursor: pointer; }
.nav-links > a:hover, .has-drop > a:hover { color: var(--blue); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--blue); }
/* Order Now button inside the nav (2nd item) */
.nav-links > a.nav-order { background: var(--blue); color: #fff; padding: 9px 18px; border-radius: 8px; font-weight: 700; box-shadow: 0 4px 14px rgba(20,168,0,.28); }
.nav-links > a.nav-order:hover { background: var(--blue-600); color: #fff; }
.has-drop { position: relative; }
.has-drop > a .caret { transition: transform .18s; }
.has-drop:hover > a .caret { transform: rotate(180deg); }
.drop {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 252px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 44px rgba(29,67,84,.13); padding: 8px; opacity: 0; visibility: hidden;
  transition: opacity .16s ease, transform .16s ease; z-index: 80;
}
.has-drop::after { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 14px; }
.has-drop:hover .drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.drop a { display: block; padding: 10px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: #000; transition: background .12s, color .12s; font-family: var(--font-body); }
.drop a:hover { background: var(--blue-50); color: var(--blue); text-decoration: none; }
.drop a span { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 1px; }
/* nav-right holds the Order button on the far right (always visible) */
.nav-right { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.nav-cta { background: var(--blue); color: #fff; padding: 11px 22px; border-radius: 8px; font-size: 14px; font-weight: 700; white-space: nowrap; box-shadow: 0 4px 14px rgba(20,168,0,.28); transition: background .14s; font-family: var(--font-body); display: inline-flex; align-items: center; }
.nav-cta:hover { background: var(--blue-600); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }
/* footer brand still uses .brand */
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #000; font-size: 1.18rem; letter-spacing: -.01em; font-family: var(--font-head); flex-shrink: 0; margin-right: auto; }
.brand:hover { text-decoration: none; }
.brand-accent { color: var(--blue); }
.brand .brand-ico { width: 34px; height: 34px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-word { font-size: 1.18rem; font-weight: 800; }
.brand-tag { font-size: .62rem; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; font-family: var(--font-body); }
.drop-divider { height: 1px; background: var(--line); margin: 7px 10px; }
.brand small { display: block; font-weight: 500; font-size: .7rem; color: var(--muted); letter-spacing: .02em; }

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 55%, #1d4f6b 100%); color: #fff; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 400px at 80% -10%, rgba(20,168,0,.35), transparent 60%); }
.hero-inner { position: relative; z-index: 1; padding: 90px 0 80px; max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero .price-pop { color: var(--gold); }
.hero p { font-size: 1.18rem; color: #c9d6e6; margin-bottom: 1.8rem; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.trustbar ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; list-style: none; margin: 0; padding: 20px; }
.trustbar li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.trustbar .check { color: var(--success); font-weight: 800; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .96rem; margin-bottom: 1rem; }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue); font-size: 1.4rem; margin-bottom: 16px;
}
.card .arrow-link { font-weight: 600; font-size: .92rem; }

/* steps */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); }
.step .num {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: #166534; color: #fff; font-weight: 700; font-size: 1.05rem;
}
.step h3 { margin-bottom: .25rem; }
.step p { margin: 0; color: var(--muted); }

/* ---------- Pricing ---------- */
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--blue); box-shadow: var(--shadow-md); }
.price-card .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.price-card h3 { font-size: 1.15rem; }
.price-card .amount { font-size: 2.2rem; font-weight: 800; color: #000; margin: 6px 0 2px; }
.price-card .amount small { font-size: .9rem; font-weight: 600; color: var(--muted); display: block; }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 22px; }
.price-card li { padding: 7px 0 7px 26px; position: relative; font-size: .94rem; color: var(--body); border-bottom: 1px solid var(--bg-soft-2); }
.price-card li:before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 800; }
.price-card .btn { margin-top: auto; }

table.matrix { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
table.matrix caption { text-align: left; font-weight: 700; color: var(--ink); padding: 16px 18px; font-size: 1.05rem; background: var(--bg-soft); }
table.matrix th, table.matrix td { padding: 13px 18px; text-align: left; border-top: 1px solid var(--line); font-size: .95rem; }
table.matrix th { background: var(--navy); color: #fff; font-weight: 600; border: 0; }
table.matrix tbody tr:nth-child(even) { background: var(--bg-soft); }
table.matrix td:last-child { font-weight: 700; color: #000; }

.addon-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.addon-list li { display: flex; justify-content: space-between; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; box-shadow: var(--shadow-sm); }
.addon-list .price { font-weight: 700; color: var(--blue); white-space: nowrap; }

/* ---------- FAQ / Accordion ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-cat { margin-bottom: 40px; }
.faq-cat > h2 { font-size: 1.35rem; padding-bottom: 10px; border-bottom: 2px solid var(--blue-50); margin-bottom: 12px; text-align: center; }
.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.accordion + .accordion { margin-top: 0; }
.acc-item { border-top: 1px solid var(--line); }
.acc-item:first-child { border-top: 0; }
.acc-trigger {
  width: 100%; text-align: left; background: #fff; border: 0; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 1.02rem; color: var(--ink);
  padding: 18px 52px 18px 22px; position: relative; display: block;
}
.acc-trigger:hover { background: var(--bg-soft); }
.acc-trigger .plus { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; }
.acc-trigger .plus:before, .acc-trigger .plus:after { content: ""; position: absolute; background: var(--blue); border-radius: 2px; transition: transform .2s; }
.acc-trigger .plus:before { top: 7px; left: 0; width: 16px; height: 2px; }
.acc-trigger .plus:after { left: 7px; top: 0; width: 2px; height: 16px; }
.acc-item.open .acc-trigger .plus:after { transform: scaleY(0); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.acc-panel-inner { padding: 0 22px 20px; color: var(--muted); }
.acc-panel-inner .soon { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--blue); background: var(--blue-50); padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; }
.acc-panel-inner p { margin: 0 0 .85rem; color: var(--body); }
.acc-panel-inner p:last-of-type { margin-bottom: 0; }
.acc-panel-inner strong { color: var(--ink); }
.acc-panel-inner ul, .acc-panel-inner ol { margin: 0 0 .85rem; padding-left: 1.2rem; color: var(--body); }
.acc-panel-inner li { margin-bottom: .3rem; }
.acc-panel-inner a:not(.acc-cta) { color: var(--blue); font-weight: 600; }
.acc-panel-inner table { width: 100%; border-collapse: collapse; margin: 4px 0 .9rem; font-size: .92rem; }
.acc-panel-inner th, .acc-panel-inner td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.acc-panel-inner th { background: var(--bg-soft); color: var(--ink); font-weight: 700; }
.acc-cta {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
  font-weight: 600; font-size: .9rem; color: #fff; background: var(--blue);
  padding: 9px 18px; border-radius: 8px; box-shadow: 0 4px 12px rgba(20,168,0,.22);
  transition: background .15s, transform .12s;
}
.acc-cta:hover { background: var(--blue-600); text-decoration: none; transform: translateY(-1px); }

/* ---------- Question list (links to dedicated answer pages) ---------- */
.q-list { display: flex; flex-direction: column; gap: 10px; }
.q-link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 17px 20px; font-weight: 600; font-size: 1rem; color: var(--ink);
  box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, transform .12s, color .15s;
}
.q-link:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; transform: translateX(2px); box-shadow: var(--shadow-md); }
.q-link .q-arrow { flex-shrink: 0; color: var(--blue); }

/* ---------- Single answer page ---------- */
.answer-wrap { max-width: 820px; margin: 0 auto; }
.return-btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem;
  color: var(--blue); background: var(--blue-50); border: 1px solid #cdeccd;
  padding: 10px 18px; border-radius: 9px; margin-bottom: 26px; transition: background .15s, color .15s;
}
.return-btn:hover { background: var(--blue); color: #fff; text-decoration: none; }
.answer-prose { font-size: 1.05rem; }
.answer-prose p { color: var(--body); margin: 0 0 1rem; }
.answer-prose ul, .answer-prose ol { color: var(--body); margin: 0 0 1rem; padding-left: 1.2rem; }
.answer-prose li { margin-bottom: .35rem; }
.answer-prose strong { color: var(--ink); }
.answer-prose .soon { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--blue); background: var(--blue-50); padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; }
.answer-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 38px; }
.answer-prose h2 { font-size: 1.5rem; margin: 2rem 0 .7rem; }
.answer-prose h3 { font-size: 1.18rem; margin: 1.7rem 0 .55rem; color: #000; }
.answer-prose h2:first-child, .answer-prose h3:first-child { margin-top: 0; }
.answer-prose a { color: var(--blue); font-weight: 600; }
.answer-prose table { width: 100%; border-collapse: collapse; margin: 6px 0 1.3rem; font-size: .95rem; }
.answer-prose th, .answer-prose td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; vertical-align: top; }
.answer-prose th { background: var(--bg-soft); color: var(--ink); font-weight: 700; }
.answer-prose blockquote { margin: 0 0 1.1rem; padding: 13px 18px; border-left: 4px solid var(--blue); background: var(--bg-soft); color: var(--body); border-radius: 0 8px 8px 0; }
.answer-prose blockquote p:last-child { margin-bottom: 0; }

/* ---------- Resources hub ---------- */
.res-section { margin: 0 0 50px; }
.res-section:last-child { margin-bottom: 0; }
.res-shead { margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--blue-50); text-align: center; }
.res-shead h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin: 0 0 5px; }
.res-shead p { margin: 0 auto 8px; color: #111; max-width: 760px; }
.res-viewall { font-weight: 700; font-size: .9rem; color: var(--blue); }
.res-viewall:hover { text-decoration: underline; }
.res-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.res-card { display: flex; flex-direction: column; gap: 5px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, transform .12s; }
.res-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.res-card .rt { font-family: var(--font-head); font-weight: 700; font-size: 1.06rem; color: var(--ink); line-height: 1.25; }
.res-card:hover .rt { color: var(--blue); }
.res-card .rd { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.res-card .rm { font-size: .85rem; font-weight: 700; color: var(--blue); margin-top: auto; padding-top: 4px; }
.checklist { list-style: none; padding: 0; margin: 0 auto; max-width: 860px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }
.checklist li { position: relative; padding-left: 30px; font-weight: 600; color: var(--ink); }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 20px; height: 20px; color: var(--blue); font-weight: 800; }
@media (max-width: 760px) { .res-cards { grid-template-columns: 1fr; } .checklist { grid-template-columns: 1fr; } }

/* ---------- Page hero (interior pages) — light green clean style ---------- */
.page-hero { background: linear-gradient(180deg, #ecf8ea 0%, #f4fbf3 55%, #ffffff 100%); color: var(--ink); padding: 22px 0 34px; border-bottom: 1px solid var(--line); text-align: center; }
.page-hero + .section { padding-top: 40px; }
.page-pill, .pill, .section-label { display: inline-block; background: #f0faf4; color: #111; border: 1px solid #bbf7d0; font-family: Arial, Helvetica, sans-serif; font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 14px; }
.page-hero h1 { color: var(--ink); margin: 0 auto 16px; max-width: 1180px; }
.page-hero h1 .accent { color: var(--blue); }
.page-hero p { color: #111; font-size: 1.15rem; max-width: 820px; margin: 0 auto; line-height: 1.6; }
.hero-trust { list-style: none; display: flex; gap: 12px 26px; flex-wrap: wrap; justify-content: center; margin: 20px 0 0; padding: 0; }
.hero-trust li { position: relative; padding-left: 24px; font-weight: 700; color: #000; font-size: .95rem; }
.hero-trust li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }
/* compact, centered page hero (used on the pricing configurator) */
.page-hero--sm { padding: 30px 0 28px; text-align: center; }
.page-hero--sm h1 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin: 0 auto 10px; max-width: 720px; }
.page-hero--sm p { font-size: 1rem; margin: 0 auto; max-width: 600px; }
/* Full-width breadcrumb/back bar — Back button aligns with the nav logo (28px) */
.crumb-bar { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; padding: 11px 28px; background: #fff; border-bottom: 1px solid var(--line); }
.crumb-bar .breadcrumb { margin-bottom: 0; }
.hero-back { display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1px solid var(--line); color: #000; font-weight: 700; font-size: .76rem; padding: 5px 11px; border-radius: 7px; box-shadow: var(--shadow-sm); transition: border-color .15s, color .15s; }
.hero-back:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
@media (max-width: 560px) { .crumb-bar { padding: 10px 16px; } }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: #000; font-weight: 600; }
.breadcrumb a:hover { color: var(--blue); }

/* ---------- Global Back button (one reusable component, no breadcrumb) ---------- */
.back-bar { padding: 14px 0 0; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: #1c1c1c; font-weight: 600; font-size: .88rem; font-family: var(--font-body); background: #fbfaf6; border: 1px solid #14A800; padding: 7px 15px; border-radius: 999px; transition: background .15s, box-shadow .15s, color .15s; }
.back-link:hover { background: #ffffff; border-color: #14A800; color: #000; box-shadow: 0 2px 8px rgba(0,0,0,.10); text-decoration: none; }
.back-link svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ---------- Full-page engineering backgrounds (fixed, per-page) ---------- */
body.has-bg::before { content: ""; position: fixed; inset: 0; z-index: -2; background-size: cover; background-position: center top; background-repeat: no-repeat; }
body.has-bg::after { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(255,255,255,.62) 0%, rgba(255,255,255,.16) 55%, rgba(255,255,255,0) 100%); }
body.bg-pricing::before { background-image: url('../img/pricing-bg.png'); }
body.bg-services::before { background-image: url('../img/services-bg.png'); }
body.bg-resources::before { background-image: url('../img/resources-bg.png'); }
body.bg-articles::before { background-image: url('../img/articles-bg.png'); }
/* let the background show continuously behind content, not just the hero */
body.has-bg .page-hero { background: transparent; border-bottom: none; }
body.has-bg .section--soft { background: transparent; }
body.has-bg .pr-hero { background: transparent; border-bottom: none; }
body.has-bg .pr-hero::before, body.has-bg .pr-hero::after { display: none; }
body.has-bg .oc { background: transparent; }

/* ---------- Generic content ---------- */
.prose { max-width: 760px; }
.prose p { color: var(--body); }
.related { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.related a { display: block; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 600; color: var(--ink); box-shadow: var(--shadow-sm); }
.related a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

/* ---------- CTA band ---------- */
.cta-band { background: radial-gradient(125% 130% at 50% 26%, #1ba552 0%, #129044 48%, #0a5730 100%); color: #fff; border: none; border-radius: 18px; padding: 48px 40px; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: .4em; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 560px; margin: 0 auto 1.4rem; }
/* Green gradient "Start My Order" button inside the CTA band */
.cta-go { background: linear-gradient(180deg, #1fc406 0%, #14A800 52%, #0e8a00 100%); color: #fff; border: none; font-weight: 700; box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.cta-go:hover { background: linear-gradient(180deg, #25d40a 0%, #169f00 52%, #0d8000 100%); box-shadow: 0 11px 26px rgba(0,0,0,.27); transform: translateY(-1px); color: #fff; }
.cta-band .cta-go { background: #fff; color: #0c5e33; border: 1px solid rgba(255,255,255,.7); box-shadow: 0 10px 26px rgba(0,0,0,.28); }
.cta-band .cta-go:hover { background: #edfaf1; color: #0a4f2b; box-shadow: 0 12px 30px rgba(0,0,0,.34); transform: translateY(-1px); }

/* ---------- Footer ---------- */
.site-footer { background: #000; color: #aab9cc; padding: 56px 0 28px; font-size: .92rem; }
.site-footer .container { max-width: 1520px; padding: 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 32px; }
.footer-brand .brand-tag { color: #8c9db2; }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #aab9cc; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { color: #8c9db2; max-width: 300px; font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #7e90a6; font-size: .85rem; }

/* ---------- Order flow ---------- */
.order-steps { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 36px; }
.order-steps .pill { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--muted); }
.order-steps .pill b { width: 22px; height: 22px; border-radius: 50%; background: #cfd9e6; color: #fff; display: grid; place-items: center; font-size: .8rem; }
.order-steps .pill.active { background: var(--blue-50); border-color: var(--blue); color: var(--blue); }
.order-steps .pill.active b { background: var(--blue); }

.order-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.order-step > h2 { display: flex; align-items: baseline; gap: 12px; font-size: 1.3rem; }
.order-step > h2 .n { color: var(--blue); font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20,168,0,.12); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.check-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; cursor: pointer; transition: .15s; background: #fff; }
.check-card:hover { border-color: var(--blue); }
.check-card input { position: absolute; top: 16px; right: 16px; width: 18px; height: 18px; accent-color: var(--blue); }
.check-card h4 { margin: 0 0 4px; font-size: 1rem; }
.check-card p { margin: 0; font-size: .85rem; color: var(--muted); }
.radio-row { display: grid; gap: 12px; }
.radio-row label { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-weight: 500; }
.radio-row label:hover { border-color: var(--blue); }
.radio-row .tag { margin-left: auto; font-weight: 700; color: var(--blue); }
.upload-zone { border: 2px dashed var(--line); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--muted); background: var(--bg-soft); }
.upload-zone strong { color: var(--ink); display: block; margin-bottom: 4px; }
.summary { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.summary .row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.summary .row.total { border-bottom: 0; font-weight: 800; font-size: 1.15rem; color: #000; padding-top: 14px; }
.note { font-size: .85rem; color: var(--muted); }

/* ---------- Configurator: service selection screen ---------- */
[hidden] { display: none !important; }
.config-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 960px; margin: 0 auto; }
.config-card {
  position: relative; text-align: left; background: #fff; border: 2px solid var(--line);
  border-radius: 16px; padding: 24px 22px 22px; cursor: pointer; font: inherit; color: var(--body);
  box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s, transform .12s;
}
.config-card:hover { border-color: #b9c7da; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.config-card.selected { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(20,168,0,.12), var(--shadow-md); }
.config-card.featured { border-color: var(--blue); }
.config-card.featured.selected { border-color: var(--blue); }
.config-card.disabled { opacity: .45; pointer-events: none; }
.config-card .config-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); font-size: 1.35rem; margin-bottom: 14px; }
.config-card h3 { font-size: 1.1rem; margin-bottom: .3rem; }
.config-card p { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
.config-card .config-price { font-weight: 700; color: #000; font-size: .98rem; }
.config-card .config-badge { position: absolute; top: 14px; left: 22px; background: var(--blue); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.config-card.featured { padding-top: 40px; }
.config-card .config-check {
  position: absolute; top: 18px; right: 18px; width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--line); display: grid; place-items: center; transition: .15s; background: #fff;
}
.config-card .config-check:after { content: "✓"; color: #fff; font-size: .8rem; font-weight: 800; opacity: 0; transform: scale(.5); transition: .15s; }
.config-card.selected .config-check { background: var(--blue); border-color: var(--blue); }
.config-card.selected .config-check:after { opacity: 1; transform: scale(1); }
.config-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 34px; }
.config-hint { color: var(--muted); font-size: .9rem; margin: 0; }
.btn[disabled] { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ---------- Configurator: workspace layout ---------- */
.workspace-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.workspace-main { min-width: 0; }
.link-back { background: none; border: 0; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; padding: 0; margin-bottom: 18px; }
.link-back:hover { text-decoration: underline; }
.order-sidebar { position: sticky; top: 90px; }
.sidebar-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 24px; }
.sidebar-card h3 { font-size: 1.1rem; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sidebar-card .row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: .92rem; border-bottom: 1px dashed var(--line); }
.sidebar-card .row span:first-child { color: var(--muted); }
.sidebar-card .row span:last-child { font-weight: 600; color: var(--ink); text-align: right; }
.sidebar-card .row.total { border-bottom: 0; margin-top: 6px; padding-top: 14px; border-top: 2px solid var(--line); font-size: 1.05rem; }
.sidebar-card .row.total span { font-weight: 800; color: #000; }
.sidebar-card .row.total span:last-child { font-size: 1.35rem; }
.sidebar-card .btn { margin-top: 18px; }
.sidebar-card .secure { text-align: center; font-size: .8rem; color: var(--muted); margin: 12px 0 0; }

@media (max-width: 900px) {
  .config-grid { grid-template-columns: 1fr 1fr; }
  .workspace-layout { grid-template-columns: 1fr; }
  .order-sidebar { position: static; order: -1; }
}
@media (max-width: 560px) { .config-grid { grid-template-columns: 1fr; } }

/* ---------- Helpers ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-muted { color: var(--muted); }
.tag-pop { display: inline-block; background: var(--gold); color: #5a3d00; font-weight: 700; font-size: .74rem; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4, .price-cards, .related, .check-cards, .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* ---- Mobile navigation (hamburger menu) ---- */
@media (max-width: 1160px) {
  .nav-toggle { display: block; }
  .nav-right { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 6px 0 14px;
    background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(16,35,60,.10); max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links > a, .has-drop > a { padding: 12px 24px; width: 100%; font-size: 15px; }
  .has-drop { position: static; }
  .has-drop > a .caret { display: none; }
  .has-drop::after { display: none; }
  .has-drop .drop {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; min-width: 0; padding: 2px 0 8px 14px; background: transparent;
  }
  .drop a { padding: 9px 14px; }
  .drop a span { display: none; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 600px) { .brand-tag { display: none; } .brand .lw, .logo .lw { font-size: 16px; } }
@media (max-width: 1024px) { .container { padding: 0 28px; } }
@media (max-width: 560px) { .nav-inner { padding: 0 16px; } .container { padding: 0 16px; } }
@media (max-width: 680px) {
  .section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4, .price-cards, .related, .check-cards, .field-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 64px 0 56px; }
  .cta-band { padding: 36px 22px; }
  /* wide data tables scroll inside their column instead of overflowing the page */
  .matrix { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
}


/* ---------- Pricing disclaimer + article "Ready to Get Started" block ---------- */
.price-note { display: flex; align-items: flex-start; gap: 12px; background: #effaf1; border: 1px solid #bfe6cb; border-left: 4px solid #14A800; border-radius: 10px; padding: 14px 18px; font-size: .95rem; line-height: 1.55; color: #1c1c1c; max-width: 760px; margin: 18px auto; text-align: left; }
.price-note strong { color: #111; }
.price-note .pn-ico { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; }
.ready-block { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; padding: 38px 40px; text-align: center; max-width: 880px; margin: 0 auto; }
.ready-block h2 { margin-bottom: .5em; }
.ready-block > p { color: var(--muted); max-width: 720px; margin: 0 auto 1rem; }
.ready-block .price-note { margin: 8px auto 20px; }
.ready-checks { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; padding: 0; margin: 0 0 24px; }
.ready-checks li { position: relative; padding-left: 24px; font-weight: 700; color: #111; font-size: .95rem; }
.ready-checks li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }
.footer-note { border-top: 1px solid rgba(255,255,255,.12); margin-top: 26px; padding-top: 18px; font-size: .82rem; color: #9fb0c2; line-height: 1.6; }
.footer-note strong { color: #d7e0ec; }
