/* ============================================================
   Li Da — Wuhan Lida QuickPay Information Technology Co., Ltd.
   Design #10: Terracotta + Yellow — Confetti Polka
   ============================================================ */

/* --- Reset & Base --- */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1c1917;
  background: #ffffff;
  line-height: 1.7;
  overflow-x: hidden;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #7c2d12;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #1c1917;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-title .accent {
  color: #7c2d12;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #78716c;
  max-width: 600px;
}

/* --- Scroll Animation --- */
.pop {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.pop.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124,45,18,0.08);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(124,45,18,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  color: #7c2d12;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: #7c2d12;
  color: #fffbeb;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 900;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: #44403c;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #fcd34d;
  transition: width 0.25s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #7c2d12;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-cta-btn {
  background: #7c2d12;
  color: #fffbeb !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700 !important;
  transition: background 0.25s, transform 0.2s !important;
}

.nav-cta-btn::after { display: none !important; }

.nav-cta-btn:hover {
  background: #651f0a;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 26px;
  height: 2.5px;
  background: #7c2d12;
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ============================================================
   HERO — Confetti Polka Dot Pattern
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 60px;
}

/* Polka dot pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 15%, rgba(124,45,18,0.06) 3px, transparent 3px),
    radial-gradient(circle at 25% 35%, rgba(252,211,77,0.08) 4px, transparent 4px),
    radial-gradient(circle at 40% 18%, rgba(124,45,18,0.05) 2.5px, transparent 2.5px),
    radial-gradient(circle at 55% 42%, rgba(252,211,77,0.07) 5px, transparent 5px),
    radial-gradient(circle at 70% 22%, rgba(124,45,18,0.06) 3.5px, transparent 3.5px),
    radial-gradient(circle at 85% 38%, rgba(253,230,138,0.1) 4.5px, transparent 4.5px),
    radial-gradient(circle at 15% 55%, rgba(252,211,77,0.06) 3px, transparent 3px),
    radial-gradient(circle at 30% 72%, rgba(124,45,18,0.05) 4px, transparent 4px),
    radial-gradient(circle at 50% 65%, rgba(253,230,138,0.09) 3.5px, transparent 3.5px),
    radial-gradient(circle at 65% 78%, rgba(124,45,18,0.07) 5px, transparent 5px),
    radial-gradient(circle at 80% 60%, rgba(252,211,77,0.06) 2.5px, transparent 2.5px),
    radial-gradient(circle at 20% 88%, rgba(124,45,18,0.04) 4px, transparent 4px),
    radial-gradient(circle at 45% 90%, rgba(252,211,77,0.08) 3px, transparent 3px),
    radial-gradient(circle at 75% 92%, rgba(253,230,138,0.07) 4.5px, transparent 4.5px),
    radial-gradient(circle at 5% 75%, rgba(124,45,18,0.05) 3px, transparent 3px),
    radial-gradient(circle at 90% 12%, rgba(252,211,77,0.07) 3.5px, transparent 3.5px);
  background-size: 240px 240px;
  pointer-events: none;
}

/* Confetti scattered squares overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* tiny squares scattered */
    linear-gradient(45deg, rgba(124,45,18,0.04) 2px, transparent 2px) 18px 22px / 120px 120px,
    linear-gradient(135deg, rgba(252,211,77,0.06) 2px, transparent 2px) 55px 10px / 180px 180px,
    linear-gradient(45deg, rgba(253,230,138,0.05) 2px, transparent 2px) 90px 45px / 150px 150px,
    linear-gradient(135deg, rgba(124,45,18,0.03) 2px, transparent 2px) 30px 70px / 200px 200px,
    linear-gradient(45deg, rgba(252,211,77,0.05) 2px, transparent 2px) 70px 80px / 160px 160px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 750px;
}

