/* No scrollbars: this page is designed to fit inside the viewport */
:root {
  --ink: #1f1f1f;
  --muted: rgba(0, 0, 0, 0.65);
  --card: rgba(255, 255, 255, 0.38);
  --card2: rgba(255, 255, 255, 0.18);
  --stroke: rgba(255, 255, 255, 0.55);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.12);
  --red: #d32619;
  --red-dark: #b81f14;

  /* Your background file in the same folder */
  --hero-bg: url("../img_/heidenhain-encoder-industrial-bg.webp");
}

* {
  box-sizing: border-box;
}


/*------------------ Disable Verticle Scrollbar */
html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.hero {
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  position: relative;
}

.main {
  align-items: start;
  margin-top: 16px; /* or 0 */
  position: relative;
  z-index: 2;
  padding: 0 clamp(14px, 2.4vw, 26px) 12px;
  display: grid;
  grid-template-columns: 2fr minmax(360px, 420px);
  gap: clamp(14px, 2.6vw, 28px);

  min-height: 0; /* allow internal sizing without overflow */
}

/* Footer */
.footer {
  position: relative;
  z-index: 2;

  min-height: 34px;
  padding: 8px 12px;
  height: auto;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 15px;
  /*  font-weight: 500;*/
  letter-spacing: 0.5px;

  color: #ffffff;
  background-color: #111111;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

/*------------------*/

body {
  margin: 0;

  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  color: var(--ink);
  background: #f3efea;

  overflow-x: hidden;
  overflow-y: auto;
}

/* Background image layer - Blur the image*/
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  /*  filter: blur(2px) saturate(1.05) contrast(0.95);*/
  z-index: 0;
}

/* Beige overlay */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      1200px 500px at 65% 28%,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0) 55%
    ),
    linear-gradient(0deg, rgba(239, 230, 223, 0.74), rgba(239, 230, 223, 0.44));

  pointer-events: none;
  z-index: 0;
}

/* Top bar */
.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(14px, 2.4vw, 26px);
}

.logo {
  display: block;
  width: clamp(110px, 14vw, 170px);
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav {
  margin-left: auto; /* push menu to extreme right */
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(10px, 1.7vw, 22px);
  font-size: 15px;
  flex-wrap: wrap;
  max-width: 74vw;
}

.copy .content-text {
  margin-top: 10px;
}
.nav a {
  color: rgba(0, 0, 0, 0.72);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 10px;
}
.nav a:hover {
  text-decoration: underline;
  background: rgba(255, 255, 255, 0.18);
}

/* Main area: left content + right form */

.copy {
  min-height: 0;
}

.copy h1 {
  margin: 0 0 20px;
  font-size: clamp(21px, 2.8vw, 34px);
  letter-spacing: 0.2px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.copy h2 {
  margin: 20px 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.copy h3 {
  margin: 14px 0 6px;   /* top | bottom */
  font-size: 17px;      /* slightly smaller than h2 */
  line-height: 1.3;
}

.copy p {
  margin: 0 0 14px;
}

.phones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.75);
  margin-bottom: 20px;
}
.phones__label {
  font-weight: 700;
}
.phones a {
  color: inherit;
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.phones a:hover {
  text-decoration: underline;
}
.sep {
  opacity: 0.7;
}

.phones .icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
  opacity: 0.85;
  flex: 0 0 auto;
}
.phones__label-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.phones__email {
  display: flex;
  align-items: center;
  gap: 6px;
}

.content-text {
  margin: 0;
  color: rgba(0, 0, 0, 0.72);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.5;
  max-width: 1200px; /* increase this */
  width: 100%;
  /* Keep it inside viewport on small devices (no scrolling). */
  /*  display: -webkit-box;*/
  /*  -webkit-box-orient: vertical;*/
  /*  overflow: hidden;*/
  overflow-x: hidden;
  overflow-y: auto;
  /*  -webkit-line-clamp: 10;*/
  /*  line-clamp: 10;*/
  text-align: justify;
  max-height: 275px;
  padding-right: 10px;
}

/* Chrome, Edge, Safari */
.content-text::-webkit-scrollbar {
  width: 6px;
}

.content-text::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.content-text::-webkit-scrollbar-thumb {
  background-color: var(--red);
  border-radius: 10px;
}

.content-text::-webkit-scrollbar-thumb:hover {
  background-color: var(--red-dark);
}

/* Firefox */
.content-text {
  margin: 0;
  color: rgba(0, 0, 0, 0.72);
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.5;
  max-width: 1200px;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  text-align: justify;
  max-height: 275px;
  padding-right: 10px;
  background: rgba(255, 250, 240, 0.3); /* semi-transparent white/cream */

  padding: 12px 18px; /* add padding so text doesn't touch edges */
  padding-left: 20px;
  padding-right: 20px;
  border-radius: 0; /* reset everything */
  border-top-left-radius: 24px; /* round ONLY top-left */
}

/* Right form aligned to extreme right */
.panel {
  display: flex;
  justify-content: flex-end; /* extreme right */
  min-height: 0;
}

.card {
  width: min(420px, 100%);
  padding: clamp(14px, 2vw, 22px);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--card), var(--card2));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.field {
  margin: 10px 0;
}

.input,
.textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.textarea {
  min-height: 110px;
  resize: none;
}

.btn {
  width: 100%;
  margin: 12px 0 0;
  border: none;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  padding: 12px 14px;
  box-shadow: 0 10px 18px rgba(211, 38, 25, 0.35);
  cursor: pointer;
  transition: transform 0.06s ease, background 0.12s ease;
}
.btn:hover {
  background: var(--red-dark);
}
.btn:active {
  transform: translateY(1px);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
  height: 2px;
  width: 100%;
  background: #1f1f1f;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.2s ease, background 0.2s ease;
}

.nav__inner {
  display: contents; /* keeps desktop layout unchanged */
}

/* WhatsApp Button */
/* ===== WhatsApp Floating Button ===== */
.chat-pill {
  position: fixed;
  right: 2px;
  bottom: 40px;
  z-index: 99999;

  width: 150px; /* controls button size */
  max-width: 88vw; /* keeps it visible on mobile */

  display: block; /* important: prevents collapsing */
  line-height: 0; /* removes inline spacing */
}

.chat-pill svg {
  width: 100%;
  height: auto; /* important: ensures it has height */
  display: block;
}

/* If some parent has overflow hidden, this helps keep it visible */
body {
  overflow-x: hidden;
}

.main {
  margin-top: 16px;
} /* or 0 */

/* Backdrop for mobile menu */
.nav-backdrop {
  display: none;
}

/*------------------------------------------------------------*/



/* Hide image on desktop */
.product-icons {
  display: none;
}

/*-----------------*/
