/*
  Kotini Electrical website styles
  Colors: Orange (#ff6a00), Black (#121212), White (#ffffff)
  Mobile-first, responsive design.
*/

:root {
  --orange: #ff6a00;
  --orange-700: #e05e00;
  --black: #121212;
  --ink: #1a1a1a;
  --bg: #ffffff;
  --muted: #646464;
  --card: #0f0f0f;
  --surface: #0a0a0a;
  --border: #fd5c00;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.25);
  /* Animation tokens */
  --a-dur: .6s;
  --a-ease: cubic-bezier(.22,1,.36,1);
  --a-delay: 0ms;
}

/* Reset and base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  /* Prevent accidental horizontal scroll on small devices */
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
.muted { color: var(--muted); }
.no-scroll { overflow: hidden; }

.container { width: min(1120px, 92%); margin-inline: auto; }

/* Accessibility */
.skip-link {
  position: absolute; left: -999px; top: -999px; background: var(--orange); color: #000; padding: 8px 12px; border-radius: 6px;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(10,10,10,.8); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-wrap { display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top, 0px)) 0 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__logo { width: 36px; height: 36px; }
.brand__name { font-weight: 700; letter-spacing: .2px; }

/* Ensure brand text is readable on dark sticky header */
.site-header .brand__name { color: var(--bg); }

.nav-toggle { background: transparent; border: 0; display: grid; gap: 5px; padding: 6px; cursor: pointer; }
.nav-toggle__bar { width: 26px; height: 2px; background: var(--bg); display: block; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle.is-active .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav { position: fixed; left: 0; right: 0; top: var(--header-h, calc(56px + env(safe-area-inset-top, 0px))); background: rgba(18,18,18,.98); transform: translateY(-110%); transition: transform .3s ease; border-bottom: 1px solid var(--border); }
.site-nav.is-open { transform: translateY(0); }
.site-nav ul { list-style: none; padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px)); margin: 0; display: grid; gap: 10px; }
.site-nav a { display: block; padding: 14px 12px; border-radius: 10px; color: var(--bg); font-size: 16px; }
.site-nav a:hover, .site-nav a:focus { background: #171717; outline: 2px solid transparent; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { all: unset; display: block; }
  .header-wrap { padding: 10px 0; }
  .brand__logo { width: 32px; height: 32px; }
  .site-nav ul { display: flex; gap: 12px; row-gap: 6px; align-items: center; flex-wrap: wrap; }
  .site-nav a { padding: 6px 8px; font-size: 14px; }
  /* Keep desktop nav links readable on dark header background */
  .site-header .site-nav a { color: var(--bg); }
}

/* ============================= */
/* Adaptive density via data-attr */
/* ============================= */
:root[data-density="compact"] .section { padding: 36px 0; }
:root[data-density="compact"] .hero { padding: 40px 0 20px; }
:root[data-density="compact"] .site-nav a { padding: 10px 10px; }
@media (min-width: 900px) {
  :root[data-density="compact"] .site-nav a { padding: 4px 6px; font-size: 13px; }
}
:root[data-density="compact"] .cards-grid { gap: 12px; }
:root[data-density="compact"] .chips { gap: 8px; }
:root[data-density="compact"] .gallery { gap: 8px; }
:root[data-density="compact"] .masonry { column-gap: 10px; }
:root[data-density="compact"] .masonry img { margin-bottom: 10px; }

/* Breakpoint hooks (small refinements beyond media queries) */
:root[data-bp="xs"] .gallery { grid-template-columns: 1fr; }
:root[data-bp="sm"] .gallery { grid-template-columns: repeat(2, 1fr); }
:root[data-bp="md"] .gallery { grid-template-columns: repeat(2, 1fr); }
:root[data-bp="lg"] .gallery { grid-template-columns: repeat(2, 1fr); }
:root[data-bp="xl"] .gallery { grid-template-columns: repeat(2, 1fr); }

/* Slightly adjust hero spacing on handheld landscape */
:root[data-bp="xs"][data-orientation="landscape"] .hero,
:root[data-bp="sm"][data-orientation="landscape"] .hero { padding: 28px 0 16px; }

/* Hide brand text on tighter desktop widths to free space, keep logo visible */
@media (min-width: 900px) and (max-width: 1150px) {
  .site-header .brand__name { display: none; }
}

