/* Hyrise Elevator — premium catalogue styling */

:root {
  --ink: #17181c;
  --ink-soft: #45474e;
  --paper: #faf9f6;
  --paper-raised: #ffffff;
  --line: rgba(23, 24, 28, 0.10);
  --accent: #9c7b3f;
  --accent-soft: #c9ad7a;
  --radius: 2px;
  --serif: "Georgia", "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img { height: 34px; width: auto; }

.brand-text {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

nav.main-nav { display: flex; align-items: center; gap: 2.25rem; }

nav.main-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}

nav.main-nav a:hover,
nav.main-nav a.active { color: var(--ink); }

nav.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(23, 24, 28, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 90;
}
.nav-scrim.is-open { opacity: 1; pointer-events: auto; }

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(78vw, 320px);
  background: var(--paper-raised);
  box-shadow: -8px 0 32px rgba(23, 24, 28, 0.18);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 24px;
}
.nav-drawer.is-open { transform: translateX(0); }

.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.nav-drawer-head img { height: 28px; width: auto; }

.nav-drawer-close {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--ink-soft);
  font-size: 1.4rem;
  line-height: 1;
}

.nav-drawer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.nav-drawer-links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  text-decoration: none;
  font-size: 1.02rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.nav-drawer-links a.active { color: var(--accent); font-weight: 600; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.hero img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}

.hero .wrap {
  position: relative;
  padding-bottom: 88px;
  padding-top: 140px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--accent-soft);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  margin: 0 0 20px;
  max-width: 14ch;
}

.hero p.lede {
  max-width: 46ch;
  font-size: 1.08rem;
  color: rgba(255,255,255,0.86);
  margin: 0 0 32px;
}

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #16130c;
  font-weight: 600;
}
.btn-primary:hover { background: var(--accent-soft); }

.btn-ghost {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ---------- Sections ---------- */

section { padding: 96px 0; }
section.tight { padding: 64px 0; }
section.on-paper-raised { background: var(--paper-raised); }

.section-head { max-width: 640px; margin: 0 0 56px; }
.section-head .eyebrow { color: var(--accent); }
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  margin: 0 0 16px;
  line-height: 1.15;
}
.section-head p { color: var(--ink-soft); font-size: 1.02rem; margin: 0; }

/* Mission / about grid */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.stat { border-top: 1px solid var(--line); padding-top: 16px; }
.stat .num {
  font-family: var(--serif);
  font-size: 2.1rem;
  color: var(--accent);
  display: block;
}
.stat .label { font-size: 0.82rem; color: var(--ink-soft); letter-spacing: 0.02em; }

.value-list { display: grid; gap: 28px; }
.value-list .value h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0 0 6px;
}
.value-list .value p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }

/* Product grid */

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}

.product-card {
  background: var(--paper-raised);
  padding: 0;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.product-card .thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #111;
}
.product-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .thumb img { transform: scale(1.05); }

.product-card .body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.product-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 10px;
}
.product-card p.desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0 0 18px;
  flex: 1;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.spec-row strong { color: var(--ink); font-weight: 600; }

/* Gallery strip */

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}

/* Technical page */

.tech-block { margin-bottom: 64px; }
.tech-block h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 0 0 16px;
}
.tech-block p { color: var(--ink-soft); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.spec-table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table.spec-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 760px;
  font-size: 0.86rem;
}
table.spec-table th, table.spec-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}
table.spec-table thead th {
  background: var(--paper);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--ink-soft);
}
table.spec-table tbody tr:hover { background: rgba(156,123,63,0.06); }

.note-list { color: var(--ink-soft); font-size: 0.9rem; padding-left: 18px; }
.note-list li { margin-bottom: 8px; }

.diagram-frame {
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px;
}

/* Contact page */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.office-card {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  margin-bottom: 20px;
}
.office-card h4 {
  font-family: var(--serif);
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.office-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

form.contact-form { display: grid; gap: 18px; }
form.contact-form label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
form.contact-form input,
form.contact-form textarea,
form.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  border-radius: var(--radius);
}
form.contact-form textarea { resize: vertical; min-height: 120px; }

/* Footer */

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  background: var(--ink);
  color: rgba(255,255,255,0.72);
}
footer.site-footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
footer.site-footer .brand-text { color: #fff; }
footer.site-footer h5 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin: 0 0 16px;
}
footer.site-footer a { text-decoration: none; color: rgba(255,255,255,0.72); font-size: 0.9rem; }
footer.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-bottom {
  max-width: var(--max);
  margin: 40px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.6); }

/* Privacy policy */
.privacy-page { padding: 76px 0 100px; }
.privacy-content { max-width: 780px; }
.privacy-content h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin: 12px 0 8px;
}
.privacy-updated { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 36px; }
.privacy-content h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 40px 0 12px;
}
.privacy-content p, .privacy-content li { color: var(--ink-soft); }
.privacy-content ul { padding-left: 24px; }
.privacy-content li { margin: 8px 0; }
.privacy-content a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .about-grid, .two-col, .contact-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
  footer.site-footer .wrap { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  nav.main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .product-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}

/* ---- Floating WhatsApp enquiry button (injected by js/whatsapp.js) ---- */
/* Sits where the old chat widget bubble did, bottom-right above page content. */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80; /* below the nav drawer (100) and its scrim (90) */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366; /* WhatsApp brand green */
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(23, 24, 28, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-float:hover,
.wa-float:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 6px 22px rgba(23, 24, 28, 0.34);
}

.wa-float:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.wa-float-icon {
  width: 30px;
  height: 30px;
  display: block;
}

@media (max-width: 640px) {
  .wa-float {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
  .wa-float-icon {
    width: 28px;
    height: 28px;
  }
}
