/* Supreme Electronics — homepage prototype
   Light professional services palette · mobile-first */

:root {
  --bg: #ffffff;
  --bg-elevated: #f5f7fa;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --surface: #f0f3f8;
  --border: rgba(26, 39, 68, 0.08);
  --border-strong: rgba(26, 39, 68, 0.14);
  --text: #1a2744;
  --text-muted: #5a6a85;
  --text-dim: #7a8aa3;
  --accent: #1e4d8c;
  --accent-hover: #163a6b;
  --accent-soft: rgba(30, 77, 140, 0.1);
  --accent-glow: rgba(30, 77, 140, 0.22);
  --white: #ffffff;
  --ink: #1a2744;
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 72px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 12px 32px -12px rgba(26, 39, 68, 0.12);
  --shadow-sm: 0 4px 14px -4px rgba(26, 39, 68, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }

.visually-hidden {
  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 {
  position: absolute;
  left: 1rem; top: -100%;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--white);
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nav {
  display: none;
  align-items: center;
  gap: 0.15rem;
}
.nav-link {
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--ink);
  background: var(--bg-elevated);
  outline: none;
}
.nav-link.is-active {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav panel */
@media (max-width: 899px) {
  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    padding: 1rem 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    gap: 0.25rem;
    animation: slideDown 0.28s var(--ease);
    box-shadow: var(--shadow);
  }
  .nav.is-open .nav-link {
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 900px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 8px 24px -8px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-cta {
  background: var(--accent);
  color: var(--white);
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}
.btn-cta:hover { background: var(--accent-hover); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--bg-elevated);
  border-color: rgba(26, 39, 68, 0.28);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: rgba(30, 77, 140, 0.35);
}
.btn-outline:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 4.5rem 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #f7f9fc 0%, var(--bg) 100%);
  pointer-events: none;
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  display: block;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 40%;
  opacity: 0.22;
  filter: saturate(0.85) contrast(0.95);
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(247, 249, 252, 0.97) 0%, rgba(247, 249, 252, 0.88) 42%, rgba(255, 255, 255, 0.55) 70%, rgba(255, 255, 255, 0.35) 100%),
    radial-gradient(ellipse 70% 55% at 85% 15%, rgba(30, 77, 140, 0.06), transparent 55%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(26, 39, 68, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 39, 68, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 15%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 15%, transparent 75%);
  opacity: 0.55;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(2.35rem, 6.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
  color: var(--ink);
}

.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.175rem);
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ——— Trust strip ——— */
.trust {
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 2rem 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1rem;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
}
.trust-item .ui-icon {
  margin-bottom: 0.15rem;
}
.trust-value {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.trust-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.35;
}

@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
  .trust-item:not(:last-child) {
    border-right: 1px solid var(--border);
  }
}

/* ——— Sections ——— */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.section-lede {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ——— Brand cards ——— */
.brands-accent {
  position: relative;
}
.brands-accent::after {
  content: "";
  display: block;
  height: 2px;
  width: min(12rem, 40%);
  margin: 1.75rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.55;
}
.brand-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 560px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .brand-grid { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
}

.brand-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.35rem 1.25rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
  min-height: 100%;
}
.brand-card:hover,
.brand-card:focus-visible {
  background: var(--bg-card-hover);
  border-color: rgba(30, 77, 140, 0.28);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  outline: none;
}


.brand-name {
  font-size: 1.1rem;
  color: var(--ink);
}
.brand-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
  flex: 1;
}
.brand-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.35rem;
}

/* ——— How we work ——— */
.how {
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 50%, var(--bg) 100%);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  counter-reset: none;
}

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

