/* Aveloria visible redesign - B2B manufacturing with restrained beauty polish */
:root {
  --ink: #171a1b;
  --ink2: #303638;
  --muted: #687174;
  --paper: #ffffff;
  --pearl: #f2f5f4;
  --soft: #e5e9e7;
  --line: #dbe1df;
  --gold: #b59765;
  --rose: #c74f5b;
  --teal: #4d7374;
  --shadow: 0 18px 50px rgba(23, 26, 27, .09);
  --radius: 8px;
  --max: 1240px;
}

html { overflow-x: clip; }
body { background: var(--paper); color: var(--ink); letter-spacing: 0; }
h1, h2, h3, p, a, span, strong, button, input, select, textarea { letter-spacing: 0; }
.container { width: min(var(--max), calc(100% - 48px)); }
h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.08; letter-spacing: 0; }
h3 { font-size: 19px; }
.eyebrow { margin-bottom: 12px; color: var(--rose); font-size: 12px; letter-spacing: 0; }
.lead, .subheading { color: var(--muted); }

/* Navigation */
.site-header,
.header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
}
.nav-wrap,
.nav { min-height: 74px; height: 74px; }
.brand { gap: 10px; color: var(--ink); font-size: 18px; font-weight: 760; letter-spacing: 0; }
.brand img, .brand-mark { width: 34px; height: 34px; }
.nav-links { gap: 20px; }
.nav-links a { padding: 25px 0 22px; border-bottom: 2px solid transparent; color: var(--ink2); font-size: 13px; font-weight: 700; }
.nav-links a:hover { border-color: var(--rose); color: var(--ink); }
.nav-links a[aria-current="page"] { border-color: var(--rose); color: var(--ink); }
.btn { min-height: 46px; padding: 0 20px; border-radius: 6px; font-size: 13px; letter-spacing: 0; }
.btn:hover { transform: translateY(-1px); }
.btn-dark { background: var(--ink); box-shadow: none; }
.btn-dark:hover { background: var(--rose); }
.btn-outline { border-color: #bfc7c4; background: transparent; }
.nav-cta { margin-left: 6px; background: var(--rose); }

/* Full-bleed homepage hero */
.hero {
  position: relative;
  display: flex;
  min-height: min(760px, calc(100vh - 110px));
  padding: 0;
  overflow: hidden;
  background: #131617;
}
.hero-grid {
  position: relative;
  display: flex;
  min-height: min(760px, calc(100vh - 110px));
  align-items: center;
}
.hero-grid > div:first-child {
  position: relative;
  z-index: 2;
  width: min(690px, 64%);
  padding: 64px 0;
  color: #fff;
}
.hero h1 {
  max-width: 680px;
  color: #fff;
  font-size: clamp(48px, 5.4vw, 72px);
  font-weight: 500;
  line-height: 1.01;
  letter-spacing: 0;
}
.hero .eyebrow { color: #f2c5c9; }
.hero .lead { max-width: 630px; color: rgba(255, 255, 255, .84); font-size: 18px; }
.hero .hero-frame {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin: 0;
  transform: translateX(-50%);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.hero .hero-frame::after {
  position: absolute;
  inset: 0;
  background: rgba(11, 14, 15, .58);
  content: "";
}
.hero .hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.hero-actions { margin-top: 28px; }
.hero .btn-dark { background: var(--rose); color: #fff; }
.hero .btn-outline { border-color: rgba(255, 255, 255, .65); color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--ink); }
.hero-notes {
  max-width: 650px;
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, .35);
  border-bottom: 1px solid rgba(255, 255, 255, .35);
}
.hero .note-card {
  padding: 15px 18px 15px 0;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .25);
  border-radius: 0;
  background: transparent;
}
.hero .note-card:last-child { border-right: 0; }
.hero .note-card strong { color: #fff; font-size: 16px; }
.hero .note-card span { color: rgba(255, 255, 255, .72); }

/* Sections and information hierarchy */
.section { padding: clamp(72px, 8vw, 104px) 0; }
.section-soft { background: var(--pearl); }
.section-dark { background: var(--ink); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .62fr); gap: 54px; align-items: end; margin-bottom: 36px; }
.section-head > p { margin: 0; color: var(--muted); }
.hero + .section { padding: 46px 0; border-bottom: 1px solid var(--line); background: #fff; }
.hero + .section .section-head { margin-bottom: 28px; }

.feature-card,
.faq-item,
.compare-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--rose);
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
}
.feature-card p,
.faq-item p,
.compare-card p { font-size: 14px; }
.market-card {
  padding: 20px 22px;
  border: 0;
  border-left: 3px solid var(--teal);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.market-card:hover { background: #fff; }

/* Product selection */
.products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}
.product-card:hover { transform: translateY(-3px); border-color: #b9c3c0; box-shadow: var(--shadow); }
.product-image { aspect-ratio: 1 / 1; background: #f3f5f4; }
.product-image img { object-fit: cover; transition: transform .25s ease; }
.product-card:hover .product-image img { transform: scale(1.025); }
.product-copy { display: flex; min-height: 220px; flex: 1; flex-direction: column; padding: 18px; }
.product-copy h3 { font-size: 17px; line-height: 1.3; }
.product-copy .category { color: var(--rose); font-size: 10px; letter-spacing: 0; }
.product-copy .card-links { margin-top: auto; }
.card-links a { color: var(--ink); }
.card-links a:first-child { color: var(--rose); }
.product-card[hidden] { display: none; }
.product-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  padding-bottom: 14px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}
.product-filter-button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--ink2);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.product-filter-button:hover { border-color: var(--teal); }
.product-filter-button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.product-filter-count { margin-left: auto; color: var(--muted); font-size: 13px; white-space: nowrap; }

/* Process and buyer flow */
.process-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.process-card {
  min-height: 190px;
  padding: 24px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.process-card .num,
.num { width: 32px; height: 32px; border-radius: 4px; background: var(--teal); color: #fff; }
.section-dark .process-grid { border-color: rgba(255, 255, 255, .16); }
.section-dark .process-card { border-color: rgba(255, 255, 255, .16); }
.section-dark .process-card h3 { color: #fff; }
.section-dark .process-card .num { background: var(--rose); }

/* Manufacturing homepage */
.home-mfg-section { background: var(--pearl); }
.home-mfg-intro, .home-mfg-cert { gap: 64px; }
.home-mfg-image, .home-mfg-cert-image, .home-mfg-lab-media { border-radius: 8px; box-shadow: none; }
.home-mfg-image img,
.home-mfg-cert-image img,
.home-mfg-lab-media img {
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center;
}
.home-mfg-image img, .home-mfg-card img { background: #eef2f1; }
.home-mfg-cert-image img, .home-mfg-lab-media img { background: #fff; }
.home-mfg-badge, .home-mfg-tags span, .home-mfg-cert-list div { border-radius: 5px; }
.home-mfg-card { border-radius: 8px; box-shadow: none; }
.home-mfg-card img {
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center;
  background: #eef2f1;
}
.factory-media {
  position: relative;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #e9eeec;
}
.factory-media img,
.home-mfg-card .factory-media img,
.factory-page .article-card .factory-media img {
  display: block;
  width: 100% !important;
  max-width: none;
  height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center;
  transform: none !important;
}
.home-mfg-card:hover { border-color: #b9c3c0; }
.home-mfg-lab { border-radius: 8px; box-shadow: none; }

/* Inner page hero */
.page-hero {
  position: relative;
  padding: 72px 0 64px;
  overflow: hidden;
  border-bottom: 4px solid var(--rose);
  background: var(--ink);
  color: #fff;
}
.page-hero h1 { max-width: 980px; color: #fff; font-size: clamp(42px, 5vw, 62px); line-height: 1.04; letter-spacing: 0; }
.page-hero .lead { max-width: 820px; color: rgba(255, 255, 255, .76); }
.page-hero .breadcrumbs, .page-hero .breadcrumbs a { color: rgba(255, 255, 255, .65); }
.page-hero .eyebrow { color: #f2c5c9; }
.page-hero .btn-dark { background: var(--rose); }
.page-hero .btn-outline { border-color: rgba(255, 255, 255, .55); color: #fff; }

/* Product detail */
.product-detail { grid-template-columns: minmax(380px, 1.04fr) minmax(0, .96fr); gap: 68px; }
.main-product-image { border-radius: 8px; box-shadow: none; }
.detail-thumbs { gap: 10px; }
.detail-thumbs img { border-radius: 6px; }
.spec-list { margin: 24px 0; padding: 4px 18px; border-left: 3px solid var(--teal); background: var(--pearl); }
.spec-row { padding: 12px 0; }
.pill { border-radius: 5px; background: #edf3f2; }
.product-buyer-faq { border-top: 1px solid var(--line); }

/* Editorial and factory pages */
.article-header { padding: 62px 0 48px; border-bottom: 1px solid var(--line); background: #fff; }
.article-cover, .article-card { border-radius: 8px; box-shadow: none; }
.article-card { border-color: var(--line); }
.article-card > div { padding: 20px; }
.article-card > .factory-media {
  display: block;
  flex: 0 0 auto;
  padding: 0;
}
.article-head-grid { gap: 56px; }
.display { font-size: clamp(40px, 5vw, 62px); line-height: 1.04; letter-spacing: 0; }
.article-aside { border-radius: 7px; box-shadow: none; }
.article-note { border-radius: 7px; box-shadow: none; }
.article-body h2 { font-size: 32px; }
.grid-2 > .hero-frame { border-radius: 8px; box-shadow: none; }
.factory-page .article-grid .article-card > img {
  width: 100%;
  height: auto !important;
  flex: 0 0 auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center;
}
.factory-page .grid-2 > .hero-frame img {
  width: 100%;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center;
}

/* Inquiry */
.contact-section { border-top: 1px solid var(--line); background: #eef3f1; }
.contact-grid { grid-template-columns: minmax(280px, .72fr) minmax(0, 1.18fr); gap: 70px; }
.contact-box { grid-template-columns: 1fr; }
.contact-box p { margin: 0; border-radius: 6px; background: rgba(255, 255, 255, .65); }
.form {
  padding: 28px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--rose);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(23, 26, 27, .08);
}
.form label { font-size: 12px; }
.form input, .form select, .form textarea { border-radius: 4px; background: #fff; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--teal); }

/* Footer and floating contact */
.footer { background: #111415; }
.footer-grid { gap: 44px; }
.whatsapp { right: 18px; bottom: 18px; min-height: 52px; border-radius: 7px; }
.whatsapp.is-contact-hidden {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  animation: none !important;
  transform: translateY(12px) scale(.92) !important;
}
.whatsapp.is-contact-hidden::before,
.whatsapp.is-contact-hidden::after,
.whatsapp.is-contact-hidden svg {
  opacity: 0;
  animation: none !important;
}

@media (max-width: 1100px) {
  .nav-links { gap: 15px; }
  .nav-links a { font-size: 12px; }
  .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .container { width: min(var(--max), calc(100% - 32px)); }
  .hero, .hero-grid { min-height: 660px; }
  .hero-grid > div:first-child { width: min(650px, 80%); }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .product-detail, .contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-mfg-intro, .home-mfg-cert { gap: 32px; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, var(--max)); }
  .hero, .hero-grid { min-height: 640px; }
  .hero-grid > div:first-child { width: 100%; padding: 54px 0; }
  .hero h1 { font-size: 43px; }
  .hero .lead { max-width: 92%; font-size: 16px; }
  .hero .hero-frame img { object-position: 62% center; }
  .hero .hero-frame::after { background: rgba(8, 11, 12, .68); }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-notes { grid-template-columns: 1fr; }
  .hero .note-card { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .22); }
  .hero .note-card:last-child { border-bottom: 0; }
  .section { padding: 68px 0; }
  .page-hero { padding: 52px 0 46px; }
  .page-hero h1 { font-size: 40px; }
  .products-grid, .process-grid { grid-template-columns: 1fr; }
  .product-filter-count { display: none; }
  .product-copy { min-height: 0; }
  .form { grid-template-columns: 1fr; padding: 20px; }
  .form .full { grid-column: 1; }
  .home-mfg-card .content { min-height: 0; }
}