/* Hero */
.hero { padding: 48px 0 24px; background: radial-gradient(1200px 600px at 20% -20%, rgba(255,106,0,.25), transparent 60%),
                                   radial-gradient(900px 400px at 100% 0%, rgba(255,106,0,.15), transparent 60%);
}
.hero__wrap { display: grid; gap: 28px; align-items: center; }
.hero__content h1 { font-size: clamp(28px, 5vw, 52px); line-height: 1.12; margin: 0 0 10px; }
.lead { font-size: clamp(16px, 2.8vw, 20px); color: var(--muted); }
.hero__ctas { display: flex; gap: 12px; margin-top: 16px; }
.btn { display: inline-block; padding: 12px 18px; border-radius: 10px; font-weight: 600; }
.btn--primary { background: var(--orange); color: #000; }
.btn--primary:hover { background: var(--orange-700); }
.btn--outline { border: 1px solid var(--border); color: var(--ink); }
.btn--outline:hover { background: #f3f3f3; }
.hero__media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #0b0b0b; box-shadow: var(--shadow); }

@media (min-width: 900px) {
  .hero { padding: 72px 0 42px; }
  .hero__wrap { grid-template-columns: 1.1fr 1fr; gap: 36px; }
}

/* Sections */
.section { padding: 48px 0; }
.section--alt { background: linear-gradient(180deg, #0c0c0c, #0a0a0a); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); color: #f2f2f2; }
.section__head { margin-bottom: 18px; }
.section__head h2 { font-size: clamp(22px, 3.6vw, 34px); margin: 0 0 8px; }
/* Light grey by default for body sections on white; will be overridden in .section--alt */
.section__head p { color: #4a4a4a; }
/* Improve contrast for headings and text inside dark alt sections */
.section--alt .section__head h2 { color: #ffffff; }
.section--alt .section__head p { color: #d9d9d9; }
/* Ensure any muted text placed inside dark alt sections remains readable */
.section--alt .muted { color: #d9d9d9; }
/* Links on dark sections should be clearly visible */
.section--alt a { color: var(--orange); }

/* Force solid white background for Technology & Strategic Partners section */
#partners { background: #ffffff; }
#partners .section__head h2 { color: var(--ink); }
#partners .section__head p { color: #4a4a4a; }

/* Contact section: enforce dark/black text on light background */
#contact { background: #ffffff; color: var(--ink); }
#contact .section__head h2 { color: var(--ink); }
#contact .section__head p { color: var(--ink); }
#contact .muted { color: var(--ink); }
#contact .help, #contact .form .help { color: var(--ink); }

/* ===================== */
/* Reveal animations     */
/* ===================== */
[data-animate] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--a-dur) var(--a-ease) var(--a-delay),
              transform var(--a-dur) var(--a-ease) var(--a-delay),
              filter var(--a-dur) var(--a-ease) var(--a-delay),
              clip-path var(--a-dur) var(--a-ease) var(--a-delay);
  will-change: opacity, transform, filter, clip-path;
}

/* Variants */
.animate-fade { transform: none; }
.animate-up { transform: translateY(16px); }
.animate-down { transform: translateY(-16px); }
.animate-left { transform: translateX(16px); }
.animate-right { transform: translateX(-16px); }
.animate-zoom { transform: scale(.96); }
.animate-blur { filter: blur(8px); }

[data-animate].is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Stagger helper for common grids */
.stagger > *[data-animate] { --a-delay: calc(var(--i, 0) * 90ms); }

/* Reduced motion: show content instantly and disable transitions */
@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* Icon helpers */
.icon { width: 22px; height: 22px; display: inline-block; flex: 0 0 22px; }
.with-icon { display: flex; align-items: center; gap: 10px; }
.section__head.with-icon { gap: 10px; }
.section__head.with-icon .icon { width: 26px; height: 26px; }
/* Support nested icon+title row inside section__head */
.section__head .with-icon .icon { width: 26px; height: 26px; }
/* Tighter spacing from the icon+title row to the first paragraph */
.section__head .with-icon + p { margin-top: 8px; }
.site-footer .with-icon { display: flex; align-items: center; gap: 8px; }

/* Inline SVG icon helper */
.svg-icon { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -0.15em; color: currentColor; }

/* Buttons and chips with icons */
.btn.with-icon { display: inline-flex; align-items: center; gap: 8px; }
.chip.with-icon { display: inline-flex; align-items: center; gap: 8px; }

/* List with check icons */
.list { padding-left: 18px; }
.list--check { list-style: none; padding-left: 0; }
.list--check li { position: relative; padding-left: 28px; }
.list--check li::before {
  content: "";
  position: absolute; left: 0; top: .35em;
  width: 18px; height: 18px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff6a00"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z"/></svg>') no-repeat center/18px 18px;
}
.section--alt .list--check li::before { filter: none; }

/* Cards */
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.cards-grid--tight { gap: 12px; }
.card { background: #ffffff; border: 1px solid #e6e6e6; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(16,24,40,.06); color: var(--ink); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(16,24,40,.12); border-color: #ddd; }
.card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #f5f5f5; }
.card__body { padding: 14px; }
.card__body h3 { margin: 0 0 6px; font-size: 18px; }
.card--product .card__media img { aspect-ratio: 4/3; }
.specs { margin: 0; padding-left: 18px; color: #555; }

@media (min-width: 680px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .cards-grid.cards-grid--tight { grid-template-columns: repeat(4, 1fr); }
}

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 18px; }
.chip { border: 1px solid #e6e6e6; padding: 8px 12px; border-radius: 999px; background: #f5f5f5; color: #333; transition: background-color .15s ease, border-color .15s ease; }
.chip:hover { background: #efefef; border-color: #ddd; }

/* Masonry (simple) */
.masonry { columns: 1; column-gap: 12px; }
.masonry img { width: 100%; margin-bottom: 12px; border-radius: 12px; border: 1px solid var(--border); background: #0d0d0d; }
@media (min-width: 700px) { .masonry { columns: 2; } }
@media (min-width: 1000px) { .masonry { columns: 3; } }

/* Gallery (single unified rotator) */
.gallery { display: grid; grid-template-columns: 1fr; gap: 12px; }
.gallery figure { margin: 0; background: #ffffff; border: 1px solid #e6e6e6; border-radius: 12px; overflow: hidden; }
/* Only target direct media images placed directly under figure (not rotator stacks) */
.gallery > figure > img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .6s var(--a-ease); will-change: transform; }
.gallery figcaption { padding: 8px 10px; font-size: 12px; color: #555; transition: transform .4s var(--a-ease), opacity .4s var(--a-ease); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figure:hover figcaption { transform: translateY(-2px); opacity: .9; }
/* Two-container gallery: 1 col on mobile, 2 cols on tablets/desktop */
@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
/* Gallery mobile ergonomics */
@media (max-width: 520px) {
  .rotator-card .rotator__viewport { aspect-ratio: 4/3; }
  .rotator-card figcaption { font-size: 13px; padding: 10px 12px; }
  .rotator__dots { gap: 8px; padding: 8px 10px; }
  /* Override smaller dots for better tap targets */
  .gallery .rotator__dot { width: 10px; height: 10px; }
}

/* ============================= */
/* Gallery rotator (5 images/tile)
   Each tile crossfades/zooms between stacked images. Accessible controls are
   dot indicators injected by JS. Respects prefers-reduced-motion. */
/* ============================= */
.rotator-card { position: relative; isolation: isolate; }
.rotator-card .rotator__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1; /* square by default to match existing gallery */
  overflow: hidden;
  background: #0f0f0f;
}
.rotator-card .rotator__viewport img {
  position: absolute !important; /* ensure no generic gallery rules override */
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04); /* slight zoom for cinematic effect */
  transition: opacity .8s var(--a-ease), transform 1.2s var(--a-ease);
}
.rotator-card .rotator__viewport img.is-active {
  opacity: 1;
  transform: scale(1);
}
.rotator-card figcaption {
  display: block;
  padding: 8px 10px;
  text-align: center;
  font-weight: 600;
  color: #333;
  border-top: 1px solid #eaeaea;
}
/* Dots */
.rotator__dots { position: absolute; left: 8px; right: 8px; bottom: 8px; display: flex; justify-content: center; gap: 6px; z-index: 2; pointer-events: auto; flex-wrap: wrap; padding: 6px 8px; background: linear-gradient(to top, rgba(0,0,0,.35), rgba(0,0,0,0)); border-radius: 8px; }
.rotator__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: 1px solid rgba(0,0,0,.25);
  display: inline-block;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
}
.rotator__dot[aria-current="true"] { background: var(--orange); transform: scale(1.15); }
.rotator__dot:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* Aspect-ratio fallbacks for older mobile browsers */
@supports not (aspect-ratio: 1 / 1) {
  .rotator-card .rotator__viewport { position: relative; }
  /* Default square */
  .rotator-card .rotator__viewport::before { content: ""; display: block; padding-top: 100%; }
}
@supports not (aspect-ratio: 4 / 3) {
  @media (max-width: 520px) {
    .rotator-card .rotator__viewport::before { padding-top: 75%; }
  }
}

/* Many dots ergonomics on small screens: horizontal scroll & smaller dots */
@media (max-width: 520px) {
  .rotator__dots { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
  .rotator__dots::-webkit-scrollbar { display: none; }
  .rotator__dot { width: 6px; height: 6px; }
}

/* Pause hint on hover (optional visual lift) */
.rotator-card:hover .rotator__viewport img.is-active { transform: scale(1.02); }

/* Reduced motion: no crossfade, show first image only; keep dots clickable */
@media (prefers-reduced-motion: reduce) {
  .rotator-card .rotator__viewport img { transition: none; }
}

/* ============================= */
/* Lightbox (click to expand)    */
/* ============================= */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; }
.lightbox[aria-hidden="false"] { display: block; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(2px); }
.lightbox__dialog { position: relative; width: min(96vw, 1200px); height: min(92vh, 850px); margin: auto; top: 50%; transform: translateY(-50%);
  background: #0b0b0b; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.6);
  display: grid; grid-template-areas: 'viewport' 'meta'; grid-template-rows: 1fr auto; overflow: hidden;
}
.lightbox__viewport { grid-area: viewport; position: relative; background: #000; display: grid; place-items: center; }
.lightbox__viewport img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__meta { grid-area: meta; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; background: rgba(0,0,0,.5); color: #eaeaea; border-top: 1px solid rgba(255,255,255,.1); }
.lightbox__caption { font-size: 14px; color: #ddd; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox__counter { font-size: 12px; color: #bbb; }
.lightbox__close { position: absolute; top: 6px; right: 6px; z-index: 2; background: rgba(0,0,0,.55); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: 6px 10px; font-size: 18px; cursor: pointer; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.45); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; width: 42px; height: 56px; display: grid; place-items: center; cursor: pointer; }
.lightbox__prev { left: 8px; }
.lightbox__next { right: 8px; }
.lightbox__nav:hover, .lightbox__close:hover { background: rgba(0,0,0,.65); }
.lightbox__nav:focus-visible, .lightbox__close:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

@media (max-width: 680px) {
  .lightbox__dialog { width: 100vw; height: 100vh; top: 0; transform: none; border-radius: 0; border: 0; }
  .lightbox__close { top: env(safe-area-inset-top, 8px); right: 8px; }
  .lightbox__prev { left: 4px; }
  .lightbox__next { right: 4px; }
  .lightbox__meta { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox__dialog { transition: none; }
}

/* Feature block */
.feature { margin-top: 22px; padding: 16px; border: 1px solid #e6e6e6; border-radius: 14px; background: #ffffff; }
.feature h3 { margin-top: 0; }

/* ============================= */
/* Partners compact logo strip   */
/* ============================= */
.partners-logos { margin-top: 16px; padding-top: 12px; border-top: 1px solid #e6e6e6; }
.section--alt .partners-logos { border-top-color: rgba(255,255,255,.14); }
.partners-logos__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px 20px;
  flex-wrap: wrap;
}
.partners-logos__list li { display: inline-flex; }
.partners-logos__list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Small containers (mini-cards) for each partner logo */
  width: clamp(110px, 28vw, 140px);
  height: clamp(60px, 16vw, 72px);
  padding: 6px 8px;
  background: #ffffff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: 0 1px 2px rgba(16,24,40,.06);
}
.partners-logos__list img {
  /* Fit nicely inside the mini-card container */
  height: auto;
  width: auto;
  max-height: 70%;
  max-width: 80%;
  object-fit: contain;
  filter: grayscale(100%) saturate(0%) opacity(.9);
  transition: filter .25s ease, transform .25s ease, opacity .25s ease;
}
.partners-logos__list a:hover img,
.partners-logos__list a:focus img {
  filter: none;
  opacity: 1;
  transform: translateY(-1px);
}
.partners-logos__list a:hover,
.partners-logos__list a:focus {
  border-color: #dddddd;
  box-shadow: 0 6px 18px rgba(16,24,40,.12);
}
.partners-logos__note { margin: 8px 0 0; font-size: 12px; color: #6a6a6a; text-align: center; }
.section--alt .partners-logos__note { color: #bdbdbd; }
@media (min-width: 900px) {
  /* Slightly larger container on desktop while keeping logos centered */
  .partners-logos__list a { width: 150px; height: 80px; }
}

/* Improve visibility on mobile: show full-color logos, slightly larger targets */
@media (max-width: 680px) {
  .partners-logos__list { gap: 14px 16px; }
  .partners-logos__list a { width: clamp(120px, 38vw, 160px); height: clamp(64px, 18vw, 84px); padding: 8px 10px; }
  .partners-logos__list img { filter: none; opacity: 1; max-height: 72%; max-width: 82%; }
}

/* ===================== */
/* Flagship section      */
/* ===================== */
#flagship .container { width: min(1240px, 94%); }
#flagship .flagship-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 900px) {
  /* Make all flagship tiles equal width and prevent the first one from spanning full width */
  #flagship .flagship-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
}

/* Dark cards on alt section */
#flagship .card--product {
  background: linear-gradient(180deg, #0f0f0f, #0b0b0b);
  border: 1px solid rgba(255,106,0,.35);
  color: #eaeaea;
  box-shadow: 0 12px 24px rgba(0,0,0,.35);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
#flagship .card--product:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,.45); border-color: rgba(255,106,0,.6); }

/* Wider media with cinematic ratio and overlay */
#flagship .card--product .card__media { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,106,0,.25); background: #0a0a0a; }
#flagship .card--product .card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.25) 100%); pointer-events: none; }
#flagship .card--product .card__media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transform: scale(1.01); transition: transform .6s var(--a-ease); }
#flagship .card--product:hover .card__media img { transform: scale(1.05); }

/* Card body polish */
#flagship .card--product .card__body { padding-top: 10px; }
#flagship .card--product .card__body h3 { color: #fff; font-size: 20px; }
#flagship .card--product .specs { margin-top: 8px; color: #cfcfcf; list-style: none; padding-left: 0; }
#flagship .card--product .specs li { position: relative; padding-left: 22px; margin: 6px 0; }
#flagship .card--product .specs li::before {
  content: "";
  position: absolute; left: 0; top: .25em; width: 16px; height: 16px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ff6a00" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m20 6-11 11-5-5"/></svg>') no-repeat center/16px 16px;
  filter: drop-shadow(0 0 0 rgba(0,0,0,.0));
}

/* Corner badge */
.badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .3px; padding: 4px 8px; border-radius: 999px; }
.badge--flagship { position: absolute; top: 10px; left: 10px; background: #ff6a00; color: #000; border: 1px solid #000; box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.feature .list { margin: 10px 0 0; }

/* Forms */
.form { background: #ffffff; border: 1px solid #e6e6e6; border-radius: 14px; padding: 20px; box-shadow: 0 1px 2px rgba(16,24,40,.06); color: var(--ink); }
.section--alt .form { color: var(--ink); }
.form__grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field input,
.field textarea,
.field select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid #d9d9d9; background: #fff; color: #1a1a1a; font: inherit; }
.field textarea { resize: vertical; }
.field input::placeholder { color: #9a9a9a; }
.field input:focus,
.field textarea:focus,
.field select:focus { outline: 2px solid var(--orange); outline-offset: 2px; border-color: var(--orange); }
.field--full { grid-column: 1 / -1; }
.form__actions { display: flex; align-items: center; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.help { color: #6a6a6a; font-size: 14px; }
.form .help { color: #555; }

@media (max-width: 540px) {
  .form { padding: 18px; }
  .form__actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .form .btn { width: 100%; justify-content: center; }
  .help { text-align: center; }
}

@media (min-width: 780px) {
  .form__grid { grid-template-columns: repeat(2, 1fr); }
  .field--full { grid-column: 1 / 3; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #080808; color: #eaeaea; }
.footer__grid { display: grid; gap: 18px; padding: 28px 0; grid-template-columns: 1fr; }
.brand--invert .brand__name { color: var(--bg); }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 0 28px; border-top: 1px solid var(--border); color: #bdbdbd; flex-wrap: wrap; gap: 8px; }
.back-to-top { color: var(--orange); }
/* Footer link visibility on dark background */
.site-footer a { color: #eaeaea; }
.site-footer a:hover { color: var(--orange); }
.site-footer h4 { color: #ffffff; }
/* Footer actions (density control + back-to-top) */
.footer__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.footer__actions { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.density-select {
  appearance: none;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0f0f0f;
  color: #eaeaea;
}
.density-select:focus { outline: 2px solid var(--orange); outline-offset: 2px; }

/* Visually hidden (for accessible labels) */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* (Removed More dropdown styles as per rollback) */

@media (min-width: 800px) {
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

/* Focus ring for accessibility */
:where(a, button, input, textarea, select):focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
