/* ============================================================
   MIPOS ShopTech — Design System
   Inherits feedme.mipos.my patterns, Mipos parent branding
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand */
  --orange: #FF6B35;
  --orange-dark: #E54B1F;
  --orange-soft: #FFE4D6;
  --green: #267A48;
  --green-dark: #1F623A;
  --green-soft: #D6EBDD;

  /* Surfaces */
  --bg: #FAFAF7;
  --bg-white: #FFFFFF;
  --bg-peach: #FFF1E6;
  --bg-panel: #FFFFFF;
  --border: #EAEAEA;

  /* Text */
  --text: #0E2332;
  --text-soft: #4A5E6E;
  --text-muted: #88959D;
  --text-on-dark: #FFFFFF;

  /* Type */
  --font: 'Montserrat', system-ui, -apple-system, sans-serif;

  /* Layout */
  --max: 1200px;
  --gap: 24px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

[data-theme="dark"] {
  --bg: #0E2332;             /* brand navy as the page bg */
  --bg-white: #16304A;       /* lighter navy panels (cards) */
  --bg-peach: #122B40;       /* alternating section bg, slightly different navy */
  --bg-panel: #16304A;
  --border: #25415B;
  --text: #F0F4F8;
  --text-soft: #B8C7D6;
  --text-muted: #8A9CAE;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45);
}

/* ---------- Reset & Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--orange); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
ul { list-style: none; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 90px 0; }
.bg-peach { background: var(--bg-peach); }
.bg-white { background: var(--bg-white); }

/* ---------- Buttons ---------- */
.btn-primary, .btn-secondary, .btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 999px;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}
.btn-primary:hover {
  background: var(--orange-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 107, 53, 0.4);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
  background: #1DA851;
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease);
}
[data-theme="dark"] .navbar {
  background: rgba(15, 15, 16, 0.92);
}
.navbar .container {
  display: flex;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}
.navbar .nav-links { margin-left: auto; }
/* Logo — uses actual PNG/SVG; fallback styles kept for footer use */
.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo-img {
  height: 48px;
  width: auto;
  display: block;
}

/* Stacked text fallback (used in footer where image is dark-on-dark) */
.nl-top {
  font-size: 28px;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: -0.04em;
  display: inline-flex;
  align-items: flex-start;
  line-height: 1;
}
.nl-top .nl-star {
  font-size: 10px;
  color: var(--orange);
  margin-left: 2px;
  margin-top: 2px;
  line-height: 1;
}
.nl-bottom {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.06em;
  padding-left: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links > a, .nav-links > .nav-dropdown > button {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-links > a:hover { color: var(--orange); }
.nav-cta {
  background: var(--green);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700 !important;
  font-size: 14px !important;
}
.nav-cta:hover { background: var(--green-dark); }
.theme-toggle {
  font-size: 20px;
  padding: 4px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s var(--ease);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
}
.nav-dropdown-menu a:hover { background: var(--bg-peach); color: var(--orange); }

/* ---------- Section Header ---------- */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.section-header h2 {
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 16px;
}
.section-header p {
  font-size: 17px;
  color: var(--text-soft);
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, var(--bg-peach) 0%, var(--bg) 100%);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.hero h1 {
  font-size: clamp(38px, 5.5vw, 64px);
  margin-bottom: 24px;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 19px;
  color: var(--text-soft);
  margin-bottom: 36px;
  max-width: 540px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 480px;
}
.hero-stat .num {
  font-size: 28px;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: -0.02em;
}
.hero-stat .label {
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 600;
}
.hero-visual {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: hero-rise 0.9s var(--ease) both;
}
.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  animation: hero-zoom 16s ease-in-out 0.9s infinite alternate;
  transform-origin: center 60%;
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.045); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual, .hero-visual img { animation: none; }
}
.hero-visual-placeholder {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--orange-soft), var(--bg-peach));
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--orange-dark);
  font-size: 14px;
  text-align: center;
  padding: 24px;
}

