/* ==========================================================================
   unitech — redesigned theme (stage2) v3
   Reference style: white / warm-grey sections, brand-red accents,
   thin red line icons, numbered section labels, dark-green WhatsApp block,
   dark-navy footer.
   ========================================================================== */

:root {
  --red: #e2231a;
  --red-dark: #c4161c;
  --red-darker: #9c1216;
  --red-soft: #fdecec;
  --green: #0f4c3a;
  --green-dark: #0b3a2c;
  --green-soft: #9fe0c0;
  --wa: #25d366;
  --wa-dark: #1da851;
  --green-tint: #e9f6ef;
  --green-tint-2: #d6ede0;

  --ink: #1c1c1c;
  --body: #222222;
  --muted: #444444;
  --bg: #ffffff;
  --bg-tint: #f6f5f2;
  --bg-tint-2: #efeee9;
  --line: #e8e6e1;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 6px 20px rgba(28, 28, 28, 0.06);
  --shadow-lg: 0 18px 44px rgba(28, 28, 28, 0.10);
  --maxw: 1328px;
  --header-h: 78px;

  /* legacy aliases */
  --primary: var(--red);
  --primary-dark: var(--red-dark);
  --primary-darker: var(--red-darker);
  --primary-soft: var(--red-soft);
  --navy: #1d2835;
  --wa-green: var(--wa);
  --wa-green-ink: var(--wa-dark);

  --font-sans: "Noto Sans TC", "PingFang HK", "Microsoft JhengHei", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  /* unified: everything uses the navigation-bar typeface (weights & sizes kept) */
  --font-serif: var(--font-sans);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.8;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: 0.01em;
}
h4 { font-family: var(--font-sans); color: var(--ink); line-height: 1.35; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
.hl { color: var(--red); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section--tint { background: var(--bg-tint); }
.section--dark { background: linear-gradient(135deg, var(--green), var(--green-dark)); }
.section--tight { padding: 64px 0; }
.section--flush { padding: 0; }
.section--intro { padding-bottom: 0; }
.section--why { padding-top: 44px; }
.section--why .section-head p { font-size: 1.1rem; }
.section--why .benefit h3 { font-size: 1.5rem; }
.section--why .benefit p { font-size: 1.12rem; }
.section--why .card-icon { background: transparent; width: 84px; height: 84px; }
.section--why .card-icon svg { width: 68px; height: 68px; stroke-width: 0.9; }
.section--intro .card-icon { background: transparent; width: 96px; height: 96px; }
.section--intro .card-icon svg { width: 80px; height: 80px; stroke-width: 0.75; }
.section--wa-home { padding-top: 44px; }
.section--services { padding: 44px 0; }
.section--clients {
  padding-bottom: 280px;
  background-color: #e9eef4;
}

.section-head { max-width: 878px; margin: 0 auto 54px; text-align: center; }
.section-head p { color: var(--muted); margin: 0; }

/* numbered / labelled section kicker, e.g. "01 公司介紹" */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  color: var(--red);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.06em;
}
.section-label::before { content: none; }
.section-label .num { font-family: var(--font-serif); font-weight: 800; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 1.48rem;
  letter-spacing: 0.12em;
  text-transform: none;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 14px;
}

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.12rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 22px rgba(226, 35, 26, 0.25); }
.btn-primary:hover { background: var(--red-dark); color: #fff; box-shadow: 0 14px 28px rgba(226, 35, 26, 0.32); }

.btn-outline { border-color: var(--red); color: var(--red); background: #fff; }
.btn-outline:hover { background: var(--red); color: #fff; }

.btn-light { background: #fff; color: var(--red); }
.btn-light:hover { color: var(--red-dark); }

.btn-ghost-light { border-color: rgba(255, 255, 255, 0.65); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--red); }

/* WhatsApp: outline green (light bg) and solid green */
.btn-wa { background: #fff; border-color: var(--wa); color: var(--wa-dark); }
.btn-wa svg { color: var(--wa); }
.btn-wa:hover { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-wa:hover svg { color: #fff; }

.btn-block { width: 100%; }
.btn .arrow { width: 18px; height: 18px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow 0.2s ease; }
.site-header.is-scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-logo { width: 150px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 0.98rem; color: var(--ink); }
.brand-text small { font-size: 0.7rem; color: var(--muted); }

.primary-nav { display: flex; align-items: center; gap: 6px; }
.primary-nav ul { display: flex; align-items: center; gap: 4px; }
.primary-nav ul a { display: block; padding: 9px 15px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.primary-nav ul a:hover { color: var(--red); }
.primary-nav ul a.is-active { color: var(--red); }
.primary-nav ul > li { position: relative; }
.primary-nav .has-dropdown > a { display: inline-flex; align-items: center; }
.primary-nav .has-dropdown > a::after { content: "\25BE"; margin-left: 8px; font-size: 1.35em; line-height: 1; transform: translateY(-2px); }

.dropdown { position: absolute; top: calc(100% + 8px); left: 0; min-width: 244px; display: none; flex-direction: column; gap: 2px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); z-index: 120; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: flex; }
.dropdown a { display: block; padding: 10px 14px; border-radius: 9px; font-size: 0.95rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.dropdown a:hover { background: var(--red-soft); color: var(--red); }

.nav-cta { margin-left: 8px; padding: 11px 24px; }

.lang-switch { display: inline-flex; align-items: center; gap: 2px; margin-left: 8px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.lang-link { padding: 5px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.lang-link:hover { color: var(--red); }
.lang-link.is-active { background: var(--red-soft); color: var(--red); }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; width: 20px; margin: 0 auto; background: var(--ink); transition: transform 0.2s ease, opacity 0.2s ease; }
.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 { position: relative; overflow: hidden; }

/* inner page hero: soft warm band with red underline */
.hero--page { background: var(--bg-tint); color: var(--body); padding: 76px 0 68px; }
.hero--page h1, .hero--page h2 { color: var(--ink); }
.hero--page p { color: var(--body); font-size: 1.08rem; max-width: 700px; }
.hero--page .eyebrow { color: var(--red); }
.hero--page h1 { position: relative; padding-bottom: 18px; }
.hero--page h1::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 5px; border-radius: 3px; background: var(--red); }
.page-hero-breadcrumb { font-size: 0.9rem; color: var(--muted); margin-bottom: 8px; }
.page-hero-breadcrumb a { color: var(--muted); }

/* home hero */
.hero--home { position: relative; background: #fff; color: var(--body); padding: 70px 0; min-height: 660px; display: flex; align-items: center; overflow: hidden; }
.hero--home h1 { color: var(--ink); }
.hero--home p { color: var(--body); font-size: 1.08rem; }
.hero--home .eyebrow { color: var(--red); }
.hero--home .container { position: relative; z-index: 2; width: 100%; }
.hero--home .hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 52%; z-index: 0; }
.hero--home .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 8%; display: block; }
.hero--home .hero-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0.65) 6%, rgba(255,255,255,0) 20%); }
.hero-grid { display: grid; grid-template-columns: 1fr 0.92fr; gap: 54px; align-items: center; }
.hero-copy { max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* hero checklist (plain ticks, no pills) */
.hero-points { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.hero-points li::before {
  content: "\2713";
  width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red-soft); color: var(--red); font-size: 0.72rem; font-weight: 800; flex: 0 0 auto;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 30px; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.hero-badges span::before { content: "\2713"; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--red-soft); color: var(--red); font-size: 0.72rem; font-weight: 800; }

/* page hero (whatsapp) */
.hero--wa { padding: 76px 0 68px; }
.hero--wa h1 { max-width: 940px; }

/* ---------- cards / icons ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; height: 100%; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--red-soft); }
.card h3 { margin-bottom: 10px; color: var(--ink); }
.card p:last-child { margin-bottom: 0; }

/* red thin line icons (reference style) */
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--red-soft); color: var(--red); margin-bottom: 18px; }
.card-icon svg { width: 24px; height: 24px; stroke-width: 1.7; }

.service-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.service-card h3 { color: var(--ink); }
.service-card .card-photo { position: relative; }
.service-card .card-photo img { width: 100%; height: 172px; object-fit: cover; display: block; }
.service-card .card-badge {
  position: absolute;
  left: 18px;
  bottom: -22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red-soft);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}
.service-card .card-badge svg { width: 24px; height: 24px; stroke-width: 1.8; }
.service-card .card-body { padding: 40px 26px 22px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--red); font-weight: 700; font-size: 0.95rem; }
.card-link svg { width: 16px; height: 16px; }
.card-link:hover { color: var(--red-dark); }

