/* =========================================================================
   VARIANT: Premium & Polished
   Layered on top of styles.css. Keeps the Ergocentrix identity but adds
   depth: gradient surfaces, soft layered shadows, refined type, and
   gentle motion. Nothing flashy — just more considered.
   ========================================================================= */

:root {
  --ink: #141c24;
  --muted: #5a6776;
  --line: #e6ebef;
  --brand: #0e7682;
  --brand-dark: #083e46;
  --accent: #e0a93b;
  --accent-soft: #fbf2dd;
  --tint: #f0f7f8;
  --shadow-sm: 0 1px 2px rgba(20, 28, 36, 0.05), 0 4px 12px rgba(20, 28, 36, 0.06);
  --shadow-md: 0 8px 20px rgba(20, 28, 36, 0.08), 0 24px 48px rgba(20, 28, 36, 0.09);
  --shadow-brand: 0 14px 30px rgba(14, 118, 130, 0.22);
  --radius: 14px;
}

body {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(14, 118, 130, 0.06), transparent 60%),
    radial-gradient(900px 500px at -5% 5%, rgba(224, 169, 59, 0.07), transparent 55%),
    var(--paper);
  letter-spacing: 0.1px;
}

/* ---- Header: glassier, finer ---- */
.site-header {
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(20, 28, 36, 0.06);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
}

.promo-bar {
  background: linear-gradient(90deg, var(--brand-dark), var(--brand));
  letter-spacing: 0.4px;
  font-weight: 600;
}

.site-menu a {
  position: relative;
  transition: color 160ms ease;
}

.site-menu a::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.site-menu a:hover,
.site-menu a:focus {
  background: transparent;
  color: var(--brand-dark);
}

.site-menu a:hover::after,
.site-menu a:focus::after {
  transform: scaleX(1);
}

/* ---- Buttons: depth + glow ---- */
.button {
  border-radius: 999px;
  letter-spacing: 0.2px;
  transition: transform 180ms ease, box-shadow 220ms ease, background 200ms ease;
}

.button-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: var(--shadow-brand);
}

.button-primary:hover,
.button-primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(14, 118, 130, 0.32);
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
}

.button-secondary {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.button-secondary:hover,
.button-secondary:focus {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ---- Hero: elevated framed media, refined copy ---- */
.hero-copy h1 {
  max-width: none;
  background: linear-gradient(115deg, var(--ink) 30%, var(--brand-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #9a6f10;
  letter-spacing: 1.2px;
}

.hero-media {
  position: relative;
  border: 1px solid rgba(20, 28, 36, 0.06);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.9), transparent 55%),
    linear-gradient(150deg, rgba(14, 118, 130, 0.14), rgba(224, 169, 59, 0.16)),
    var(--tint);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

/* ---- Service strip: floating cards instead of flat grid ---- */
.service-strip {
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 22px 4px;
  background: transparent;
  border: 0;
}

.service-strip div {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 220ms ease;
}

.service-strip div:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.service-strip strong {
  color: var(--brand-dark);
}

/* ---- Section headings ---- */
.section-heading h2 {
  letter-spacing: -0.5px;
}

/* ---- Toolbar ---- */
.toolbar {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm);
}

input,
select,
textarea {
  border-radius: 10px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 118, 130, 0.14);
}

/* ---- Product cards: refined lift + image zoom ---- */
.product-card {
  border-radius: 18px;
  border-color: rgba(20, 28, 36, 0.07);
  box-shadow: var(--shadow-sm);
  transition: transform 240ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 240ms ease, border-color 240ms ease;
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(14, 118, 130, 0.28);
  box-shadow: var(--shadow-md);
}

.product-media {
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.95), transparent 60%),
    var(--tint);
}

.product-image {
  transition: transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1), opacity 180ms ease;
}

.product-card:hover .product-image-primary {
  transform: scale(1.04);
}

