/* ==========================================================================
   HUALINPACKING — global stylesheet
   Visual language carried over from the Emergent prototype:
   green #1f4d3a on warm paper #eef0ec, Jost display + Figtree body.
   No framework, no build step. Safe to edit directly.
   ========================================================================== */

:root {
  --green: #1f4d3a;
  --green-deep: #173c2d;
  --ink: #1b2620;
  --paper: #eef0ec;
  --mist: #dfe5df;
  --mint: #9fd1b6;
  --muted: #4c5a52;
  --white: #ffffff;
  --line: rgba(27, 38, 32, .12);
  --shadow-sm: 0 10px 30px -20px rgba(27, 38, 32, .5);
  --shadow-lg: 0 40px 80px -30px rgba(27, 38, 32, .35);
  --radius: 24px;
  --container: 1200px;
  --font-display: "Jost", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "Figtree", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--green); color: #fff; padding: 12px 20px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.08;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.7rem, 6.4vw, 5.4rem); letter-spacing: -.015em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--muted); max-width: 62ch; }
.eyebrow {
  font-family: var(--font-display); font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--green);
  margin-bottom: 1.2rem; display: block;
}
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.measure { max-width: 68ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  border: 1px solid transparent; border-radius: 999px;
  padding: 15px 30px; font-weight: 600; font-size: .98rem; line-height: 1.2;
  transition: background-color .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-deep); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--green); }
.btn--outline { border-color: currentColor; background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: #fff; color: var(--green); }
.btn--light:hover { background: var(--paper); }
.btn--sm { padding: 10px 20px; font-size: .88rem; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(238, 240, 236, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 24px;
  min-height: 74px;
}
.brand {
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: .12em; font-size: 1.06rem; white-space: nowrap;
}
.brand span { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 22px; margin-inline-start: auto; }
.nav-links a { font-size: .92rem; font-weight: 500; transition: color .2s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--green); }
.nav-links a[aria-current="page"] { font-weight: 700; }
.lang-switch { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch button {
  border: 0; background: transparent; border-radius: 999px;
  padding: 4px 10px; font-size: .76rem; font-weight: 600; color: var(--muted);
}
.lang-switch button[aria-pressed="true"] { background: var(--green); color: #fff; }
.nav-toggle {
  display: none; margin-inline-start: auto; border: 1px solid var(--line);
  background: transparent; border-radius: 12px; padding: 10px 14px; font-size: .9rem;
}
@media (max-width: 960px) {
  .nav-links {
    display: none; position: absolute; inset-inline: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 22px;
    box-shadow: var(--shadow-sm);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 14px; }
  .lang-switch { align-self: flex-start; margin-top: 14px; }
  .nav-toggle { display: inline-flex; }
  .nav > .btn--primary { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center; padding-block: clamp(56px, 8vw, 112px);
}
.hero h1 em { font-style: normal; color: var(--green); }
.hero-art {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 1 / 1; background: var(--mist); box-shadow: var(--shadow-lg);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; inset-inline-start: 16px; inset-block-start: 16px;
  background: rgba(255,255,255,.94); color: var(--green);
  border-radius: 999px; padding: 8px 15px; font-size: .76rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.trust-row {
  display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 36px;
  font-size: .85rem; color: var(--muted);
}
.trust-row span::before { content: "✓"; color: var(--green); font-weight: 700; margin-inline-end: 8px; }

/* ---------- quick estimate ---------- */
.estimate {
  background: #fff; border-radius: var(--radius); padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-lg); margin-top: 34px; border: 1px solid var(--line);
}
.estimate h3 { margin-bottom: .3em; }
.estimate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.estimate-result {
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.estimate-price { font-family: var(--font-display); font-size: 2rem; color: var(--green); }
.field { display: grid; gap: 7px; font-size: .85rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 12px; padding: 12px 14px; font-weight: 400; min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); }

/* ---------- marquee ---------- */
.marquee { background: var(--green); color: var(--paper); overflow: hidden; padding-block: 16px; }
.marquee-track { display: flex; gap: 42px; width: max-content; animation: slide 34s linear infinite; }
.marquee-track span { font-family: var(--font-display); letter-spacing: .1em; font-size: .9rem; white-space: nowrap; }
.marquee-track span::after { content: "✦"; margin-inline-start: 42px; color: var(--mint); }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } .estimate-grid { grid-template-columns: 1fr; } }

.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); transition: box-shadow .3s ease, transform .3s ease;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-media { aspect-ratio: 1 / 1; background: var(--mist); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body > .tag { align-self: flex-start; }
.card-body h3 { font-size: 1.16rem; margin: 0; }
.card-body p { font-size: .9rem; color: var(--muted); margin: 0; }
.card-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-family: var(--font-display); font-weight: 600; color: var(--green); }
.price small { font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .74rem; }
.tag {
  display: inline-block; background: var(--mist); color: var(--green);
  border-radius: 999px; padding: 4px 11px; font-size: .72rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }

/* ---------- feature panels ---------- */
.panel-dark { background: var(--ink); color: var(--paper); }
.panel-green { background: var(--green); color: var(--paper); }
.panel-dark .eyebrow, .panel-green .eyebrow { color: var(--mint); }
.panel-dark .lead, .panel-green .lead { color: rgba(238,240,236,.78); }
.panel-dark .btn--outline:hover, .panel-green .btn--outline:hover { background: var(--paper); color: var(--ink); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }

.stat-list { display: grid; gap: 18px; margin-top: 30px; }
.stat {
  background: #fff; border-radius: 18px; padding: 20px 22px; border: 1px solid var(--line);
}
.stat strong { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.stat p { margin: 4px 0 0; font-size: .9rem; color: var(--muted); }

/* ---------- pricing table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: start; padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: .93rem; }
th { background: var(--mist); font-family: var(--font-display); font-weight: 600; }
tbody tr:last-child td { border-bottom: 0; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; background: #fff; }
.segmented button { border: 0; background: transparent; border-radius: 999px; padding: 8px 18px; font-size: .86rem; font-weight: 600; }
.segmented button[aria-pressed="true"] { background: var(--green); color: #fff; }

/* ---------- process / steps ---------- */
.steps { counter-reset: step; display: grid; gap: 20px; }
.step { background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--green); margin-bottom: 12px;
}
.step h3 { font-size: 1.2rem; }
.step p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin-bottom: 12px; }
.faq summary { font-weight: 600; cursor: pointer; font-family: var(--font-display); font-size: 1.06rem; }
.faq details p { margin: 12px 0 0; color: var(--muted); font-size: .93rem; }

/* ---------- contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(30px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.contact-line { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-line:last-child { border-bottom: 0; }
.contact-line strong { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.form-full { grid-column: 1 / -1; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; }
.form-status { margin-top: 16px; padding: 14px 18px; border-radius: 12px; font-size: .92rem; display: none; }
.form-status.is-visible { display: block; }
.form-status--ok { background: #e4f3e9; color: #14532d; }
.form-status--err { background: #fdeaea; color: #8a1c1c; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-block: 64px 26px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer a { color: rgba(238,240,236,.82); }
.site-footer a:hover { color: var(--mint); }
.site-footer h4 { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .92rem; }
.footer-bottom {
  border-top: 1px solid rgba(238,240,236,.16); margin-top: 48px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem;
  color: rgba(238,240,236,.66);
}

/* ---------- floating WhatsApp ---------- */
.wa-fab {
  position: fixed; inset-block-end: 20px; inset-inline-end: 20px; z-index: 45;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--green); color: #fff; border-radius: 999px;
  padding: 14px 20px; font-weight: 700; font-size: .9rem;
  box-shadow: 0 20px 40px -15px rgba(27,38,32,.7);
  transition: transform .25s ease;
}
.wa-fab:hover { transform: translateY(-3px); }
.wa-fab svg { width: 20px; height: 20px; fill: currentColor; }
@media (max-width: 620px) { .wa-fab span { display: none; } .wa-fab { padding: 15px; } }

