/*
 * Duyên Lành Web — Website tử tế cho cửa hàng nhỏ
 * Palette: teal + cream + lotus + sage + earth
 * Font: Be Vietnam Pro (full Vietnamese support)
 */

/* ═══════════ FONTS ═══════════ */
/* Font loaded via <link> in HTML head with preconnect — 4 weights only (400,600,700,800) */

/* ═══════════ DESIGN TOKENS ═══════════ */
:root {
  --primary:      #0F8F83;
  --primary-dark: #0B6F66;
  --primary-light:#CCFBF1;
  --teal:         var(--primary);
  --teal-dark:    var(--primary-dark);
  --teal-light:   var(--primary-light);
  --cream:        #FFFAF0;
  --cream-warm:   #FFFDF6;
  --white:        #FFFFFF;
  --lotus:        #F4B6C2;
  --lotus-light:  #FFF0F3;
  --earth:        #D9835F;
  --earth-dark:   #C0652F;
  --earth-light:  #FEF3C7;
  --sage:         #9AB7A5;
  --sage-light:   #E8F0EA;
  --text:         #1F2937;
  --muted:        #667085;
  --border:       #E2E8F0;
  --border-warm:  #E8E4DB;

  --radius:       12px;
  --radius-lg:    20px;
  --shadow:       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 12px 40px rgba(0,0,0,0.1);

  --max-width:    1100px;
  --section-gap:  100px;
}

/* ═══════════ RESET ═══════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Be Vietnam Pro', Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

/* ═══════════ BREADCRUMB ═══════════ */
.breadcrumb {
  padding: 16px 0;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb strong { color: var(--text); font-weight: 600; }

/* Article metadata */
.article-meta {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  margin-top: 8px; margin-bottom: 24px;
  font-size: 14px; color: var(--muted);
}
.article-category {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary); background: var(--primary-light);
  padding: 3px 12px; border-radius: 14px;
}
.article-reading-time {
  display: flex; align-items: center; gap: 4px;
}
.article-reading-time::before {
  content: "·"; font-weight: 700; margin-right: 4px;
}

