/* ============================================================
   Knowtecq Limited — Official Website Stylesheet
   Design: Minimal & Elegant, White Base
   Brand Colors: Scarlet (#A93226), Blue (#1E6FA0), Grey (#606A6B)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&family=Raleway:wght@400;500;600;700;800&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --scarlet: #C0392B;
  --scarlet-light: #f5ebe9;
  --scarlet-hover: #A93226;
  --blue: #3061AA;
  --blue-light: #e8f2f9;
  --blue-hover: #264f8e;
  --grey: #848C8D;
  --grey-light: #f0f1f1;
  --grey-hover: #6b7273;

  --text-dark: #1A252F;
  --text-medium: #4A5568;
  --text-light: #718096;
  --text-muted: #A0ADB9;

  --bg-white: #FFFFFF;
  --bg-light: #F8F9FA;
  --bg-section: #F4F6F7;
  --border: #E2E8F0;
  --border-light: #EDF2F7;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.10);

  --font-heading: 'Raleway', 'Noto Sans TC', sans-serif;
  --font-body: 'Noto Sans TC', 'Raleway', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --nav-height: 72px;
  --container: 1360px;
  --transition: 0.25s ease;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16.5px; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ── Language Toggle ────────────────────────────────────────── */
html[lang="zh"] .en { display: none !important; }
html[lang="en"] .zh { display: none !important; }

/* ── Container ──────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.3;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
h4 { font-size: 1.05rem; }
p { color: var(--text-medium); line-height: 1.8; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
  letter-spacing: 0.3px;
}
.btn-sm { padding: 9px 20px; font-size: 0.92rem; }
.btn-lg { padding: 15px 36px; font-size: 1rem; }

.btn-scarlet {
  background: var(--scarlet);
  color: #fff;
  border: 2px solid var(--scarlet);
}
.btn-scarlet:hover {
  background: var(--scarlet-hover);
  border-color: var(--scarlet-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(169,50,38,0.25);
}

.btn-outline-scarlet {
  background: transparent;
  color: var(--scarlet);
  border: 2px solid var(--scarlet);
}
.btn-outline-scarlet:hover {
  background: var(--scarlet);
  color: #fff;
  transform: translateY(-1px);
}

.btn-blue {
  background: var(--blue);
  color: #fff;
  border: 2px solid var(--blue);
}
.btn-blue:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-blue {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline-blue:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}

/* ── Badges / Tags ──────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}
.badge-scarlet { background: var(--scarlet-light); color: var(--scarlet); }
.badge-blue    { background: var(--blue-light);    color: var(--blue); }
.badge-grey    { background: var(--grey-light);    color: var(--grey); }

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-light);
  background: var(--bg-white);
}

/* ── Section Labels ─────────────────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--scarlet);
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--scarlet);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.3;
}

.section-desc {
  font-size: 1.1rem;
  color: #4A5568;
  max-width: 720px;
  line-height: 1.9;
}

/* ── Section Layout ─────────────────────────────────────────── */
.section {
  padding: 96px 0;
}
.section-sm {
  padding: 64px 0;
}
.section-bg {
  background: var(--bg-light);
}
.section-header {
  margin-bottom: 56px;
}
.section-header.centered {
  text-align: center;
}
.section-header.centered .section-label {
  justify-content: center;
}
.section-header.centered .section-desc {
  margin: 0 auto;
}

/* ── Navigation ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
  transition: box-shadow var(--transition);
}
.navbar.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo img {
  height: 48px;
  width: auto;
}
.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: flex-end;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-right: 16px;
}
.nav-links li { position: relative; }
.nav-link {
  display: block;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-medium);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--scarlet);
  background: var(--scarlet-light);
}
/* Services dropdown link */
.nav-link.has-dropdown {
  display: flex;
  align-items: center;
  gap: 5px;
}
.nav-link.has-dropdown i {
  font-size: 0.65rem;
  transition: transform var(--transition);
}
.nav-links li:hover .nav-link.has-dropdown i {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 230px;
  padding: 8px;
  z-index: 100;
}
.nav-links li:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: 9px 14px;
  font-size: 0.87rem;
  color: var(--text-medium);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  font-weight: 400;
}
.dropdown-menu a:hover {
  color: var(--scarlet);
  background: var(--scarlet-light);
}
.dropdown-menu a .badge {
  float: right;
  margin-top: 1px;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all var(--transition);
  letter-spacing: 0.5px;
}
.lang-btn:hover {
  color: var(--blue);
  border-color: var(--blue);
  background: var(--blue-light);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, #E2E8F0 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 12px;
  letter-spacing: -1px;
}
.hero-title .accent { color: var(--scarlet); }
.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 28px;
  letter-spacing: 0.3px;
}
.hero-desc {
  font-size: 1rem;
  color: var(--text-medium);
  line-height: 1.85;
  max-width: 600px;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}
