/* APSYS public site — Saffron / Rising Sun theme (aligned with APSYS.Web default) */

:root {
  --sidebar-w: 248px;
  --banner-h: 72px;
  --sky-start: #fff7ed;
  --sky-mid: #fed7aa;
  --sky-end: #c2410c;
  --sun-core: #fff7ad;
  --sun-mid: #fbbf24;
  --sun-edge: #f97316;
  --ground-start: rgba(154, 52, 18, 0.35);
  --ground-end: rgba(67, 20, 7, 0.82);

  --bg: #fffaf3;
  --bg-soft: #fff8ef;
  --surface: #ffffff;
  --surface-soft: #fff3e0;
  --text: #4b3621;
  --text-muted: #7a5c42;
  --heading: #bf6d00;
  --border: #f5c98a;
  --border-strong: #f4b860;
  --primary: #fb8c00;
  --primary-hover: #ef6c00;
  --primary-soft: #ffe0b2;
  --primary-text: #ffffff;
  --navbar-bg: linear-gradient(to bottom, #ffcc80, #ffb74d);
  --navbar-text: #5d4037;
  --footer-bg: #431407;
  --footer-text: #fde8d0;
  --shadow: 0 14px 34px rgba(194, 65, 12, 0.12);
  --radius: 10px;
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  grid-template-rows: var(--banner-h) 1fr auto;
  grid-template-areas:
    "banner banner"
    "sidebar main"
    "sidebar footer";
}

body.sidebar-open {
  overflow: hidden;
}

#site-header {
  display: contents;
}

main#main {
  grid-area: main;
  min-width: 0;
}

#site-footer {
  grid-area: footer;
}

a {
  color: var(--primary-hover);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  left: 12px;
  top: 12px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--footer-bg);
  color: #fff;
  border-radius: 6px;
}

/* Rising sun backdrop (subtle on marketing pages) */
.sunrise-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background: linear-gradient(180deg, var(--sky-start) 0%, var(--sky-mid) 42%, var(--sky-end) 100%);
}

.sunrise-bg::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: min(38vmin, 320px);
  height: min(38vmin, 320px);
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--sun-core) 0 22%, var(--sun-mid) 48%, var(--sun-edge) 72%);
  box-shadow: 0 0 80px rgba(249, 115, 22, 0.35);
  opacity: 0.55;
}

.sunrise-horizon {
  position: fixed;
  left: -5%;
  right: -5%;
  bottom: 0;
  height: 28%;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(180deg, var(--ground-start), var(--ground-end));
  clip-path: polygon(0 50%, 14% 42%, 28% 54%, 42% 38%, 56% 52%, 70% 36%, 84% 50%, 100% 44%, 100% 100%, 0 100%);
  opacity: 0.45;
}

.page-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.72) 0%, rgba(255, 250, 243, 0.94) 55%, rgba(255, 250, 243, 0.98) 100%);
}

/* Top banner + left sidebar shell */
.top-banner {
  grid-area: banner;
  position: sticky;
  top: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--banner-h);
  padding: 10px 18px 10px 14px;
  background: var(--navbar-bg);
  color: var(--navbar-text);
  border-bottom: 1px solid var(--border-strong);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
}

.banner-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navbar-text);
  font-weight: 800;
  text-decoration: none;
  min-width: 0;
}

.banner-brand:hover {
  text-decoration: none;
}

.banner-logo {
  width: 52px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  padding: 3px;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.18);
}

.banner-text strong,
.banner-text small {
  display: block;
  line-height: 1.2;
}

.banner-text strong {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  letter-spacing: 0.01em;
}

.banner-text small {
  font-size: 0.74rem;
  font-weight: 600;
  opacity: 0.9;
}

.banner-parent {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nav-external {
  font-size: 0.72em;
  opacity: 0.75;
  margin-left: 2px;
}

.sidebar-toggle {
  display: none;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex: 0 0 auto;
}

.sidebar-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--navbar-text);
}

.site-sidebar {
  grid-area: sidebar;
  position: sticky;
  top: var(--banner-h);
  align-self: start;
  height: calc(100vh - var(--banner-h));
  overflow: auto;
  display: flex;
  flex-direction: column;
  padding: 14px 12px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 243, 224, 0.94));
  border-right: 1px solid var(--border);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.8);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link,
.sidebar-group-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.sidebar-link:hover,
.sidebar-group-toggle:hover {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--border);
  text-decoration: none;
}

