﻿/* ============================================================
   SARL PHARMA PRINT PACKAGING - style.css
   Corporate pharma style (FR / AR / EN)
   ============================================================ */

/* ---------- 1. Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Cairo:wght@400;500;600;700&display=swap');

/* ---------- 2. Tokens ---------- */
:root {
  --primary: #1f5f4a;
  --primary-dark: #184a3a;
  --accent: #c3572d;

  --ink: #1f2a33;
  --muted: #5f6b76;
  --bg: #f3f6f7;
  --surface: #ffffff;
  --line: #d9e1e5;

  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;

  --shadow-sm: 0 4px 12px rgba(18, 30, 24, 0.06);
  --shadow-md: 0 10px 24px rgba(18, 30, 24, 0.10);

  --transition: 0.22s ease;

  --font-base: 'IBM Plex Sans', sans-serif;
  --font-arabic: 'Cairo', sans-serif;
}

/* ---------- 3. Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

body.lang-ar-text {
  font-family: var(--font-arabic);
}

body.lang-ar-text [data-i18n],
body.lang-ar-text input[data-i18n],
body.lang-ar-text textarea[data-i18n] {
  direction: rtl;
  unicode-bidi: plaintext;
  text-align: right;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
}

h1 { font-size: clamp(2.0rem, 4.7vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h4 { font-size: 1rem; }

p {
  color: var(--muted);
  line-height: 1.8;
}

:focus-visible {
  outline: 3px solid rgba(31, 95, 74, 0.28);
  outline-offset: 2px;
}

/* ---------- 4. Layout ---------- */
.container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.section {
  padding: 82px 0;
}

.section-alt {
  background: #edf2f4;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 52px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  margin: 0 auto;
  font-size: 1rem;
}

.section-line {
  width: 56px;
  height: 3px;
  background: var(--primary);
  border-radius: 999px;
  margin: 14px auto 0;
}

.text-green {
  color: var(--primary);
}

.text-orange {
  color: var(--accent);
}

.text-center {
  text-align: center;
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--surface);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.12);
  color: var(--surface);
  border-color: rgba(255, 255, 255, 0.88);
  border-width: 2px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
  transform: translateY(-1px);
}

.btn-orange {
  background: var(--accent);
  color: var(--surface);
  border-color: var(--accent);
}

.btn-orange:hover {
  background: #a94824;
  border-color: #a94824;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* ---------- 6. Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.navbar-logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
  color: #2f3c46;
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(31, 95, 74, 0.10);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f9fa;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
}

.lang-btn:hover {
  color: var(--primary);
}

.lang-btn.active {
  background: var(--primary);
  color: var(--surface);
}

.hamburger {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.hamburger span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #33414b;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 74px;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 18px 16px;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu .nav-link {
  display: block;
  margin-bottom: 4px;
}

.mobile-menu .lang-toggle {
  margin-top: 10px;
  width: fit-content;
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 76vh;
  margin-top: 74px;
  background-size: cover;
  background-position: 30% center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 30, 24, 0.60);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 30px 0;
}

.hero-badge {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--surface);
  background: rgba(255, 255, 255, 0.10);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  margin-bottom: 18px;
}

.hero h1 {
  color: var(--surface);
  margin-bottom: 14px;
}

.hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.04rem;
  margin-bottom: 30px;
  max-width: 590px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Inner hero */
.hero-inner {
  margin-top: 74px;
  min-height: 32vh;
  display: flex;
  align-items: center;
  background: #233d32;
}

.hero-inner h1 {
  color: var(--surface);
  margin-bottom: 10px;
}

.hero-inner p {
  color: rgba(255, 255, 255, 0.82);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.75);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumb a:hover {
  color: var(--surface);
}

.breadcrumb .sep {
  color: rgba(255, 255, 255, 0.55);
}

.breadcrumb .current {
  color: var(--surface);
  font-weight: 700;
}

/* ---------- 8. Home product cards ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.product-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.product-card:hover {
  border-color: #bfd0c7;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-card-img {
  height: 210px;
  background: #f8fafb;
  border-bottom: 1px solid var(--line);
  padding: 12px;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card-body {
  padding: 20px;
}

.product-card-body h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.product-card-body p {
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.product-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
  transition: gap var(--transition);
}

.product-card-link:hover {
  gap: 11px;
}

/* ---------- 9. About summary ---------- */
.about-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-summary-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.about-summary-img img {
  width: 100%;
  min-height: 360px;
  height: 100%;
  object-fit: cover;
}