.hero-badge {
  display: inline-block;
  background: #fffbeb;
  color: #7c2d12;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 50px;
  border: 1px solid rgba(252,211,77,0.5);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  color: #7c2d12;
  line-height: 1.08;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-accent-line {
  width: 80px;
  height: 4px;
  background: #fcd34d;
  margin: 0 auto 24px;
  border-radius: 2px;
}

.hero-desc {
  font-size: 1.1rem;
  color: #44403c;
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: #7c2d12;
  color: #fffbeb;
}

.btn-primary:hover {
  background: #651f0a;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(124,45,18,0.25);
}

.btn-outline {
  background: transparent;
  color: #7c2d12;
  border: 2px solid #7c2d12;
}

.btn-outline:hover {
  background: #7c2d12;
  color: #fffbeb;
  transform: translateY(-2px);
}

/* ============================================================
   SERVICES — Feature Comparison Matrix
   ============================================================ */
.services {
  padding: 100px 24px;
  background: #fffbeb;
}

.services .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.services .section-header .section-subtitle {
  margin: 0 auto;
}

/* Matrix table using CSS grid */
.matrix-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  border: 1px solid rgba(124,45,18,0.1);
  background: #ffffff;
  box-shadow: 0 4px 30px rgba(124,45,18,0.05);
}

.matrix-table {
  display: grid;
  grid-template-columns: 48px 1fr 1.4fr 1fr;
  min-width: 700px;
}

.matrix-table .matrix-head {
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7c2d12;
  background: #fffbeb;
  padding: 18px 16px;
  border-bottom: 2px solid #fcd34d;
  display: flex;
  align-items: center;
}

.matrix-table .matrix-cell {
  padding: 20px 16px;
  border-bottom: 1px solid rgba(124,45,18,0.06);
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  color: #44403c;
  transition: background 0.2s;
}

.matrix-table .matrix-row:hover .matrix-cell {
  background: rgba(255,251,235,0.5);
}

.matrix-table .matrix-cell.icon-cell {
  justify-content: center;
  font-size: 1.3rem;
}

.matrix-table .matrix-cell.name-cell {
  font-weight: 700;
  color: #1c1917;
  font-size: 1rem;
}

.matrix-table .matrix-cell.impact-cell {
  font-weight: 700;
  color: #7c2d12;
}

.matrix-table .matrix-cell.impact-cell .impact-badge {
  display: inline-block;
  background: #fde68a;
  color: #7c2d12;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
}

/* ============================================================
   ABOUT — FAQ Accordion
   ============================================================ */
.about {
  padding: 100px 24px;
  background: #ffffff;
}

.about .section-header {
  text-align: center;
  margin-bottom: 56px;
}

.about .section-header .section-subtitle {
  margin: 0 auto;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid rgba(124,45,18,0.1);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  transition: box-shadow 0.3s, border-color 0.3s;
}

.faq-item:hover {
  border-color: rgba(252,211,77,0.5);
}

.faq-item[open] {
  border-color: #fcd34d;
  box-shadow: 0 4px 20px rgba(124,45,18,0.06);
}

.faq-question {
  padding: 22px 24px 22px 28px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1c1917;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  user-select: none;
  list-style: none;
  border-left: 4px solid #fcd34d;
  transition: background 0.2s;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question:hover {
  background: #fffbeb;
}

.faq-question::after {
  content: '+';
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fde68a;
  color: #7c2d12;
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 0.3s, background 0.3s;
}

.faq-item[open] .faq-question::after {
  content: '−';
  background: #fcd34d;
}

.faq-answer {
  padding: 0 28px 24px 28px;
  color: #44403c;
  font-size: 0.95rem;
  line-height: 1.75;
  border-left: 4px solid transparent;
}

.faq-item[open] .faq-answer {
  border-left-color: #fde68a;
}

/* ============================================================
   INDUSTRIES — Horizontal Scroll Badges
   ============================================================ */
.industries {
  padding: 100px 24px;
  background: #fffbeb;
}

.industries .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.industries .section-header .section-subtitle {
  margin: 0 auto;
}

.badge-scroll-wrapper {
  position: relative;
  max-width: 100%;
}

.badge-scroll-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 16px;
  scrollbar-width: none;
  cursor: grab;
}

.badge-scroll-track::-webkit-scrollbar { display: none; }
.badge-scroll-track:active { cursor: grabbing; }

.badge-scroll-track::-webkit-scrollbar {
  height: 4px;
}