/* ---------- Stat Cards ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}
.stat-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.2s var(--ease);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-icon { font-size: 32px; margin-bottom: 12px; }
.stat-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 14px;
  color: var(--text-soft);
  font-weight: 600;
}

/* ---------- Promise Cards (icon + title + 1-liner) ---------- */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.promise-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all 0.2s var(--ease);
}
.promise-card:hover { border-color: var(--orange); box-shadow: var(--shadow); }
.promise-card .icon {
  font-size: 28px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--orange-soft);
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.promise-card h4 {
  font-size: 17px;
  margin-bottom: 6px;
}
.promise-card p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.5;
}

/* Ecosystem heading: keep on one line on desktop */
@media (min-width: 768px) {
  #ecosystem .section-header { max-width: 900px; }
  #ecosystem .section-header h2 { white-space: nowrap; }
}

/* ---------- Ecosystem Cards (3 big flagships) ---------- */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.eco-card {
  position: relative;
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all 0.3s var(--ease);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.eco-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange);
}
.eco-card.green:hover { border-color: var(--green); }
.eco-card-badge {
  display: inline-block;
  padding: 4px 10px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
  width: fit-content;
}
.eco-card.green .eco-card-badge {
  background: var(--green-soft);
  color: var(--green-dark);
}
.eco-card-coming {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}
.eco-card h3 {
  font-size: 26px;
  margin-bottom: 12px;
}
.eco-card p {
  color: var(--text-soft);
  font-size: 15px;
  margin-bottom: 24px;
  flex: 1;
}
.eco-card-link {
  font-weight: 700;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.eco-card.green .eco-card-link { color: var(--green); }
.eco-card-link::after { content: "→"; transition: transform 0.2s var(--ease); }
.eco-card:hover .eco-card-link::after { transform: translateX(4px); }

/* ---------- Product Cards (4-grid for Other Products) ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.2s var(--ease);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.product-icon {
  font-size: 36px;
  width: 64px;
  height: 64px;
  background: var(--orange-soft);
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.product-card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.product-card p {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 18px;
  flex: 1;
}
.product-card .link {
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
}
.product-card .link::after { content: " →"; }

/* ---------- Customer Logo Ticker ---------- */
.ticker-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker {
  display: flex;
  gap: 60px;
  animation: ticker-scroll 40s linear infinite;
  width: max-content;
}
.ticker img {
  height: 56px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
  filter: grayscale(20%);
  transition: all 0.2s var(--ease);
}
.ticker img:hover { opacity: 1; filter: none; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Testimonial Video (always vertical / portrait) ---------- */
.testimonial-section {
  text-align: center;
}
.video-wrap {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 9 / 16;
  background: #000;
}
.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Blog Cards ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s var(--ease);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card-img {
  aspect-ratio: 16 / 9;
  background: var(--bg-peach);
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card-cat {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.blog-card h3 {
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 12px;
  flex: 1;
}
.blog-card .date {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Visit Mini Section ---------- */
.visit-mini {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid var(--border);
  align-items: center;
}
.visit-mini .map-embed {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-peach);
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}
.visit-mini .map-embed:hover { transform: translateY(-2px); }
.visit-mini .map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.visit-mini .map-open-cta {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-white);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.visit-mini .map-embed:hover .map-open-cta {
  background: var(--orange);
  color: #fff;
}
.visit-mini h3 {
  font-size: 28px;
  margin-bottom: 16px;
}
.visit-mini .visit-line {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: flex-start;
}
.visit-mini .visit-line .icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--orange-soft);
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.visit-mini .visit-line .text { font-size: 15px; color: var(--text-soft); }
.visit-mini .visit-line .text strong { color: var(--text); }
.visit-mini .actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer {
  background: #0E2332;       /* brand navy — aligns with logo text + dark mode bg */
  color: #B5B5B5;
  padding: 70px 0 30px;
}
[data-theme="dark"] .footer { background: #081826; }  /* slightly darker than page bg for separation */
[data-theme="dark"] .footer-bottom { border-top-color: #25415B; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}
.footer-brand .footer-logo {
  display: inline-block;
  margin-bottom: 18px;
}
.footer-brand .footer-logo-img {
  height: 60px;
  width: auto;
  display: block;
}
.footer-brand p { font-size: 14px; max-width: 320px; line-height: 1.6; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a {
  font-size: 14px;
  color: #B5B5B5;
}
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid #1F2A22;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #888;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Gallery Grid (used on Visit and About) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.gallery-grid.spacious {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-peach);
  position: relative;
  transition: transform 0.3s var(--ease);
}
.gallery-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- Split Section (text + image, used on Careers) ---------- */
.split-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-section.reverse .container { direction: rtl; }
.split-section.reverse .container > * { direction: ltr; }
.split-section-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: var(--bg-peach);
}
.split-section-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.split-section h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  margin-bottom: 20px;
  color: var(--orange);
  letter-spacing: -0.02em;
}
.split-section h2.text-dark { color: var(--text); }
.split-section p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 16px;
}
.split-section p:last-of-type { margin-bottom: 0; }
.split-section ul {
  padding-left: 0;
  margin-top: 8px;
}
.split-section ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-soft);
}
.split-section ul li::before {
  content: "•";
  position: absolute;
  left: 6px;
  top: -2px;
  color: var(--orange);
  font-size: 22px;
  font-weight: 900;
}
.split-section ul li strong { color: var(--text); font-weight: 800; }

