/* =========================================================
   ALTORZ — MULTI-PAGE ADDITIONS
   Shared nav dropdown, page heroes and service-page components.
   Loaded after main.css on every page.
   ========================================================= */

/* ---------- Nav: fixes + dropdown + active state ---------- */
.nav-cta svg { width: 14px; height: 14px; }
.nav-cta { white-space: nowrap; }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -8px;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.nav-dd { position: relative; }
.nav-dd-btn {
  font-size: 14px; color: var(--text-dim); font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px; padding: 0;
}
.nav-dd-btn:hover, .nav-dd.open .nav-dd-btn, .nav-dd-btn.active { color: var(--text); }
.nav-dd-btn svg { width: 12px; height: 12px; transition: transform .2s; }
.nav-dd.open .nav-dd-btn svg { transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute; top: calc(100% + 18px); left: -20px; min-width: 320px;
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius);
  padding: 10px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .18s ease;
}
.nav-dd:hover .nav-dd-menu, .nav-dd.open .nav-dd-menu { opacity: 1; visibility: visible; transform: none; }
.nav-dd-menu::before { content: ''; position: absolute; top: -20px; left: 0; right: 0; height: 20px; }
.nav-dd-menu a {
  display: block; padding: 12px 14px; border-radius: 10px; color: var(--text);
}
.nav-dd-menu a:hover, .nav-dd-menu a.active { background: var(--panel-2); }
.nav-dd-menu a.active::after { display: none; }
.nav-dd-menu strong { display: block; font-size: 14px; font-weight: 600; }
.nav-dd-menu small { display: block; font-size: 12px; color: var(--text-dim); margin-top: 2px; font-weight: 400; }
.nav-dd-menu .dd-all { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 14px; font-size: 13px; color: var(--accent); }
@media (max-width: 880px) {
  .nav.menu-open .nav-links { max-height: calc(100vh - 70px); overflow-y: auto; }
  .nav-dd { width: 100%; }
  .nav-dd-btn { display: none; }
  .nav-dd-menu {
    position: static; opacity: 1; visibility: visible; transform: none; min-width: 0;
    background: none; border: 0; box-shadow: none; padding: 0 0 0 0;
  }
  .nav-dd-menu::before { display: none; }
  .nav-dd-menu a { padding: 8px 0; }
  .nav-dd-menu small { display: none; }
  .nav-dd-menu .dd-all { border: 0; margin: 0; padding: 8px 0; }
  .nav-links a.active::after { display: none; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 150px 0 72px; position: relative; }
.page-hero .eyebrow { display: inline-block; margin-bottom: 20px; }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.025em;
  max-width: 980px; margin-bottom: 24px;
}
.page-hero h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.page-hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-dim); max-width: 720px; line-height: 1.6; margin-bottom: 32px; }
.page-hero .hero-actions { margin-top: 0; }
.crumbs { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); margin-bottom: 28px; letter-spacing: .04em; }
.crumbs a { color: var(--text-dim); }
.crumbs a:hover { color: var(--accent); }

/* in-page chips */
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 36px; }
.chip {
  font-size: 13px; padding: 9px 16px; border: 1px solid var(--border-2); border-radius: 999px;
  color: var(--text-dim); transition: all .2s;
}
.chip:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Generic blocks ---------- */
.pg-shot { width: 100%; display: block; border: 1px solid var(--border-2); border-radius: var(--radius-sm); box-shadow: var(--shadow-md); }
.pg-caption { font-size: 13px; color: var(--text-dim); margin-top: 12px; line-height: 1.5; }
.pg-notice {
  margin-top: 32px; padding: 18px 22px; border: 1px solid var(--border-2); border-left: 3px solid var(--accent);
  background: var(--panel); border-radius: var(--radius-sm); font-size: 14px; color: var(--text-dim); line-height: 1.6; max-width: 900px;
}
.pg-notice strong { color: var(--text); font-weight: 600; }
.pg-hero-shot { margin-top: 56px; }

.pg-split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; padding: 56px 0; border-top: 1px solid var(--border); }
.pg-split:first-of-type { border-top: 0; padding-top: 0; }
.pg-split h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; margin-bottom: 16px; }
.pg-split p { color: var(--text-dim); font-size: 16px; line-height: 1.65; margin-bottom: 12px; }
.pg-num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .14em; margin-bottom: 14px; }
.pg-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 880px) {
  .pg-split { grid-template-columns: 1fr; gap: 28px; }
  .pg-trio { grid-template-columns: 1fr; }
}

/* card grid (no prices) */
.pg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.pg-grid.two { grid-template-columns: repeat(2, 1fr); }
.pg-grid.four { grid-template-columns: repeat(4, 1fr); }
.pg-card { background: var(--bg-2); padding: 30px 28px; }
.pg-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 21px; margin-bottom: 10px; line-height: 1.25; }
.pg-card p { color: var(--text-dim); font-size: 15px; line-height: 1.6; }
.pg-card .service-icon { margin-bottom: 18px; }
@media (max-width: 980px) { .pg-grid, .pg-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .pg-grid, .pg-grid.two, .pg-grid.four { grid-template-columns: 1fr; } }