.about-summary-text h2 {
  margin-bottom: 14px;
}

.about-summary-text p + p {
  margin-top: 14px;
}

.about-summary-text [data-i18n="about-p4"] {
  background: #f5f9f7;
  border: 1px solid #c7dcd1;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #344550;
}

/* ---------- 10. Values ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.value-card {
  text-align: center;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 28px 20px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.value-card:hover {
  border-color: #bfd0c7;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.value-icon {
  width: 66px;
  height: 66px;
  border-radius: 14px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-icon.green {
  background: #e8f2ee;
}

.value-icon.orange {
  background: #faece6;
}

.value-icon svg {
  width: 32px;
  height: 32px;
}

.value-card h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.value-card p {
  font-size: 0.9rem;
}

/* ---------- 11. Stats (kept if used later) ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 24px 18px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  color: var(--primary);
  font-weight: 700;
}

.stat-label {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

/* ---------- 12. Certifications ---------- */
.certification-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 30px;
  align-items: stretch;
}

.certification-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 18px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.certification-card:hover {
  border-color: #bfd0c7;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.certification-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}

.certification-dot {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #eaf3ee;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.certification-dot svg {
  width: 17px;
  height: 17px;
  stroke: var(--primary);
}

.certification-head h3 {
  margin: 0;
  font-size: 0.98rem;
}

.certification-card p {
  margin: 0;
  font-size: 0.9rem;
}

/* ---------- 13. Industrial capabilities ---------- */
.ops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.ops-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.ops-card:hover {
  border-color: #bfd0c7;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.ops-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.ops-card-body {
  padding: 14px;
}

.ops-card h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.ops-card p {
  margin: 0;
  font-size: 0.9rem;
}

/* ---------- 14. Product detail page ---------- */
.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.2fr;
  gap: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.product-detail + .product-detail {
  margin-top: 22px;
}

.product-detail-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f8fafb;
}

.product-detail-img img {
  width: 100%;
  min-height: 320px;
  height: 100%;
  object-fit: cover;
}

.product-detail-text h2 {
  margin-bottom: 12px;
}

.product-detail-text p {
  margin-bottom: 12px;
}

.product-detail-text > .text-green,
.product-detail-text > .text-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #c7dcd1;
  background: #f2f8f5;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.product-detail-text > .text-orange {
  border-color: #e8c7b8;
  background: #fdf3ee;
  color: var(--accent);
}

.product-props {
  margin-top: 14px;
  display: grid;
  gap: 9px;
}

.product-prop {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: #3f4f59;
}

.product-prop::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 0.5em;
  flex-shrink: 0;
}

.product-note {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #c7dcd1;
  border-radius: 999px;
  background: #f4f9f6;
  color: #334651;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 8px 12px;
}

.product-note::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
}

/* ---------- 14. Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.35fr;
  gap: 30px;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 14px;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 14px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.contact-info-card:hover {
  border-color: #bfd0c7;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--surface);
}

.contact-info-card h4 {
  margin-bottom: 4px;
  font-size: 0.94rem;
}

.contact-info-card p,
.contact-info-card a {
  font-size: 0.9rem;
  color: #3a4a55;
  line-height: 1.65;
  word-break: break-word;
}

.contact-form-wrapper {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  padding: 30px;
}

.contact-form-wrapper h3 {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #31414c;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fbfcfd;
  color: var(--ink);
  font-size: 0.94rem;
  font-family: inherit;
  padding: 11px 13px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #97b9aa;
  box-shadow: 0 0 0 3px rgba(31, 95, 74, 0.12);
  outline: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-success,
.form-error {
  display: none;
  margin-top: 12px;
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font-size: 0.88rem;
  font-weight: 700;
}

.form-success {
  background: #eaf5ef;
  border: 1px solid #b8d4c5;
  color: #265341;
}

.form-error {
  background: #faece6;
  border: 1px solid #e6b8a6;
  color: #8e3e20;
}

.form-success.show,
.form-error.show {
  display: block;
}

.map-section .container {
  padding-bottom: 64px;
}

.map-section iframe {
  width: 100%;
  height: 360px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background: #dfe6ea;
}

/* ---------- 15. Legal page ---------- */
.legal-meta {
  margin-bottom: 18px;
}