@media (max-width: 900px) {
  .split-section .container { grid-template-columns: 1fr; gap: 36px; }
  .split-section.reverse .container { direction: ltr; }
  .split-section.reverse .split-section-img { order: -1; }
}

/* ---------- Collapsible job cards (using <details>) ---------- */
details.job-card { padding: 0; }
details.job-card > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 32px 40px;
  border-radius: var(--radius);
  transition: background 0.2s var(--ease);
}
details.job-card > summary::-webkit-details-marker,
details.job-card > summary::marker { display: none; }
details.job-card > summary:hover { background: var(--bg-peach); }
details.job-card[open] > summary {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
}
.job-summary-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  flex: 1;
}
.job-summary-meta h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  color: var(--text);
  margin: 0;
}
.job-chevron {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--orange-soft);
  color: var(--orange-dark);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
  transition: transform 0.3s var(--ease), background 0.2s var(--ease);
  flex-shrink: 0;
}
details.job-card[open] .job-chevron {
  transform: rotate(180deg);
  background: var(--orange);
  color: #fff;
}
details.job-card .job-card-content {
  padding: 28px 40px 36px;
}

/* ---------- Careers Page ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--bg-peach) 0%, var(--bg) 100%);
  padding: 90px 0 70px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(38px, 5vw, 56px);
  margin-bottom: 20px;
}
.page-hero h1 span {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero p {
  max-width: 680px;
  margin: 0 auto;
  font-size: 18px;
  color: var(--text-soft);
}

.job-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s var(--ease);
}
.job-card:hover { box-shadow: var(--shadow-lg); }
.job-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.job-card-header h2 {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--text);
  margin: 0;
}
.job-badge {
  display: inline-block;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.job-card h3 {
  font-size: 13px;
  font-weight: 800;
  color: var(--orange-dark);
  margin: 28px 0 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.job-card h3:first-of-type { margin-top: 0; }
.job-card ul { padding-left: 0; }
.job-card li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.6;
}
.job-card li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--orange);
  font-weight: 800;
}
.job-card-cta {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  align-items: center;
}
.job-card-cta .applied-via {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 4px;
}

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .ecosystem-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .visit-mini { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  section { padding: 60px 0; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-panel);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links > a, .nav-links > .nav-dropdown > button {
    padding: 8px 0;
    font-size: 16px;
  }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 16px;
    background: transparent;
  }
  .nav-toggle { display: flex; }
  .hero { padding: 50px 0 70px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-stat .num { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Products page additions
   ============================================================ */

