/* ============================================================
   Jin Ming — 广州进明网络科技有限公司
   Computer Systems Design & Related Services
   Main Stylesheet
   ============================================================ */

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

:root {
  /* Palette */
  --teal: #0f766e;
  --teal-dark: #0a5f58;
  --teal-light: #14b8a6;
  --rose: #e11d48;
  --rose-light: #fb7185;
  --mint: #f0fdfa;
  --ivory: #fefcf5;
  --white: #ffffff;
  --text: #1c1917;
  --text-secondary: #44403c;
  --text-muted: #78716c;
  --border: #e7e5e4;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Spacing */
  --section-pad: 5rem;
  --container-max: 1200px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.04);
  --shadow-md: 0 4px 12px rgba(28, 25, 23, 0.06);
  --shadow-lg: 0 12px 32px rgba(28, 25, 23, 0.08);
  --shadow-xl: 0 20px 48px rgba(28, 25, 23, 0.10);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--teal-dark);
}

/* --- Typography ------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
}

.serif {
  font-family: var(--font-serif);
  font-weight: 700;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
}

/* --- Layout Utilities ------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-pad) 0;
}

/* --- Scroll Animation ------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }
.fade-in-delay-5 { transition-delay: 0.5s; }

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

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

.btn-rose {
  background: var(--rose);
  color: #fff;
  border-color: var(--rose);
}

.btn-rose:hover {
  background: #be1038;
  border-color: #be1038;
  color: #fff;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

/* --- Header & Navigation ---------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(254, 252, 245, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s var(--ease-out);
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--teal);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--font-serif);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--teal);
}

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

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5.5px, 5.5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5.5px, -5.5px);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--ivory);
  z-index: 999;
  padding: 6rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-in-out);
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav a {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

/* ============================================================
   HERO — Matrix Grid Background
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--ivory);
  background-image:
    linear-gradient(rgba(15, 118, 110, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 118, 110, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  padding-top: 68px;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 35%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.03) 0%, rgba(225, 29, 72, 0.02) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.hero-text {
  max-width: 620px;
  margin-left: 0;
  /* ~60% of container width, off-center left */
}

.hero-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.hero-text h1 .highlight {
  color: var(--teal);
  position: relative;
}

.hero-text .hero-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0.5rem;
  max-width: 480px;
}