/* Related posts grid */
.related-posts {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
}
.related-posts h3 {
  font-size: 16px; margin-bottom: 16px; color: var(--text);
}
.related-posts-grid {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.related-post-link {
  display: inline-block;
  color: var(--primary); font-size: 14px; text-decoration: none;
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 20px;
  transition: all 0.2s;
}
.related-post-link:hover {
  background: var(--primary); color: white; border-color: var(--primary);
}
@media (max-width: 620px) {
  .article-meta { gap: 10px; }
  .related-posts-grid { flex-direction: column; }
}

/* ═══════════ CONTAINER ═══════════ */
.container {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

/* ═══════════ TAG ═══════════ */
.tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--primary-light);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

/* ═══════════ SECTION ═══════════ */
.section { padding: var(--section-gap) 0; }
.section-heading { text-align: center; max-width: 680px; margin: 0 auto 56px; }

h1 {
  font-family: 'Be Vietnam Pro', Arial, Helvetica, sans-serif;
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}

h2 {
  font-family: 'Be Vietnam Pro', Arial, Helvetica, sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

h3 {
  font-family: 'Be Vietnam Pro', Arial, Helvetica, sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 8px;
}

/* ═══════════ HEADER ═══════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
}

.logo-text strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.logo-text small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 500;
  font-size: 15px;
}

.main-nav a { color: var(--muted); transition: color 0.2s; }
.main-nav a:hover { color: var(--primary); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--primary);
  border-radius: 10px;
  padding: 10px 9px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: white;
  border-radius: 1px;
}

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  padding: 86px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 12% 18%,
      rgba(204, 251, 241, 0.75),
      transparent 28%
    ),
    radial-gradient(
      circle at 90% 35%,
      rgba(244, 182, 194, 0.28),
      transparent 30%
    ),
    linear-gradient(180deg, var(--cream-warm) 0%, var(--cream) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 143, 131, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 143, 131, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 78%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: 76px;
}

.hero-copy {
  max-width: 620px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: rgba(204, 251, 241, 0.8);
  border: 1px solid rgba(15, 143, 131, 0.12);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(15, 143, 131, 0.12);
}

.hero h1 {
  max-width: 640px;
  margin-bottom: 24px;
  color: var(--text);
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.hero-desc {
  max-width: 590px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-actions .btn {
  min-width: 168px;
  justify-content: center;
}

.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 620px;
}

.hero-trust-item {
  padding: 16px 18px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.hero-trust-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.hero-trust-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

/* Hero visual */
.hero-visual {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero responsive */
@media (max-width: 980px) {
  .hero {
    padding: 70px 0 82px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .hero-copy {
    max-width: 720px;
    text-align: center;
    margin: 0 auto;
  }

  .hero h1,
  .hero-desc,
  .hero-trust {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 48px 0 64px;
  }

  .hero h1 {
    font-size: clamp(36px, 11vw, 48px);
    line-height: 1.08;
  }

  .hero-desc {
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-trust {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: auto;
    flex-wrap: wrap;
  }
}

/* ═══════════ HERO — Mosaic Visual ═══════════ */
.hero-service-visual {
  width: 100%;
  display: flex;
  justify-content: center;
}

.mosaic-card {
  width: min(100%, 460px);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.mosaic-grid {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  gap: 5px;
}

.mosaic-pixel {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  background: #e9e3d9;
  opacity: 0.18;
  transform: scale(0.7);
  transition:
    transform 0.35s ease,
    opacity 0.35s ease,
    background-color 0.35s ease;
  transition-delay: var(--delay, 0ms);
}

.mosaic-pixel.on {
  opacity: 1;
  transform: scale(1);
}

.mosaic-content {
  text-align: center;
  margin-bottom: 20px;
}

.mosaic-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f8f83;
  background: #ddf7f0;
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.mosaic-content h3,
.mosaic-h3 {
  font-family: 'Be Vietnam Pro', Arial, Helvetica, sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 10px;
  color: #1f2937;
}

.mosaic-content p {
  font-size: 16px;
  line-height: 1.7;
  color: #667085;
  max-width: 360px;
  margin: 0 auto;
}

.mosaic-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.mosaic-tab {
  border: 1px solid #d8dfeb;
  background: #fff;
  color: #344054;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.mosaic-tab:hover {
  border-color: #0f8f83;
  color: #0f8f83;
}

.mosaic-tab.active {
  background: #0f8f83;
  color: white;
  border-color: #0f8f83;
}

@media (max-width: 640px) {
  .mosaic-card {
    padding: 18px;
    border-radius: 22px;
  }

  .mosaic-grid {
    max-width: 260px;
    gap: 4px;
  }

  .mosaic-content h3,
  .mosaic-h3 {
    font-size: 22px;
  }

  .mosaic-content p {
    font-size: 15px;
  }
}

/* ═══════════ FORM MODAL ═══════════ */
.form-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.form-modal.open { display: flex; }

.form-modal-card {
  position: relative;
  width: min(100%, 640px);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0,0,0,0.18);
  padding: 32px 28px 0;
}

.form-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: var(--muted);
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.2s;
}
.form-modal-close:hover { background: #f1f5f9; }

.form-modal-header {
  text-align: center;
  margin-bottom: 20px;
}

.form-modal-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.form-modal-header h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.form-modal-header p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

/* Custom form */
.custom-form {
  padding: 0 4px;
}

.cf-group {
  margin-bottom: 18px;
}

.cf-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.cf-required {
  color: #EF4444;
}

.cf-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Be Vietnam Pro', Arial, Helvetica, sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}

.cf-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,143,131,0.1);
}

.cf-input::placeholder {
  color: #CBD5E1;
}

.cf-textarea {
  resize: vertical;
  min-height: 90px;
}

.cf-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cf-radio {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.2s;
  background: var(--white);
}

.cf-radio:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.cf-radio input[type="radio"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #CBD5E1;
  border-radius: 50%;
  margin: 0;
  position: relative;
  transition: border-color 0.2s;
  flex-shrink: 0;
}

.cf-radio input[type="radio"]:checked {
  border-color: var(--primary);
}

.cf-radio input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--primary);
}

.cf-radio:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
}

.cf-submit {
  width: 100%;
  min-height: 48px;
  font-size: 16px;
  margin-top: 8px;
}

.cf-note {
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
  min-height: 20px;
}