/* ---------- breadcrumb / detail ---------- */
.crumb { font-size: .84rem; color: var(--muted); padding-top: 28px; }
.crumb a { text-decoration: underline; text-underline-offset: 3px; }
.spec-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.spec-list li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: .93rem; }
.spec-list li::before { content: "✓"; color: var(--green); font-weight: 700; margin-inline-end: 10px; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filters button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 9px 20px; font-size: .88rem; font-weight: 600;
}
.filters button[aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green); }
[hidden] { display: none !important; }

/* ---------- RTL ---------- */
[dir="rtl"] { font-family: "Cairo", var(--font-body); }
[dir="rtl"] .trust-row span::before,
[dir="rtl"] .spec-list li::before { margin-inline-end: 0; margin-inline-start: 10px; }
[dir="rtl"] .brand { letter-spacing: 0; }

/* ---------- reveal (progressive enhancement) ---------- */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ---------- category landing pages / product gallery ---------- */
.crumb--light, .crumb--light a { color: rgba(238, 240, 236, .82); }
.cat-price {
  font-family: var(--font-display); font-weight: 600; color: var(--paper);
  font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 24px 0 6px;
}
.cat-price small { font-family: var(--font-body); font-size: .9rem; font-weight: 400; opacity: .82; }
.price--range { font-size: .9rem; }
.panel-dark .stat strong { color: var(--ink); }
.panel-dark .trust-row, .panel-green .trust-row { color: rgba(238, 240, 236, .84); }
.panel-dark .trust-row span::before, .panel-green .trust-row span::before { color: var(--mint); }

.thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.thumb {
  width: 76px; height: 76px; padding: 0; cursor: pointer; overflow: hidden;
  border: 2px solid var(--line); border-radius: 12px; background: #fff;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.is-active { border-color: var(--green); }
.thumb:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
@media (max-width: 620px) { .thumb { width: 64px; height: 64px; } }
