/* ============================================================================
   MESH UI 2.0 — Component kit styles (consumed by the JSX components)
   Pairs with ../../colors_and_type.css + ../../mesh.css
   No drop shadows anywhere.
   ========================================================================== */

/* ─────────────────────────── NAVBAR ─────────────────────────── */
.nav { position: relative; z-index: 30; background: var(--surface-0); font-family: var(--font-sans); }
.nav__utility { background: var(--accent); color: var(--c-white); }
.nav__utility-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; padding-block: 12px; font-weight: 500; }
.nav__util-group { display: flex; align-items: center; gap: 14px; }
.nav__util-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 24px; border-radius: var(--r-pill); color: inherit; text-decoration: none; font-size: 16px; white-space: nowrap; }
.nav__util-link--accent { background: var(--c-white); color: var(--c-black); }
.nav__util-link--pill { background: var(--accent-deep); }
.nav__util-link--plain { padding-inline: 4px; }
.nav__bar-inner { display: flex; align-items: center; gap: 40px; height: 96px; }
.nav__brand { display: flex; align-items: center; flex: 0 0 auto; height: 56px; text-decoration: none; }
.nav__brand img { height: 100%; width: auto; object-fit: contain; }
.nav__brand-text { font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--accent); letter-spacing: -0.01em; }
.nav__links { display: flex; align-items: center; gap: 26px; height: 100%; margin-left: auto; }
.nav__link { display: inline-flex; align-items: center; gap: 8px; height: 100%; font-size: 16px; color: var(--fg-1); background: none; border: 0; cursor: pointer; text-decoration: none; font-family: inherit; }
.nav__link:hover, .nav__item[data-open="true"] .nav__link { color: var(--accent); }
.nav__item { position: static; display: flex; align-items: center; height: 100%; }
.nav__chevron { font-size: 14px; transition: transform 160ms ease; }
.nav__item[data-open="true"] .nav__chevron { transform: rotate(180deg); }
.nav__mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--c-white); border-top: 1px solid var(--border); display: none; }
.nav__item[data-open="true"] .nav__mega { display: block; }
.nav__mega-grid { display: grid; grid-template-columns: minmax(0,1fr) 460px; gap: 46px; padding-block: 44px 50px; }
.nav__mega-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 48px; }
.nav__mega-col { display: flex; flex-direction: column; gap: 14px; }
.nav__mega-head { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-deep); font-weight: 700; font-size: 23px; }
.nav__mega-col a { color: var(--fg-2); text-decoration: none; font-size: 18px; line-height: 1.4; }
.nav__mega-col a:hover { color: var(--accent); }
.nav__mega-feature { position: relative; border-radius: var(--r-panel); overflow: hidden; min-height: 320px; }
.nav__mega-feature img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.nav__mega-feature::after { content:""; position:absolute; inset:0; background: linear-gradient(to top left, color-mix(in srgb, var(--accent) 86%, transparent) 0%, transparent 72%); }
.nav__mega-feature span { position: absolute; right: 28px; bottom: 26px; z-index:1; color: var(--c-white); font-weight: 700; font-size: 22px; display: inline-flex; gap: 10px; align-items: center; }
.nav__burger { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); background: none; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; }

/* ─────────────────────────── SPLIT HERO ─────────────────────────── */
.split-hero { padding-block: var(--space-section-top) var(--space-section-bot); }
.split-hero__guard { display: flex; align-items: center; gap: clamp(40px, 5vw, 80px); }
.split-hero__media { flex: 1 1 50%; aspect-ratio: 756/720; background: var(--accent-wash); overflow: hidden; align-self: stretch; }
.split-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.split-hero__content { flex: 1 1 50%; max-width: 650px; }
.split-hero__title { margin: 0 0 20px; max-width: 14ch; }
.split-hero__content .split-hero__body { margin: 10px 0 18px; font-size: clamp(17px,1.7vw,23px); line-height: 1.55; }