.legal-meta p {
  font-size: 0.9rem;
  color: #465661;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.legal-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.legal-card p {
  font-size: 0.92rem;
}

.legal-card p + p {
  margin-top: 10px;
}

.legal-list {
  display: grid;
  gap: 8px;
}

.legal-list li {
  font-size: 0.92rem;
  color: #3d4e59;
  line-height: 1.65;
}

.legal-list a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-note {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #d9e5de;
  border-radius: var(--radius-sm);
  background: #f5f9f7;
  font-size: 0.88rem;
}

/* ---------- 15. Footer ---------- */
.footer {
  background: #1e2a33;
  color: rgba(255, 255, 255, 0.80);
  padding: 66px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 42px;
}

.footer-brand img {
  height: 50px;
  margin-bottom: 14px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.70);
  max-width: 320px;
  font-size: 0.9rem;
}

.footer h4 {
  color: var(--surface);
  font-size: 0.95rem;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #355a49;
  display: inline-block;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--surface);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  stroke: #7fae96;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  text-align: center;
  padding: 18px 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.66);
}

/* ---------- 16. Scroll top ---------- */
.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid #97b9aa;
  border-radius: 50%;
  background: var(--surface);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition), color var(--transition);
  z-index: 999;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--primary);
  color: var(--surface);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
}

