/* ==========================================================================
   PINVERO — main stylesheet
   Brand: deep navy + gold + white. Professional, precise, modern B2B.
   Supports LTR and RTL (logical properties + [dir=rtl] overrides).
   ========================================================================== */

:root {
  /* palette */
  --navy-950: #050D1F;
  --navy-900: #0A1A33;
  --navy-800: #0B2545;
  --navy-700: #12355B;
  --navy-600: #1D4E89;
  --gold-500: #C9A227;
  --gold-400: #DFC04E;
  --gold-300: #EAD283;
  --gold-700: #A8862A;
  --white: #FFFFFF;
  --off-white: #F6F7FA;
  --ink: #16233A;
  --muted: #5B6B84;
  --line: #E3E7EF;
  --line-strong: #C9D2E0;

  /* type */
  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", "Noto Serif", "Noto Naskh Arabic", serif;

  /* rhythm */
  --container: 1180px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 10px 30px rgba(10, 26, 51, 0.10);
  --shadow-lg: 0 18px 48px rgba(10, 26, 51, 0.16);
  --nav-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--gold-700); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.25rem; }
.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-block-start: -48px; inset-inline-start: 16px; z-index: 2000;
  background: var(--navy-900); color: #fff; padding: 8px 14px; border-radius: 6px;
  transition: inset-block-start .2s;
}
.skip-link:focus { inset-block-start: 8px; }

/* ------------------------------- buttons ------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: .98rem; letter-spacing: .01em; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s, border-color .15s;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold-500); color: var(--navy-950); border-color: var(--gold-500); }
.btn-gold:hover { background: var(--gold-400); border-color: var(--gold-400); color: var(--navy-950); box-shadow: 0 8px 22px rgba(201, 162, 39, .35); }
.btn-navy { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.btn-navy:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.btn-outline { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn-outline:hover { background: var(--navy-800); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.75); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--navy-700); color: var(--navy-700); }
.btn-lg { padding: 14px 34px; font-size: 1.05rem; }

/* ------------------------------- header ------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 44px; height: 44px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--navy-900); letter-spacing: .04em; }
.brand-sub { font-size: .72rem; color: var(--gold-700); text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; flex-wrap: wrap; }
.nav-link {
  padding: 8px 12px; border-radius: 8px; color: var(--ink); font-size: .95rem; font-weight: 500;
}
.nav-link:hover { color: var(--navy-700); background: var(--off-white); }
.nav-link.is-active { color: var(--navy-900); font-weight: 700; box-shadow: inset 0 -2px 0 var(--gold-500); }
.nav-cta { margin-inline-start: 8px; }
.lang-select {
  appearance: none; border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 8px 30px 8px 12px; font-size: .9rem; background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2316233A' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E")
    no-repeat right 10px center;
  color: var(--ink); cursor: pointer;
}
[dir="rtl"] .lang-select { background-position: left 10px center; padding: 8px 12px 8px 30px; }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: #fff; cursor: pointer; padding: 0 10px;
}
.nav-toggle span { height: 2px; background: var(--navy-900); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------- hero -------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: #fff;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 320px at 85% 0%, rgba(201,162,39,.16), transparent 60%),
    radial-gradient(520px 300px at 10% 100%, rgba(29,78,137,.35), transparent 70%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding-block: 72px;
}
.hero .eyebrow {
  color: var(--gold-400); text-transform: uppercase; letter-spacing: .22em;
  font-size: .82rem; font-weight: 600; margin-bottom: 18px;
}
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: .45em; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #E8EDF6; max-width: 34em; }
.hero-note { color: #B9C6DC; font-size: .95rem; max-width: 36em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-visual img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* ------------------------------- sections ------------------------------- */
.section { padding-block: 72px; }
.section.tint { background: var(--off-white); }
.section-head { margin-bottom: 40px; max-width: 42em; }
.section-head h2 { margin-bottom: .35em; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-cta { margin-top: 36px; text-align: center; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .8rem;
  color: var(--gold-700); font-weight: 700; margin-bottom: 14px;
}
.two-col { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.two-col img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* category & product cards */
.cat-grid, .prod-grid, .article-grid { display: grid; gap: 26px; }
.cat-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.prod-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.article-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.cat-card, .prod-card, .article-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  color: inherit;
}
.cat-card:hover, .prod-card:hover, .article-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); color: inherit;
}
.cat-card-img, .prod-card-img { aspect-ratio: 4/3; overflow: hidden; background: var(--off-white); }
.cat-card-img img, .prod-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.cat-card:hover img, .prod-card:hover img { transform: scale(1.04); }
.cat-card-body, .prod-card-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.cat-card-body h3, .prod-card-body h3 { margin-bottom: .3em; }
.cat-card-body p, .prod-card-body p { color: var(--muted); font-size: .93rem; flex: 1; }
.cat-card-link, .prod-card-link { color: var(--gold-700); font-weight: 700; font-size: .9rem; }
.prod-card-cat { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-700); font-weight: 700; margin-bottom: 6px; }
.arrow { display: inline-block; transition: transform .15s; margin-inline-end: 4px; }
[dir="rtl"] .arrow { transform: scaleX(-1); }
.article-card { padding: 24px; gap: 8px; }
.article-card time { font-size: .78rem; color: var(--muted); }
.article-card h2 { font-size: 1.15rem; }
.article-card p { color: var(--muted); font-size: .93rem; flex: 1; }
.article-card > span { color: var(--gold-700); font-weight: 700; font-size: .9rem; }

