/* ==========================================================================
   ComironHome — Architectural Black / White / Red B2B System
   ========================================================================== */

:root {
  --bg: #0a0a0b;
  --bg-elevated: #111114;
  --bg-card: #151519;
  --bg-card-hover: #1b1b20;
  --bg-input: #0e0e11;
  --border: rgba(255, 255, 255, 0.11);
  --border-strong: rgba(255, 255, 255, 0.24);

  --text: #f3f3f5;
  --text-muted: #a1a4b0;
  --text-dim: #737784;

  --accent: #d91627;
  --accent-hover: #b81120;
  --accent-soft: rgba(217, 22, 39, 0.12);
  --accent-border: rgba(217, 22, 39, 0.55);

  --header-bg: rgba(10, 10, 11, 0.96);
  --header-border: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.32);
  --shadow-md: 0 16px 36px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.6);

  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --container: 1360px;

  --font-display: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-elevated: #f5f5f7;
  --bg-card: #ffffff;
  --bg-card-hover: #f9f9fb;
  --bg-input: #f7f7f9;
  --border: #e1e3e8;
  --border-strong: #c4c7d0;

  --text: #111114;
  --text-muted: #4b4f5c;
  --text-dim: #767a87;

  --accent: #cf1424;
  --accent-hover: #ab0f1c;
  --accent-soft: rgba(207, 20, 36, 0.08);
  --accent-border: rgba(207, 20, 36, 0.45);

  --shadow-sm: 0 6px 18px rgba(17, 17, 20, 0.06);
  --shadow-md: 0 14px 32px rgba(17, 17, 20, 0.1);
  --shadow-lg: 0 20px 44px rgba(17, 17, 20, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  min-width: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: min(var(--container), calc(100% - clamp(24px, 4vw, 64px)));
  margin-inline: auto;
}

/* ==========================================================================
   Topbar & Header (Dark header for the brand logo)
   ========================================================================== */

.topbar {
  background: #050506;
  color: #a9acb8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 7px 0;
}

.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  min-width: 0;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.topbar__right a {
  white-space: nowrap;
}