.badge-scroll-track::-webkit-scrollbar-track {
  background: rgba(124,45,18,0.05);
  border-radius: 4px;
}

.badge-scroll-track::-webkit-scrollbar-thumb {
  background: #fcd34d;
  border-radius: 4px;
}

.industry-badge {
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.92rem;
  color: #44403c;
  background: #ffffff;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  user-select: none;
}

.industry-badge:hover {
  border-color: #fcd34d;
  color: #7c2d12;
}

.industry-badge.active {
  background: #7c2d12;
  color: #fffbeb;
  border-color: #7c2d12;
  box-shadow: 0 6px 20px rgba(124,45,18,0.3);
}

.industry-badge .badge-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.industry-detail {
  margin-top: 32px;
  text-align: center;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.industry-detail-text {
  font-size: 1.05rem;
  color: #44403c;
  max-width: 600px;
  line-height: 1.7;
  animation: fadeSlideIn 0.4s ease;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.industry-detail-text strong {
  color: #7c2d12;
}

/* ============================================================
   APPROACH — One Philosophy + 3 Facts
   ============================================================ */
.approach {
  padding: 100px 24px;
  background: #ffffff;
}

.approach .section-header {
  text-align: center;
  margin-bottom: 20px;
}

.philosophy-statement {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 56px;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  color: #1c1917;
  line-height: 1.3;
  position: relative;
  padding: 0 16px;
}

.philosophy-statement::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: #fcd34d;
  margin: 20px auto 0;
  border-radius: 2px;
}

.facts-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 800px;
  margin: 0 auto;
}

.fact-card {
  text-align: center;
  padding: 36px 20px;
  background: #fffbeb;
  border-radius: 16px;
  border: 1px solid rgba(252,211,77,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.fact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(124,45,18,0.08);
}

.fact-number {
  font-size: 3rem;
  font-weight: 900;
  color: #7c2d12;
  line-height: 1;
  margin-bottom: 8px;
}

.fact-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #78716c;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   CONTACT — Sticky Sidebar (Desktop) / Inline (Mobile)
   ============================================================ */
.contact-section {
  padding: 100px 24px;
  background: #fffbeb;
  position: relative;
}

.contact-section .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.contact-trigger-wrapper {
  text-align: center;
}

.contact-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-size: 1rem;
  font-weight: 700;
  background: #7c2d12;
  color: #fffbeb;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
}

.contact-trigger-btn:hover {
  background: #651f0a;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(124,45,18,0.3);
}

/* Sticky sidebar */
.contact-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: #ffffff;
  z-index: 2000;
  box-shadow: -4px 0 40px rgba(0,0,0,0.12);
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.contact-sidebar.open {
  right: 0;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28,25,23,0.4);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(124,45,18,0.08);
}

.sidebar-header h3 {
  font-size: 1.2rem;
  color: #7c2d12;
  font-weight: 800;
}

.sidebar-close {
  width: 36px;
  height: 36px;
  border: none;
  background: #fffbeb;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #7c2d12;
  transition: background 0.2s;
}

.sidebar-close:hover {
  background: #fde68a;
}