.step {
  position: relative;
  padding: 1.75rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

/* Direction A — light still media slots (below-fold, fixed aspect) */
.step-media {
  margin: -1.75rem -1.5rem 1.15rem;
  aspect-ratio: 16 / 9; /* match media-how-* 960×540 */
  background:
    linear-gradient(180deg, #f5f7fa 0%, #eef2f7 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.step-media:empty {
  min-height: 0;
}
.step-media picture,
.step-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.step-media img {
  aspect-ratio: 16 / 9;
}

/* Optional faint brands atmosphere strip under brand grid */
.brands-strip {
  margin-top: 1.25rem;
  opacity: 0.35;
  pointer-events: none;
  overflow: hidden;
  border-radius: var(--radius);
  max-height: 4.5rem;
}
.brands-strip picture,
.brands-strip img {
  display: block;
  width: 100%;
  height: 4.5rem;
  object-fit: cover;
  object-position: center;
}
.step-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.step h3 {
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.65rem;
}
.step p {
  font-size: 0.925rem;
  color: var(--text-muted);
}

/* ——— Dual CTA ——— */
.dual-cta { padding-top: 0; }

.dual-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .dual-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}

.cta-card {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(145deg, rgba(30, 77, 140, 0.06), transparent 55%),
    var(--bg-card);
  border: 1px solid rgba(30, 77, 140, 0.18);
  box-shadow: var(--shadow-sm);
}
.cta-card-alt {
  background:
    linear-gradient(145deg, rgba(26, 39, 68, 0.03), transparent 55%),
    var(--bg-card);
  border-color: var(--border-strong);
}
.cta-card h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--ink);
  margin: 0.5rem 0 0.85rem;
  max-width: 20ch;
}
.cta-card p:not(.eyebrow) {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  max-width: 36ch;
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 2rem;
  }
}

.footer-brand p {
  margin-top: 0.85rem;
  font-size: 0.875rem;
  color: var(--text-dim);
  max-width: 28ch;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}