.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-num.scarlet { color: var(--scarlet); }
.hero-stat-num.blue   { color: var(--blue); }
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ── Three Values Bar ───────────────────────────────────────── */
.values-bar {
  display: flex;
  border-top: 3px solid var(--border-light);
  margin-top: 0;
}
.values-bar-item {
  flex: 1;
  padding: 28px 32px;
  border-right: 1px solid var(--border-light);
  position: relative;
}
.values-bar-item:last-child { border-right: none; }
.values-bar-item::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  width: 100%;
  height: 3px;
}
.values-bar-item.scarlet::before { background: var(--scarlet); }
.values-bar-item.blue::before   { background: var(--blue); }
.values-bar-item.grey::before   { background: var(--grey); }
.values-bar-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.values-bar-item.scarlet .values-bar-label { color: var(--scarlet); }
.values-bar-item.blue   .values-bar-label { color: var(--blue); }
.values-bar-item.grey   .values-bar-label { color: var(--grey); }
.values-bar-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.values-bar-desc {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--border);
}
.card-accent-left {
  border-left: 3px solid var(--scarlet);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
}
.card-icon.scarlet { background: var(--scarlet-light); color: var(--scarlet); }
.card-icon.blue    { background: var(--blue-light);    color: var(--blue); }
.card-icon.grey    { background: var(--grey-light);    color: var(--grey); }

/* Service Card */
.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.service-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}
.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.4;
}
.service-card p {
  color: #4A5568;
  font-size: 0.92rem;
  color: var(--text-medium);
  line-height: 1.85;
  flex: 1;
  margin-bottom: 24px;
}
.service-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.service-card-link {
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--scarlet);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
  margin-top: auto;
}
.service-card-link:hover {
  color: var(--scarlet-hover);
  gap: 10px;
}
.service-card-link i { font-size: 0.78rem; }

/* ── Stats Row ──────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-box {
  background: var(--bg-white);
  padding: 36px 28px;
  text-align: center;
}
.stat-box-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-box-num.scarlet { color: var(--scarlet); }
.stat-box-num.blue   { color: var(--blue); }
.stat-box-label {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ── Feature List ───────────────────────────────────────────── */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feature-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--scarlet);
  flex-shrink: 0;
  margin-top: 7px;
}
.feature-dot.blue { background: var(--blue); }
.feature-item-text { font-size: 0.98rem; color: #4A5568; line-height: 1.85; }
.feature-item-text strong { color: var(--text-dark); font-weight: 600; }

/* ── Comparison Table ───────────────────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.compare-table th {
  padding: 14px 20px;
  text-align: left;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  background: var(--bg-section);
  color: var(--text-medium);
}
.compare-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }
.compare-table th:last-child  { border-radius: 0 var(--radius-sm) 0 0; }
.compare-table th.highlight { background: var(--blue); color: #fff; }
.compare-table td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-medium);
  vertical-align: middle;
}
.compare-table td:first-child { color: var(--text-dark); font-weight: 500; }
.compare-table td.check-yes { color: var(--blue); font-weight: 600; }
.compare-table td.check-no  { color: var(--text-muted); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--bg-light); }

/* ── CTA Banner ─────────────────────────────────────────────── */
.cta-banner {
  background: var(--text-dark);
  padding: 80px 0;
  text-align: center;
}
.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-bottom: 16px;
}
.cta-banner p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner .btn-group {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Page Banner (inner pages) ──────────────────────────────── */
.page-banner {
  padding: calc(var(--nav-height) + 56px) 0 64px;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
}
.page-banner .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.page-banner .breadcrumb a { color: var(--text-light); }
.page-banner .breadcrumb a:hover { color: var(--scarlet); }
.page-banner .breadcrumb i { font-size: 0.65rem; }
.page-banner h1 { margin-bottom: 16px; }
.page-banner p {
  font-size: 1rem;
  color: var(--text-medium);
  max-width: 640px;
  line-height: 1.85;
}

/* ── Partners Grid ──────────────────────────────────────────── */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.partner-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  transition: all var(--transition);
  background: var(--bg-white);
}
.partner-item:hover {
  border-color: var(--grey);
  box-shadow: var(--shadow-sm);
}
.partner-item img {
  max-width: 120px;
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.6);
  transition: filter var(--transition);
}
.partner-item:hover img {
  filter: grayscale(0%) opacity(1);
}