/* ---------- Products Hub (landing) — 4 big cards ---------- */
.product-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.product-hub-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: all 0.3s var(--ease);
  color: inherit;
}
.product-hub-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.product-hub-card .product-icon {
  width: 72px;
  height: 72px;
  font-size: 40px;
  margin-bottom: 22px;
}
.product-hub-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}
.product-hub-card p {
  color: var(--text-soft);
  font-size: 15px;
  margin-bottom: 22px;
  flex: 1;
  line-height: 1.6;
}
.product-hub-card .link {
  font-size: 15px;
  font-weight: 700;
  color: var(--orange);
}
.product-hub-card .link::after {
  content: " →";
  transition: transform 0.2s var(--ease);
  display: inline-block;
}
.product-hub-card:hover .link::after { transform: translateX(4px); }

/* ---------- LED collage / product hero collage ---------- */
.led-collage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.led-collage img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-peach);
  box-shadow: var(--shadow);
}

/* ---------- Product Showcase Grid (variant cards w/ image + body) ---------- */
.product-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.product-showcase-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}
.product-showcase-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-showcase-img {
  aspect-ratio: 4 / 3;
  background: var(--bg-peach);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.product-showcase-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
}
.product-showcase-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-showcase-body h3 {
  font-size: 21px;
  margin-bottom: 10px;
}
.product-showcase-body p {
  color: var(--text-soft);
  font-size: 15px;
  margin-bottom: 22px;
  line-height: 1.6;
  flex: 1;
}
.product-showcase-body .btn-whatsapp {
  align-self: flex-start;
  padding: 10px 20px;
  font-size: 14px;
}

/* ---------- Page Hero with Side Image (variant) ---------- */
.page-hero.with-image .container {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
  text-align: left;
}
.page-hero.with-image .section-badge,
.page-hero.with-image .hero-actions {
  text-align: left;
}
.page-hero.with-image .hero-actions {
  justify-content: flex-start;
}
.page-hero-img {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.page-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center 60%;
  animation: hero-zoom 18s ease-in-out infinite alternate;
}
@media (max-width: 900px) {
  .page-hero.with-image .container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .page-hero.with-image .section-badge,
  .page-hero.with-image .hero-actions { text-align: center; }
  .page-hero.with-image .hero-actions { justify-content: center; }
}

/* ---------- Process Timeline (vertical, readable) — used on Sunmi repair ---------- */
.process-timeline {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}
.timeline-step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 28px;
  padding: 14px 0 26px;
  position: relative;
  align-items: start;
}
.timeline-step::after {
  /* vertical connecting line */
  content: "";
  position: absolute;
  left: 49px;
  top: 116px;
  bottom: -14px;
  width: 3px;
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-soft) 100%);
  border-radius: 2px;
  z-index: 0;
}
.timeline-step:last-child::after { display: none; }

.timeline-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-soft) 0%, #FFD2B5 100%);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 26px rgba(255, 107, 53, 0.22);
  transition: all 0.3s var(--ease);
}
.timeline-step:hover .timeline-circle {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  transform: scale(1.06);
}
.timeline-icon {
  font-size: 40px;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}
.timeline-step:hover .timeline-icon { transform: scale(1.1); }
.timeline-num {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 34px;
  height: 34px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  border: 3px solid var(--bg);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.timeline-content { padding-top: 20px; }
.timeline-content h4 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--text);
}
.timeline-content p {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.7;
}

@media (max-width: 600px) {
  .timeline-step { grid-template-columns: 72px 1fr; gap: 18px; }
  .timeline-step::after { left: 35px; top: 88px; }
  .timeline-circle { width: 70px; height: 70px; }
  .timeline-icon { font-size: 32px; }
  .timeline-num { width: 28px; height: 28px; font-size: 12px; }
  .timeline-content { padding-top: 12px; }
  .timeline-content h4 { font-size: 19px; }
  .timeline-content p { font-size: 15px; }
}