.footer-col a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-addr {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin-top: 0.35rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ——— Stub pages ——— */
.stub-hero {
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 6vw, 4rem);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(30, 77, 140, 0.06), transparent 60%),
    var(--bg);
}
.stub-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.stub-hero p {
  color: var(--text-muted);
  max-width: 36rem;
  font-size: 1.05rem;
}
.stub-body {
  padding: 3rem 0 5rem;
}
.stub-body .placeholder-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}
.brand-list {
  display: grid;
  gap: 1rem;
}
.brand-list article {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.brand-list h3 {
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.brand-list p { color: var(--text-muted); font-size: 0.925rem; }

.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 32rem;
  margin-top: 1.5rem;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.contact-form textarea { min-height: 120px; resize: vertical; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ——— Expanded inner pages ——— */
.page-hero {
  padding: clamp(3.25rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 3.25rem);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 55% 50% at 80% 0%, rgba(30, 77, 140, 0.06), transparent 60%),
    linear-gradient(180deg, #f7f9fc 0%, var(--bg) 100%);
}
.page-hero .eyebrow { margin-bottom: 0.85rem; }
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  color: var(--ink);
  margin-bottom: 0.85rem;
}
.page-hero-lede {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 40rem;
  line-height: 1.65;
}

.page-section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.page-section-muted {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.page-intro {
  max-width: 40rem;
  margin-bottom: 2rem;
}
.page-intro h2 {
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  color: var(--ink);
  margin-bottom: 0.65rem;
}
.page-intro p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Brands page grid */
.brands-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 700px) {
  .brands-page-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .brands-page-grid { grid-template-columns: repeat(3, 1fr); }
}

.brand-detail {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.5rem 1.4rem 1.55rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.brand-detail h2 {
  font-size: 1.15rem;
  color: var(--ink);
}
.brand-detail .brand-tagline {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.brand-detail p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}
.brand-detail .btn {
  align-self: flex-start;
  margin-top: 0.35rem;
}

.brands-cta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.75rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid rgba(30, 77, 140, 0.16);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow-sm);
}
.brands-cta-bar h2 {
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.brands-cta-bar p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 36rem;
}

/* Capability areas */
.cap-areas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .cap-areas { grid-template-columns: repeat(3, 1fr); }
}
.cap-area {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.cap-area h3 {
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.55rem;
}
.cap-area p {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* About narrative */
.about-prose {
  max-width: 40rem;
  display: grid;
  gap: 1.15rem;
}
.about-prose p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}
.about-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.25rem;
}
@media (min-width: 700px) {
  .about-highlights { grid-template-columns: repeat(3, 1fr); }
}
.about-hl {
  padding: 1.35rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.about-hl strong {
  display: block;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.about-hl span {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Contact layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 860px) {
  .contact-layout {
    grid-template-columns: 1.35fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }
}
.contact-aside {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact-aside h2 {
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.85rem;
}
.contact-aside dl {
  margin: 0;
  display: grid;
  gap: 1rem;
}
.contact-aside dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}
.contact-aside dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}
.contact-aside a { color: var(--accent); }
.contact-aside a:hover { text-decoration: underline; }
.placeholder-note {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.45;
}

.form-panel {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.form-panel h2 {
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.form-panel > .form-lede {
  color: var(--text-muted);
  font-size: 0.925rem;
  margin-bottom: 1.25rem;
}

.form-success {
  display: none;
  padding: 1.5rem;
  text-align: center;
}
.form-success.is-visible { display: block; }
.form-panel.is-submitted .contact-form,
.form-panel.is-submitted > h2,
.form-panel.is-submitted > .form-lede { display: none; }
.form-success h3 {
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.form-success p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}
.form-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 700;
}

.inquiry-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 860px) {
  .inquiry-wrap {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }
}

/* ——— Language switcher ——— */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 2px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg-elevated);
}
.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lang-btn:hover,
.lang-btn:focus-visible {
  color: var(--ink);
  outline: none;
}
.lang-btn.is-active {
  background: var(--white);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.header-actions {
  flex-wrap: nowrap;
}
@media (max-width: 480px) {
  .lang-btn {
    padding: 0.38rem 0.42rem;
    font-size: 0.68rem;
  }
  .btn-cta {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* ——— Logos (constrained) ——— */
.logo-img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}
.logo picture {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.logo-footer .logo-img {
  height: 38px;
  max-width: 210px;
}
.brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 48px;
  margin-bottom: 0.15rem;
}
.brand-logo {
  display: block;
  max-height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.brand-detail .brand-logo-wrap {
  min-height: 56px;
}
.brand-detail .brand-logo {
  max-height: 56px;
}
.brand-logo[src$=".svg"] {
  width: auto;
  max-width: 100%;
  height: 40px;
}
.brand-detail .brand-logo[src$=".svg"] {
  height: 48px;
}

/* Form field errors */
.field-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #b42318;
}
.contact-form [aria-invalid="true"] {
  border-color: rgba(180, 35, 24, 0.45);
  outline: none;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

/* Reduce i18n FOUC: hide translated nodes until first apply */
html:not([data-i18n-ready]) [data-i18n],
html:not([data-i18n-ready]) [data-i18n-html] {
  visibility: hidden;
}
html[data-i18n-ready] [data-i18n],
html[data-i18n-ready] [data-i18n-html] {
  visibility: visible;
}

@media (scripting: none) {
  html:not([data-i18n-ready]) [data-i18n],
  html:not([data-i18n-ready]) [data-i18n-html] {
    visibility: visible;
  }
}

/* Focus ring for lang buttons */
.lang-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.nav-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.aside-form-only {
  margin: 0 0 1rem;
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.footer-form-hint {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.45;
}

/* ——— UI icons / dividers / about atmosphere ——— */
.ui-icon {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  opacity: 0.9;
}
.ui-icon-lg {
  width: 28px;
  height: 28px;
  margin-bottom: 0.35rem;
}
.section-divider {
  display: flex;
  justify-content: center;
  padding: 0.25rem 0;
  opacity: 0.55;
}
.section-divider img {
  width: auto;
  height: 10px;
  max-width: 140px;
  opacity: 0.7;
}
.step .ui-icon-lg,
.cap-area .ui-icon-lg,
.cta-card .ui-icon-lg {
  margin-bottom: 0.5rem;
}
.brand-logo[src*="fallbacks/"] {
  max-height: 40px;
  width: auto;
}
.brand-detail .brand-logo[src*="fallbacks/"] {
  max-height: 44px;
}
.about-layout {
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .about-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: start;
    gap: 2.5rem;
  }
  .about-atmosphere { grid-row: 1 / span 2; }
  .about-highlights { grid-column: 2; }
}
.about-atmosphere {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--bg-elevated);
}
.about-atmosphere picture,
.about-atmosphere img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.about-photo-credit {
  margin: 0;
  padding: 0.55rem 0.85rem 0.65rem;
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.4;
  background: var(--bg-elevated);
}
.about-photo-credit a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ui-icon-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}
.ui-icon-row .ui-icon-lg { margin-bottom: 0; }

/* ——— Supreme v2 Direction A ——— */
.hero--v2a .hero-photo img {
  opacity: 1;
  filter: none;
  object-position: center center;
}
.hero--v2a .hero-bg {
  background: #1a2744;
}
.hero--v2a .hero-bg::before {
  background: linear-gradient(90deg, rgba(26, 39, 68, 0.72) 0%, rgba(26, 39, 68, 0.45) 42%, rgba(26, 39, 68, 0.15) 70%, transparent 100%);
}
.hero--v2a .hero-bg::after {
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
}
.hero--v2a .eyebrow { color: #9ec0ea; }
.hero--v2a h1 { color: #fff; }
.hero--v2a .hero-sub { color: rgba(245, 247, 250, 0.88); }
.hero--v2a .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
}
.hero--v2a .btn-ghost:hover,
.hero--v2a .btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* Home brands light bleed */
.brands--v2a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.brands--v2a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(245, 247, 250, 0.92), rgba(245, 247, 250, 0.88)),
    url("assets/ui/v2-dir-A/section-brands.webp") center / cover no-repeat;
}

