/* ================================================================
   ALOTRANS — Brand Manual
   css/style.css
   ================================================================ */

/* BRAND-SPECIFIC: Design tokens — change these per client */
:root {
  --color-primary: #100A67;
  --color-accent: #D3AF37;
  --color-bg: #F8F9FA;
  --color-surface: #FFFFFF;
  --color-border: #E2E8F0;
  --color-text: #1A1A2E;
  --color-text-muted: #64748B;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;

  --sidebar-width: 300px;
  --content-max-width: 960px;
  --page-padding: 48px;
  --header-height: 64px;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
  --shadow: 0 2px 6px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
}

/* ================================================================
   RESET & BASE
   ================================================================ */

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

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

body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
}

/* ================================================================
   TYPOGRAPHY
   ================================================================ */

h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.5px;
}

h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
}

h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

p {
  font-size: 15px;
  line-height: 1.7;
}

.caption {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.mono {
  font-family: var(--font-mono);
  font-size: 13px;
}

/* ================================================================
   LAYOUT — MOBILE HEADER (visible only on mobile)
   ================================================================ */

.site-header {
  height: var(--header-height);
  background: var(--color-primary);
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.08);
  gap: 16px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header-logo-img {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.header-tagline {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.45);
  letter-spacing: .3px;
  border-left: 1px solid rgba(255,255,255,.2);
  padding-left: 12px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  margin-left: auto;
  cursor: pointer;
  width: 40px;
  height: 40px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform .3s ease, opacity .3s ease;
  transform-origin: center;
}

.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   MAIN LAYOUT WRAPPER
   ================================================================ */

.layout-wrapper {
  display: flex;
  align-items: flex-start;
  min-height: calc(100vh - var(--header-height) - 61px);
}

.main-content {
  flex: 1;
  min-width: 0;
  padding: var(--page-padding);
}

.content-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

/* ================================================================
   SIDEBAR (RIGHT)
   ================================================================ */

.site-sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--color-primary);
  position: fixed;
  right: 0;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sidebar-logo-wrap {
  padding: 28px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar-logo-img {
  width: 100%;
  height: auto;
  margin-bottom: 12px;
}

.sidebar-brand-label {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,.4);
  line-height: 1.4;
  text-align: center;
}

.nav-list {
  padding: 8px 0 24px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  font-size: 14px;
  color: rgba(255,255,255,.65);
  transition: color .15s, background .15s;
  position: relative;
  cursor: pointer;
  text-decoration: none;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
}

.nav-link.active {
  color: var(--color-accent);
  font-weight: 500;
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 5px;
  background: var(--color-accent);
  border-radius: 0 3px 3px 0;
}

.nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: .6;
  stroke: currentColor;
}

.nav-link.active .nav-icon { opacity: 1; }

/* ================================================================
   FOOTER
   ================================================================ */

.site-footer {
  background: var(--color-primary);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,.4);
}

.footer-credit a {
  font-size: 13px;
  color: rgba(255,255,255,.25);
  transition: color .2s;
  text-decoration: none;
}

.footer-credit a:hover {
  color: rgba(255,255,255,.55);
}

/* ================================================================
   PAGE HEADER
   ================================================================ */

.page-header {
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  margin-bottom: 10px;
}

.page-header .lead {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 620px;
  line-height: 1.6;
}

/* ================================================================
   SECTIONS
   ================================================================ */

.section {
  margin-bottom: 56px;
}

.section-header {
  margin-bottom: 24px;
}

.section-header h2 {
  margin-bottom: 6px;
}

.section-header .section-desc {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ================================================================
   CARDS
   ================================================================ */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-body {
  padding: 24px;
}

.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

/* ================================================================
   GRID HELPERS
   ================================================================ */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ================================================================
   NOTICE / CALLOUT
   ================================================================ */

.notice {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.notice.info {
  background: rgba(37,99,235,.06);
  border-left: 3px solid #2563EB;
}

.notice.warning {
  background: rgba(245,158,11,.07);
  border-left: 3px solid #D97706;
}

.notice.success {
  background: rgba(16,10,103,.06);
  border-left: 3px solid var(--color-primary);
}

.notice-icon {
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 16px;
}

.notice p {
  font-size: 14px;
  line-height: 1.6;
}

/* ================================================================
   INDEX / HERO — PHOTO HERO
   ================================================================ */

.hero-photo-wrap {
  position: relative;
  width: calc(100% + var(--page-padding) * 2);
  margin-left: calc(-1 * var(--page-padding));
  margin-top: calc(-1 * var(--page-padding));
  margin-bottom: 0;
  height: 60vh;
  min-height: 380px;
  max-height: 580px;
  overflow: hidden;
}

.hero-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.hero-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(16,10,103,.15) 100%);
  pointer-events: none;
}

.hero-text-block {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 48px;
}