/* ─────────────────────────── VISOR HERO ─────────────────────────── */
.visor { display: flex; flex-direction: column; padding-bottom: clamp(40px, 5vw, 80px); }
.visor__media { aspect-ratio: 1512/452; overflow: hidden; }
.visor__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.visor__panel { align-self: flex-start; background: var(--surface-0); width: calc(100% - 2*var(--gutter)); padding: clamp(34px,5vw,62px) clamp(20px,3vw,42px); position: relative; z-index: 1; }
@media (min-width: 760px){ .visor__panel { margin-top: clamp(-180px,-10vw,-80px); } }
.visor__row { display: flex; gap: clamp(22px,2.6vw,38px); align-items: center; }
.visor__copy h1 { margin: 0 0 0.3em; line-height: 1; }

/* ─────────────────────────── INTERSTITIAL ─────────────────────────── */
.interstitial { text-align: center; }
.interstitial .eyebrow { margin-bottom: 10px; }
.interstitial h2 { max-width: 18ch; margin-inline: auto; }
.interstitial p { max-width: 62ch; margin: 10px auto 0; }
.interstitial--banner { background: var(--accent); color: var(--fg-on-accent); border-radius: var(--r-card); padding: clamp(40px,5vw,72px); }
.interstitial--banner h2, .interstitial--banner p { color: var(--fg-on-accent); }

/* ─────────────────────────── TEXT SPLIT CONTENT ─────────────────────────── */
.tsc__guard { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,96px); align-items: center; }
.tsc__guard .tsc__title { margin-bottom: 18px; }
/* Intro paragraph — matches the Interstitial body so section intros read consistently */
.tsc__guard .tsc__lead { font-size: var(--body-size); line-height: var(--leading-body); color: var(--fg-2); margin-bottom: 30px; }
.tsc__media { aspect-ratio: 1/1; border-radius: var(--r-card); overflow: hidden; background: var(--surface-2); }
.tsc__media img { width:100%; height:100%; object-fit: cover; display:block; }

/* ─────────────────────────── QUICK ACTIONS ─────────────────────────── */
.qa__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px,3vw,44px); text-align: center; }
.qa__item { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.qa__icon { font-size: 66px; color: var(--accent); }
.qa__icon svg, svg.qa__icon { width: 66px !important; height: 66px !important; stroke-width: 1.6; display: block; }
.qa__title { font-weight: 800; font-size: clamp(20px,1.6vw,24px); margin: 0 0 2px; }
.qa__desc { font-size: 16px; line-height: 1.5; color: var(--fg-3); margin: 0 0 8px; max-width: 22ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qa__btn { min-width: 156px; gap: 28px; }
.qa__btn--outline { background: var(--c-white); color: var(--accent-deep); border: 0; }
@media (max-width: 900px){ .qa__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .qa__grid { grid-template-columns: 1fr; } }

/* ─────────────────────────── CARDS ─────────────────────────── */
.cards__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.card { border-radius: var(--r-card); overflow: hidden; background: var(--c-white); display: flex; flex-direction: column; }
.card__img { width:100%; height: 300px; object-fit: cover; display:block; }
.card__body { padding: 28px 32px 36px; display: flex; flex-direction: column; gap: 12px; }
.card__body h3 { font-size: 30px; font-weight: 800; }
.card__body p { font-size: 16px; line-height: 1.8; }

/* product card (Kunu-style) */
.pcard { background: var(--c-white); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; }
.pcard__img { aspect-ratio: 1/1; background: var(--surface-1); }
.pcard__img img { width:100%; height:100%; object-fit: cover; display:block; }
.pcard__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 14px; }
.pcard__name { display:flex; align-items:center; gap:10px; font-weight:800; font-size: 22px; }
.pcard__dot { width: 14px; height: 14px; border-radius: 50%; }

/* ─────────────────────────── ACCORDION ─────────────────────────── */
.acc { display: flex; flex-direction: column; gap: clamp(14px,1.4vw,24px); list-style: none; margin: 0; padding: 0; }
.acc__item > article { background: var(--surface-2); border-radius: 24px; overflow: hidden; transition: background-color 200ms ease; }
.acc__item[data-open="true"] > article { background: var(--surface-0); }
[data-theme="dark"] .acc__item > article { background: rgb(255 255 255 / 0.06); }
[data-theme="dark"] .acc__item[data-open="true"] > article { background: rgb(255 255 255 / 0.1); }
.acc__trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 96px; padding: 24px 35px; background: none; border: 0; cursor: pointer; text-align: left; font-family: inherit; color: var(--fg-1); }
.acc__q { font-size: clamp(19px,1.4vw,25px); font-weight: 600; }
.acc__icon { font-size: 22px; flex: 0 0 auto; color: var(--fg-1); }
.acc__panel { overflow: hidden; }
.acc__answer { padding: 0 35px 36px; font-size: clamp(16px,1.1vw,21px); line-height: 1.86; color: var(--fg-2); max-width: 690px; }