/* ── Info Box ───────────────────────────────────────────────── */
.info-box {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
}
.info-box.blue-accent {
  border-left: 3px solid var(--blue);
  background: var(--blue-light);
}
.info-box.scarlet-accent {
  border-left: 3px solid var(--scarlet);
  background: var(--scarlet-light);
}
.info-box h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.info-box p {
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.75;
}

/* ── Cert Badge ─────────────────────────────────────────────── */
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--bg-white);
}
.cert-badge i { color: var(--blue); }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img { height: 36px; width: auto; margin-bottom: 16px; }
.footer-brand p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  max-width: 260px;
}
.footer h5 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }
.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.87rem;
}
.footer-contact-item i {
  color: var(--scarlet);
  width: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}
.footer-cert-list { display: flex; flex-direction: column; gap: 10px; }
.footer-cert-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.6);
}
.footer-cert-item i { color: var(--blue); font-size: 0.9rem; }
.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ── Two-column Layout ──────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.two-col.align-center { align-items: center; }
.two-col-wide {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ── Numbered list ──────────────────────────────────────────── */
.numbered-list { display: flex; flex-direction: column; gap: 24px; }
.numbered-item { display: flex; gap: 20px; align-items: flex-start; }
.numbered-item .num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--scarlet-light);
  color: var(--scarlet);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.numbered-item h4 { margin-bottom: 4px; }
.numbered-item p { font-size: 0.9rem; }

/* ── Tab Component ──────────────────────────────────────────── */
.tabs { margin-bottom: 36px; }
.tab-nav {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 36px;
}
.tab-btn {
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  cursor: pointer;
  background: none;
  border-radius: 0;
  font-family: var(--font-body);
}
.tab-btn:hover { color: var(--text-dark); }
.tab-btn.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Features Grid ──────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 28px 24px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}
.feature-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--blue-light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 16px;
}
.feature-card h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.75;
}

/* ── Contact Form ───────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,111,160,0.08);
}
.form-group textarea { height: 130px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Utility ────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-scarlet { color: var(--scarlet); }
.text-blue    { color: var(--blue); }
.text-grey    { color: var(--grey); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.divider {
  height: 1px;
  background: var(--border-light);
  margin: 48px 0;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .partners-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  .section { padding: 64px 0; }

  .nav-links, .nav-actions .btn-scarlet { display: none; }
  .nav-toggle { display: flex; }
  .lang-btn { display: flex !important; }

  .nav-menu.open {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow-lg);
    display: flex !important;
  }
  .nav-menu.open .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 4px;
  }
  .nav-menu.open .nav-links li { width: 100%; }
  .nav-menu.open .nav-link { display: block; width: 100%; }
  .nav-menu.open .dropdown-menu {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    background: var(--bg-light);
    margin-top: 4px;
    border-radius: var(--radius-sm);
  }
  .nav-menu.open .nav-actions {
    margin-top: 12px;
    width: 100%;
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
  }
  .nav-menu.open .nav-actions .btn-scarlet { display: flex; width: 100%; justify-content: center; }

  .two-col, .two-col-wide { grid-template-columns: 1fr; gap: 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .values-bar { flex-direction: column; }
  .values-bar-item { border-right: none; border-bottom: 1px solid var(--border-light); }
  .hero-stats { gap: 24px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .cta-banner .btn-group { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 20px; }
}

/* ── Tablet RWD (769px – 1024px) ────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
  .container { padding: 0 28px; }
  .section { padding: 72px 0; }

  .hero { padding-top: calc(var(--nav-height) + 60px); padding-bottom: 72px; }
  .hero-title { font-size: clamp(2rem, 4vw, 2.8rem); }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .partners-grid { grid-template-columns: repeat(4, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .two-col { gap: 40px; }
  .two-col-wide { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ── Mobile RWD improvements ────────────────────────────────── */