.hero-line {
  width: 120px;
  height: 3px;
  background: var(--rose);
  margin: 1.5rem 0 2rem;
  border-radius: 2px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero decorative element */
.hero-accent {
  position: absolute;
  right: 8%;
  bottom: 20%;
  width: 260px;
  height: 260px;
  border: 2px solid rgba(15, 118, 110, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.hero-accent::after {
  content: '';
  position: absolute;
  top: 30px;
  left: 30px;
  right: 30px;
  bottom: 30px;
  border: 1px solid rgba(225, 29, 72, 0.06);
  border-radius: 50%;
}

/* ============================================================
   SERVICES — 3+2 Staggered Dashboard Cards
   ============================================================ */
.services {
  background: var(--white);
  position: relative;
}

.services-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top row: 3 cards spanning cols 2-11 with gaps */
.service-card {
  background: var(--white);
  border-radius: 14px;
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.service-card:nth-child(1)::before { background: var(--teal); }
.service-card:nth-child(2)::before { background: var(--rose); }
.service-card:nth-child(3)::before { background: var(--teal); }
.service-card:nth-child(4)::before { background: var(--rose); }
.service-card:nth-child(5)::before { background: var(--teal); }

/* Top row: 3 cards */
.service-card:nth-child(1) { grid-column: 2 / span 3; }
.service-card:nth-child(2) { grid-column: 5 / span 4; }
.service-card:nth-child(3) { grid-column: 9 / span 3; }

/* Bottom row: 2 cards centered */
.service-card:nth-child(4) { grid-column: 3 / span 4; }
.service-card:nth-child(5) { grid-column: 7 / span 4; }

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.service-card .service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: var(--mint);
  color: var(--teal);
}

.service-card .service-stat {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
  transition: color 0.35s var(--ease-out);
}

.service-card:hover .service-stat {
  color: var(--teal);
}

.service-card:nth-child(2):hover .service-stat,
.service-card:nth-child(4):hover .service-stat {
  color: var(--rose);
}

.service-card .service-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.service-card .service-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================================================
   ABOUT — Dashboard Metrics + Story
   ============================================================ */
.about {
  background: linear-gradient(180deg, var(--ivory) 0%, var(--mint) 50%, var(--ivory) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.about-story h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.about-story p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-story p:last-child {
  margin-bottom: 0;
}

/* Metrics Dashboard */
.metrics-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.metric-item {
  background: var(--white);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.65rem;
}

.metric-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.02em;
}

.metric-bar {
  height: 8px;
  background: var(--mint);
  border-radius: 4px;
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  width: 0;
  transition: width 1.4s var(--ease-out);
}

.metric-item:nth-child(2) .metric-fill { background: linear-gradient(90deg, var(--teal), var(--rose-light)); }
.metric-item:nth-child(3) .metric-fill { background: linear-gradient(90deg, var(--rose), var(--rose-light)); }
.metric-item:nth-child(4) .metric-fill { background: linear-gradient(90deg, var(--teal), #2dd4bf); }

.metric-item:nth-child(2) .metric-value { color: #0d9488; }
.metric-item:nth-child(3) .metric-value { color: var(--rose); }
.metric-item:nth-child(4) .metric-value { color: var(--teal); }

/* ============================================================
   INDUSTRIES — Interactive Badge Strip
   ============================================================ */
.industries {
  background: var(--white);
}

.industries-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

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

.badge-strip {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}

.badge-btn {
  padding: 0.7rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--text-secondary);
  background: transparent;
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  position: relative;
}

.badge-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 24px;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out);
}

.badge-btn:hover {
  color: var(--teal);
  background: var(--mint);
}

.badge-btn.active {
  color: var(--teal);
  background: var(--mint);
  border-color: rgba(15, 118, 110, 0.15);
}

.badge-btn.active::after {
  transform: translateX(-50%) scaleX(1);
}

.industry-panel {
  max-width: 680px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--ivory);
  border-radius: 14px;
  border: 1px solid var(--border);
  min-height: 140px;
  transition: opacity 0.35s ease;
}

.industry-panel.fading {
  opacity: 0;
}

.industry-panel h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.industry-panel p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.industry-panel .industry-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

/* ============================================================
   APPROACH — Waterfall Step Cards
   ============================================================ */
.approach {
  background: var(--ivory);
}

.approach-header {
  margin-bottom: 3.5rem;
}

.approach-header .section-subtitle {
  margin: 0;
}

.waterfall-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Vertical connector line */
.waterfall-container::before {
  content: '';
  position: absolute;
  left: 2rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--teal), rgba(15, 118, 110, 0.15), var(--rose-light));
  border-radius: 1px;
}

.step-card {
  position: relative;
  background: var(--white);
  border-radius: 14px;
  padding: 2rem 2rem 2rem 4rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

/* Waterfall offsets */
.step-card:nth-child(1) { margin-left: 0; }
.step-card:nth-child(2) { margin-left: 2.5rem; }
.step-card:nth-child(3) { margin-left: 5rem; }
.step-card:nth-child(4) { margin-left: 7.5rem; }

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step-number {
  position: absolute;
  left: 2rem;
  top: 2rem;
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.03em;
  line-height: 1;
  opacity: 0.5;
}

.step-card:nth-child(2) .step-number { color: #0d9488; }
.step-card:nth-child(3) .step-number { color: var(--rose); }
.step-card:nth-child(4) .step-number { color: var(--teal); }

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Step indicator dot on the vertical line */
.step-card::before {
  content: '';
  position: absolute;
  left: calc(-1.7rem - 5px);
  top: 2.35rem;
  width: 12px;
  height: 12px;
  background: var(--white);
  border: 3px solid var(--teal);
  border-radius: 50%;
  z-index: 2;
}

.step-card:nth-child(2)::before { border-color: #0d9488; }
.step-card:nth-child(3)::before { border-color: var(--rose); }
.step-card:nth-child(4)::before { border-color: var(--teal); }

/* ============================================================
   CONTACT — Full-Width with Integrated Map
   ============================================================ */
.contact {
  position: relative;
  background: linear-gradient(135deg, var(--teal) 50%, var(--white) 50%);
  padding-bottom: 0;
}

.contact-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.contact-header {
  margin-bottom: 3rem;
  text-align: center;
}

.contact-header .section-label {
  color: rgba(255, 255, 255, 0.85);
}

.contact-header .section-title {
  color: var(--white);
}

.contact-header .section-subtitle {
  color: rgba(255, 255, 255, 0.75);
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}

.contact-info-text p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

/* Contact Form Card */
.contact-form-wrapper {
  background: var(--white);
  border-radius: 16px;
  padding: 2.25rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}

.contact-form-wrapper h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--ivory);
  border: 2px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.08);
}

.form-group .error-msg {
  display: none;
  font-size: 0.8rem;
  color: var(--rose);
  margin-top: 0.3rem;
}

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

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
}