/* ─────────────────────────── CTA BANNER ─────────────────────────── */
.cta__frame { position: relative; border-radius: var(--r-card); overflow: hidden; min-height: clamp(440px,38vw,500px); display: grid; place-items: center; }
.cta__frame img { position: absolute; inset: 0; width:100%; height:100%; object-fit: cover; }
.cta__overlay { position: absolute; inset: 0; background: color-mix(in srgb, var(--accent-deep) 80%, transparent); }
.cta__content { position: relative; z-index:1; text-align: center; max-width: 900px; padding: clamp(40px,6vw,80px); display: flex; flex-direction: column; gap: 20px; align-items: center; }
.cta__content .eyebrow { color: rgb(255 255 255 / 0.75); }
.cta__content h2 { color: var(--c-white); font-family: var(--font-sans); font-weight: 800; }

/* ─────────────────────────── BLOG LIST ─────────────────────────── */
.blog__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(28px,3vw,40px); }
.blog__card { display: flex; flex-direction: column; gap: 16px; }
.blog__thumb { aspect-ratio: 16/11; border-radius: var(--r-panel); overflow: hidden; background: var(--surface-2); }
.blog__thumb img { width:100%; height:100%; object-fit: cover; display:block; }
.blog__meta { font-size: 15px; color: var(--fg-3); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.blog__title { font-size: clamp(20px,1.6vw,24px); font-weight: 800; line-height: 1.25; }
.blog__excerpt { font-size: 16px; line-height: 1.7; color: var(--fg-2); }
.blog__more { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 700; text-decoration: none; }

/* ─────────────────────────── FOOTER ─────────────────────────── */
.footer { background: var(--surface-inverse); color: var(--c-white); padding-block: clamp(48px,6vw,80px); }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: clamp(28px,4vw,64px); }
.footer__brand img { height: 52px; width: auto; }
.footer__brand-text { font-family: var(--font-display); font-weight: 800; font-size: 30px; color: var(--c-white); }
.footer__tag { color: rgb(255 255 255 / 0.7); font-size: 16px; margin-top: 14px; max-width: 32ch; line-height: 1.6; }
.footer__col h4 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; color: rgb(255 255 255 / 0.55); margin: 0 0 16px; font-weight: 700; }
.footer__col a, .footer__col button { display: block; color: rgb(255 255 255 / 0.85); text-decoration: none; font-size: 16px; margin-bottom: 12px; }
.footer__col a:hover, .footer__col button:hover { color: var(--c-white); }
.footer__bottom { margin-top: clamp(36px,4vw,56px); padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 0.16); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: rgb(255 255 255 / 0.5); font-size: 14px; }

/* ─────────────────────────── RESPONSIVE ─────────────────────────── */
@media (max-width: 1024px) {
  .split-hero__guard, .tsc__guard { grid-template-columns: 1fr; display: grid; }
  .split-hero__guard { gap: 40px; }
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; margin-left: auto; }
  .nav__mega-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .cards__grid, .qa__grid, .blog__grid, .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .cards__grid, .qa__grid, .blog__grid, .footer__top { grid-template-columns: 1fr; }
  .nav__utility { display: none; }
}