.form-modal-note {
  text-align: center;
  padding: 16px 0;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

@media (max-width: 640px) {
  .form-modal { padding: 12px; }
  .form-modal-card { padding: 24px 16px 0; border-radius: 16px; }
  .form-modal-header h2 { font-size: 20px; }
}

/* ═══════════ BUTTONS ═══════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 46px; padding: 11px 24px; border-radius: 10px;
  font-family: 'Be Vietnam Pro', Arial, Helvetica, sans-serif;
  font-weight: 600; font-size: 15px; transition: all 0.2s ease; cursor: pointer; border: none;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary); color: white;
  box-shadow: 0 4px 16px rgba(15, 143, 131, 0.3);
}
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 6px 24px rgba(15, 143, 131, 0.4); }

.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-zalo { background: #0068FF; color: white; box-shadow: 0 4px 16px rgba(0, 104, 255, 0.25); }
.btn-zalo:hover { background: #0052CC; }

/* ═══════════ PROBLEMS — 2-col layout ═══════════ */
.problems { background: var(--white); }

.problems-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: start;
}

.problems-left { padding-top: 8px; }
.problems-left .tag { margin-bottom: 16px; }
.problems-left h2 { margin-bottom: 16px; }

.problems-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.problems-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.problem-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 20px 18px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s ease;
}

.problem-card:hover { box-shadow: var(--shadow-md); }

.problem-card-wide {
  grid-column: 1 / -1;
}

.problem-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  margin-top: 2px;
}

.problem-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
  line-height: 1.3;
}

.problem-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ═══════════ RESPONSIVE — Problems ═══════════ */
@media (max-width: 920px) {
  .problems-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .problems-right { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .problems-right { grid-template-columns: 1fr; }
  .problem-card-wide { grid-column: 1; }
}

/* ═══════════ SERVICES ═══════════ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.service-card {
  padding: 36px 28px; background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-icon { font-size: 40px; margin-bottom: 16px; }
.service-card p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }

.service-features li {
  padding: 7px 0 7px 22px; position: relative; font-size: 14px; color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.service-features li:last-child { border-bottom: 0; }
.service-features li::before {
  content: ''; position: absolute; left: 0; top: 13px; width: 12px; height: 2px;
  background: var(--primary); border-radius: 1px;
}

/* ═══════════ PRICING ═══════════ */
.pricing { background: var(--white); }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.pricing-card {
  padding: 32px 24px; background: var(--cream-warm); border-radius: var(--radius-lg);
  border: 1px solid var(--border); text-align: center; transition: box-shadow 0.25s ease; position: relative;
  display: flex; flex-direction: column;
}
.pricing-card:hover { box-shadow: var(--shadow-md); }
.pricing-card.popular { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow-md); }

.badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: white; font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 20px; white-space: nowrap;
}

.price { font-size: 36px; font-weight: 800; color: var(--primary); margin: 12px 0 6px; }
.price span { font-size: 16px; font-weight: 500; color: var(--muted); }
.price-desc { font-size: 13px; color: var(--muted); margin-bottom: 20px; }

.pricing-card ul { text-align: left; margin-bottom: 24px; flex: 1; }
.pricing-card ul li {
  padding: 8px 0; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--border);
  position: relative; padding-left: 20px;
}
.pricing-card ul li::before { content: '\2713'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.pricing-card ul li:last-child { border-bottom: 0; }
.pricing-card .btn { width: 100%; margin-top: auto; }
.pricing-monthly .price { color: var(--earth); }
.pricing-monthly .btn-outline { border-color: var(--earth); color: var(--earth); }
.pricing-monthly .btn-outline:hover { background: var(--earth); color: white; }

/* ═══════════ PROCESS ═══════════ */
.process-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.step {
  text-align: center; padding: 36px 24px; background: var(--white);
  border-radius: var(--radius-lg); border: 1px solid var(--border); position: relative;
}

.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--primary-light);
  color: var(--primary); font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}

