/* ==========================================================================
   Bauher — Elevator-themed corporate design system
   Palette: Ink Navy / Deep Blueprint / Blueprint Blue / Signal Amber / Steel / Mist
   ========================================================================== */

:root {
  --ink: #0F2438;
  --ink-2: #16324B;
  --steel: #5C6B78;
  --steel-soft: #8FA0AC;
  --blueprint: #2E6E93;
  --amber: #E8992E;
  --amber-deep: #C97A17;
  --mist: #F2F5F6;
  --paper: #FFFFFF;
  --graphite: #1B242C;
  --line: #DCE3E7;

  --radius: 6px;
  --shadow: 0 4px 18px rgba(15, 36, 56, 0.08);
  --container: 1180px;
}

/* Deliberately single-theme: a B2B industrial brand should look identical
   regardless of the visitor's OS light/dark preference, so we don't
   auto-switch tokens here. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--graphite);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; margin: 0; text-wrap: balance; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 4px; font-weight: 700; font-size: 14px;
  letter-spacing: .01em; border: none; cursor: pointer;
}
.btn--amber { background: var(--amber); color: #1B1200; }
.btn--amber:hover { background: var(--amber-deep); }
.btn--ghost { border: 1px solid rgba(255,255,255,.4); color: #fff; background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--outline { border: 1px solid var(--steel); color: var(--ink-2); background: transparent; }

/* ---------- Header ---------- */
.bar--top { background: var(--ink); color: #cfe0ea; font-size: 12.5px; }
.bar-inner { display: flex; justify-content: space-between; align-items: center; padding: 7px 24px; gap: 12px; flex-wrap: wrap; }
.bar-inner a { color: #EAF0F4; }
.dot-sep { opacity: .5; margin: 0 6px; }
.lang-switch { display: flex; gap: 10px; }
.lang-switch a { opacity: .65; }
.lang-switch a.is-active { opacity: 1; font-weight: 700; color: var(--amber); }

.bar--nav { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.nav-inner { display: flex; align-items: center; gap: 28px; padding: 12px 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .05em; font-size: 18px; color: var(--ink); margin-inline-end: auto; }
.brand img { height: 32px; width: auto; }

.nav-menu { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.nav-menu > li { position: relative; }
.nav-menu > li > a { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 8px 0; display: inline-block; }
.nav-menu > li > a:hover { color: var(--blueprint); }
.caret { display: inline-block; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-inline-start: 3px; }

.drop {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; inset-inline-start: 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  min-width: 210px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: translateY(0); }
.drop a { display: block; padding: 8px 12px; border-radius: 4px; font-size: 13.5px; color: var(--graphite); }
.drop a:hover { background: var(--mist); color: var(--blueprint); }

.nav-toggle { display: none; background: none; border: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  /* Factory photo; the dark wash is heaviest on the text side so copy stays legible
     while the lit building on the right shows through. */
  background:
    linear-gradient(90deg, rgba(15,36,56,.92) 0%, rgba(15,36,56,.78) 40%, rgba(15,36,56,.25) 100%),
    url("../img/hero-factory.jpg") center right / cover no-repeat,
    var(--ink);
  color: #EAF0F4;
  overflow: hidden;
  padding: 96px 0 84px;
}
@media (max-width: 760px) {
  .hero { background:
    linear-gradient(180deg, rgba(15,36,56,.85) 0%, rgba(15,36,56,.9) 100%),
    url("../img/hero-factory.jpg") center / cover no-repeat,
    var(--ink); }
}
.hero-inner { position: relative; max-width: 780px; }
.hero-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); margin: 10px 0 16px; color: #fff; }
.hero p { max-width: 46ch; color: #B9C7D0; font-size: 16.5px; margin: 0 0 28px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  font-size: 11.5px; font-weight: 700; letter-spacing: .03em; padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #cfe0ea;
}

/* ---------- Interactive component map (hotspots) ---------- */
.hotspot-section { background: var(--paper); padding: 64px 0 0; border-bottom: 1px solid var(--line); }
.hotspot-head { text-align: center; max-width: 62ch; margin: 0 auto 32px; }
.hotspot-head h2 { font-size: 30px; color: var(--ink); margin: 8px 0 10px; }
.hotspot-head p { color: var(--steel); }

/* Capped so a portrait-ish photo doesn't produce an overwhelming section
   height; the image is shown uncropped so hotspot percentages map 1:1 to it. */
.hotspot-stage {
  position: relative; max-width: 1060px; margin: 0 auto; line-height: 0;
  border-radius: 8px; box-shadow: 0 8px 30px rgba(15, 36, 56, .14);
}
.hotspot-photo { width: 100%; height: auto; display: block; border-radius: 8px; }
.hotspot-photo--placeholder {
  aspect-ratio: 16 / 10; background:
    repeating-linear-gradient(45deg, #16324B 0 22px, #12283D 22px 44px);
  display: flex; align-items: center; justify-content: center;
  color: #8FA0AC; font: 700 13px/1.4 "Consolas", monospace; letter-spacing: .04em;
}

/* Physical left/top on purpose: the photo never mirrors, so markers must not either.
   Deliberately a ZERO-SIZE anchor with no transform — a transform here would make
   this element the containing block for the panel's position:fixed mobile layout
   and break the bottom sheet. The dot is offset by half its own size instead. */
.hotspot { position: absolute; width: 0; height: 0; line-height: 1.6; z-index: 2; }
.hotspot.is-open { z-index: 60; }

.hotspot-dot {
  position: absolute; left: -15px; top: -15px;
  width: 30px; height: 30px; border-radius: 50%; border: none; padding: 0;
  background: #fff; cursor: pointer; display: block;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .4);
}
.hotspot-dot span {
  position: absolute; inset: 0; margin: auto; width: 12px; height: 12px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat;
  transition: transform .2s ease;
}
.hotspot-dot::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .6); animation: hsPulse 2.6s ease-out infinite;
}
.hotspot-dot:hover { transform: scale(1.08); }
.hotspot.is-open .hotspot-dot span { transform: rotate(45deg); }
.hotspot.is-open .hotspot-dot::after { animation: none; opacity: 0; }

@keyframes hsPulse {
  0%   { transform: scale(.85); opacity: .9; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hotspot-dot::after { animation: none; }
  .hotspot-dot span, .hotspot-panel { transition: none; }
}

.hotspot-panel {
  --ty: 0%;
  position: absolute;
  width: 268px; background: var(--paper); border-radius: var(--radius);
  box-shadow: 0 10px 34px rgba(15, 36, 56, .3);
  padding: 18px 20px; text-align: start;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(var(--ty)) translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
/* Horizontal anchor — open away from the nearer edge. */
.hotspot[data-align="right"] .hotspot-panel { left: 44px; }
.hotspot[data-align="left"]  .hotspot-panel { right: 44px; }

/* Vertical anchor — a marker near the top or bottom of the photo would push a
   vertically-centred panel off the canvas, so pin it inwards instead. */
.hotspot[data-valign="middle"] .hotspot-panel { top: 50%; --ty: -50%; }
.hotspot[data-valign="top"]    .hotspot-panel { top: -12px; }
.hotspot[data-valign="bottom"] .hotspot-panel { bottom: -12px; }

.hotspot.is-open .hotspot-panel,
.hotspot:focus-within .hotspot-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateY(var(--ty)) translateY(0);
}
@media (hover: hover) {
  .hotspot:hover .hotspot-panel {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateY(var(--ty)) translateY(0);
  }
}

.hotspot-panel-eyebrow {
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber-deep);
}
.hotspot-panel h3 { font-size: 16.5px; color: var(--ink); margin: 5px 0 7px; }
.hotspot-panel p { font-size: 13px; color: var(--steel); margin: 0 0 11px; }
.hotspot-panel ul {
  list-style: none; margin: 0 0 13px; padding: 0;
  display: flex; flex-direction: column; gap: 5px;
}
.hotspot-panel li {
  font-size: 12.5px; color: var(--ink-2); padding-inline-start: 16px; position: relative;
}
.hotspot-panel li::before { content: "▸"; position: absolute; inset-inline-start: 0; color: var(--amber); }
.hotspot-panel .view { font-size: 12.5px; font-weight: 700; color: var(--blueprint); }
.hotspot-panel .view:hover { color: var(--amber-deep); }

.hotspot-hint {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 16px 24px 26px; font-size: 12.5px; color: var(--steel);
}
.hotspot-hint-dot {
  width: 11px; height: 11px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 1px 5px rgba(0, 0, 0, .25); flex-shrink: 0;
}

@media (max-width: 860px) {
  /* Markers stay pinned to the photo, but panels become a centred card so they
     can never spill off a narrow screen. */
  .hotspot-dot { width: 24px; height: 24px; left: -12px; top: -12px; }
  .hotspot-dot span { width: 10px; height: 10px; background-size: 10px 2px, 2px 10px; }
  /* Selectors are attribute-qualified to match the specificity of the
     data-align / data-valign anchoring rules above, which they must override. */
  .hotspot[data-align] .hotspot-panel,
  .hotspot[data-valign] .hotspot-panel {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0;
    width: auto; max-width: none; border-radius: var(--radius) var(--radius) 0 0;
    transform: translateY(100%); padding: 20px 22px 24px;
  }
  .hotspot[data-align].is-open .hotspot-panel,
  .hotspot[data-valign].is-open .hotspot-panel,
  .hotspot[data-align]:focus-within .hotspot-panel { transform: translateY(0); }
}

/* ---------- Stats ---------- */
.stats { background: var(--paper); border-bottom: 1px solid var(--line); padding: 56px 0; }
.stats-head { text-align: center; max-width: 60ch; margin: 0 auto 36px; }
.stats-head h2 { font-size: 26px; color: var(--ink); }
.stats-head p { color: var(--steel); margin-top: 8px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 20px; border-inline-start: 2px solid var(--amber); }
.stat .value { font-family: Georgia, serif; font-size: 38px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat .label { font-size: 13px; color: var(--steel); text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }

/* ---------- Section shell ---------- */
.section { padding: 84px 0; }
.section--alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 62ch; margin: 0 auto 48px; }
.section-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-deep); }
.section-head h2 { font-size: 32px; color: var(--ink); margin: 8px 0 10px; }
.section-head p { color: var(--steel); }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; position: relative; overflow: hidden;
}
.service-card::before {
  /* door-panel seam motif */
  content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 50%; width: 1px;
  background: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 12px);
  opacity: .5;
}
.service-num { font-family: "Consolas", monospace; font-size: 12px; color: var(--steel-soft); font-weight: 700; }
.service-card h3 { font-size: 19px; color: var(--ink); margin: 8px 0 10px; }
.service-card p { color: var(--steel); font-size: 14px; margin: 0 0 14px; }
.service-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.service-card li { font-size: 13px; color: var(--ink-2); padding-inline-start: 18px; position: relative; }
.service-card li::before { content: "▸"; position: absolute; inset-inline-start: 0; color: var(--amber); }