@media (max-width: 768px) {
  /* Typography */
  .hero-title { font-size: clamp(1.8rem, 7vw, 2.4rem); letter-spacing: -0.5px; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-desc { font-size: 0.95rem; }
  .section-title { font-size: clamp(1.5rem, 5vw, 1.9rem); }
  .section-desc { font-size: 0.95rem; }

  /* Hero */
  .hero { padding-top: calc(var(--nav-height) + 40px); padding-bottom: 56px; }
  .hero-inner { max-width: 100%; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .hero-stat-num { font-size: 1.5rem; }

  /* Section headers */
  .section-header { margin-bottom: 36px; }

  /* Page banner */
  .page-banner { padding: calc(var(--nav-height) + 32px) 0 40px; }
  .page-banner h1 { font-size: clamp(1.5rem, 5vw, 2rem); }

  /* Service detail pages — sidebar moves below */
  [class*="service-detail-grid"] { grid-template-columns: 1fr !important; }
  [class*="service-sticky"] { position: static !important; }

  /* Cards */
  .service-card { padding: 24px; }
  .card { padding: 24px; }

  /* CTA banner */
  .cta-banner { padding: 56px 0; }
  .cta-banner h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); }

  /* Footer */
  .footer { padding: 48px 0 0; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }

  /* Tab nav scroll */
  .tab-nav { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .tab-btn { white-space: nowrap; flex-shrink: 0; }

  /* Stats row */
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-box { padding: 24px 16px; }
  .stat-box-num { font-size: 1.6rem; }

  /* Compare table on mobile */
  .compare-wrap { overflow-x: auto; }
  .compare-table { min-width: 560px; }

  /* Partners grid */
  .partners-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .partner-logo-item { padding: 16px 10px; min-height: 64px; }
  .partner-logo-item img { max-width: 90px; max-height: 36px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .hero-title { font-size: clamp(1.65rem, 7vw, 2rem); }
  .hero-actions .btn { font-size: 0.9rem; padding: 12px 20px; }
  .stats-row { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .features-grid { grid-template-columns: 1fr; }
  .nav-container { padding: 0 16px; }
}

/* ── Image Sections ─────────────────────────────────────────── */
.hero-img-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}
.hero-img-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(255,255,255,0.97) 0%,
    rgba(255,255,255,0.92) 45%,
    rgba(255,255,255,0.5) 75%,
    rgba(255,255,255,0.1) 100%
  );
}

.img-banner {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: var(--radius-lg);
}
.img-banner-wide {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: var(--radius-lg);
  margin-bottom: 48px;
}
.img-inline {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  display: block;
}
.section-with-img {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.section-with-img.img-right .img-col { order: 2; }
.section-with-img.img-right .text-col { order: 1; }

.img-caption {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}
.img-caption a {
  color: var(--text-muted);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .hero-img-bg {
    display: none;
  }
  .img-banner, .img-banner-wide, .img-inline { height: 200px; }
  .section-with-img { grid-template-columns: 1fr; }
  .section-with-img.img-right .img-col,
  .section-with-img.img-right .text-col { order: unset; }
}

/* ── Site Images ─────────────────────────────────────────────── */
.img-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}
.img-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.92) 0%,
    rgba(255,255,255,0.92) 35%,
    rgba(255,255,255,0.4) 55%,
    rgba(255,255,255,0.0) 70%
  );
}
.page-banner-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0.15;
}
.page-banner { position: relative; overflow: hidden; }
.page-banner .container { position: relative; z-index: 1; }

.img-section {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  display: block;
}
.img-section-wide {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  display: block;
  margin-bottom: 48px;
}
.img-section-full {
  width: 100%;
  height: 650px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-lg);
  display: block;
  margin-bottom: 48px;
}
.img-section-auto {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  margin-bottom: 48px;
}
@media (max-width: 768px) {
  .img-section-full { height: 320px; }
}
.img-inline {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  display: block;
}
.img-inline-short {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  display: block;
}
.photo-credit {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 6px;
}
@media (max-width: 768px) {
    .img-hero-bg {
    display: block;
  }
  .img-hero-bg::after {
    background: linear-gradient(
      to bottom,
      rgba(255,255,255,0.98) 0%,
      rgba(255,255,255,0.92) 60%,
      rgba(255,255,255,0.75) 100%
    );
  }
  .img-section  { height: 200px; }
  .img-section-wide { height: 180px; }
  .img-inline   { height: 220px; }
  .img-inline-short { height: 160px; }
}

/* ── Large Screen Optimizations (1440px+) ────────────────── */
@media (min-width: 1440px) {
  .container { padding: 0 64px; }
  .section { padding: 96px 0; }
  .hero { padding-top: calc(var(--nav-height) + 100px); padding-bottom: 100px; }
  
  /* Prevent grids from over-stretching */
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .features-grid { gap: 28px; }
  .two-col { gap: 72px; }
  .partner-intro-grid { gap: 72px; }
  
  /* Limit max image heights on large screens */
  .img-section { height: 360px; }
  .img-inline  { height: 380px; }
}