/* Home how / capability deep bleed strip behind section head */
.how--v2a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  padding-block: 4rem;
}
.how--v2a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(26, 39, 68, 0.78) 0%, rgba(26, 39, 68, 0.55) 50%, rgba(26, 39, 68, 0.35) 100%),
    url("assets/ui/v2-dir-A/section-capability.webp") center / cover no-repeat;
}
.how--v2a .section-head .eyebrow { color: #9ec0ea; }
.how--v2a .section-head h2,
.how--v2a .section-lede { color: #fff; }
.how--v2a .section-lede { opacity: 0.9; }
.how--v2a .step {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}
.how--v2a .step h3 { color: var(--ink); }
.how--v2a .step p { color: var(--text-muted); }

/* Subpage bleed heroes */
.page-hero--bleed {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  padding: 4.5rem 0 3.25rem;
}
.page-hero--bleed .page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.page-hero--bleed .page-hero-bg picture,
.page-hero--bleed .page-hero-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero--bleed .page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}
.page-hero--deep .page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26, 39, 68, 0.72) 0%, rgba(26, 39, 68, 0.4) 55%, rgba(26, 39, 68, 0.15) 100%);
}
.page-hero--deep .eyebrow { color: #9ec0ea; }
.page-hero--deep h1 { color: #fff; }
.page-hero--deep .page-hero-lede { color: rgba(245, 247, 250, 0.9); }

.page-hero--light .page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(245, 247, 250, 0.92) 0%, rgba(245, 247, 250, 0.75) 50%, rgba(245, 247, 250, 0.35) 100%);
}
.page-hero--light .eyebrow { color: var(--accent); }
.page-hero--light h1 { color: var(--ink); }
.page-hero--light .page-hero-lede { color: var(--text-muted); }

/* Contact desk: slightly softer wash so form area remains readable below */
body[data-page="contact"] .page-hero--light .page-hero-bg::after {
  background: linear-gradient(105deg, rgba(245, 247, 250, 0.88) 0%, rgba(245, 247, 250, 0.55) 48%, rgba(245, 247, 250, 0.2) 100%);
}

@media (max-width: 720px) {
  .page-hero--bleed { min-height: 220px; padding: 3.5rem 0 2.5rem; }
  .hero--v2a .hero-bg::before {
    background: linear-gradient(180deg, rgba(26, 39, 68, 0.75) 0%, rgba(26, 39, 68, 0.55) 100%);
  }
}

.site-version {
  opacity: 0.65;
  font-size: 0.85em;
  font-variant-numeric: tabular-nums;
}