.hero-text-block h1 {
  font-size: 40px;
  margin-bottom: 16px;
  line-height: 1.15;
}

.hero-text-block h1 em {
  font-style: normal;
  color: var(--color-accent);
}

.hero-text-block .lead {
  font-size: 16px;
  color: var(--color-text-muted);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .3px;
  transition: opacity .2s, transform .15s;
  text-decoration: none;
}

.hero-cta:hover {
  opacity: .9;
  transform: translateY(-1px);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.intro-card {
  padding: 24px;
  transition: box-shadow .2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.intro-card:hover {
  box-shadow: var(--shadow);
}

.intro-icon {
  width: 40px;
  height: 40px;
  background: rgba(16,10,103,.07);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--color-primary);
}

.intro-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.intro-card h3 {
  margin-bottom: 6px;
  font-size: 15px;
}

.intro-card p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ================================================================
   LOGO PAGE
   ================================================================ */

.logo-primary-preview {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 40px;
  margin-bottom: 32px;
  min-height: 220px;
}

.logo-primary-preview img {
  max-height: 100px;
  width: auto;
}

.logo-variants-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.logo-variant-card {
  overflow: hidden;
}

.logo-variant-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  min-height: 140px;
}

.logo-variant-preview img {
  max-height: 72px;
  width: auto;
}

.logo-variant-preview.on-white { background: #FFFFFF; }
.logo-variant-preview.on-dark  { background: var(--color-primary); }
.logo-variant-preview.on-gray  { background: #F0F0F0; }

.logo-variant-info {
  padding: 16px 20px;
  border-top: 1px solid var(--color-border);
}

.logo-variant-info h3 {
  font-size: 14px;
  margin-bottom: 4px;
}

.logo-variant-info p {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ================================================================
   COLOR SWATCHES
   ================================================================ */

.swatches-primary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.swatch-card {
  overflow: hidden;
}

.swatch-preview {
  height: 120px;
  width: 100%;
  position: relative;
}

.swatch-preview-inner {
  width: 100%;
  height: 100%;
}

.swatch-body {
  padding: 20px;
}

.swatch-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
}

.swatch-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.swatch-values {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  align-items: center;
}

.swatch-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.swatch-value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text);
}

.hex-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.hex-copy:hover {
  border-color: var(--color-primary);
  background: rgba(16,10,103,.04);
}

.hex-copy.copied {
  border-color: #16A34A;
  color: #16A34A;
}

.swatches-neutral {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.swatch-neutral {
  overflow: hidden;
  text-align: center;
}

.swatch-neutral-preview {
  height: 56px;
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 6px 6px 0 0;
}

.swatch-neutral-info {
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 6px 6px;
  background: var(--color-surface);
}

.swatch-neutral-info p {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.swatch-neutral-info .mono {
  font-size: 11px;
  color: var(--color-text);
}

.color-combos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.color-combo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.color-combo-demo {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.color-combo-demo span {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.color-combo-label {
  padding: 10px 14px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.color-combo-label p {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.color-combo-label .combo-tag {
  display: inline-block;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 3px;
  background: #DCFCE7;
  color: #15803D;
  font-weight: 500;
}

/* ================================================================
   TYPOGRAPHY PAGE
   ================================================================ */

.type-showcase {
  margin-bottom: 40px;
}

.type-font-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
  gap: 12px;
}

.type-font-header h2 {
  margin: 0;
}

.font-source-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-primary);
  padding: 6px 14px;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  transition: border-color .15s, background .15s;
  text-decoration: none;
}

.font-source-link:hover {
  border-color: var(--color-primary);
  background: rgba(16,10,103,.04);
}

.type-specimen {
  font-size: 52px;
  line-height: 1.05;
  letter-spacing: -.5px;
  margin-bottom: 20px;
  color: var(--color-text);
}

.type-alphabet {
  font-size: 18px;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 8px;
}

.type-weights {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--color-bg);
  border-radius: var(--radius);
}

.type-weight-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 6px 0;
}

.type-weight-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  min-width: 120px;
}

.type-weight-sample {
  font-size: 20px;
  color: var(--color-text);
}

.type-scale-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.type-scale-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-weight: 500;
}

.type-scale-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.type-scale-table tr:last-child td {
  border-bottom: none;
}

.type-scale-table td:first-child {
  font-weight: 500;
}

.type-scale-table .type-preview-cell {
  font-size: 18px;
  color: var(--color-text);
}

/* ================================================================
   SIZE PAGE
   ================================================================ */

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 32px;
}

.size-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--color-text-muted);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-weight: 500;
}

.size-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
}

.size-table td .size-val {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-primary);
  background: rgba(16,10,103,.06);
  padding: 2px 8px;
  border-radius: 4px;
}

.size-table td .size-rec {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-muted);
}

