/* BENY Brands — light, professional. Red accent #e3262f for buttons and links only. */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f8;
  --bg-elev: #ffffff;
  --text: #333333;
  --text-soft: #555555;
  --muted: #6b6f76;
  --line: #e6e8eb;
  --line-strong: #d9dee3;
  --accent: #e3262f;
  --accent-hover: #c41f28;
  --wordmark: #6b6f76;
  --well: #ffffff;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 14px rgba(16, 24, 40, 0.05);
  --shadow-lift: 0 8px 28px rgba(16, 24, 40, 0.10);
  --radius: 16px;
  --max: 1120px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 12px; top: 12px; background: #fff; color: #000; padding: 8px 12px; z-index: 20; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.page-narrow { width: min(640px, calc(100% - 40px)); padding: 48px 0 80px; }
.small { font-size: 13px; }
.muted { color: var(--muted); }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 72px; flex-wrap: wrap; padding: 10px 0;
}
.wordmark {
  font-size: 18px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--wordmark); text-decoration: none; white-space: nowrap;
}
.wordmark span { color: var(--wordmark); font-weight: 500; letter-spacing: 0.06em; }
.wordmark:hover { color: #55575c; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.nav a {
  color: var(--muted); font-size: 14px; font-weight: 500;
  letter-spacing: .01em; text-decoration: none;
}
.nav a:hover, .nav a:focus-visible { color: var(--text); }

/* Hero */
.hero { padding: 72px 0 40px; background: #fff; }
.hero h1 {
  font-size: clamp(36px, 8vw, 68px);
  line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 18px;
  color: var(--wordmark); font-weight: 600;
}
.hero h1 span { color: var(--wordmark); font-weight: 500; }
.hero p { margin: 0; max-width: 34em; color: var(--text-soft); font-size: 18px; line-height: 1.6; }

/* Sections — alternate white / light gray for separation */
.section { padding: 72px 0; background: #fff; }
main > section:nth-of-type(even) { background: var(--bg-soft); }
.section-head { margin: 0 0 28px; }
.section-head h2 {
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -0.03em; margin: 0 0 10px;
  color: var(--text); font-weight: 650;
  font-weight: 600;
}
.section-head p { margin: 0; color: var(--text-soft); max-width: 38em; }

/* Brand cards */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 800px) {
  .brand-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}
.brand-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease;
}
.brand-card:hover, .brand-card:focus-visible, .brand-card:active, .brand-card.is-on {
  color: var(--text);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.logo-well,
.logo-well-dark,
.logo-well-dark.wv {
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  min-height: 140px;
  padding: 22px 18px;
}
.brand-card.logo-only .logo-well {
  min-height: 160px;
  padding: 28px 22px;
  flex: 1;
}
.logo-well img,
.logo-well-dark img {
  max-height: 88px; width: auto; max-width: 86%;
  height: auto;
  filter: grayscale(1);
  transition: filter .25s ease;
  object-fit: contain;
  padding: 0;
}
.brand-card:hover .logo-well img,
.brand-card:focus-visible .logo-well img,
.brand-card:active .logo-well img,
.brand-card.is-on .logo-well img,
.brand-card:hover .logo-well-dark img,
.brand-card:focus-visible .logo-well-dark img,
.brand-card:active .logo-well-dark img,
.brand-card.is-on .logo-well-dark img {
  filter: none;
}
.brand-meta {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
}
.brand-name { font-weight: 600; font-size: 16px; color: var(--text); }
.brand-domain { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.adult-tag {
  margin-top: 6px; align-self: flex-start;
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  color: #fff; background: var(--accent); padding: 2px 6px; border-radius: 4px;
}
.all-brands-link { margin-top: 24px; display: inline-block; font-weight: 600; }

/* Team */
.team-grid {
  display: grid; gap: 36px;
}
@media (min-width: 800px) {
  .team-grid { grid-template-columns: 1fr 1.1fr; align-items: start; gap: 56px; }
}
.team-copy p { margin: 0 0 12px; color: var(--text-soft); }
form.stack { display: flex; flex-direction: column; gap: 14px; }
label { font-size: 13px; font-weight: 600; color: var(--text); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=file], textarea, select {
  width: 100%; padding: 12px 14px; margin-top: 6px;
  border-radius: 10px; border: 1px solid var(--line-strong);
  background: #fff; color: var(--text); font: inherit;
}
input[type=file] { padding: 10px; background: var(--bg-soft); }
input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(227, 38, 47, 0.28); outline-offset: 1px; border-color: var(--accent);
}
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }
.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--accent); color: #fff;
  font: 600 15px/1 var(--font);
  padding: 13px 22px; border-radius: 10px;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn-secondary {
  background: #fff; border: 1px solid var(--line-strong); color: var(--text);
}
.btn-secondary:hover { border-color: #b8bec6; color: var(--text); background: var(--bg-soft); }
.btn[disabled], .btn.is-disabled {
  background: #d0d4d8; color: #fff; cursor: not-allowed;
}
.field-error, .form-error { color: #b42318; font-size: 14px; }
.flash {
  margin: 20px 0 0; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line);
}
.flash-ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.flash-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* Gallery */
.gallery-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
@media (min-width: 800px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
.gallery-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery-item figcaption { padding: 8px 12px; font-size: 12px; color: var(--muted); }
.gallery-empty {
  border: 1px dashed #d0d5db; border-radius: var(--radius);
  padding: 56px 24px; text-align: center; background: #fff;
}
.gallery-empty p { margin: 0 0 8px; font-size: 18px; color: var(--text); }
.gallery-empty .muted { color: var(--muted); }
.upload-box { margin-top: 28px; }

/* Pay */
.pay-card, .pay-hint {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px; margin-top: 16px;
  box-shadow: var(--shadow);
}
.pay-status {
  margin-top: 18px; padding: 14px 16px; border-radius: 10px;
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
  font-weight: 600;
}
.pay-hint { margin-top: 28px; }

/* Account / forms */
.points {
  font-size: 42px; font-weight: 650; font-weight: 600;
  letter-spacing: -0.03em; margin: 8px 0; color: var(--text);
}
.points span { color: var(--text); }
.draft-banner {
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
  padding: 10px 14px; border-radius: 10px; margin-bottom: 18px; font-size: 14px;
}
.draft-tag {
  display: inline-block; font-size: 10px; letter-spacing: .08em; font-weight: 700;
  text-transform: uppercase; border: 1px solid var(--line-strong); color: var(--muted);
  padding: 1px 6px; border-radius: 4px; margin-left: 6px; vertical-align: middle;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 40px 0 56px;
  margin-top: 0;
}
.footer-inner { display: grid; gap: 18px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-inner nav a { color: var(--muted); font-size: 14px; font-weight: 500; }
.footer-inner nav a:hover { color: var(--text); }
.footer-inner .wordmark { font-size: 16px; }

/* Other pages */
.section h1, .page-narrow h1 {
  color: var(--text); font-weight: 600; letter-spacing: -0.03em;
}
.section h2, .page-narrow h2 { color: var(--text); font-weight: 600; }
.section h3 { color: var(--muted); }

/* Admin */
.admin-table { width: 100%; border-collapse: collapse; background: #fff; }
.admin-table th, .admin-table td {
  text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle;
}
.admin-table img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; }
.inline-form { display: inline-block; margin-right: 6px; }

/* Inner pages sit on a light gray canvas so white cards and forms read clearly */
.page-inner { background: var(--bg-soft); }
.page-inner .section { background: transparent; }
.page-inner .page-narrow { padding-top: 40px; }