/* ---------- Process Flow with Arrows (legacy, kept for backwards-compat) ---------- */
.process-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  max-width: 1180px;
  margin: 0 auto;
}
.process-flow .repair-step {
  flex: 1 1 180px;
  max-width: 210px;
  min-width: 170px;
  margin: 0;
}
.process-arrow {
  display: grid;
  place-items: center;
  width: 36px;
  flex-shrink: 0;
  align-self: center;
  font-size: 32px;
  font-weight: 900;
  color: var(--orange);
  padding: 0 6px;
  user-select: none;
}
@media (max-width: 900px) {
  .process-flow { flex-direction: column; align-items: stretch; }
  .process-flow .repair-step { max-width: 100%; min-width: 100%; }
  .process-arrow {
    width: 100%;
    transform: rotate(90deg);
    padding: 12px 0;
  }
}

/* ---------- Repair Process Steps ---------- */
.repair-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.repair-step {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 22px 28px;
  text-align: center;
  position: relative;
  transition: all 0.3s var(--ease);
}
.repair-step:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.repair-step-circle {
  width: 86px;
  height: 86px;
  margin: 0 auto 22px;
  background: linear-gradient(135deg, var(--orange-soft) 0%, #FFD2B5 100%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 8px 22px rgba(255, 107, 53, 0.18);
  transition: all 0.3s var(--ease);
}
.repair-step:hover .repair-step-circle {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  transform: scale(1.06) rotate(-4deg);
  box-shadow: 0 12px 28px rgba(255, 107, 53, 0.35);
}
.repair-step-icon {
  font-size: 38px;
  line-height: 1;
  filter: grayscale(0);
  transition: transform 0.3s var(--ease);
}
.repair-step:hover .repair-step-icon { transform: scale(1.1); }
.repair-step-num {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 34px;
  height: 34px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  border: 3px solid var(--bg-white);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}
.repair-step-circle .repair-step-num {
  /* badge sits on the corner of the icon circle */
  top: -6px;
  right: -6px;
}
.repair-step h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text);
}
.repair-step p {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------- Poster Design Banner (no photos, CSS-only visual) ---------- */
.design-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.design-banner-tile {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.design-banner-tile span {
  position: relative;
  z-index: 1;
  text-shadow: 0 4px 18px rgba(0,0,0,0.25);
}
.design-banner-tile-1 {
  background: linear-gradient(135deg, #FF6B35 0%, #E54B1F 100%);
}
.design-banner-tile-2 {
  background: linear-gradient(135deg, #0E2332 0%, #16304A 100%);
}
.design-banner-tile-3 {
  background: linear-gradient(135deg, #25D366 0%, #1F623A 100%);
}

/* ---------- Products page responsive ---------- */
@media (max-width: 900px) {
  .product-hub-grid { grid-template-columns: 1fr; }
  .led-collage { grid-template-columns: 1fr; }
  .led-collage img:nth-child(n+3) { display: none; }
  .design-banner { grid-template-columns: 1fr; }
  .design-banner-tile { aspect-ratio: 16 / 7; }
}

/* ---------- Product Model Cards (per-model grid on category pages) ---------- */
.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.model-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.model-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange);
}
.model-card-img {
  aspect-ratio: 4 / 3;
  background: var(--bg-peach);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 24px;
}
.model-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s var(--ease);
}
.model-card:hover .model-card-img img { transform: scale(1.05); }
.model-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.model-card-model {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-dark);
  background: var(--orange-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  width: fit-content;
}
.model-card h3 {
  font-size: 17px;
  margin-bottom: 14px;
  line-height: 1.3;
}
.model-card-specs {
  flex: 1;
  padding-left: 0;
  margin-bottom: 18px;
}
.model-card-specs li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
}
.model-card-specs li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--orange);
  font-weight: 800;
}