.size-demo-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px 32px;
  display: flex;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.size-demo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.size-demo-item img {
  display: block;
}

.size-demo-label {
  text-align: center;
}

.size-demo-label .size-name {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.size-demo-label .size-px {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-accent);
  background: rgba(211,175,55,.1);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}

.size-min-line {
  border-top: 2px dashed #EF4444;
  position: relative;
}

.size-min-line::before {
  content: 'min.';
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #EF4444;
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* ================================================================
   PROTECTIVE ZONE
   ================================================================ */

.zone-container {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  min-height: 280px;
}

.zone-diagram {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.zone-logo {
  height: 64px;
  width: auto;
  position: relative;
  z-index: 2;
}

.zone-border {
  position: absolute;
  inset: 0;
  border: 2px dashed var(--color-accent);
  border-radius: 4px;
  pointer-events: none;
}

.zone-arrow {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-accent);
  white-space: nowrap;
}

.zone-arrow.top    { top: -22px; left: 50%; transform: translateX(-50%); }
.zone-arrow.bottom { bottom: -22px; left: 50%; transform: translateX(-50%); }
.zone-arrow.left   { left: -46px; top: 50%; transform: translateY(-50%); }
.zone-arrow.right  { right: -46px; top: 50%; transform: translateY(-50%); }

.zone-rule-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zone-rule {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
}

.zone-rule-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: rgba(16,10,103,.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 700;
}

/* ================================================================
   FORBIDDEN VARIANTS
   ================================================================ */

.forbidden-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.forbidden-card {
  overflow: hidden;
}

.forbidden-preview {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  position: relative;
  padding: 20px;
  overflow: hidden;
}

.forbidden-preview img {
  max-height: 70px;
  width: auto;
}

.forbidden-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  background: #EF4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

.forbidden-info {
  padding: 14px 16px;
}

.forbidden-info h3 {
  font-size: 13px;
  margin-bottom: 4px;
}

.forbidden-info p {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Forbidden specific transforms */
.forbidden-deform   img { transform: scaleX(1.6); }
.forbidden-rotate   img { transform: rotate(25deg); }
.forbidden-stretch  img { transform: scaleY(0.5); }
.forbidden-shadow   img { filter: drop-shadow(4px 4px 8px rgba(0,0,0,.5)); }
.forbidden-lowcontrast { background: #0d0850 !important; }
.forbidden-gradient { background: linear-gradient(135deg, #1a0a80, #0d0533) !important; }

/* ================================================================
   MOCKUPS GALLERY
   ================================================================ */

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.mockup-card {
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.mockup-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.mockup-thumb {
  height: 200px;
  overflow: hidden;
  background: var(--color-bg);
  position: relative;
}

.mockup-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.mockup-card:hover .mockup-thumb img {
  transform: scale(1.03);
}

.mockup-thumb-zoom {
  position: absolute;
  inset: 0;
  background: rgba(16,10,103,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
  color: #fff;
}

.mockup-thumb-zoom svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
}

.mockup-card:hover .mockup-thumb-zoom {
  opacity: 1;
}

.mockup-info {
  padding: 16px 20px;
}

.mockup-info h3 {
  font-size: 14px;
  margin-bottom: 4px;
}

.mockup-info p {
  font-size: 12px;
  color: var(--color-text-muted);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color .2s;
}

.lightbox-close:hover {
  color: #fff;
}

/* ================================================================
   DOWNLOADS
   ================================================================ */

.downloads-sections {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.download-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}

.download-section-header h2 {
  margin: 0;
}

.format-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.format-badge.pdf { background: rgba(239,68,68,.1);   color: #DC2626; }
.format-badge.eps { background: rgba(168,85,247,.1);  color: #7C3AED; }
.format-badge.svg { background: rgba(37,99,235,.1);   color: #2563EB; }

.format-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.download-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  gap: 20px;
  transition: border-color .15s;
}

.download-item:hover {
  border-color: rgba(16,10,103,.25);
}

.download-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.download-item-name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.download-item-desc {
  font-size: 12px;
  color: var(--color-text-muted);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: background .15s, transform .1s;
  white-space: nowrap;
  flex-shrink: 0;
  border: none;
  text-decoration: none;
  cursor: pointer;
}

.btn-download:hover {
  background: #1b1490;
  transform: translateY(-1px);
}

.btn-download:active {
  transform: translateY(0);
}

.btn-download svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  flex-shrink: 0;
}

/* ================================================================
   MOBILE OVERLAY
   ================================================================ */

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 150;
  cursor: pointer;
}

.mobile-overlay.is-open {
  display: block;
}

/* ================================================================
   PLACEHOLDER
   ================================================================ */

.placeholder-box {
  background: var(--color-bg);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 13px;
  gap: 10px;
  padding: 48px 32px;
  text-align: center;
}

.placeholder-box svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  opacity: .4;
}

/* ================================================================
   DESKTOP — hide top header, full-height sidebar
   ================================================================ */

@media (min-width: 1024px) {
  .site-header {
    display: none;
  }

  .site-sidebar {
    top: 0;
    height: 100vh;
  }

  /* spacer — keeps main-content from extending under the fixed sidebar */
  #site-sidebar-wrap {
    width: var(--sidebar-width);
    flex-shrink: 0;
  }

  .layout-wrapper {
    min-height: 100vh;
  }
}

/* ================================================================
   RESPONSIVE — TABLET & MOBILE (< 1024px)
   ================================================================ */

@media (max-width: 1023px) {
  :root {
    --page-padding: 24px;
  }

  .site-sidebar {
    position: fixed;
    top: 0;
    right: -280px;
    height: 100vh;
    width: 260px;
    z-index: 200;
    transition: right .3s cubic-bezier(.4,0,.2,1);
    padding-top: var(--header-height);
  }

  .site-sidebar.is-open {
    right: 0;
    box-shadow: -8px 0 32px rgba(0,0,0,.25);
  }

  .hamburger {
    display: flex;
    margin-left: auto;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .intro-grid,
  .logo-variants-grid,
  .swatches-primary {
    grid-template-columns: 1fr;
  }

  .swatches-neutral {
    grid-template-columns: repeat(3, 1fr);
  }

  .color-combos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-photo-wrap {
    width: calc(100% + var(--page-padding) * 2);
    margin-left: calc(-1 * var(--page-padding));
    height: 45vh;
    min-height: 260px;
  }

  .hero-text-block h1 {
    font-size: 28px;
  }

  .size-demo-wrap {
    justify-content: center;
  }

  .type-specimen {
    font-size: 36px;
  }
}

@media (max-width: 599px) {
  .forbidden-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mockup-grid {
    grid-template-columns: 1fr;
  }

  .download-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .swatches-neutral {
    grid-template-columns: repeat(2, 1fr);
  }

  .color-combos-grid {
    grid-template-columns: 1fr;
  }

  h1 { font-size: 26px; }
}

/* ================================================================
   PRINT STYLESHEET
   ================================================================ */

@media print {
  .site-header,
  .site-sidebar,
  .site-footer,
  .hamburger,
  .mobile-overlay,
  .btn-download,
  .lightbox {
    display: none !important;
  }

  .layout-wrapper {
    display: block;
  }

  .main-content {
    padding: 0;
  }

  .card {
    box-shadow: none;
    break-inside: avoid;
  }

  body {
    background: #fff;
    color: #000;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 11px;
    color: #666;
  }
}

/* ================================================================
   CONTRAST BADGE — barvy.html
   ================================================================ */

.contrast-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}

.contrast-badge.pass-aaa {
  background: rgba(22,163,74,.1);
  color: #15803D;
}

.contrast-badge.pass-aa {
  background: rgba(234,179,8,.1);
  color: #A16207;
}

.color-combo-footer {
  padding: 10px 14px;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.color-combo-footer p {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ================================================================
   CONTACT PAGE — kontakty.html
   ================================================================ */

.contact-card {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 32px;
  flex-wrap: wrap;
}

.contact-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-bg);
  border: 3px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 40px;
  font-weight: 700;
  font-family: var(--font-display);
  background: linear-gradient(135deg, var(--color-primary) 0%, #1e1585 100%);
  color: rgba(255,255,255,.7);
}

.contact-info {
  flex: 1;
  min-width: 200px;
}

.contact-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-role {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text);
  text-decoration: none;
  transition: color .15s;
}

.contact-link:hover {
  color: var(--color-primary);
}

.contact-link svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-primary);
  flex-shrink: 0;
}

/* ================================================================
   LOGO IDENTITY OVERVIEW — logo.html
   ================================================================ */

.identity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.identity-item {
  overflow: hidden;
}

.identity-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 3px 8px;
  border-radius: 3px;
  margin-bottom: 12px;
}

.identity-tag.full    { background: rgba(16,10,103,.08); color: var(--color-primary); }
.identity-tag.short   { background: rgba(211,175,55,.15); color: #A17B00; }
.identity-tag.symbol  { background: rgba(100,116,139,.1); color: var(--color-text-muted); }

.identity-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  min-height: 120px;
  background: var(--color-surface);
}

.identity-preview.on-white { background: #FFFFFF; }
.identity-preview.on-dark  { background: var(--color-primary); }

.identity-info {
  padding: 14px 20px;
  border-top: 1px solid var(--color-border);
}

.identity-info h3 {
  font-size: 14px;
  margin-bottom: 4px;
}

.identity-info p {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

@media (max-width: 1023px) {
  .identity-grid { grid-template-columns: 1fr; }
  .contact-card  { flex-direction: column; align-items: center; text-align: center; }
}