/* numbered problem list */
.pg-list { list-style: none; max-width: 880px; }
.pg-list li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 20px 0; border-top: 1px solid var(--border); font-size: 17px; line-height: 1.55; }
.pg-list li:last-child { border-bottom: 1px solid var(--border); }
.pg-list li span { font-family: var(--font-mono); font-size: 13px; color: var(--accent); padding-top: 3px; }

/* flow (step chain) */
.pg-flow { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; counter-reset: flow; }
.pg-flow.five { grid-template-columns: repeat(5, 1fr); }
.pg-flow.four { grid-template-columns: repeat(4, 1fr); }
.pg-flow > div { position: relative; padding: 24px 20px; background: var(--panel); border: 1px solid var(--border-2); border-radius: var(--radius); }
.pg-flow > div::before {
  counter-increment: flow; content: counter(flow, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 12px; color: var(--accent); display: block; margin-bottom: 12px; letter-spacing: .1em;
}
.pg-flow h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; line-height: 1.3; }
.pg-flow p { font-size: 14px; color: var(--text-dim); line-height: 1.55; }
.pg-flow > div.hl { border-color: var(--accent); box-shadow: var(--shadow-accent); }
@media (max-width: 1100px) { .pg-flow, .pg-flow.five { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .pg-flow, .pg-flow.five, .pg-flow.four { grid-template-columns: 1fr; } }

/* stats */
.pg-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.pg-stats.three { grid-template-columns: repeat(3, 1fr); }
.pg-stats > div { background: var(--bg); padding: 26px 20px; text-align: center; }
.pg-stats .num { font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); color: var(--accent); line-height: 1; }
.pg-stats .lbl { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); letter-spacing: .12em; text-transform: uppercase; margin-top: 10px; }
@media (max-width: 680px) { .pg-stats, .pg-stats.three { grid-template-columns: repeat(2, 1fr); } }

/* tabs (industry explorer) */
.pg-tabs { display: grid; grid-template-columns: 280px 1fr; gap: 0; border: 1px solid var(--border-2); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.pg-tablist { display: flex; flex-direction: column; border-right: 1px solid var(--border-2); background: var(--bg); }
.pg-tab {
  text-align: left; padding: 15px 20px; font-size: 14px; color: var(--text-dim); font-weight: 500;
  border-bottom: 1px solid var(--border); transition: all .15s; display: flex; gap: 12px; align-items: center;
}
.pg-tab:last-child { border-bottom: 0; }
.pg-tab span { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }
.pg-tab:hover { color: var(--text); background: var(--panel); }
.pg-tab.active { color: var(--bg); background: var(--accent); }
.pg-tab.active span { color: var(--bg); }
.pg-panel { padding: 36px 40px; display: none; }
.pg-panel.active { display: block; animation: fadeIn .25s ease; }
.pg-panel h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 14px; }
.pg-pain { color: var(--text-dim); font-size: 15px; line-height: 1.6; margin-bottom: 24px; padding: 14px 18px; background: var(--panel); border-radius: var(--radius-sm); border-left: 3px solid var(--warn); }
.pg-pain strong { color: var(--text); }
.pg-feats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.pg-feats li { padding: 11px 0 11px 22px; border-bottom: 1px solid var(--border); font-size: 15px; position: relative; line-height: 1.45; }
.pg-feats li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }
.pg-mob-select { display: none; }
@media (max-width: 880px) {
  .pg-tabs { grid-template-columns: 1fr; }
  .pg-tablist { display: none; }
  .pg-mob-select { display: block; padding: 20px 20px 0; }
  .pg-panel { padding: 24px 20px 28px; }
  .pg-feats { grid-template-columns: 1fr; }
}

/* screenshot gallery */
.pg-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pg-gallery figure { margin: 0; }
.pg-gallery figure.wide { grid-column: 1 / -1; }
@media (max-width: 820px) { .pg-gallery { grid-template-columns: 1fr; } }

/* phone strip */
.pg-phones { display: flex; gap: 24px; overflow-x: auto; padding: 10px 2px 24px; scroll-snap-type: x mandatory; }
.pg-phones figure { flex: 0 0 220px; margin: 0; scroll-snap-align: start; }
.pg-phones img { width: 100%; border-radius: 20px; border: 1px solid var(--border-2); box-shadow: var(--shadow-md); }
.pg-phones figcaption { font-size: 12px; color: var(--text-dim); text-align: center; margin-top: 12px; }

/* build block (two web apps under one roof) */
.build-block { border: 1px solid var(--border-2); border-radius: var(--radius-lg); background: var(--bg-2); padding: clamp(28px, 4vw, 56px); margin-bottom: 40px; scroll-margin-top: 90px; }
.build-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.build-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.build-head h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; max-width: 760px; }
.build-head p { color: var(--text-dim); font-size: 16px; line-height: 1.65; max-width: 760px; margin-top: 16px; }
.build-sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); margin: 40px 0 18px; }
.pins { font-family: var(--font-mono); font-size: 13px; color: var(--text-dim); margin-top: 14px; }

