/* t167 (2026-10-28) shared concept chrome: logo lockup with 3D spinning shield + red bar + true wordmark,
   hamburger + mobile menu, locked mobile "Request a Consultation" bar, Concept C services card grid. */

/* ---------- Brand lockup (matches choosakul_horizontal_dark.svg proportions) ---------- */
/* --H = height of the logo band (SVG y 10..114). Gaps/bar are the SVG's own spacing scaled by --H/104. */
.brand { --H: 40px; display: flex; align-items: center; min-height: 44px; flex: none; }
.brand-mark { position: relative; width: calc(var(--H) * 1.12); height: calc(var(--H) * 1.12); margin: calc(var(--H) * -.06) 0; flex: none; }
.brand-shield, .brand-shield-fb { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.brand-shield-fb { display: none; padding: 6%; }
.brand.no-gl .brand-shield-fb { display: block; } .brand.no-gl .brand-shield { display: none; }
.brand-bar { width: 2px; height: calc(var(--H) * 84 / 104); background: var(--crimson); flex: none;
  margin-left: calc(var(--H) * 36 / 104); margin-right: calc(var(--H) * 36 / 104); }
.brand-word { height: var(--H); width: auto; display: block; flex: none; }

/* ---------- Right side of header: CTA + burger ---------- */
.hdr-right { display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; align-items: center; justify-content: center; background: rgba(14,14,16,.35); flex: none; }
.burger i { display: block; width: 16px; height: 1.5px; background: #fff; box-shadow: 0 -5px 0 #fff, 0 5px 0 #fff; position: relative; }
html.menu-open .burger i { background: transparent; box-shadow: none; }
html.menu-open .burger i::before, html.menu-open .burger i::after { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 1.5px; background: #fff; transform: rotate(45deg); }
html.menu-open .burger i::after { transform: rotate(-45deg); }

.m-menu { display: none; }
@media (max-width: 980px) {
  .burger { display: flex; }
  html.menu-open header.top { background: rgba(14,14,16,.97) !important; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  html.menu-open, html.menu-open body { overflow: hidden; }
  html.menu-open .m-menu { display: block; position: absolute; left: 0; right: 0; top: 100%; background: #0E0E10; border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); padding: 6px clamp(18px, 4vw, 48px) 120px; max-height: calc(100vh - 68px); max-height: calc(100svh - 68px); overflow: auto; }
  .m-head { display: block; margin: 18px 0 6px; font: 700 11px/1 Manrope, sans-serif; letter-spacing: .24em; text-transform: uppercase; color: var(--grey); }
  .m-sub, .m-top { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); color: #fff; font-weight: 600; font-size: 16px; }
  .m-sub:hover, .m-top:hover { color: #fff; } .m-sub:active, .m-top:active { color: var(--crimson); }
  .m-top { margin-top: 14px; border-top: 1px solid var(--line); }
  .m-top + .m-top { margin-top: 0; border-top: 0; }
  /* t175: the last service row's border-bottom already divides the list from About; a second border-top on About stacked two lines. */
  /* t178: …and its 14px margin-top left a bigger gap above About than between any other rows. Same rhythm as the list now. */
  .m-sub + .m-top { border-top: 0; margin-top: 0; }
  nav.m-menu a[aria-current=page] { color: var(--crimson); }
  .m-cta { display: flex; justify-content: center; width: 100%; margin-top: 26px; }
}

/* ---------- Locked mobile consultation bar (static site .mobile-bar, dark concept skin) ---------- */
.mobile-bar { display: none; }
@media (max-width: 900px) {
  .mobile-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    background: rgba(14,14,16,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .mobile-bar .btn { display: flex; justify-content: center; width: 100%; height: 50px; padding: 0 12px; font-size: 15px; }
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .draft-chip { bottom: calc(86px + env(safe-area-inset-bottom)) !important; }
  html.menu-open .mobile-bar { display: none; }
  /* keep first-screen copy/CTAs clear of the locked bar + draft chip */
  .hero { padding-bottom: calc(104px + 3svh + env(safe-area-inset-bottom)) !important; }
  .s0.bl, .s0.br { bottom: calc(5vh + 100px) !important; }
}
@media (max-width: 600px) {
  header.top .hdr-cta { display: none !important; }
  .brand { --H: 34px; }
}
@media (max-width: 350px) { .brand { --H: 30px; } }

/* ---------- Services cards: Concept C grid (size + layout), shared by A, B, C ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grid .tile:nth-child(1), .grid .tile:nth-child(2), .grid .tile:nth-child(7), .grid .tile:nth-child(8) { grid-column: span 2; min-height: 380px; }
.grid .tile:nth-child(n+3):nth-child(-n+6) .art-icon { width: 52%; right: 8%; top: 8%; }
.grid .tile:active { transform: scale(.985); }
@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr 1fr; } .grid .tile { grid-column: span 1 !important; } .grid .tile:nth-child(1), .grid .tile:nth-child(2) { grid-column: span 2 !important; }
}
@media (max-width: 600px) {
  /* t175 root-cause fix: the ≤980 rule ".grid .tile:nth-child(1|2) { span 2 !important }" out-specified ".grid .tile { span 1 }",
     so on phones tiles 1–2 spanned 2 tracks of a 1-track grid, creating an implicit 0px 2nd column. Tiles 4, 6, 8
     (AI Integration, Small Business IT, Cybersecurity) auto-placed into it at 0px width and were invisible on A, B and C. */
  .grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .grid .tile, .grid .tile:nth-child(1), .grid .tile:nth-child(2) { grid-column: 1 / -1 !important; min-height: 236px !important; }
  .grid .tile .art-icon, .grid .tile:nth-child(n+3):nth-child(-n+6) .art-icon { width: 38%; right: 6%; top: 10%; }
  .grid .tile-body { padding: 20px; } .grid .tile-title { font-size: 17px; } .grid .tile-line { font-size: 14.5px; }
  .grid .tile-go { top: 16px; left: 18px; width: 44px; height: 44px; }
}

/* ---------- Home consultation CTA band (form now lives on consultation.html) ---------- */
.consult-band { display: flex; justify-content: space-between; align-items: end; gap: 28px 60px; flex-wrap: wrap; }
.consult-band h2 { font-size: clamp(26px, 3vw, 44px); line-height: 1.12; }
.consult-band .consult-lead { color: #c8cace; margin-top: 18px; max-width: 46ch; }
@media (max-width: 600px) { .consult-band .btn { width: 100%; justify-content: center; min-height: 50px; } }

/* ---------- t171 (2026-10-28): live home CTA pattern (live site.css v18 decisions) ----------
   Closing band keeps headline + lead + button on desktop, plus "Already worked with us? Leave a review".
   ≤900px (locked .mobile-bar showing): in-page consultation buttons inside <main> are hidden, empty btn-rows too,
   the mobile-menu CTA is hidden, and the consultation page itself drops the pinned bar. */
.consult-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.cta-review { margin: 0; font-size: 15px; color: rgba(255,255,255,.66); }
.cta-review .text-link { color: #fff; font-weight: 700; margin-left: 4px; text-decoration: underline; text-decoration-color: var(--crimson); text-underline-offset: 4px; }
.cta-review .text-link:hover { color: var(--crimson); }
.talk .btn-row + .cta-review { margin-top: 22px; }
@media (max-width: 900px) {
  main a.btn[href^="consultation.html"] { display: none !important; }
  main .btn-row:has(> a.btn[href^="consultation.html"]:only-child) { display: none !important; }
  main .ctas:has(> a.btn[href^="consultation.html"]:only-child) { display: none !important; }
  nav.m-menu .m-cta { display: none !important; }
  body.page-consultation .mobile-bar { display: none !important; }
  body.page-consultation { padding-bottom: 0; }
  body.page-consultation .draft-chip { bottom: calc(14px + env(safe-area-inset-bottom)) !important; }
  .consult-actions { gap: 0; }
}

/* ---------- t175: live footer (same content as choosakulinnovations.com site-footer), dark concept skin ---------- */
footer.sf { position: relative; z-index: 1; display: block; background: var(--ink); border-top: 1px solid var(--line); padding: 64px clamp(20px, 6vw, 96px) 40px; color: var(--grey); font-size: 14px; }
footer.sf .sf-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 36px 40px; }
footer.sf .feyebrow { display: block; font: 700 11px/1.3 Manrope, sans-serif; letter-spacing: .2em; color: #d2d4d8; text-transform: uppercase; margin-bottom: 12px; }
footer.sf .sf-brand p { max-width: 40ch; line-height: 1.6; }
footer.sf h4 { font: 700 11px/1 Manrope, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #d2d4d8; margin-bottom: 14px; min-height: 11px; }
footer.sf .sf-col { display: grid; gap: 9px; align-content: start; }
footer.sf .sf-col a { color: #fff; font-weight: 600; width: fit-content; }
footer.sf .sf-col a:hover { color: var(--crimson); }
footer.sf .sf-col p { line-height: 1.55; }
footer.sf .sf-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }
footer.sf .sf-bottom nav { display: flex; gap: 20px; } footer.sf .sf-bottom nav a:hover { color: #fff; }
@media (max-width: 980px) { footer.sf .sf-top { grid-template-columns: 1fr 1fr; } footer.sf .sf-brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { footer.sf { padding: 48px 20px 32px; } footer.sf .sf-top { grid-template-columns: 1fr; gap: 30px; } footer.sf .sf-col h4:empty, footer.sf .sf-col h4.blank { display: none; } }
.closing-link { display: inline-block; margin-top: 18px; color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: var(--crimson); text-underline-offset: 4px; }
.closing-link:hover { color: var(--crimson); }