/* B&C Sound Solutions — site styles */

:root {
  --ink: #111318;
  --ink-2: #1b1e26;
  --paper: #ffffff;
  --paper-2: #f4f5f8;
  --text: #1c1f26;
  --muted: #5a6070;
  --on-dark: #f5f6fa;
  --on-dark-muted: #b4b9c6;
  --line: #e2e5ec;
  --line-dark: #2c3040;
  --accent: #5b5bf6;
  --accent-hover: #4a4ae0;
  --ok-bg: #e6f6ea;
  --ok-text: #1d5c2e;
  --err-bg: #fdecec;
  --err-text: #9b1c1c;
  --radius: 14px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 800; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 20px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }

/* Logo is black artwork; invert it on dark backgrounds */
.logo-on-dark { filter: invert(1); }

/* Buttons */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 26px;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; color: var(--text); border-color: currentColor; }
.btn-outline:hover { color: var(--accent); }
.btn-sm { padding: 8px 18px; font-size: 0.95rem; }
.btn[disabled] { opacity: 0.65; cursor: progress; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 19, 24, 0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand { display: flex; align-items: center; }
.brand img { width: 120px; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a.link { color: var(--on-dark); text-decoration: none; font-weight: 600; }
.site-nav a.link:hover { color: #fff; text-decoration: underline; }
@media (max-width: 560px) {
  .site-nav a.link { display: none; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 15% 0%, rgba(91, 91, 246, 0.45), transparent 60%),
    radial-gradient(50% 70% at 85% 10%, rgba(214, 64, 214, 0.35), transparent 60%),
    radial-gradient(60% 60% at 50% 120%, rgba(32, 196, 160, 0.25), transparent 60%),
    var(--ink);
  color: var(--on-dark);
  text-align: center;
  padding-block: clamp(64px, 12vw, 136px) clamp(48px, 8vw, 88px);
}
.hero h1 { margin: 0 auto 28px; max-width: 560px; }
.hero h1 img { width: 100%; }
.hero .lead { font-size: clamp(1.125rem, 2.4vw, 1.375rem); color: var(--on-dark); max-width: 36ch; margin: 0 auto 28px; }

.chips {
  list-style: none;
  margin: 44px auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 760px;
}
.chips a {
  display: inline-block;
  color: var(--on-dark);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}
.chips a:hover { background: rgba(255, 255, 255, 0.14); }

/* Services */
.services { padding-block: clamp(48px, 8vw, 96px); }
.services-intro { text-align: center; max-width: 40ch; margin: 0 auto clamp(32px, 5vw, 56px); }
.services-intro p { color: var(--muted); }

.service {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding-block: clamp(28px, 4vw, 44px);
  scroll-margin-top: 80px;
}
.service + .service { border-top: 1px solid var(--line); }
.service:nth-child(even) .service-media { order: 2; }
.service-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(17, 19, 24, 0.12);
}
.service h3 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 800; }
.service p { color: var(--muted); }

@media (max-width: 760px) {
  .service { grid-template-columns: 1fr; }
  .service:nth-child(even) .service-media { order: 0; }
  .service-media img { aspect-ratio: 4 / 3; }
}

/* Contact */
.contact {
  background: var(--ink);
  color: var(--on-dark);
  padding-block: clamp(56px, 9vw, 104px);
  scroll-margin-top: 64px;
}
.contact .intro { text-align: center; max-width: 52ch; margin: 0 auto 36px; }
.contact .intro p { color: var(--on-dark-muted); }

.form { max-width: 600px; margin: 0 auto; display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.field .hint { color: var(--on-dark-muted); font-weight: 400; font-size: 0.9em; }
.field input, .field textarea {
  font: inherit;
  color: var(--on-dark);
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }

.form-status { margin: 0; border-radius: 10px; padding: 12px 14px; }
.form-status:empty { display: none; }
.form-status.ok { background: var(--ok-bg); color: var(--ok-text); }
.form-status.err { background: var(--err-bg); color: var(--err-text); }

/* Simple centered pages (thank you, 404) */
.page-center {
  min-height: calc(100vh - 64px - 90px);
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 64px;
}
.page-center h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
.page-center p { color: var(--muted); max-width: 44ch; margin-inline: auto; margin-bottom: 28px; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--on-dark-muted);
  border-top: 1px solid var(--line-dark);
  padding-block: 28px;
  font-size: 0.95rem;
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.site-footer img { width: 96px; }
.site-footer p { margin: 0; }