.sidebar-link[aria-current="page"],
.sidebar-submenu a[aria-current="page"] {
  background: var(--primary-soft);
  border-color: var(--border-strong);
  color: #7c2d12;
}

.sidebar-icon {
  width: 22px;
  text-align: center;
  flex: 0 0 auto;
  opacity: 0.85;
}

.sidebar-chevron {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.sidebar-group.is-open .sidebar-chevron {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.sidebar-submenu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0 6px 34px;
}

.sidebar-group.is-open .sidebar-submenu {
  display: flex;
}

.sidebar-submenu a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.sidebar-submenu a:hover {
  background: rgba(255, 255, 255, 0.65);
  color: var(--primary-hover);
  text-decoration: none;
}

.sidebar-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  display: grid;
  gap: 6px;
  font-size: 0.78rem;
}

.sidebar-domain {
  font-weight: 800;
  color: var(--heading);
  text-decoration: none;
}

.sidebar-foot a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 700;
}

.sidebar-backdrop {
  position: fixed;
  inset: var(--banner-h) 0 0 0;
  z-index: 109;
  background: rgba(67, 20, 7, 0.35);
  backdrop-filter: blur(2px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navbar-text);
  font-weight: 800;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: 50px;
  height: 40px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.55);
  padding: 2px;
}

.brand-text strong,
.brand-text small {
  display: block;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 0.95rem;
}

.brand-text small {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.88;
}

.layout-error {
  grid-column: 1 / -1;
  padding: 12px 20px;
  color: #b45309;
  font-size: 0.9rem;
}

/* Typography */
h1, h2, h3 {
  margin: 0;
  line-height: 1.2;
  color: var(--heading);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.85rem);
}

h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.95rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 12px 0 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary-hover);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.lead,
.hero-text,
.section-heading p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 720px;
}

/* Buttons */
.button-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

.button:hover {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(239, 108, 0, 0.22);
}

.button.primary {
  background: linear-gradient(135deg, #fbbf24, var(--primary), #b45309);
  color: #fff;
  border-color: #ea580c;
}

.button.secondary {
  background: var(--surface);
  color: var(--primary-hover);
  border-color: var(--border-strong);
}

.button.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

/* Sections */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px 20px;
}

.section.band {
  background: var(--surface-soft);
  border-block: 1px solid var(--border);
  max-width: none;
}

.section.band > * {
  max-width: 1180px;
  margin-inline: auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

/* Home hero */
.hero-home {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 20px 40px;
  text-align: center;
}

.hero-home h1 {
  max-width: 900px;
  margin-inline: auto;
}

.hero-home .lead {
  margin-inline: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  color: var(--heading);
  font-size: 0.82rem;
  font-weight: 700;
}

/* Product cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 56px;
}

.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(194, 65, 12, 0.16);
}

.product-card-visual {
  height: 160px;
  display: grid;
  place-items: center;
  padding: 20px;
  background: linear-gradient(160deg, var(--primary-soft), #fff);
  border-bottom: 1px solid var(--border);
}

.product-card-visual img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
}

.product-card-visual.tejas {
  background: linear-gradient(160deg, #fff3e0, #ffedd5);
}

.product-card-visual.swad {
  background: linear-gradient(160deg, #fff7ed, #fed7aa);
}

.product-card-visual.viddhya {
  background: linear-gradient(160deg, #fff8e7, #fde68a);
}

.product-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: none;
  place-items: center;
  font-size: 1.75rem;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #fbbf24, var(--primary));
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

.product-card-visual.show-fallback img {
  display: none;
}

.product-card-visual.show-fallback .product-icon {
  display: grid;
}

.hero-logo {
  width: 56px;
  height: 46px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
  padding: 4px;
}

.product-card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-body h2 {
  font-size: 1.35rem;
}

.product-card-body p {
  color: var(--text-muted);
  flex: 1;
}

.product-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--heading);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-card .button {
  margin-top: 18px;
  align-self: flex-start;
}

/* Inner pages */
.page-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 20px 36px;
}

.page-hero > * {
  max-width: 880px;
}