/* chips & lists */
.chip-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.chip-row strong { color: var(--navy-900); }
.chip {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--off-white); border: 1px solid var(--line-strong);
  color: var(--navy-800); font-size: .86rem; font-weight: 600;
}
.chip-label { background: #FBF6E6; border-color: #E8D9A8; color: var(--gold-700); }
.mat-families { display: flex; flex-wrap: wrap; gap: 12px; }
.check-list { list-style: none; padding-inline-start: 0; }
.check-list li { position: relative; padding-inline-start: 30px; margin-bottom: 14px; }
.check-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath fill='%230A1A33' d='M1 4l3 3 5-6' stroke='%230A1A33' stroke-width='1.4' fill='none'/%3E%3C/svg%3E") center/10px no-repeat;
}
.check-list strong { color: var(--navy-900); }

/* why grid */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.why-item, .quality-item, .solutions-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: 0 2px 10px rgba(10,26,51,.04);
}
.why-item h2, .why-item h3, .quality-item h2, .solutions-item h2 { margin-bottom: .35em; }
.why-item p, .quality-item p, .solutions-item p { color: var(--muted); margin-bottom: 0; }

/* steps */
.steps { list-style: none; padding-inline-start: 0; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; position: relative; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy-900); color: var(--gold-400);
  font-family: var(--font-display); font-weight: 700; margin-bottom: 14px;
}
.step h3, .step h2 { font-size: 1.1rem; margin-bottom: .25em; }
.step p { color: var(--muted); font-size: .93rem; margin-bottom: 0; }
.steps-compact { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* faq */
.faq-list { max-width: 860px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 12px; }
.faq-item summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--navy-900);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.3rem; color: var(--gold-700); flex-shrink: 0; line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* quote band */
.quote-band {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  color: #fff; border-radius: var(--radius-lg); padding: 56px 48px; text-align: center;
}
.quote-band h2 { color: #fff; }
.quote-band p { color: #D5DEEB; max-width: 40em; margin-inline: auto; }

/* ------------------------------- page layout ------------------------------- */
.page { padding-block: 56px 80px; }
.page > h1 { margin-bottom: .4em; }
.page-intro { color: var(--muted); font-size: 1.08rem; max-width: 46em; margin-bottom: 1.4em; }
.tbc-note { color: var(--muted); font-size: .9rem; font-style: italic; }
.prose { max-width: 46em; }
.prose p { margin-bottom: 1.1em; }
.callout {
  background: #FBF6E6; border-inline-start: 4px solid var(--gold-500);
  border-radius: 8px; padding: 18px 22px; margin: 24px 0; color: var(--ink); font-size: .96rem;
}
.article-meta { color: var(--muted); font-size: .88rem; margin-bottom: 1.6em; }

/* breadcrumbs */
.breadcrumbs { margin-bottom: 22px; font-size: .88rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumbs li { color: var(--muted); display: flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--navy-700); }
.breadcrumbs .bc-current { color: var(--navy-900); font-weight: 600; }

/* materials blocks */
.materials-list { display: grid; gap: 40px; }
.materials-block { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; background: #fff; }
.materials-block h2 { margin-bottom: .6em; }
.materials-block dl { display: grid; grid-template-columns: 180px 1fr; gap: 8px 24px; margin: 0 0 20px; }
.materials-block dt { font-weight: 700; color: var(--navy-900); }
.materials-block dd { margin: 0; color: var(--muted); }
.materials-block figure { margin: 0; }
.materials-block img { border-radius: var(--radius); }

/* product page */
.product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-bottom: 40px; }
.product-gallery { display: grid; gap: 16px; align-content: start; }
.product-gallery figure { margin: 0; }
.product-main img, .product-detail-fig img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
.product-detail-fig figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.product-info h1 { margin-bottom: .3em; }
.product-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 10px; }
.product-section { margin-top: 44px; }
.product-section h2 { margin-bottom: .5em; }
.spec-table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.spec-table th, .spec-table td { text-align: start; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.spec-table th { width: 220px; color: var(--navy-900); font-weight: 700; background: var(--off-white); }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; margin-top: 30px; }
.contact-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px;
  background: #fff; color: inherit; display: block;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; border-color: var(--line-strong); }
.contact-card h2 { font-size: 1.2rem; }
.contact-card p { color: var(--muted); }
.contact-value { font-weight: 700; color: var(--navy-800) !important; font-size: 1.05rem; }

/* form */
.quote-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; margin-top: 26px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; color: var(--navy-900); font-size: .92rem; }
.field label .req { color: #C0392B; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 12px 14px;
  font-size: .96rem; font-family: inherit; color: var(--ink); background: #fff; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(201,162,39,.2);
}
.field .error-msg { color: #C0392B; font-size: .82rem; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #C0392B; }
.field.invalid .error-msg { display: block; }
.field .hint { color: var(--muted); font-size: .8rem; }
.fieldset-title { grid-column: 1 / -1; font-family: var(--font-display); color: var(--navy-900); font-size: 1.05rem; margin: 8px 0 0; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.file-input { border: 1.5px dashed var(--line-strong) !important; background: var(--off-white) !important; padding: 14px !important; cursor: pointer; }
.form-status { margin-top: 20px; padding: 16px 20px; border-radius: 10px; font-size: .95rem; }
.form-status.ok { background: #EAF6EC; border: 1px solid #BCE3C4; color: #1E6B34; }
.form-status.err { background: #FDECEC; border: 1px solid #F2C6C6; color: #A33131; }
.form-actions { margin-top: 24px; }
.honeypot { position: absolute !important; inset-inline-start: -9999px !important; height: 0 !important; opacity: 0; }
.turnstile-wrap { margin-top: 16px; }

/* footer */
.site-footer { background: var(--navy-950); color: #C7D2E4; margin-top: 40px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr; gap: 32px;
  padding-block: 56px;
}
.footer-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.footer-logo:hover { color: var(--gold-300); }
.footer-col h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #C7D2E4; font-size: .92rem; }
.footer-col a:hover { color: var(--gold-300); }
.footer-brand p { color: #9FB0CC; font-size: .92rem; }
.footer-contact { margin-top: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 20px; }
.footer-bottom p { color: #8FA3C2; font-size: .85rem; margin: 0; }
.footer-disclaimer { margin-top: 4px !important; font-style: italic; }

/* floating WhatsApp */
.wa-float {
  position: fixed; inset-inline-end: 22px; inset-block-end: 22px; z-index: 300;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(37,211,102,.45);
  transition: transform .18s;
}
.wa-float:hover { transform: scale(1.08); }

/* cookie banner */
.cookie-banner {
  position: fixed; inset-block-end: 0; inset-inline: 0; z-index: 400;
  background: var(--navy-900); color: #DDE5F2; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  box-shadow: 0 -6px 24px rgba(5,13,31,.35);
}
.cookie-banner p { margin: 0; font-size: .9rem; max-width: 60em; }
.cookie-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cookie-link { color: var(--gold-300); font-size: .9rem; }

/* 404 */
.notfound { text-align: center; padding-block: 90px; }
.notfound h1 { font-size: clamp(4rem, 12vw, 7rem); color: var(--gold-500); margin-bottom: .1em; }

/* ------------------------------- responsive ------------------------------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .two-col { grid-template-columns: 1fr; }
  .quality-visual, .story-visual { order: -1; }
}

@media (max-width: 860px) {
  .site-nav {
    position: fixed; inset-block-start: var(--nav-h); inset-inline: 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px; box-shadow: var(--shadow-lg);
    display: none;
  }
  .site-nav.open { display: flex; }
  .nav-link { padding: 12px 10px; }
  .nav-cta { margin: 8px 0 0; }
  .lang-select { width: 100%; margin-top: 10px; }
  .nav-toggle { display: flex; margin-inline-start: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .materials-block dl { grid-template-columns: 1fr; }
  .product-hero { grid-template-columns: 1fr; }
  .quote-band { padding: 40px 26px; }
}

@media (max-width: 560px) {
  .container { padding-inline: 16px; }
  .section { padding-block: 52px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .brand-sub { display: none; }
  .hero-inner { padding-block: 48px; }
}