.form-success.show {
  display: block;
}

.form-success .success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.form-success h3 {
  color: var(--teal);
  margin-bottom: 0.5rem;
}

/* Map Placeholder */
.contact-map {
  margin-top: 3rem;
  width: 100%;
  height: 320px;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.contact-map-inner {
  text-align: center;
  color: var(--text-muted);
}

.contact-map-inner .map-pin {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.contact-map-inner p {
  font-size: 0.9rem;
}

/* ============================================================
   CTA — Two-Column Split with Testimonial
   ============================================================ */
.cta-section {
  background: var(--ivory);
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.cta-testimonial {
  position: relative;
  padding-left: 2rem;
  border-left: 4px solid var(--rose-light);
}

.cta-testimonial blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.cta-testimonial .attribution {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.attribution-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.attribution-info .attr-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.attribution-info .attr-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cta-action h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-brand .logo-mark {
  background: var(--teal-light);
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--teal-light);
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 2.5rem auto 0;
  padding: 1.5rem 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s ease;
}

.social-links a:hover {
  background: var(--teal);
  color: #fff;
}

/* ============================================================
   PRIVACY & TERMS PAGES
   ============================================================ */
.legal-page {
  padding-top: calc(68px + 4rem);
  padding-bottom: 4rem;
  background: var(--ivory);
}

.legal-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.legal-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border);
}

.legal-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.legal-header .legal-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legal-section {
  position: relative;
  padding: 1.5rem 0 1.5rem 2rem;
  border-left: 3px solid transparent;
  margin-bottom: 0.5rem;
  transition: border-color 0.3s ease;
}

.legal-section:nth-child(odd) {
  border-left-color: var(--teal);
}

.legal-section:nth-child(even) {
  border-left-color: var(--rose-light);
}

.legal-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.legal-section h2 .section-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal);
  min-width: 2rem;
}

.legal-section p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-section li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

.legal-contact {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--mint);
  border-radius: 14px;
  border: 1px solid rgba(15, 118, 110, 0.12);
}

.legal-contact h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.legal-contact p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --section-pad: 4rem;
  }

  /* Services — collapse to stacked */
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .service-card:nth-child(1),
  .service-card:nth-child(2),
  .service-card:nth-child(3),
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: span 1;
  }

  /* Last card centered across both cols */
  .service-card:nth-child(5) {
    grid-column: 1 / -1;
    max-width: 400px;
    justify-self: center;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-story {
    order: 1;
  }

  .metrics-dashboard {
    order: 2;
  }

  /* Approach */
  .step-card:nth-child(1) { margin-left: 0; }
  .step-card:nth-child(2) { margin-left: 1.5rem; }
  .step-card:nth-child(3) { margin-left: 3rem; }
  .step-card:nth-child(4) { margin-left: 4.5rem; }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* CTA */
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-pad: 3rem;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  .hero-text {
    max-width: 100%;
    margin-left: 0;
  }

  .hero-line {
    margin: 1.25rem 0 1.5rem;
  }

  .hero-accent {
    display: none;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-card:nth-child(1),
  .service-card:nth-child(2),
  .service-card:nth-child(3),
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  /* About */
  .metrics-dashboard {
    gap: 1rem;
  }

  /* Industries */
  .badge-strip {
    gap: 0.35rem;
  }

  .badge-btn {
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
  }

  .industry-panel {
    padding: 1.5rem;
  }

  /* Approach */
  .waterfall-container::before {
    left: 1.5rem;
  }

  .step-card {
    padding: 1.5rem 1.5rem 1.5rem 3rem;
  }

  .step-card:nth-child(1),
  .step-card:nth-child(2),
  .step-card:nth-child(3),
  .step-card:nth-child(4) {
    margin-left: 0;
  }

  .step-number {
    left: 1.5rem;
    top: 1.5rem;
    font-size: 1.5rem;
  }

  .step-card::before {
    left: calc(-1.2rem - 5px);
    top: 1.85rem;
  }

  /* Contact */
  .contact {
    background: var(--teal);
  }

  /* CTA */
  .cta-testimonial {
    padding-left: 1.25rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

/* Small mobile */
@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .badge-strip {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .badge-btn {
    flex-shrink: 0;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }

  .legal-section {
    padding-left: 1.25rem;
  }
}