.sidebar-form {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-form label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #44403c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-form input,
.sidebar-form textarea {
  padding: 13px 16px;
  border: 2px solid rgba(124,45,18,0.12);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #1c1917;
  background: #fffbeb;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}

.sidebar-form input:focus,
.sidebar-form textarea:focus {
  border-color: #fcd34d;
  box-shadow: 0 0 0 4px rgba(252,211,77,0.15);
}

.sidebar-form input.error,
.sidebar-form textarea.error {
  border-color: #dc2626;
}

.sidebar-form .error-msg {
  font-size: 0.78rem;
  color: #dc2626;
  font-weight: 600;
  display: none;
}

.sidebar-form .error-msg.show {
  display: block;
}

.sidebar-form textarea {
  min-height: 110px;
  resize: vertical;
}

.sidebar-form .btn-submit {
  padding: 14px;
  background: #7c2d12;
  color: #fffbeb;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
  margin-top: 4px;
}

.sidebar-form .btn-submit:hover {
  background: #651f0a;
}

.sidebar-form .btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sidebar-phone {
  padding: 20px 28px;
  border-top: 1px solid rgba(124,45,18,0.08);
  text-align: center;
}

.sidebar-phone a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  color: #7c2d12;
  font-size: 1rem;
}

.sidebar-phone .phone-icon {
  font-size: 1.1rem;
}

/* Mobile inline form */
.contact-inline {
  display: none;
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================================
   CTA — Video Thumbnail Placeholder
   ============================================================ */
.cta-section {
  padding: 100px 24px;
  background: #ffffff;
}

.cta-video-block {
  max-width: 760px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: #7c2d12;
  position: relative;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  box-shadow: 0 16px 50px rgba(124,45,18,0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.cta-video-block:hover {
  transform: scale(1.015);
  box-shadow: 0 20px 60px rgba(124,45,18,0.3);
}

.cta-video-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(252,211,77,0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(253,230,138,0.08) 0%, transparent 60%);
}

.cta-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s;
  z-index: 2;
}

.cta-play-btn::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #7c2d12;
  margin-left: 5px;
}

.cta-video-block:hover .cta-play-btn {
  transform: translate(-50%,-50%) scale(1.1);
  box-shadow: 0 0 0 16px rgba(252,211,77,0.25);
}

.cta-video-block:active .cta-play-btn {
  transform: translate(-50%,-50%) scale(0.95);
}

.cta-caption {
  text-align: center;
  margin-top: 24px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #44403c;
}

.cta-played-msg {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.95);
  color: #7c2d12;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 50px;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 3;
}

.cta-played-msg.show {
  opacity: 1;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #1c1917;
  color: #d6d3d1;
  padding: 60px 24px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: #fffbeb;
  margin-bottom: 14px;
}

.footer-brand .footer-logo .logo-icon {
  background: #fcd34d;
  color: #7c2d12;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #a8a29e;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fcd34d;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: #a8a29e;
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: #78716c;
}

.footer-bottom a {
  color: #a8a29e;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: #fffbeb;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-sidebar {
    width: 340px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    padding: 100px 32px 40px;
    gap: 24px;
    box-shadow: -4px 0 30px rgba(0,0,0,0.12);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .matrix-table {
    grid-template-columns: 40px 1fr 1.2fr 1fr;
    min-width: 600px;
  }

  .facts-row {
    grid-template-columns: 1fr;
    max-width: 340px;
  }

  .contact-sidebar {
    display: none;
  }

  .contact-inline {
    display: block;
  }

  .sidebar-overlay {
    display: none;
  }

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

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

@media (max-width: 480px) {
  .hero {
    padding: 100px 16px 40px;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .hero-desc {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .services, .about, .industries, .approach, .contact-section, .cta-section {
    padding: 64px 16px;
  }
}

/* ============================================================
   DOCUMENT PAGES (Privacy & Terms)
   ============================================================ */
.doc-page {
  padding: 140px 24px 80px;
  background: #ffffff;
}

.doc-wrapper {
  max-width: 780px;
  margin: 0 auto;
}

.doc-wrapper h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #7c2d12;
  margin-bottom: 8px;
  line-height: 1.15;
}

.doc-wrapper .doc-meta {
  font-size: 0.9rem;
  color: #78716c;
  margin-bottom: 40px;
}

.doc-wrapper .doc-meta span {
  display: block;
}

.doc-wrapper h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1c1917;
  margin-top: 36px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #fde68a;
}

.doc-wrapper p {
  font-size: 1rem;
  color: #44403c;
  line-height: 1.8;
  margin-bottom: 16px;
}

.doc-wrapper a {
  color: #7c2d12;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc-wrapper a:hover {
  color: #651f0a;
}

.doc-footer-bar {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(124,45,18,0.1);
  text-align: center;
  font-size: 0.85rem;
  color: #78716c;
}

.doc-footer-bar a {
  color: #7c2d12;
  text-decoration: none;
  font-weight: 600;
}

.doc-footer-bar a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .doc-page {
    padding: 120px 16px 60px;
  }
}