/* home: service cards */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc-card {
  display: flex; flex-direction: column; padding: 30px 26px; background: var(--bg-2);
  border: 1px solid var(--border-2); border-radius: var(--radius-lg); transition: all .25s; position: relative;
}
.svc-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-accent); }
.svc-num { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); letter-spacing: .14em; margin-bottom: 20px; }
.svc-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1.15; margin-bottom: 10px; }
.svc-card .tag { font-size: 14px; color: var(--accent); margin-bottom: 14px; }
.svc-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; margin-bottom: 18px; }
.svc-card ul { list-style: none; margin-bottom: 24px; flex: 1; }
.svc-card li { font-size: 13px; padding: 7px 0; border-top: 1px solid var(--border); color: var(--text); }
.svc-card .go { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--accent); }
.svc-card .go svg { width: 14px; height: 14px; transition: transform .2s; }
.svc-card:hover .go svg { transform: translateX(4px); }
@media (max-width: 1100px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .svc-grid { grid-template-columns: 1fr; } }

/* home: proof tiles */
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.proof-tile { display: block; border: 1px solid var(--border-2); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-2); transition: all .25s; }
.proof-tile:hover { border-color: var(--accent); transform: translateY(-4px); }
.proof-img { aspect-ratio: 16/10; overflow: hidden; background: var(--panel); }
.proof-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.proof-body { padding: 22px 24px 26px; }
.proof-body .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.proof-body h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; margin-bottom: 8px; line-height: 1.2; }
.proof-body p { font-size: 14px; color: var(--text-dim); line-height: 1.55; }
@media (max-width: 980px) { .proof-grid { grid-template-columns: 1fr; } }

/* home: compact steps */
.mini-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.mini-steps > div { background: var(--bg); padding: 28px 24px; }
.mini-steps .n { font-family: var(--font-mono); font-size: 12px; color: var(--accent); margin-bottom: 14px; }
.mini-steps h4 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.mini-steps p { font-size: 14px; color: var(--text-dim); line-height: 1.55; }
.mini-steps small { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); margin-top: 12px; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 980px) { .mini-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mini-steps { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band {
  padding: clamp(40px, 6vw, 72px); border: 1px solid var(--border-2); border-radius: var(--radius-xl);
  background: radial-gradient(ellipse 70% 120% at 100% 0%, rgba(201,255,91,0.10), transparent 60%), var(--bg-2);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.cta-band h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.02em; }
.cta-band h2 em { font-style: italic; color: var(--accent); font-weight: 400; }
.cta-band p { color: var(--text-dim); font-size: 16px; line-height: 1.6; margin-top: 16px; }
.cta-band .actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cta-band .actions .btn { justify-content: center; }
.cta-band .small { font-size: 13px; color: var(--text-faint); text-align: center; }
@media (max-width: 880px) { .cta-band { grid-template-columns: 1fr; } }

/* decision table */
.pg-decide { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pg-decide > div { padding: 30px; background: var(--bg-2); border: 1px solid var(--border-2); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); }
.pg-decide h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.pg-decide ul { list-style: none; }
.pg-decide li { padding: 10px 0; border-top: 1px solid var(--border); font-size: 15px; }
@media (max-width: 760px) { .pg-decide { grid-template-columns: 1fr; } }

/* simple faq (static) */
.pg-faq { max-width: 900px; }
.pg-faq details { border-top: 1px solid var(--border); }
.pg-faq details:last-child { border-bottom: 1px solid var(--border); }
.pg-faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-size: 18px; font-weight: 500; position: relative; }
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after { content: '+'; position: absolute; right: 4px; top: 18px; font-size: 24px; color: var(--accent); transition: transform .2s; }
.pg-faq details[open] summary::after { transform: rotate(45deg); }
.pg-faq details p { color: var(--text-dim); font-size: 16px; line-height: 1.65; padding: 0 0 22px; max-width: 780px; }

/* contact page extras */
.hours-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hours-grid > div { padding: 24px; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius); }
.hours-grid h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.hours-grid p { font-size: 15px; color: var(--text-dim); line-height: 1.6; }
@media (max-width: 820px) { .hours-grid { grid-template-columns: 1fr; } }

/* live demo strip on reference builds */
.demo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 64px; }
@media (max-width: 880px) { .demo-strip { grid-template-columns: 1fr; } }

.section.tight { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.nav-links a.nav-cta, .nav-links a.nav-cta:hover { color: var(--bg); }
.etl-launch { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; } .etl-launch svg { width: 14px; height: 14px; }
@media (min-width: 981px) { .services-grid.svc4 { grid-template-columns: repeat(4, 1fr); } }
.featured-link svg { width: 16px; height: 16px; } .featured-link { white-space: nowrap; }
