/* ==========================================================================
   ZhongYan Machinery - Industrial B2B Site Styles
   Palette inspired by ZhongYan logo: deep navy + gold
   ========================================================================== */

:root {
  --c-primary: #14365c;
  --c-primary-dark: #0d2545;
  --c-primary-light: #1f4a7a;
  --c-accent: #c9a227;
  --c-accent-dark: #9a7a1a;
  --c-text: #1a1a1a;
  --c-text-2: #4a5568;
  --c-text-3: #6b7280;
  --c-bg: #ffffff;
  --c-bg-soft: #f7f8fa;
  --c-bg-alt: #eef2f7;
  --c-border: #e3e7ec;
  --c-shadow: 0 6px 24px rgba(15, 30, 60, 0.08);
  --c-shadow-hover: 0 12px 40px rgba(15, 30, 60, 0.14);
  --radius: 6px;
  --radius-lg: 12px;
  --max-width: 1280px;
  --transition: 0.25s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "SimHei", "Heiti SC", "Source Han Sans SC", "Noto Sans CJK SC",
    "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--c-accent); }

ul, ol { list-style: none; }

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

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--c-shadow); }

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img {
  height: 56px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.main-nav a {
  position: relative;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  letter-spacing: 0.3px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}
.main-nav a.active { color: var(--c-accent); }

.header-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: 0.4px;
}
.btn-primary {
  background: var(--c-accent);
  color: #fff;
  border-color: var(--c-accent);
}
.btn-primary:hover {
  background: var(--c-accent-dark);
  border-color: var(--c-accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 162, 39, 0.3);
}
.btn-secondary {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
}
.btn-secondary:hover {
  background: var(--c-primary);
  color: #fff;
}
.btn-ghost-light {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
}
.btn-ghost-light:hover {
  background: #fff;
  color: var(--c-primary);
  border-color: #fff;
}
.btn-lg {
  padding: 16px 36px;
  font-size: 15px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 640px;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.05) 50%,
    rgba(0, 0, 0, 0.35) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 0 24px;
  margin: 0 auto;
  width: 100%;
}
.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  background: rgba(201, 162, 39, 0.25);
  border: 1px solid rgba(201, 162, 39, 0.6);
  color: #f5e6c8;
  border-radius: 30px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero h1 .accent { color: var(--c-accent); }
.hero-sub {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 32px;
  max-width: 620px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Inline hero stats */
.hero-stats-inline {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 40px;
  flex-wrap: wrap;
}
.stat-inline {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}
.stat-num-inline {
  font-size: 28px;
  font-weight: 800;
  color: #e8a33d;
  margin-right: 8px;
  font-family: inherit;
}
.stat-num-inline .small {
  font-size: 16px;
  font-weight: 600;
  color: #f0b860;
}
.sep {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 24px;
}

@media (max-width: 768px) {
  .hero-stats-inline {
    gap: 12px;
  }
  .sep {
    display: none;
  }
  .stat-inline {
    font-size: 12px;
    margin-right: 16px;
  }
  .stat-num-inline {
    font-size: 22px;
    margin-right: 4px;
  }
}
/* unused */ .x-stat {
  text-align: center;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.stat:last-child { border-right: none; }
/* unused */ .x-stat-num {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.stat-num .small { font-size: 22px; }
/* unused */ .x-stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ---------- Section Common ---------- */
.section {
  padding: 96px 0;
}
.section-soft { background: var(--c-bg-soft); }
.section-dark { background: var(--c-primary); color: #fff; }
.section-dark .section-eyebrow { color: var(--c-accent); }
.section-dark .section-title { color: #fff; }
.section-dark .section-sub { color: rgba(255, 255, 255, 0.8); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--c-accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  color: var(--c-primary);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-sub {
  font-size: 16px;
  color: var(--c-text-2);
  line-height: 1.7;
}

/* ---------- About / Intro block ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.intro-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--c-shadow);
}
.intro-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.intro-img:hover img { transform: scale(1.05); }
.intro-img-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  padding: 20px 28px;
  border-radius: var(--radius);
  border-left: 4px solid var(--c-accent);
}
.intro-img-badge /* unused */ .x-stat-num {
  color: var(--c-primary);
  font-size: 30px;
}
.intro-img-badge /* unused */ .x-stat-label {
  color: var(--c-text-2);
  font-size: 13px;
  margin-top: 2px;
  text-transform: none;
  letter-spacing: 0.5px;
}

.intro-content h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--c-primary);
  margin-bottom: 8px;
  line-height: 1.25;
}
.intro-content .tagline {
  font-size: 16px;
  color: var(--c-accent);
  font-weight: 600;
  margin-bottom: 24px;
}
.intro-content p {
  color: var(--c-text-2);
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.8;
}
.intro-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 32px;
}
.intro-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--c-text);
}
.intro-points li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--c-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
}