.service-detail { scroll-margin-top: 100px; }
.service-detail h3 { color: var(--ink); }
.includes-title { font-size: 1rem; color: var(--ink); margin: 20px 0 10px; }

.benefit { text-align: center; }
.benefit .card-icon { margin: 0 auto 18px; }
.benefit p { color: var(--muted); font-size: 1.02rem; }

.step { position: relative; }
.step-num { display: inline-block; font-family: var(--font-serif); font-size: 2.1rem; font-weight: 800; color: var(--red); line-height: 1; margin-bottom: 14px; }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: 0.94rem; margin-bottom: 0; }

.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.service-list li { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow); }
.service-list .num { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; color: #fff; background: var(--red); }
.service-list .num.green { background: var(--green); }

/* ---------- stats (rounded light-grey frame, red icons) ---------- */
.section--stats { background: #fff; padding: 44px 0; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 10px;
  box-shadow: var(--shadow);
}
.stat { position: relative; display: flex; align-items: center; gap: 15px; padding: 8px 26px; text-align: left; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 16%; bottom: 16%; width: 1px; background: #e3e1db; }
.stat .stat-icon { flex: 0 0 auto; width: auto; height: auto; border-radius: 0; background: transparent; color: var(--red); margin: 0; }
.stat .stat-icon svg { width: 34px; height: 34px; stroke-width: 1.8; }
.stat strong { display: block; font-family: var(--font-sans); font-size: 2.1rem; font-weight: 800; color: var(--ink); line-height: 1.1; }
.stat span { font-size: 1.05rem; font-weight: 700; color: var(--body); }

/* ---------- clients ---------- */
.client-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.client-logo { display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; min-height: 140px; box-shadow: var(--shadow); transition: transform 0.2s ease, border-color 0.2s ease; }
.client-logo:hover { transform: translateY(-4px); border-color: var(--red-soft); }
.client-logo img { max-height: 86px; width: auto; object-fit: contain; filter: grayscale(10%); }
.client-logo img[src*="widex"] { max-height: 52px; }
.client-logo.is-placeholder { flex-direction: column; gap: 10px; color: var(--muted); font-weight: 600; font-size: 0.9rem; }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split--reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.split ul.check { margin-top: 12px; }

ul.check li { position: relative; padding-left: 34px; margin-bottom: 12px; }
ul.check li::before { content: "\2713"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--red-soft); color: var(--red); font-size: 0.78rem; font-weight: 800; line-height: 22px; text-align: center; }

/* full-width device showcase under the intro (no frame) */
.showcase { margin: 24px 0 0; }
.showcase img { width: 100%; height: auto; display: block; }

/* ---------- cta band (dark green) ---------- */
.cta-band { background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; border-radius: var(--radius-lg); padding: 54px 52px; display: flex; align-items: center; justify-content: space-between; gap: 32px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255, 255, 255, 0.86); margin: 0; }
.cta-band .hero-actions { margin-top: 0; }
.cta-band .eyebrow { color: var(--green-soft); }