.product-banner {
  display: block;
  width: min(100%, 1040px);
  height: auto;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.subnav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subnav a {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.subnav a:hover,
.subnav a[aria-current="page"] {
  background: var(--primary-soft);
  border-color: var(--border-strong);
  text-decoration: none;
}

/* Product detail sections (Tejas / Swad / Viddhya) */
.product-subnav {
  position: sticky;
  top: var(--banner-h);
  z-index: 90;
  max-width: 1180px;
  width: calc(100% - 40px);
  margin: 0 auto 8px;
  padding: 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(255, 250, 243, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.product-subnav a {
  white-space: normal;
}

main#main > .subnav:not(.product-subnav) {
  max-width: 1180px;
  width: calc(100% - 40px);
  margin: 0 auto 8px;
  padding: 12px 0;
}

.detail-section {
  scroll-margin-top: calc(var(--banner-h) + 80px);
}

.detail-section > .section-heading {
  margin-bottom: 22px;
}

.detail-prose {
  max-width: 820px;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.detail-prose p {
  margin-top: 14px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.spec-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.94);
}

.spec-item dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-hover);
}

.spec-item dd {
  margin: 8px 0 0;
  color: var(--text);
  font-weight: 600;
  line-height: 1.45;
}

.module-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.module-detail-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 14px rgba(194, 65, 12, 0.05);
}

.module-detail-card h3 {
  margin-bottom: 4px;
}

.module-detail-card .module-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--heading);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.module-detail-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.module-detail-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.module-detail-card li {
  margin-top: 6px;
}

.role-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.role-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: rgba(255, 255, 255, 0.94);
}

.role-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.role-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.readiness-list {
  display: grid;
  gap: 12px;
}

.readiness-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.readiness-item strong {
  color: var(--heading);
  font-size: 0.88rem;
}

.readiness-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

@media (max-width: 920px) {
  .spec-grid,
  .module-detail-grid,
  .role-columns {
    grid-template-columns: 1fr;
  }

  .readiness-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.card-grid {
  display: grid;
  gap: 16px;
}

.card-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.card,
.module-card,
.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  padding: 20px;
  box-shadow: 0 4px 14px rgba(194, 65, 12, 0.06);
}

.card p,
.module-card p,
.contact-card p {
  color: var(--text-muted);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.check-list span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--primary);
  vertical-align: 1px;
}

.notice,
.disclaimer {
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--primary-soft);
  color: #7c2d12;
}

.disclaimer {
  border-left-color: #b45309;
  background: #fff7df;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.timeline span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--heading);
  font-weight: 900;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.metric-grid div {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.legal {
  max-width: 900px;
}

.legal h2 {
  margin-top: 24px;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: 40px;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 20px;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.8fr 1.1fr;
  gap: 24px;
}

.footer-brand {
  color: #fff;
}

.footer-brand .brand-logo {
  width: 44px;
  height: 36px;
}

.site-footer h2 {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
}

.footer-lead,
.footer-note,
.site-footer p {
  color: #f5c98a;
  font-size: 0.92rem;
}

.site-footer a {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-weight: 700;
}

.footer-note {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 24px;
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 920px) {
  body {
    grid-template-columns: 1fr;
    grid-template-areas:
      "banner"
      "main"
      "footer";
  }

  .sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  .site-sidebar {
    position: fixed;
    top: var(--banner-h);
    left: 0;
    bottom: 0;
    width: min(86vw, 300px);
    z-index: 110;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: var(--shadow);
  }

  .site-sidebar.is-open {
    transform: translateX(0);
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .card-grid.two,
  .card-grid.three,
  .card-grid.four,
  .module-grid,
  .contact-grid,
  .split,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Landing layout — full-width, sidebar as drawer (mirrors mobile pattern at all widths) */
body[data-layout="landing"] {
  grid-template-columns: 1fr;
  grid-template-areas:
    "banner"
    "main"
    "footer";
}

body[data-layout="landing"] .top-banner {
  border-bottom: 2px solid var(--border-strong);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
}

body[data-layout="landing"] .sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

body[data-layout="landing"] .site-sidebar {
  position: fixed;
  top: var(--banner-h);
  left: 0;
  bottom: 0;
  width: min(86vw, 300px);
  z-index: 110;
  transform: translateX(-105%);
  transition: transform 0.22s ease;
  box-shadow: var(--shadow);
}

body[data-layout="landing"] .site-sidebar.is-open {
  transform: translateX(0);
}

@media (max-width: 540px) {
  .section,
  .hero-home,
  .page-hero,
  .product-grid,
  .footer-grid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .button-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
