/* =========================================================
   ZENFLEX — Oct 2026 UI fixes: hero banner, product cards,
   quote pop-up, layout corrections. Loaded after styles.css
   and banner-overrides.css so it wins on conflicts.
   ========================================================= */
:root {
  --red: #e30613;
  --red-dark: #b8000f;
  --yellow: #ffd400;
  --ink: #10131a;
  --soft: #f5f6f8;
  --line: #e6e8ec;
  --radius: 14px;
}

/* ---------- Header ---------- */
.header { box-shadow: 0 1px 0 var(--line); }
.logo { width: clamp(170px, 18vw, 240px); }
@media (max-width: 1150px) { .nav-wrap { gap: 20px; } nav { gap: 22px; } }

/* ---------- Product carousel ---------- */
.carousel { mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%); padding-block: 8px 18px; }
.product-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .35); border-color: #f3c3c6; }
.product-card .product-photo { background: #fff; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.product-card .product-photo img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
@media (max-width: 600px) { .product-card .product-photo { padding: 10px 8px 8px; } .product-card .product-info { padding: 12px 12px 14px; } .product-card .product-info h3 { font-size: 13.5px; } .product-tag { font-size: 9.5px; letter-spacing: .8px; } }
.product-card:hover .product-photo img { transform: scale(1.05); }
.product-card .product-info { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-tag { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: #8a8f97; }
.product-card .product-info h3 { font-size: 16px; line-height: 1.3; min-height: 2.6em; margin: 0; color: var(--ink); }
.product-card .product-info a { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; color: var(--red); font-weight: 700; font-size: 14px; }
.product-card .product-info a i { transition: transform .2s; }
.product-card:hover .product-info a i { transform: translateX(4px); }
.carousel-controls button { display: grid; place-items: center; }

/* ---------- Layout / UI fixes ---------- */
.heritage-item p, .section-heading > p, .supply-copy p { text-wrap: pretty; }
.form-row { gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; }
label.consent { flex-direction: row; align-items: flex-start; gap: 10px; }
.quality-icon i { color: var(--red); }
.faq summary { cursor: pointer; }

/* Floating contact: bottom-right, out of the reading column */
.floating-contact { left: auto; right: 18px; bottom: 22px; gap: 10px; }
.floating-contact a { width: 50px; height: 50px; font-size: 22px; }
@media (max-width: 600px) {
  .floating-contact { right: 12px; bottom: 14px; }
  .floating-contact a { width: 46px; height: 46px; font-size: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; padding: 22px 0 80px; }
  .footer-bottom p { max-width: none; }
}

/* Footer on inner pages uses the same grid as the homepage */
.footer-contact a { display: block; font-size: 12px; line-height: 1.5; margin-top: 5px; }
.footer-contact p { font-size: 12px; line-height: 1.6; margin-top: 5px; }

/* Inner page nav active state */
nav a[aria-current="page"] { color: var(--red); }
nav a[aria-current="page"]:after { width: 100%; }

/* ---------- Quote pop-up ---------- */
html.modal-open { overflow: hidden; }
.quote-modal {
  width: min(880px, calc(100% - 28px)); max-height: calc(100dvh - 28px);
  padding: 0; border: 0; border-radius: 18px; overflow: hidden;
  display: none; grid-template-columns: .85fr 1fr; color: var(--ink); background: #fff;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55);
}
.quote-modal[open] { display: grid; animation: quote-in .35s cubic-bezier(.2, .8, .2, 1); }
.quote-modal::backdrop { background: rgba(10, 12, 16, .62); backdrop-filter: blur(3px); }
@keyframes quote-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.quote-modal__aside { position: relative; background: linear-gradient(160deg, #10131a, #2a0f13); display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; color: #fff; overflow: hidden; }
.quote-modal__aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; opacity: .9; }
.quote-modal__aside::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10, 12, 16, .85)); }
.quote-modal__aside p { position: relative; z-index: 1; font-size: 15px; line-height: 1.5; }
.quote-modal__aside strong { display: block; font-family: Manrope, Arial, sans-serif; font-size: 28px; color: #fff; }
.quote-modal__body { position: relative; padding: 32px 32px 26px; overflow-y: auto; max-height: calc(100dvh - 28px); }
.quote-modal__body h2 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.8px; }
.quote-lead { color: var(--muted); font-size: 14px; margin: 8px 0 18px; }
.quote-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; font-size: 16px; color: var(--ink); }
.quote-close:hover { background: var(--ink); color: #fff; }
#quote-form { display: grid; gap: 12px; }
#quote-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#quote-form label { font-size: 12.5px; font-weight: 600; color: #3b4048; }
#quote-form input:not([type="checkbox"]), #quote-form select, #quote-form textarea { width: 100%; border: 1px solid #d9dce1; border-radius: 8px; padding: 11px 12px; font-size: 14px; background: #fff; color: var(--ink); }
#quote-form input:focus, #quote-form select:focus, #quote-form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(227, 6, 19, .12); }
#quote-form textarea { resize: vertical; min-height: 64px; }
#quote-form .consent { font-size: 12px; font-weight: 400; color: #626771; }
#quote-form .send { width: 100%; }
#quote-form .form-status { font-size: 13px; color: #2c6e3f; }
@media (max-width: 720px) {
  .quote-modal { grid-template-columns: 1fr; }
  .quote-modal__aside { display: none; }
  .quote-modal__body { padding: 26px 20px 20px; }
  #quote-form .form-row { grid-template-columns: 1fr; }
}

/* About page heading fits on small phones */
@media (max-width: 600px) {
  .about-content h2 { font-size: 28px; letter-spacing: -.6px; overflow-wrap: anywhere; }
  .about-redesign { overflow: hidden; }
}
