/* =====================================================================
   site.css: components for promotedgedigital.com. Same look as promotedge.com,
   written fresh and flat (no framework, no !important). The header is
   PROVISIONAL: India's new header is not final (Boss, 30 Oct 2026), so it
   sits in one block here and one function in render.py.
   ===================================================================== */
*, *::before, *::after{ box-sizing: border-box; }
html{ -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body{ margin: 0; font-family: var(--m-font); font-size: var(--fs-body); line-height: 1.6; color: var(--m-ink); background: var(--m-paper); }
img, svg{ max-width: 100%; height: auto; display: block; }
a{ color: var(--m-blue); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{ outline: 3px solid var(--m-blue); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3{ color: var(--m-ink); font-weight: 800; letter-spacing: -0.02em; margin: 0; }
h1{ font-size: var(--fs-h1); line-height: 1.08; }
h2{ font-size: var(--fs-h2); line-height: 1.12; }
h3{ font-size: var(--fs-h3); line-height: 1.3; font-weight: 700; letter-spacing: 0; }
p{ margin: 0 0 1em; }
ul, ol{ margin: 0; padding: 0; list-style: none; }
.wrap{ width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip{ position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: #fff; border-radius: 8px; }
.skip:focus{ top: 12px; }
.lead{ font-size: var(--fs-lead); font-weight: 500; color: var(--m-ink-2); line-height: 1.5; max-width: 62ch; }
.note{ font-size: var(--fs-small); color: var(--m-ink-3); }
.ic{ width: 24px; height: 24px; fill: currentColor; flex: none; }

/* buttons: one filled button at a time, never two side by side */
.btn{ display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font-family: inherit; font-size: 16px; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .2s, border-color .2s; }
.btn-primary{ background: var(--m-blue); color: var(--m-blue-ink); }
.btn-primary:hover{ background: var(--m-royal); }
.btn-outline{ background: transparent; color: var(--m-blue); border-color: var(--m-line); }
.btn-outline:hover{ border-color: var(--m-blue); background: var(--m-blue-soft); }

/* section rhythm: data-bg comes from the build, never from a writer */
main > section{ padding: var(--sec-pad) 0; position: relative; isolation: isolate; }
section[data-bg="paper"]{ background: #fff; }
section[data-bg="mist"]{ background: var(--m-mist); }
section[data-bg="grey"]{ background: var(--m-grey); }
section[data-bg="fade"]{ background: var(--g-hero); }
section[data-bg="night"]{ background: var(--g-night); color: var(--on-night-2); overflow: hidden; }
section[data-bg="night"]::before{ content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px 320px at 85% 0%, rgba(80, 120, 255, .28), transparent 70%), radial-gradient(circle, rgba(255, 255, 255, .09) 1px, transparent 1.6px) 0 0 / 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
section[data-bg="night"] :is(h2, h3){ color: var(--on-night); }
section[data-bg="night"] p{ color: var(--on-night-2); }
section[data-bg="night"] a:focus-visible{ outline-color: #9fc0ff; }
.sec-head{ max-width: 760px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.sec-head p{ margin: 12px 0 0; }
.kicker{ display: block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--m-blue); margin-bottom: 10px; }

/* hero */
.hero h1{ max-width: 18ch; }
.hero .lead{ margin-top: 16px; }
.hero-cta{ display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 24px; }

/* facts strip */
.facts{ display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 28px; }
.facts li{ padding: 14px 16px; border-radius: var(--m-r); background: #fff; border: 1px solid var(--m-line); font-size: var(--fs-small); font-weight: 600; color: var(--m-ink-2); }

/* In short: sits close under the hero */
section[data-slot="short"]{ padding-top: 0; background: var(--m-paper); }
.short{ background: var(--m-blue-soft); border-radius: var(--m-r); padding: 20px 22px; }
.short h2{ font-size: 15px; letter-spacing: 0; margin-bottom: 6px; color: var(--i-sky); }
.short p:last-child{ margin-bottom: 0; }

/* cards */
.cards{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card{ position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px; border-radius: var(--m-r); background: #fff; border: 1px solid var(--m-line); transition: transform .25s var(--ease-out), box-shadow .25s; }
.card p{ margin: 0; font-size: 16px; color: var(--m-ink-2); }
.card a{ text-decoration: none; color: inherit; }
.card a::after{ content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card:has(a):hover{ transform: translateY(-2px); box-shadow: var(--m-shadow-up); }
.chip{ width: 44px; height: 44px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; background: var(--c, var(--t-sky)); color: var(--ci, var(--i-sky)); }
[data-tone="sky"]{ --c: var(--t-sky); --ci: var(--i-sky); }
[data-tone="mint"]{ --c: var(--t-mint); --ci: var(--i-mint); }
[data-tone="peach"]{ --c: var(--t-peach); --ci: var(--i-peach); }
[data-tone="lavender"]{ --c: var(--t-lavender); --ci: var(--i-lavender); }
[data-tone="butter"]{ --c: var(--t-butter); --ci: var(--i-butter); }
[data-tone="rose"]{ --c: var(--t-rose); --ci: var(--i-rose); }
[data-tone="teal"]{ --c: var(--t-teal); --ci: var(--i-teal); }

/* steps */
.steps{ display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: s; }
.steps li{ counter-increment: s; }
.steps li::before{ content: counter(s); display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; margin-bottom: 12px; background: var(--m-blue-soft); color: var(--i-sky); font-weight: 800; }
.steps p{ margin: 6px 0 0; color: var(--m-ink-2); }
section[data-bg="night"] .steps li::before{ background: var(--night-card); color: #fff; border: 1px solid var(--night-line); }

/* services band (the one navy band) */
.groups{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: start; }
.group{ background: var(--night-card); border: 1px solid var(--night-line); border-radius: var(--m-r-lg); padding: 24px 22px 20px; }
.group ul{ margin-top: 12px; }
.group li{ border-top: 1px solid var(--night-line); }
.group a, .group .here{ display: flex; align-items: center; min-height: 44px; padding: 8px 2px; font-size: 15px; line-height: 1.35; color: #dfe7f7; text-decoration: none; }
.group a:hover{ color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.group .here{ color: #fff; font-weight: 700; }

/* proof */
.logos{ display: flex; flex-wrap: wrap; gap: 12px; }
.logos li{ padding: 12px 18px; border-radius: var(--m-r-sm); background: #fff; border: 1px solid var(--m-line); font-weight: 700; font-size: 15px; color: var(--m-ink-2); }
.quotes{ columns: 3 280px; column-gap: 18px; }
.quote{ break-inside: avoid; margin: 0 0 18px; padding: 22px; border-radius: var(--m-r); background: #fff; border: 1px solid var(--m-line); }
.quote blockquote{ margin: 0 0 12px; }
.quote figcaption{ font-size: var(--fs-small); color: var(--m-ink-3); }

/* FAQ and "show more": native details, all text stays in the HTML */
.faq{ max-width: 860px; }
.faq details{ border-top: 1px solid var(--m-line); }
.faq details:last-child{ border-bottom: 1px solid var(--m-line); }
.faq summary{ list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 56px; padding: 12px 0; font-weight: 700; }
.faq summary::-webkit-details-marker{ display: none; }
.faq summary::after{ content: ""; width: 12px; height: 12px; flex: none; background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat; transition: transform .25s var(--ease-out); }
.faq details[open] summary::after{ transform: rotate(90deg); background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat; }
.faq .a{ padding: 0 0 16px; color: var(--m-ink-2); }
.faq .a p:last-child{ margin-bottom: 0; }

/* comparison table */
.tbl{ overflow-x: auto; }
.tbl table{ border-collapse: collapse; width: 100%; min-width: 560px; font-size: 16px; }
.tbl caption{ text-align: left; font-size: var(--fs-small); color: var(--m-ink-3); padding-bottom: 8px; }
.tbl th, .tbl td{ text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--m-line); vertical-align: top; }
.tbl th{ font-weight: 700; background: var(--m-mist); }

/* reading column */
.prose{ max-width: 720px; font-size: 18px; }
.prose h2{ margin: 1.4em 0 .5em; font-size: clamp(24px, 2.6vw, 30px); }
.prose ul, .prose ol{ margin: 0 0 1em 1.2em; list-style: disc; }
.prose ol{ list-style: decimal; }
.sources{ font-size: var(--fs-small); color: var(--m-ink-3); }
.sources li{ padding: 4px 0; }

/* lead form */
.talk{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px 56px; align-items: start; }
.lead-form{ background: #fff; border: 1px solid var(--m-line); border-radius: var(--m-r-lg); padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; }
.field{ display: grid; gap: 6px; }
.field label, .field legend{ font-size: 15px; font-weight: 600; color: var(--m-ink); padding: 0; }
.field input, .field select, .field textarea{ width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--m-ink); background: #fff; border: 1px solid #aeb7c7; border-radius: var(--m-r-sm); }
.field textarea{ min-height: 120px; resize: vertical; }
.two{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.phone{ display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 8px; }
.consent{ display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--m-ink-2); }
.consent input{ width: 22px; height: 22px; margin: 2px 0 0; flex: none; }
.trap{ position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
fieldset{ border: 0; margin: 0; padding: 0; min-width: 0; }

/* header: PROVISIONAL until India's header ships */
.site-head{ position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(227, 232, 240, .8); }
.head-row{ display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.logo{ display: inline-flex; align-items: center; min-height: 44px; }
.logo img{ width: 176px; height: auto; }
.nav{ display: flex; align-items: center; gap: 4px; }
.nav > li > a, .nav summary{ display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 600; font-size: 15px; color: var(--m-ink); text-decoration: none; cursor: pointer; list-style: none; }
.nav summary::-webkit-details-marker{ display: none; }
.nav .panel{ position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--m-line); box-shadow: var(--m-shadow-up); padding: 24px 0; }
.panel-cols{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.panel-cols h2{ font-size: 15px; letter-spacing: 0; margin-bottom: 8px; }
.panel-cols a{ display: block; padding: 8px 0; text-decoration: none; color: var(--m-ink); font-weight: 600; font-size: 15px; }
.panel-cols span{ display: block; font-weight: 400; font-size: 13.5px; color: var(--m-ink-3); }
.menu-btn{ display: none; }

/* footer */
.foot{ background: var(--g-mist); }
.foot-cta{ margin-top: var(--sec-pad); border-radius: 28px; padding: clamp(28px, 4vw, 52px); background: var(--g-night); color: var(--on-night-2); box-shadow: 0 30px 60px -30px rgba(6, 13, 34, .55); }
.foot-cta h2{ color: #fff; font-size: clamp(26px, 3vw, 38px); margin-bottom: 10px; }
.foot-cta .btn{ background: #fff; color: var(--m-night); min-height: 52px; }
.foot-cta .btn:hover{ background: #e5f0ff; }
.foot-grid{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; padding: clamp(44px, 5vw, 64px) 0 24px; }
.foot-grid h2{ font-size: 15px; letter-spacing: 0; margin-bottom: 12px; }
.foot-grid a{ display: inline-flex; align-items: center; min-height: 34px; font-size: 14.5px; color: var(--m-ink-2); text-decoration: none; }
.foot-grid a:hover{ color: var(--m-blue); text-decoration: underline; text-underline-offset: 3px; }
.foot-legal{ display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px 0 28px; border-top: 1px solid var(--m-line); font-size: 13.5px; color: var(--m-ink-3); }

/* phone bar: call, WhatsApp, form */
.bar{ display: none; }

@media (max-width: 1100px){ .groups{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px){
  .cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .talk, .foot-grid{ grid-template-columns: 1fr; }
  .menu-btn{ display: inline-flex; }
  .nav-wrap{ display: none; }
  .nav-wrap.open{ display: block; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--m-line); padding: 8px var(--gutter) 20px; max-height: calc(100dvh - 72px); overflow-y: auto; }
  .nav{ display: grid; gap: 0; }
  .nav .panel{ position: static; box-shadow: none; border: 0; padding: 0 0 12px; }
  .panel-cols{ grid-template-columns: 1fr; gap: 12px; }
  .head-cta{ display: none; }
}
@media (max-width: 640px){
  .cards, .groups, .two{ grid-template-columns: 1fr; }
  .logo img{ width: 148px; }
  .btn-block-sm{ width: 100%; }
  body{ padding-bottom: 64px; }
  .bar{ display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--m-line); }
  .bar a{ flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 56px; font-size: 12.5px; font-weight: 700; color: var(--m-ink); text-decoration: none; }
}

/* motion: one reveal per section, CSS only */
@media (prefers-reduced-motion: no-preference){
  @supports (animation-timeline: view()){
    main > section .sec-head{ animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}
@keyframes rise{ from{ opacity: 0; transform: translateY(6px); } to{ opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ transition: none !important; animation: none !important; }
  .card:has(a):hover{ transform: none; }
}