/* ---------- Product Cards ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--c-shadow);
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border: 1px solid transparent;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--c-shadow-hover);
  border-color: rgba(201, 162, 39, 0.3);
}
.product-card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-bg-alt);
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.08); }
.product-card-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 12px;
  background: rgba(20, 54, 92, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  border-radius: 4px;
  text-transform: uppercase;
}
.product-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 4px;
}
.product-card-sub {
  font-size: 13px;
  color: var(--c-accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.product-card-desc {
  font-size: 13.5px;
  color: var(--c-text-2);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}
.product-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.product-card-link::after {
  content: "→";
  transition: transform var(--transition);
}
.product-card:hover .product-card-link::after { transform: translateX(4px); }

/* ---------- Value Props ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.value-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.value-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}
.value-icon {
  width: 56px;
  height: 56px;
  background: var(--c-accent);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}
.value-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
}
.value-card p {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* ---------- Service Section ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}
.service-card {
  background: #fff;
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  transition: all var(--transition);
  position: relative;
}
.service-card:hover {
  border-color: var(--c-accent);
  box-shadow: var(--c-shadow);
  transform: translateY(-4px);
}
.service-card-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(201, 162, 39, 0.1);
  color: var(--c-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  border-radius: 4px;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.service-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 14px;
  line-height: 1.4;
}
.service-card p {
  font-size: 14px;
  color: var(--c-text-2);
  line-height: 1.7;
  margin-bottom: 10px;
}
.service-card ul {
  margin-top: 16px;
}
.service-card ul li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--c-text-2);
  line-height: 1.7;
  margin-bottom: 8px;
}
.service-card ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--c-accent);
  font-weight: bold;
}

/* ---------- QA Section ---------- */
.qa-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.qa-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--c-shadow);
}
.qa-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.qa-content h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--c-primary);
  margin-bottom: 16px;
}
.qa-content > p {
  color: var(--c-text-2);
  margin-bottom: 28px;
  font-size: 15px;
}
.qa-features {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}
.qa-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--c-bg-soft);
  border-radius: var(--radius);
  border-left: 3px solid var(--c-accent);
}
.qa-feature-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: var(--c-primary);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.qa-feature h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 4px;
}
.qa-feature p {
  font-size: 13px;
  color: var(--c-text-2);
  line-height: 1.5;
}
.qa-tagline {
  padding: 18px 24px;
  background: var(--c-primary);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.5px;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 880px;
  margin: 0 auto;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  transition: all var(--transition);
}
.faq-item.open {
  border-color: var(--c-accent);
  box-shadow: var(--c-shadow);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-primary);
  text-align: left;
  font-family: inherit;
}
.faq-q .icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-bg-soft);
  color: var(--c-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  transition: all var(--transition);
}
.faq-item.open .faq-q .icon {
  background: var(--c-accent);
  color: #fff;
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-a { max-height: 500px; }
.faq-a-inner {
  padding: 0 24px 22px;
  color: var(--c-text-2);
  font-size: 14.5px;
  line-height: 1.8;
  border-top: 1px dashed var(--c-border);
  padding-top: 16px;
  margin-top: -2px;
}

/* ---------- Contact CTA / Quote Form ---------- */
.quote-section {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.quote-section::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.3), transparent 70%);
  border-radius: 50%;
}
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  position: relative;
  z-index: 1;
}
.quote-info h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.25;
}
.quote-info > p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  margin-bottom: 32px;
}
.contact-info {
  display: grid;
  gap: 16px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.contact-item-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: rgba(201, 162, 39, 0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}
.contact-item-text strong {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.contact-item-text {
  font-size: 15px;
  color: #fff;
  line-height: 1.5;
}
.contact-item-text a { color: #fff; }
.contact-item-text a:hover { color: var(--c-accent); }

.quote-form {
  background: #fff;
  color: var(--c-text);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.quote-form h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--c-primary);
  margin-bottom: 8px;
}
.quote-form > p {
  font-size: 14px;
  color: var(--c-text-2);
  margin-bottom: 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { margin-bottom: 16px; }
.form-field.full { grid-column: span 2; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  background: var(--c-bg-soft);
  color: var(--c-text);
  transition: all var(--transition);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--c-accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}
.form-field textarea {
  min-height: 110px;
  resize: vertical;
}
.form-submit {
  width: 100%;
  margin-top: 4px;
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-primary-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 24px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img {
  height: 50px;
  margin-bottom: 16px;
  background: #fff;
  padding: 8px 12px;
  border-radius: 6px;
}
.footer-brand p {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 12px;
}
.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13.5px;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--c-accent); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Inner page banner ---------- */
.page-banner {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
  color: #fff;
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../images/hero/industrial.webp') center/cover;
  opacity: 0.18;
}
.page-banner-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.page-banner h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.page-banner p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}
.breadcrumb {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.breadcrumb a { color: rgba(255, 255, 255, 0.85); }
.breadcrumb a:hover { color: var(--c-accent); }

/* ---------- Mobile nav toggle ---------- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: var(--c-primary);
  font-size: 24px;
}

/* ---------- Floating WhatsApp Button ---------- */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.wa-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  transition: all var(--transition);
  position: relative;
}
.wa-button:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}
.wa-button::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.5);
  animation: wa-pulse 2s infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