.topbar__locations span:last-child {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.topbar__mark {
  width: 6px;
  height: 6px;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

.topbar a:hover {
  color: #ffffff;
}

@media (max-width: 820px) {
  .topbar__hide-sm {
    display: none;
  }
}

@media (max-width: 480px) {
  .topbar {
    font-size: 0.72rem;
  }
  .topbar__item {
    white-space: normal;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--header-border);
  color: #ffffff;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  height: 38px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav__link {
  padding: 8px 9px;
  font-size: 0.87rem;
  font-weight: 500;
  color: #d0d3dc;
  border-radius: var(--radius-xs);
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.main-nav__link:hover,
.main-nav__link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.main-nav__link--accent {
  color: #ffffff;
  position: relative;
}

.main-nav__link--accent::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 3px;
  height: 2px;
  background: var(--accent);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-dropdown__caret {
  font-size: 0.72rem;
  opacity: 0.75;
}

.nav-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  padding: 6px;
  background: #121216;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 80;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu,
.nav-dropdown.is-open .nav-dropdown__menu {
  display: grid;
  gap: 2px;
}

.nav-dropdown__link {
  padding: 9px 12px;
  font-size: 0.87rem;
  color: #d7dae2;
  border-radius: var(--radius-xs);
  white-space: nowrap;
}

.nav-dropdown__link:hover,
.nav-dropdown__link.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-phone {
  display: none;
  flex-direction: column;
  text-align: right;
  line-height: 1.2;
}

.header-phone__num {
  font-weight: 700;
  font-size: 0.94rem;
  color: #ffffff;
  white-space: nowrap;
}

.header-phone__sub {
  font-size: 0.72rem;
  color: #9ca0ad;
  white-space: nowrap;
}

@media (min-width: 1340px) {
  .header-phone {
    display: flex;
  }
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.burger-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

@media (max-width: 1020px) {
  .main-nav {
    display: none;
  }
  .burger-btn {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    min-height: 60px;
    gap: 8px;
  }
  .brand-logo img {
    height: 30px;
  }
  .header-actions {
    gap: 8px;
  }
  .header-actions .btn--primary {
    display: none;
  }
}

.mobile-drawer {
  display: none;
  background: #0e0e11;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 0 22px;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer__links {
  display: grid;
  gap: 6px;
}

.mobile-drawer__link {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: #f3f3f5;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-drawer__link:hover {
  border-color: var(--accent);
}

.mobile-drawer__cta {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

/* ==========================================================================
   Buttons & Architectural Kickers
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #ffffff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 18px rgba(217, 22, 39, 0.28);
}

.btn--outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.btn--outline-light:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.btn--sm {
  padding: 8px 14px;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 14px 26px;
  font-size: 0.98rem;
}

.btn--block {
  width: 100%;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
}

.kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}

.hero .kicker,
.page-hero .kicker {
  color: #c2c5d1;
}

/* ==========================================================================
   Hero & Page Hero (Architectural grid + radial accent glow)
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background-color: #0a0a0b;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 48px 48px;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 58px 0 64px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(56% 78% at 84% 16%, var(--accent) 0%, transparent 72%),
    radial-gradient(40% 55% at 14% 88%, var(--accent) 0%, transparent 75%);
  opacity: 0.14;
}

.hero > .container,
.page-hero > .container {
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.82fr);
  gap: 44px;
  align-items: start;
}

@media (max-width: 980px) {
  .hero {
    padding: 36px 0 44px;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.hero__title {
  margin: 16px 0 18px;
  font-size: clamp(1.95rem, 3.8vw, 3.25rem);
  line-height: 1.08;
  font-weight: 800;
  color: #ffffff;
}

.hero__title span {
  color: var(--accent);
}

.hero__lead {
  margin: 0 0 28px;
  font-size: 1.05rem;
  color: #c4c7d2;
  max-width: 600px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-spec-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-spec {
  padding: 16px 14px 16px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 14px;
}

.hero-spec:first-child {
  padding-left: 0;
}

.hero-spec:last-child {
  border-right: none;
}

.hero-spec__val {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
}

.hero-spec__val span {
  color: var(--accent);
}

.hero-spec__lbl {
  margin-top: 4px;
  font-size: 0.78rem;
  color: #9ea2af;
  line-height: 1.35;
}

@media (max-width: 680px) {
  .hero-spec-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-spec {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .hero-spec:nth-child(odd) {
    padding-left: 0;
  }
  .hero-spec:nth-child(even) {
    border-right: none;
  }
  .hero-spec:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

.hero-panel {
  background: linear-gradient(180deg, #16161b 0%, #111115 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 26px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-panel__title {
  margin: 0 0 6px;
  font-size: 1.22rem;
  font-weight: 700;
  color: #ffffff;
}

.hero-panel__sub {
  margin: 0 0 18px;
  font-size: 0.88rem;
  color: #a1a4b0;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: #9ea2af;
  margin-bottom: 14px;
}

.breadcrumbs a:hover {
  color: #ffffff;
}

.breadcrumbs__sep {
  opacity: 0.4;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0 46px;
  background-color: #0d0d10;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(48% 85% at 88% 12%, var(--accent) 0%, transparent 72%);
  opacity: 0.11;
}

.page-hero__title {
  margin: 12px 0 12px;
  font-size: clamp(1.75rem, 3.4vw, 2.65rem);
  line-height: 1.12;
  font-weight: 800;
}

.page-hero__lead {
  margin: 0 0 22px;
  max-width: 760px;
  color: #c2c5d1;
  font-size: 1.02rem;
}

/* Light theme overrides — keep ONLY .topbar & .site-header dark */
[data-theme="light"] .hero,
[data-theme="light"] .page-hero {
  background-color: var(--bg-elevated);
  background-image:
    linear-gradient(to right, rgba(17, 17, 20, 0.038) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 17, 20, 0.038) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] .hero::before {
  opacity: 0.075;
}

[data-theme="light"] .page-hero::before {
  opacity: 0.06;
}

[data-theme="light"] .hero__title,
[data-theme="light"] .page-hero__title,
[data-theme="light"] .hero-spec__val,
[data-theme="light"] .hero-panel__title {
  color: var(--text);
}

[data-theme="light"] .hero__lead,
[data-theme="light"] .page-hero__lead,
[data-theme="light"] .hero .kicker,
[data-theme="light"] .page-hero .kicker,
[data-theme="light"] .hero-spec__lbl,
[data-theme="light"] .hero-panel__sub,
[data-theme="light"] .breadcrumbs {
  color: var(--text-muted);
}

[data-theme="light"] .breadcrumbs a:hover {
  color: var(--accent);
}

[data-theme="light"] .hero-spec-strip {
  border-top-color: var(--border);
  border-bottom-color: var(--border);
}

[data-theme="light"] .hero-spec {
  border-right-color: var(--border);
  border-bottom-color: var(--border);
}

[data-theme="light"] .hero-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-top: 2px solid var(--accent);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .hero-panel .field__label,
[data-theme="light"] .hero-panel .checkbox-row {
  color: var(--text-muted);
}

[data-theme="light"] .hero-panel .input,
[data-theme="light"] .hero-panel .textarea {
  background: var(--bg-input);
  color: var(--text);
  border-color: var(--border-strong);
}

[data-theme="light"] .btn--outline-light {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

[data-theme="light"] .btn--outline-light:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

/* ==========================================================================
   Sections & Editorial Grids
   ========================================================================== */

.section {
  padding: 64px 0;
}

.section--alt {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section__title {
  margin: 8px 0 0;
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  font-weight: 800;
  line-height: 1.18;
}

.section__desc {
  margin: 10px 0 0;
  color: var(--text-muted);
  max-width: 660px;
  font-size: 0.96rem;
}

@media (max-width: 640px) {
  .section {
    padding: 42px 0;
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.application-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.location-list {
  display: grid;
  gap: 24px;
}

.location-card {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: center;
  gap: 24px;
  scroll-margin-top: 88px;
}

.location-card address {
  margin-top: 12px;
  font-style: normal;
  font-weight: 700;
}

.location-card p {
  margin: 12px 0 16px;
  color: var(--text-muted);
}

.location-map {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: var(--border);
}

@media (max-width: 760px) {
  .location-card {
    grid-template-columns: 1fr;
  }
}

.interior-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.interior-room-title,
.interior-card {
  scroll-margin-top: 88px;
}

.interior-card {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.interior-card > a {
  display: block;
}

.interior-card > a:focus-visible {
  outline-offset: -4px;
}

.interior-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.interior-card figcaption {
  padding: 20px;
}

.interior-card p {
  margin: 8px 0 14px;
  color: var(--text-muted);
}

.interior-card figcaption a {
  text-decoration: underline;
  text-underline-offset: .2em;
}

@media (max-width: 680px) {
  .interior-grid {
    grid-template-columns: 1fr;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.grid-categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 1220px) {
  .grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .grid-4,
  .grid-3,
  .grid-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 559px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-categories {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.pillar-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.pillar-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-sm);
}

.pillar-card__tag {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.pillar-card__title {
  margin: 6px 0 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.pillar-card__text {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.pillar-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
}

/* ==========================================================================
   #application — Interior & Commercial Use-Cases
   ========================================================================== */

.application-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 960px) {
  .application-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .application-grid {
    grid-template-columns: 1fr;
  }
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.app-card__img {
  aspect-ratio: 16 / 10;
  background: #0d0d10;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.app-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.app-card:hover .app-card__img img {
  transform: scale(1.03);
}

.app-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.app-card__num {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.app-card__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.app-card__list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: grid;
  gap: 5px;
}

/* ==========================================================================
   Catalog Cards (Clean photo, zero stickers over images)
   ========================================================================== */

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-tab {
  min-height: 42px;
  padding: 8px 13px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-tab:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.filter-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.catalog-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  flex: 1 1 320px;
  justify-content: flex-end;
}

.catalog-search {
  flex: 1 1 200px;
  max-width: 320px;
}

@media (max-width: 720px) {
  .catalog-controls {
    width: 100%;
    justify-content: stretch;
  }
  .catalog-search {
    max-width: none;
    width: 100%;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-sm);
}

.product-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  background: #eeece8;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card[data-category="profiles"] .product-card__media,
.product-card[data-category="moldings"] .product-card__media {
  padding: 12px;
}

.product-card:hover .product-card__media img {
  transform: scale(1.03);
}

.product-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  min-width: 0;
}

.product-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-card__title {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.product-card__title a:hover {
  color: var(--accent);
}

.product-card__specs {
  font-size: 0.8rem;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.product-price {
  margin: 2px 0 0;
}

.product-price strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 800;
}

.product-card__actions {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-card__actions > * {
  flex: 1 1 108px;
  min-width: 0;
  padding: 9px 10px;
  font-size: 0.82rem;
}

/* ==========================================================================
   Tables
   ========================================================================== */

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.data-table th {
  background: rgba(255, 255, 255, 0.03);
  font-weight: 700;
  color: var(--text);
}

[data-theme="light"] .data-table th {
  background: #f4f5f7;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

[data-theme="light"] .data-table tbody tr:hover td {
  background: rgba(17, 17, 20, 0.025);
}

.data-table .is-highlight {
  color: var(--accent);
  font-weight: 800;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-grid {
  display: grid;
  gap: 13px;
}

.form-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 640px) {
  .form-grid--2 {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.field__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-panel .field__label {
  color: #c2c5d1;
}

.input,
.textarea {
  width: 100%;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text);
  font-size: 0.94rem;
}

.hero-panel .input,
.hero-panel .textarea {
  background: #0a0a0c;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.input.is-error {
  border-color: #ff4d5a;
}

.field__error {
  font-size: 0.78rem;
  color: #ff5c69;
  min-height: 15px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
}

.hero-panel .checkbox-row {
  color: #a1a4b0;
}

.checkbox-row a {
  color: var(--accent);
  text-decoration: underline;
}

.checkbox-row input {
  margin-top: 3px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

/* ==========================================================================
   FAQ, Product Detail, Crosslink & Footer
   ========================================================================== */

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.faq-item:hover,
.faq-item[open] {
  border-color: var(--border-strong);
}

.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item__body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.92rem;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

@media (max-width: 860px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}

.product-detail--text {
  grid-template-columns: minmax(0, 680px);
}

.product-gallery__main {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #eeece8;
  cursor: zoom-in;
}

.product-gallery__main img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.product-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.product-gallery__thumb {
  display: block;
  width: 76px;
  height: 64px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  background: #eeece8;
  overflow: hidden;
}

.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-gallery__thumb:hover,
.product-gallery__thumb[aria-current="true"] {
  border-color: var(--accent);
}

.product-detail__pricing {
  margin: 0 0 20px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.product-detail__pricing .product-price strong {
  font-size: clamp(1.35rem, 4vw, 1.95rem);
}

.crosslink-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.crosslink-banner:hover {
  border-color: var(--accent-border);
}

.site-footer {
  background: #050506;
  color: #b8bbc7;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 52px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1.15fr;
  gap: 28px;
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer__title {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
}

.footer__links a:hover {
  color: #ffffff;
}

.footer__social {
  margin-top: 20px;
}

.footer__social .footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.footer__social a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer__bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: #7c808e;
}

/* ==========================================================================
   Modals
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(4px);
}

.modal.is-open {
  display: flex;
}

.modal__dialog {
  width: 100%;
  max-width: 500px;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 26px;
  position: relative;
  box-shadow: var(--shadow-lg);
  max-height: 92vh;
  overflow-y: auto;
}

.modal__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
  padding-right: 36px;
}

[data-theme="light"] .modal__title {
  color: var(--text);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
}

.modal__close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ==========================================================================
   B2B Architectural Components (Badges, Spec Grids, Delivery/Montage Steps)
   ========================================================================== */

.b2b-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.b2b-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: var(--radius-xs);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.hero .b2b-badge,
.page-hero .b2b-badge {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: #d0d3dc;
}

[data-theme="light"] .hero .b2b-badge,
[data-theme="light"] .page-hero .b2b-badge {
  background: var(--bg-card);
  border-color: var(--border-strong);
  color: var(--text-muted);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.spec-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.spec-item:hover {
  border-color: var(--border-strong);
  border-top-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.spec-item__label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  line-height: 1.3;
}

.spec-item__value {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 22px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  border-top-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.step-card__num {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.step-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--text);
  overflow-wrap: anywhere;
}

.step-card__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.52;
  overflow-wrap: anywhere;
}

/* ==========================================================================
   Scroll Reveal & Motion Accessibility
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
  .card,
  .pillar-card,
  .product-card,
  .app-card,
  .step-card,
  .spec-item,
  .product-card__media img,
  .app-card__img img,
  .btn {
    transition: none;
  }
  .card:hover,
  .pillar-card:hover,
  .product-card:hover,
  .app-card:hover,
  .step-card:hover,
  .product-card:hover .product-card__media img,
  .app-card:hover .app-card__img img {
    transform: none;
  }
}

/* ==========================================================================
   Responsive Refinements (<= 768px and <= 480px)
   ========================================================================== */

@media (max-width: 768px) {
  .hero {
    padding: 36px 0 42px;
  }
  .page-hero {
    padding: 32px 0 36px;
  }
  .hero-panel {
    padding: 20px;
  }
  .crosslink-banner {
    padding: 18px 20px;
  }
  .spec-grid,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 28px 0 34px;
  }
  .hero-panel {
    padding: 18px 16px;
  }
  .card,
  .step-card {
    padding: 18px 16px;
  }
  .spec-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .product-card__actions > * {
    flex: 1 1 100%;
  }
  .modal__dialog {
    padding: 20px 16px;
  }
}