.services-cta {
  margin-top: 40px; background: var(--ink); color: #EAF0F4; border-radius: var(--radius);
  padding: 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.services-cta h3 { color: #fff; font-size: 20px; }
.services-cta p { color: #B9C7D0; max-width: 52ch; margin: 8px 0 0; font-size: 14px; }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.product-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.product-thumb {
  height: 170px; background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  color: var(--amber); font-family: Georgia, serif; font-size: 28px; font-weight: 700;
  overflow: hidden;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 6px; padding: 12px 20px 0;
}
.product-gallery img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px;
  border: 1px solid var(--line); cursor: zoom-in;
}
.product-card .meta { padding: 20px; }
.product-card h3 { font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.product-card p { font-size: 13.5px; color: var(--steel); margin: 0 0 12px; }
.product-card ul { list-style: none; margin: 0 0 16px; padding: 0; font-size: 12.5px; color: var(--ink-2); }
.product-card li { padding-inline-start: 16px; position: relative; margin-bottom: 4px; }
.product-card li::before { content: "•"; position: absolute; inset-inline-start: 0; color: var(--blueprint); }
.product-card .view { font-size: 13px; font-weight: 700; color: var(--blueprint); }
.product-card .view:hover { color: var(--amber-deep); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; }
.contact-info-list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-info-list li { display: flex; gap: 14px; align-items: flex-start; }
.ci-icon {
  width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--amber);
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}
.ci-label { font-size: 12px; color: var(--steel); text-transform: uppercase; letter-spacing: .04em; }
.ci-value { font-weight: 700; color: var(--ink); }
.ci-note { font-size: 12.5px; color: var(--steel); }

.hours-table { margin-top: 26px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hours-row { display: flex; justify-content: space-between; padding: 10px 16px; font-size: 13.5px; }
.hours-row:nth-child(odd) { background: var(--paper); }
.hours-row:nth-child(even) { background: var(--mist); }
.hours-row span:last-child { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink-2); }

.contact-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.contact-form h3 { font-size: 20px; color: var(--ink); margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.form-field input, .form-field select, .form-field textarea {
  border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; font: inherit; font-size: 14px;
  background: var(--mist); color: var(--graphite);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--blueprint); outline-offset: 1px; }
.form-note { font-size: 12px; color: var(--steel); margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B9C7D0; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand--footer { color: #fff; margin-bottom: 12px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #fff; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.footer-col a:hover { color: var(--amber); }
.footer-contact li { margin-bottom: 4px; }
.footer-bottom { display: flex; justify-content: space-between; padding: 18px 24px; font-size: 12.5px; flex-wrap: wrap; gap: 10px; }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a:hover { color: var(--amber); }

.whatsapp-fab {
  position: fixed; inset-inline-end: 22px; bottom: 22px; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25); z-index: 50;
}

/* ---------- Legal / plain pages ---------- */
.legal-page { padding: 64px 0 90px; }
.legal-page .wrap { max-width: 760px; }
.legal-page h1 { font-size: 30px; color: var(--ink); margin-bottom: 8px; }
.legal-entity-note { font-size: 13px; color: var(--steel); border-inline-start: 3px solid var(--steel); padding-inline-start: 14px; margin: 18px 0 32px; }
.legal-page h2 { font-size: 18px; color: var(--ink-2); margin: 28px 0 10px; }
.legal-page p, .legal-page li { color: var(--graphite); font-size: 14.5px; }

.page-hero {
  background: var(--ink); color: #fff; padding: 60px 0; text-align: center;
}
.page-hero h1 { font-size: 32px; color: #fff; }
.page-hero p { color: #B9C7D0; margin-top: 8px; }

.simple-block { max-width: 760px; margin: 0 auto; padding: 64px 24px; }
.simple-block h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--steel); margin-bottom: 10px; }
.simple-block p { font-size: 15.5px; }
.simple-block ul { padding-inline-start: 20px; }

.filters { display: flex; gap: 12px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.filters select { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 13px; background: var(--paper); }
.empty-state { text-align: center; color: var(--steel); padding: 40px 20px; border: 1px dashed var(--line); border-radius: var(--radius); }

/* overflow guard for any wide tables */
.overflow-x { overflow-x: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-menu { position: absolute; top: 100%; inset-inline: 0; background: var(--paper); flex-direction: column; padding: 12px 24px; border-bottom: 1px solid var(--line); display: none; gap: 4px; }
  .nav-menu.is-open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .drop { position: static; box-shadow: none; border: none; display: none; opacity: 1; visibility: visible; transform: none; }
  .has-drop:hover .drop, .has-drop:focus-within .drop { display: block; }
  .service-grid, .stats-grid, .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
