:root {
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  --transition: 0.22s ease;
}

[data-theme="light"] {
  --bg: #f6f3ee;
  --bg-elevated: #fffdf8;
  --text: #142032;
  --muted: #5a6578;
  --line: rgba(20, 32, 50, 0.12);
  --accent: #0d9488;
  --accent-2: #ea580c;
  --glow: rgba(13, 148, 136, 0.35);
  --header-bg: rgba(246, 243, 238, 0.92);
  --logo-filter: none;
}

[data-theme="dark"] {
  --bg: #0b1020;
  --bg-elevated: #121a30;
  --text: #eef2ff;
  --muted: #a8b4d6;
  --line: rgba(238, 242, 255, 0.1);
  --accent: #2dd4bf;
  --accent-2: #fb923c;
  --glow: rgba(45, 212, 191, 0.35);
  --header-bg: rgba(11, 16, 32, 0.88);
  --logo-filter: brightness(1.15) contrast(1.05);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, var(--glow), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(234, 88, 12, 0.12), transparent 50%),
    var(--bg);
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #042;
  z-index: 9999;
  border-radius: 8px;
}

h1,
h2,
h3,
.hero-kicker {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

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

a:hover {
  color: var(--accent-2);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand:hover {
  color: inherit;
}

.brand-logo {
  filter: var(--logo-filter);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
}

.brand-tag {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.5rem;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(13, 148, 136, 0.1);
}

[data-theme="dark"] .nav-link:hover {
  background: rgba(45, 212, 191, 0.12);
}

.nav-link.is-active {
  color: var(--text);
  background: linear-gradient(120deg, rgba(13, 148, 136, 0.2), rgba(234, 88, 12, 0.15));
}

[data-theme="dark"] .nav-link.is-active {
  background: linear-gradient(120deg, rgba(45, 212, 191, 0.2), rgba(251, 146, 60, 0.12));
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  transition: transform var(--transition), border-color var(--transition);
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.theme-icon-moon {
  display: none;
}

[data-theme="dark"] .theme-icon-sun {
  display: none;
}

[data-theme="dark"] .theme-icon-moon {
  display: inline;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 0.75rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), #0f766e);
  color: #f8fffc;
  box-shadow: 0 10px 28px var(--glow);
}

[data-theme="dark"] .btn-primary {
  background: linear-gradient(120deg, #2dd4bf, #0d9488);
  color: #042f2e;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

.hero {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

.hero-kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-2);
  margin-bottom: 0.5rem;
}

.hero-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.hero-panel img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

/* Home hero: random product slideshow */
.hero-slideshow {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.hero-slideshow-track {
  position: relative;
  min-height: 300px;
}

@media (min-width: 901px) {
  .hero-slideshow-track {
    min-height: 320px;
  }
}

.hero-slide {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  z-index: 1;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.hero-slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

.hero-slide-caption {
  display: block;
  padding: 0.9rem 1rem 1rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.3;
  border-top: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: 0 0 var(--radius) var(--radius);
  transition: color var(--transition);
}

.hero-slide:hover .hero-slide-caption,
.hero-slide:focus-visible .hero-slide-caption {
  color: var(--accent);
}

.hero-slide:focus {
  outline: none;
}

.hero-slide:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-lg);
}

.hero-slideshow-dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(220px - 1.85rem);
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  z-index: 4;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(6px);
}

[data-theme="dark"] .hero-slideshow-dots {
  background: rgba(0, 0, 0, 0.45);
}

.hero-slideshow-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: #f8fafc;
  opacity: 0.5;
  transition: transform var(--transition), opacity var(--transition);
}

.hero-slideshow-dot:hover {
  opacity: 0.9;
}

.hero-slideshow-dot.is-active {
  opacity: 1;
  background: #5eead4;
  transform: scale(1.2);
}

.hero-slideshow-dot:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat {
  flex: 1 1 120px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text);
}

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(13, 148, 136, 0.45);
}

[data-theme="dark"] .card:hover {
  border-color: rgba(45, 212, 191, 0.45);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-body {
  padding: 1.1rem 1.2rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  font-size: 1.1rem;
  color: var(--text);
}

.card-body p {
  flex: 1;
  font-size: 0.95rem;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.15);
  color: var(--accent);
}

.pill-brand {
  margin-bottom: 0.5rem;
}

.brand-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  align-items: center;
}

.brand-filter-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--muted);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.brand-filter-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

.brand-filter-btn.is-active {
  color: var(--text);
  border-color: var(--accent);
  background: linear-gradient(120deg, rgba(13, 148, 136, 0.18), rgba(234, 88, 12, 0.1));
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.15);
}

[data-theme="dark"] .brand-filter-btn.is-active {
  background: linear-gradient(120deg, rgba(45, 212, 191, 0.2), rgba(251, 146, 60, 0.1));
}

.brand-section-head {
  margin-bottom: 1rem;
}

.brand-section-head h2 {
  margin-bottom: 0.35rem;
}

.brand-section-blurb {
  max-width: 52rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.brand-section.is-filtered-out {
  display: none;
}

[data-theme="dark"] .pill {
  background: rgba(45, 212, 191, 0.15);
}

.prose {
  max-width: 760px;
}

.prose ul {
  padding-left: 1.2rem;
  color: var(--muted);
}

.prose li {
  margin-bottom: 0.35rem;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

table.facts {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

table.facts th,
table.facts td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

table.facts th {
  width: 32%;
  color: var(--text);
  font-family: var(--font-display);
}

table.catalog th,
table.catalog td {
  width: auto !important;
}

table.catalog thead th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery figcaption {
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-layout {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.form-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow);
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

input,
textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  margin-bottom: 1rem;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-msg {
  margin-top: 0.75rem;
  font-weight: 600;
  min-height: 1.5rem;
}

.form-msg.ok {
  color: var(--accent);
}

.form-msg.err {
  color: #dc2626;
}

.contact-captcha {
  margin: 1rem 0 0.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg);
}

.contact-captcha label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
  color: var(--text);
}

.contact-captcha input[type="number"] {
  max-width: 6rem;
  margin-bottom: 0;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-elevated);
  margin-top: 3rem;
  padding: 2.5rem 1.25rem 2rem;
}

.footer-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.footer-muted {
  font-size: 0.92rem;
  margin: 0 0 0.5rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-copy {
  max-width: 1180px;
  margin: 2rem auto 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.two-col {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}