.step p { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* ═══════════ PORTFOLIO ═══════════ */
.portfolio { background: var(--white); }
.portfolio-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.portfolio-card {
  background: var(--cream-warm); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.portfolio-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.portfolio-img { height: 180px; overflow: hidden; background: #F1F5F9; cursor: pointer; position: relative; }

.portfolio-img::after {
  content: '🔍'; position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,0.5); color: white; width: 32px; height: 32px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 14px; opacity: 0; transition: opacity 0.2s ease;
}
.portfolio-card:hover .portfolio-img::after { opacity: 1; }

.portfolio-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.portfolio-card:hover .portfolio-img img { transform: scale(1.05); }
.portfolio-card h3 { margin: 16px 16px 4px; }
.portfolio-card p { color: var(--muted); font-size: 14px; margin: 0 16px 16px; }

/* ═══════════ LIGHTBOX ═══════════ */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.92); align-items: center; justify-content: center;
  padding: 40px; cursor: pointer;
}
.lightbox.open { display: flex; }

.lightbox-close {
  position: absolute; top: 16px; right: 24px; background: rgba(255,255,255,0.15);
  border: none; color: white; font-size: 36px; width: 48px; height: 48px;
  border-radius: 50%; cursor: pointer; z-index: 10000; line-height: 1;
  transition: background 0.2s; pointer-events: auto;
}
.lightbox-close:hover { background: rgba(255,255,255,0.3); }
.lightbox-img {
  max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5); cursor: default;
}

/* ═══════════ BLOG CARDS ═══════════ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.blog-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; transition: box-shadow 0.2s ease;
}
.blog-card:hover { box-shadow: var(--shadow-md); }
.blog-card h3 { font-size: 17px; line-height: 1.35; margin-bottom: 8px; }
.blog-card h3 a { color: var(--text); text-decoration: none; }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card p { font-size: 14px; color: var(--muted); line-height: 1.55; margin-bottom: 12px; }
.blog-link { color: var(--primary); font-weight: 600; font-size: 14px; }
.blog-link:hover { text-decoration: underline; }

/* ═══════════ UTILITY CLASSES ═══════════ */
.cta-block {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; border-radius: var(--radius-lg); padding: 40px 32px;
  text-align: center; margin-top: 48px;
}
.cta-block h2 { color: white; margin-bottom: 12px; }
.cta-block p { opacity: 0.9; margin-bottom: 24px; }
.cta-block .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.related-links {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 14px; color: var(--muted);
}
.related-links a { color: var(--primary); margin-left: 8px; }
.related-links span { margin: 0 8px; }

.mini-pricing {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0;
}
.mini-price-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; text-align: center;
}
.mini-price-card.popular { border: 2px solid var(--primary); position: relative; }
.mini-price-card .badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: white; font-size: 11px; font-weight: 700;
  padding: 3px 12px; border-radius: 12px; white-space: nowrap;
}
.mini-price-card h3 { margin-top: 8px; margin-bottom: 8px; }
.mini-price-card .price { font-size: 28px; font-weight: 800; color: var(--primary); }
.mini-price-card .price span { font-size: 14px; font-weight: 500; color: var(--muted); }
.mini-price-card p { font-size: 13px; color: var(--muted); margin-top: 8px; }

@media (max-width: 620px) {
  .mini-pricing { grid-template-columns: 1fr; }
}

/* ═══════════ FAQ ═══════════ */
.faq-list { max-width: 720px; margin: 0 auto; }

.faq-item {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 10px; overflow: hidden;
}

.faq-item summary {
  padding: 18px 44px 18px 20px; font-weight: 600; font-size: 16px; cursor: pointer;
  position: relative; list-style: none; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--primary); font-weight: 400; transition: transform 0.25s ease;
}
.faq-item[open] summary { color: var(--primary); }
.faq-item[open] summary::after { content: '\2013'; }
.faq-item p { padding: 0 20px 18px; color: var(--muted); font-size: 15px; line-height: 1.65; }

/* ═══════════ CONTACT ═══════════ */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; max-width: 900px; margin: 0 auto; }
.contact-info > p { color: var(--muted); margin-bottom: 24px; font-size: 16px; }
.contact-list { margin-bottom: 28px; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 15px; }
.contact-list strong { color: var(--text); font-weight: 600; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.cta-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; padding: 36px 28px; border-radius: var(--radius-lg); text-align: center;
}
.cta-box strong { display: block; font-size: 20px; margin-bottom: 10px; }
.cta-box p { font-size: 14px; opacity: 0.85; margin-bottom: 16px; }
.cta-highlight {
  display: inline-block; background: rgba(255,255,255,0.2); padding: 8px 18px;
  border-radius: 20px; font-weight: 600; font-size: 14px;
}