/* ---------- 17. Animations ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 18. Responsive ---------- */
@media (max-width: 1040px) {
  .about-summary,
  .product-detail,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .navbar-menu {
    display: none;
  }

  .hamburger {
    display: inline-flex;
  }

  .hero {
    min-height: 68vh;
  }

  .hero-btns {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding: 70px 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .container {
    width: calc(100% - 20px);
  }

  .navbar-inner {
    height: 70px;
  }

  .mobile-menu {
    top: 70px;
  }

  .hero,
  .hero-inner {
    margin-top: 70px;
  }

  .product-card-body,
  .product-detail,
  .contact-form-wrapper {
    padding: 18px;
  }

  .product-detail-img img,
  .about-summary-img img {
    min-height: 250px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .scroll-top {
    right: 14px;
    bottom: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   DESIGN ENHANCEMENTS v2
   ============================================================ */

/* ---------- A. Top accent bar ---------- */
.navbar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  pointer-events: none;
}
.navbar { top: 0; padding-top: 3px; }

/* ---------- B. Section label pill ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(31, 95, 74, 0.08);
  border: 1px solid rgba(31, 95, 74, 0.2);
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* ---------- C. Better hero gradient ---------- */
.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(18, 30, 24, 0.80) 0%,
    rgba(31, 95, 74, 0.48) 55%,
    rgba(195, 87, 45, 0.22) 100%
  );
}

/* Hero inner — gradient + accent border */
.hero-inner {
  background: linear-gradient(135deg, #182e25 0%, #233d32 60%, #2d5042 100%);
  border-bottom: 3px solid rgba(195, 87, 45, 0.45);
}

/* ---------- D. Product cards — top color bar ---------- */
.product-card {
  position: relative;
  overflow: hidden;
}
.product-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}
.product-card:hover::after { opacity: 1; }

/* ---------- E. Value card icon gradients ---------- */
.value-icon.green {
  background: linear-gradient(135deg, #ddf0e8, #bfe0d4);
}
.value-icon.orange {
  background: linear-gradient(135deg, #faeae0, #f5d0bc);
}

/* ---------- F. Certification cards — left accent ---------- */
.certification-card {
  border-left: 3px solid var(--primary);
}

/* ---------- G. Stagger animation delays ---------- */
.products-grid .fade-up:nth-child(2) { transition-delay: 0.10s; }
.products-grid .fade-up:nth-child(3) { transition-delay: 0.18s; }
.products-grid .fade-up:nth-child(4) { transition-delay: 0.26s; }

.values-grid .fade-up:nth-child(2) { transition-delay: 0.10s; }
.values-grid .fade-up:nth-child(3) { transition-delay: 0.20s; }
.values-grid .fade-up:nth-child(4) { transition-delay: 0.30s; }

.certification-grid .fade-up:nth-child(2) { transition-delay: 0.08s; }
.certification-grid .fade-up:nth-child(3) { transition-delay: 0.16s; }
.certification-grid .fade-up:nth-child(4) { transition-delay: 0.24s; }
.certification-grid .fade-up:nth-child(5) { transition-delay: 0.32s; }

.contact-info .fade-up:nth-child(2) { transition-delay: 0.10s; }
.contact-info .fade-up:nth-child(3) { transition-delay: 0.20s; }

/* ---------- H. CTA section ---------- */
.cta-section {
  background: linear-gradient(135deg, #172b22 0%, var(--primary) 55%, #2d5a46 100%);
  padding: 90px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(255,255,255,0.04) 0%, transparent 45%),
    radial-gradient(circle at 85% 50%, rgba(195, 87, 45, 0.14) 0%, transparent 45%);
  pointer-events: none;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 {
  color: #fff;
  margin-bottom: 14px;
}
.cta-section p {
  color: rgba(255,255,255,0.78);
  max-width: 540px;
  margin: 0 auto 32px;
  font-size: 1.05rem;
}
.cta-section .cta-btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cta-section .btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(4px);
}
.cta-section .btn-ghost:hover {
  background: rgba(255,255,255,0.22);
}
.cta-section .btn-white {
  background: #fff;
  color: var(--primary);
  border: 1px solid #fff;
  font-weight: 700;
}
.cta-section .btn-white:hover {
  background: #f0f7f4;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  transform: translateY(-1px);
}

/* ---------- I. Stats bar (about page) ---------- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  margin-top: 48px;
}
.stats-bar-item {
  padding: 28px 16px;
  text-align: center;
  border-right: 1px solid var(--line);
  transition: background var(--transition);
}
.stats-bar-item:last-child { border-right: none; }
.stats-bar-item:hover { background: #f5fbf8; }
.stats-bar-item .num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}
.stats-bar-item .lbl {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- J. Section line — gradient variant ---------- */
.section-line-accent {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
  margin: 14px 0 0;
}

/* ---------- K. About blockquote (p4 highlight) ---------- */
.about-summary-text [data-i18n="about-p4"] {
  background: linear-gradient(135deg, #f3f9f6, #eaf4ef);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px;
  color: #2d4039;
  font-style: italic;
  line-height: 1.75;
}

/* ---------- L. Product detail — image zoom ---------- */
.product-detail-img img {
  transition: transform 0.4s ease;
}
.product-detail:hover .product-detail-img img {
  transform: scale(1.025);
}

/* ---------- M. Footer — subtle separator line ---------- */
.footer {
  border-top: 3px solid var(--primary);
}

/* ---------- N. Scrollbar (Webkit) ---------- */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #9ab9ae;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ---------- O. Responsive additions ---------- */
@media (max-width: 820px) {
  .stats-bar {
    grid-template-columns: 1fr 1fr;
  }
  .stats-bar-item:nth-child(2) { border-right: none; }
  .stats-bar-item:nth-child(1),
  .stats-bar-item:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .cta-section { padding: 64px 0; }
}

/* ===== CARD INTERACTION EFFECTS (about.js) ===== */

/* Value card — needs overflow for ripple + glow */
.value-card {
  position: relative;
  overflow: hidden;
}

/* Icon pop animation on hover */
@keyframes iconPop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.35) rotate(-6deg); }
  75%  { transform: scale(0.90) rotate(3deg); }
  100% { transform: scale(1)   rotate(0deg); }
}
.value-icon.icon-pop {
  animation: iconPop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Ripple on click */
@keyframes cardRipple {
  to {
    transform: translate(-50%, -50%) scale(30);
    opacity: 0;
  }
}
.card-ripple {
  position: absolute;
  width: 14px;
  height: 14px;
  background: rgba(31, 95, 74, 0.20);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: cardRipple 0.6s ease-out forwards;
  pointer-events: none;
  z-index: 0;
}

/* Certification card ripple variant */
.certification-card {
  position: relative;
  overflow: hidden;
}
.card-ripple-accent {
  position: absolute;
  width: 14px;
  height: 14px;
  background: rgba(195, 87, 45, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: cardRipple 0.6s ease-out forwards;
  pointer-events: none;
  z-index: 0;
}