.sale-badge {
  background: linear-gradient(135deg, var(--accent), #d4941f);
  color: #2a1c00;
  box-shadow: 0 6px 14px rgba(224, 169, 59, 0.35);
}

.stock-badge {
  background: rgba(20, 28, 36, 0.78);
  backdrop-filter: blur(4px);
}

.current-price {
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-list li {
  background: var(--tint);
  border-color: rgba(14, 118, 130, 0.16);
}

/* ---- FAQ: smoother cards ---- */
.faq-list details {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 200ms ease;
}

.faq-list details[open] {
  box-shadow: var(--shadow-md);
}

.faq-list summary {
  list-style: none;
  transition: color 160ms ease;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  float: right;
  margin-left: 12px;
  color: var(--brand);
  font-weight: 700;
  transition: transform 220ms ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

/* ---- Contact form ---- */
.inquiry-form {
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.92);
}

/* ---- Footer: gradient + brand glow ---- */
.site-footer {
  background:
    radial-gradient(800px 300px at 12% 0%, rgba(14, 118, 130, 0.18), transparent 60%),
    var(--ink);
}

/* =========================================================================
   INTERIOR PAGES — Fit Finder, Chair Specs, Manuals, Warranty, Product
   Same premium language (rounded surfaces, soft shadows, gradient accents,
   gentle hover lift) carried across the rest of the site.
   ========================================================================= */

/* ---- Page intros: gradient headline to match the hero ---- */
.fit-intro h1,
.spec-intro h1,
.detail-copy h1 {
  max-width: none;
  background: linear-gradient(115deg, var(--ink) 30%, var(--brand-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- Shared rounding for unit inputs ---- */
.input-with-unit {
  border-radius: 10px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.input-with-unit:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 118, 130, 0.14);
}

/* ---- Fit Finder: tabs ---- */
.fit-tabs {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm);
}

.fit-tab {
  border-radius: 999px;
  transition: color 160ms ease, background 200ms ease, box-shadow 220ms ease;
}

.fit-tab:hover,
.fit-tab:focus,
.fit-tab.is-active {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: var(--shadow-brand);
}

/* ---- Fit Finder: form + result cards ---- */
.fit-form {
  border-radius: 18px;
  border-color: rgba(20, 28, 36, 0.07);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.fit-result {
  border-radius: 16px;
  border-color: rgba(20, 28, 36, 0.07);
  box-shadow: var(--shadow-sm);
  transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 220ms ease, border-color 220ms ease;
}

.fit-result:hover {
  transform: translateY(-4px);
  border-color: rgba(14, 118, 130, 0.26);
  box-shadow: var(--shadow-md);
}

.fit-result-media,
.measurement-summary,
.measurement-list div,
.photo-measure-legend div,
.photo-preview,
.annotated-photo-frame {
  border-radius: 12px;
}

.fit-result-title span {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--brand-dark);
}

.fit-spec-list li {
  background: var(--tint);
  border-color: rgba(14, 118, 130, 0.16);
}

.measurement-summary {
  border-color: rgba(14, 118, 130, 0.16);
  background: linear-gradient(160deg, var(--tint), rgba(255, 255, 255, 0.6));
}

/* ---- Chair Specs: comparison ---- */
.compare-toggle span {
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.compare-toggle input:checked + span {
  box-shadow: 0 0 0 3px rgba(14, 118, 130, 0.12), var(--shadow-sm);
}

.comparison-table-wrap {
  border-radius: 16px;
  border-color: rgba(20, 28, 36, 0.08);
  box-shadow: var(--shadow-sm);
}

.spec-table thead th {
  background: linear-gradient(180deg, var(--tint), rgba(255, 255, 255, 0.4));
}

.spec-value {
  border-radius: 999px;
}

.spec-value-available {
  border-color: rgba(14, 118, 130, 0.22);
  background: var(--tint);
}

/* ---- Feature guide cards (specs + product pages) ---- */
.feature-guide-card {
  border-radius: 16px;
  border-color: rgba(20, 28, 36, 0.07);
  box-shadow: var(--shadow-sm);
  transition: transform 220ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 220ms ease;
}

.feature-guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-visual {
  border-radius: 12px;
}

/* ---- Manuals ---- */
.manual-item {
  border-radius: 16px;
  border-color: rgba(20, 28, 36, 0.07);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 220ms ease, border-color 220ms ease;
}

.manual-item:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 118, 130, 0.26);
  box-shadow: var(--shadow-md);
}

.manual-type {
  display: inline-block;
  margin-bottom: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #9a6f10;
}

/* ---- Warranty / policy cards ---- */
.policy-list article {
  border-radius: 16px;
  border-color: rgba(20, 28, 36, 0.07);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms ease, box-shadow 220ms ease;
}

.policy-list article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ---- Product detail ---- */
.detail-media {
  border-radius: 18px;
  border-color: rgba(20, 28, 36, 0.08);
  box-shadow: var(--shadow-md);
}

.detail-image-panel,
.product-spec-list div {
  border-radius: 16px;
}

.detail-image-panel {
  border-color: rgba(20, 28, 36, 0.07);
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.95), transparent 60%),
    var(--tint);
  box-shadow: var(--shadow-sm);
}

.product-spec-list div {
  border-color: rgba(20, 28, 36, 0.07);
  box-shadow: var(--shadow-sm);
}

.detail-copy .feature-list li {
  background: var(--tint);
  border-color: rgba(14, 118, 130, 0.16);
}

.video-placeholder span {
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* ---- Gentle reveal on load ---- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-media,
  .section-heading,
  .product-card,
  .service-strip div {
    animation: premium-rise 620ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero-media { animation-delay: 80ms; }
  .product-card:nth-child(2) { animation-delay: 60ms; }
  .product-card:nth-child(3) { animation-delay: 120ms; }
  .product-card:nth-child(4) { animation-delay: 160ms; }

  @keyframes premium-rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