/* home idea band: warm-grey top / navy bottom with centred white card */
.cta-band--home { display: flow-root; overflow: visible; padding: 0 0 64px; background: #1d2835; color: var(--ink); border-radius: 0; box-shadow: none; }
.section--cta-home { position: relative; z-index: 2; }
.cta-band--home::after { display: none; }
.cta-band--home .container { display: block; max-width: 1058px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 56px 48px; text-align: center; margin-top: -150px; }
.cta-band--home h2 { color: var(--ink); margin-bottom: 10px; }
.cta-band--home p { color: var(--body); margin: 0 auto; max-width: 660px; }
.cta-band--home .hero-actions { justify-content: center; margin-top: 30px; }
.cta-band--home .btn { white-space: nowrap; }
.cta-band--home .phone-accent { color: var(--red); font-weight: 800; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .ico { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--red-soft); color: var(--red); }
.contact-list .ico svg { width: 22px; height: 22px; }
.contact-list strong { display: block; color: var(--ink); font-size: 0.92rem; }
.contact-list a, .contact-list span { color: var(--body); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.field .req { color: var(--red); }
.field input, .field textarea, .field select { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 1rem; font-family: inherit; color: var(--ink); background: #fbfbfa; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(226, 35, 26, 0.10); }
.checkbox-group { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px 18px; }
.checkbox { display: flex; align-items: flex-start; gap: 9px; font-size: 0.95rem; color: var(--body); font-weight: 500; cursor: pointer; }
.checkbox input { width: auto; padding: 0; margin: 3px 0 0; accent-color: var(--red); }
.field textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 14px 0 0; }
.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.form-status.is-ok { display: block; background: var(--green-tint); color: var(--green); border: 1px solid var(--green-tint-2); }
.form-status.is-err { display: block; background: var(--red-soft); color: var(--red-darker); border: 1px solid #f3c2bd; }
.map-embed { border: 0; width: 100%; height: 420px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- footer ---------- */
.site-footer { background: #1d2835; color: rgba(255, 255, 255, 0.76); padding: 66px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer a { color: rgba(255, 255, 255, 0.76); }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: 9px; font-size: 0.95rem; }
.footer-brand { margin-bottom: 16px; }
.footer-brand img { width: 168px; height: auto; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.footer-social a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.88); font-size: 0.9rem; font-weight: 600; }
.footer-social a:hover { background: var(--wa); border-color: var(--wa); color: #fff; }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.14); padding: 20px 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }

/* ---------- scroll top / floating whatsapp ---------- */
.scroll-top { position: fixed; right: 20px; bottom: 86px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 0; display: none; align-items: center; justify-content: center; cursor: pointer; color: #fff; background: var(--red); box-shadow: var(--shadow-lg); }
.scroll-top.is-visible { display: flex; }
.scroll-top svg { width: 20px; height: 20px; }

.wa-float { position: fixed; right: 20px; left: auto; bottom: 24px; z-index: 90; display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 999px; background: var(--wa); color: #fff; font-weight: 700; font-size: 0.92rem; box-shadow: var(--shadow-lg); }
.wa-float:hover { color: #fff; transform: translateY(-2px); }
.wa-float svg { width: 20px; height: 20px; }

/* ---------- whatsapp band (text left + image enlarged to the right edge) ---------- */
.cta-band--wa {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 48px;
  align-items: center;
  background: transparent;
  color: var(--body);
  text-align: left;
  padding: 0;
  padding-left: max(22px, calc((100vw - var(--maxw)) / 2 + 22px));
  padding-right: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.cta-band--wa::after { display: none; }
.cta-band--wa .cta-wa-copy { max-width: 651px; }
.wa-checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; }
.wa-checks li { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 1.05rem; }
.wa-checks li::before { content: "\2713"; color: var(--red); font-weight: 800; }
.cta-band--wa .eyebrow { display: block; color: var(--red); margin-bottom: 10px; text-transform: none; }
.cta-band--wa h2 { color: #000; }
.cta-band--wa p { color: var(--ink); font-size: 1.18rem; }
.cta-band--wa .hero-actions { margin-top: 28px; justify-content: flex-start; }
.cta-band--wa .cta-wa-media img { width: 100%; height: auto; display: block; }

.wa-pain .card-icon { color: var(--red); background: var(--red-soft); }
.wa-pain h3 { font-size: 1.15rem; }
.solutions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.solution { display: flex; flex-direction: column; }
.solution-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.solution-head h3 { margin: 0; font-size: 1.15rem; color: var(--ink); }
.solution-num { flex: 0 0 auto; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-family: var(--font-serif); font-weight: 800; font-size: 1.05rem; color: #fff; background: var(--red); }
.solution-items { display: grid; gap: 14px; }
.solution-item h4 { font-size: 0.98rem; color: var(--ink); margin: 0 0 4px; }
.solution-item p { font-size: 0.94rem; margin: 0; }
.wa-info { margin-top: 36px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 26px; box-shadow: var(--shadow); }
.wa-info li { align-items: flex-start; }
.wa-video { max-width: 900px; margin: 0 auto; }
.wa-video video { width: 100%; display: block; border-radius: var(--radius); box-shadow: var(--shadow-lg); background: #000; aspect-ratio: 16 / 9; }

/* ---------- gallery / portfolio ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery img { width: 100%; height: 190px; object-fit: cover; border-radius: var(--radius-sm); box-shadow: var(--shadow); transition: transform 0.25s ease; }
.gallery img:hover { transform: scale(1.03); }
.gallery .project { margin: 0; }
.gallery figcaption { margin-top: 10px; font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.video-item { margin: 0; }
.video-item video { width: 100%; display: block; border-radius: var(--radius); box-shadow: var(--shadow); background: #000; aspect-ratio: 16 / 9; object-fit: cover; }
.video-item figcaption { margin-top: 10px; font-weight: 600; color: var(--ink); font-size: 0.95rem; }

/* ---------- code card ---------- */
.code-card { background: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.code-bar { display: flex; gap: 8px; padding: 14px 18px; background: rgba(255, 255, 255, 0.06); }
.code-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.code-bar i:nth-child(2) { background: #febc2e; }
.code-bar i:nth-child(3) { background: #28c840; }
.code-body { margin: 0; padding: 24px; color: #e6f0eb; font-family: "Consolas", "SFMono-Regular", "Menlo", monospace; font-size: 0.9rem; line-height: 1.7; white-space: pre-wrap; overflow-x: auto; }

/* ---------- utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 36px; }
.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; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .service-list { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .stat + .stat::before { display: none; }
  .client-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .primary-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 20px; box-shadow: var(--shadow); display: none; }
  .primary-nav.is-open { display: flex; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .primary-nav ul a { padding: 12px 14px; border-radius: var(--radius-sm); }
  .primary-nav .has-dropdown > a::after { display: none; }
  .dropdown { position: static; display: flex; min-width: 0; padding: 0 0 0 14px; border: 0; box-shadow: none; background: transparent; }
  .dropdown a { padding: 9px 12px; white-space: normal; }
  .lang-switch { align-self: flex-start; margin: 10px 0 0; }
  .nav-cta { margin: 10px 0 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { max-width: none; }
  .hero--home { padding: 56px 0 0; min-height: 0; display: block; }
  .hero--home .hero-media { position: static; width: 100%; height: auto; margin-top: 36px; }
  .hero--home .hero-media img { height: auto; object-fit: initial; }
  .hero--home .hero-media::before { display: none; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .solutions { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; text-align: center; padding: 42px 28px; }
  .cta-band--wa { grid-template-columns: 1fr; padding: 0; left: auto; transform: none; width: auto; text-align: left; }
  .cta-band--wa .cta-wa-copy { max-width: none; }
  .cta-band--home { padding: 56px 0; }
  .cta-band--home .container { padding: 40px 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .client-strip { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .brand-logo { width: 118px; }
  .brand-text small { display: none; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .checkbox-group { grid-template-columns: 1fr; }
  .wa-float span { display: none; }
  .wa-float { padding: 13px; }
  .cta-band--home .container { padding: 34px 20px; }
  .cta-band--home h2 { font-size: 1.55rem; }
  .cta-band--home .hero-actions { flex-direction: column; align-items: center; }
  .cta-band--home .hero-actions .btn { width: 100%; max-width: 300px; }
}
a:hover { color: var(--red); }