.wa-button svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

.wa-popup {
  position: absolute;
  bottom: 78px;
  right: 0;
  width: 280px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  padding: 22px;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform-origin: bottom right;
}
.wa-popup.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.wa-popup::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 22px;
  width: 16px;
  height: 16px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.05);
}
.wa-popup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 14px;
}
.wa-popup-icon {
  width: 40px;
  height: 40px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wa-popup-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}
.wa-popup-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1.2;
}
.wa-popup-sub {
  font-size: 11.5px;
  color: var(--c-text-3);
  margin-top: 2px;
}
.wa-popup-qr {
  width: 100%;
  aspect-ratio: 1;
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  border: 1px solid var(--c-border);
  margin-bottom: 12px;
}
.wa-popup-qr img {
  width: 100%;
  height: 100%;
  display: block;
}
.wa-popup-text {
  text-align: center;
  font-size: 13px;
  color: var(--c-text-2);
  line-height: 1.5;
  margin-bottom: 12px;
}
.wa-popup-phone {
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-primary);
  letter-spacing: 0.5px;
  padding: 8px 12px;
  background: var(--c-bg-soft);
  border-radius: 8px;
  text-decoration: none;
}
.wa-popup-phone:hover {
  background: var(--c-primary);
  color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-stats-inner { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat:nth-child(2) { border-right: none; }
  .intro-grid, .qa-grid, .quote-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { height: auto; min-height: 480px; padding: 80px 0; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--c-shadow);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { width: 100%; padding: 12px 16px; }
  .intro-points { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-stats-inner { padding: 20px 16px; }
  /* unused */ .x-stat-num { font-size: 28px; }
}