/* ═══════════ FOOTER ═══════════ */
.site-footer {
  background: #111827;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.7;
}

.footer-top {
  padding: 56px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-col h4,
.footer-col-title {
  display: block;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

/* Col 1: Brand */
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand .footer-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.footer-brand .footer-logo span {
  color: #fff;
  font-weight: 800;
  font-size: 17px;
}

.footer-brand .footer-tagline {
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  margin-bottom: 14px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--primary, #0F8F83);
  color: #fff;
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Col 2-3: Links */
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: #fff;
}

/* Col 4: Contact */
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.55);
}

.footer-contact li svg {
  width: 16px;
  height: 16px;
  fill: var(--primary, #0F8F83);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact li a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact li a:hover {
  color: #fff;
}

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 16px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Responsive */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .footer-top {
    padding: 40px 0 28px;
  }

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

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ═══════════ RESPONSIVE — Tablet ═══════════ */
@media (max-width: 920px) {
  :root { --section-gap: 72px; }
  .container { width: min(var(--max-width), calc(100% - 32px)); }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 68px; left: 16px; right: 16px; display: none;
    flex-direction: column; align-items: stretch; padding: 18px; border-radius: var(--radius);
    background: white; box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  }
  .main-nav.open { display: flex; }
  .services-grid, .process-steps, .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ═══════════ RESPONSIVE — Mobile ═══════════ */
@media (max-width: 620px) {
  :root { --section-gap: 56px; }
  .container { width: min(var(--max-width), calc(100% - 24px)); }
  .services-grid, .process-steps { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.popular { order: -1; }
  .blog-grid { grid-template-columns: 1fr; gap: 16px; }
  .blog-card h3 { font-size: 16px; }
  .contact-actions { flex-direction: column; }
  .contact-actions .btn { width: 100%; }
}

/* ═══════════ FLOATING CONTACT BUTTONS ═══════════ */
.fab-container {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.fab-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  cursor: pointer;
  border: none;
  outline: none;
}

.fab-btn:hover,
.fab-btn:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(0,0,0,0.24);
}

.fab-btn:active {
  transform: scale(0.96);
}

/* Call button - teal */
.fab-call {
  background: var(--primary, #0F8F83);
}

.fab-call svg {
  width: 24px;
  height: 24px;
  fill: var(--white, #FFFFFF);
}

/* Zalo button - Zalo blue */
.fab-zalo {
  background: #0068FF;
}

.fab-zalo svg {
  width: 26px;
  height: 26px;
  fill: #FFFFFF;
}

/* Label on hover */
.fab-btn .fab-label {
  position: absolute;
  right: 64px;
  background: var(--text, #1F2937);
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.fab-btn:hover .fab-label,
.fab-btn:focus-visible .fab-label {
  opacity: 1;
}

/* Pulse animation on call button */
.fab-call::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--primary, #0F8F83);
  animation: fab-pulse 2s infinite;
  opacity: 0.6;
}

@keyframes fab-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .fab-container {
    right: 14px;
    bottom: 18px;
    gap: 10px;
  }

  .fab-btn {
    width: 48px;
    height: 48px;
  }

  .fab-call svg,
  .fab-zalo svg {
    width: 22px;
    height: 22px;
  }

  .fab-btn .fab-label {
    display: none;
  }
}

/* ═══════════ PERFORMANCE — Reduce motion ═══════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ═══════════ PERFORMANCE — Mobile: disable heavy animations ═══════════ */
/* Mosaic pixel animations are heavy on mobile (324 elements × transitions) */
@media (max-width: 768px) {
  .mosaic-pixel {
    transition: none !important;
    opacity: 1 !important;
    transform: scale(1) !important;
  }
  /* Disable IntersectionObserver animations on mobile — let cards be visible */
  .service-card, .pricing-card, .step {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  /* Disable scroll-behavior on mobile (can cause jank) */
  html { scroll-behavior: auto; }
  /* Disable FAB pulse animation */
  .fab-call::before { animation: none; }
  /* Reduce hover transitions */
  .portfolio-card:hover { transform: none; }
  .portfolio-card:hover .portfolio-img img { transform: none; }
  .service-card:hover { transform: none; }
}
