/* Kefeng Bio - PbootCMS Theme */
:root {
  --primary: #208055;
  --primary-light: rgba(32, 128, 85, 0.1);
  --primary-lighter: rgba(32, 128, 85, 0.05);
  --primary-dark: #1a6b46;
  --background: #f8fbfb;
  --foreground: #22332b;
  --card: #ffffff;
  --muted: #67736c;
  --border: rgba(34, 51, 43, 0.1);
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--foreground);
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(32, 128, 85, 0.25);
  overflow: hidden;
}

.logo-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 4px;
}

.nav-desktop a {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s;
  color: var(--foreground);
}

.nav-desktop a:hover {
  color: var(--primary);
  background: var(--primary-lighter);
}

.menu-toggle {
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--foreground);
}

.menu-toggle:hover {
  background: var(--primary-lighter);
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 12px 0;
}

.nav-mobile.active {
  display: block;
}

.nav-mobile a {
  display: block;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--foreground);
  transition: all 0.2s;
}

.nav-mobile a:hover {
  color: var(--primary);
  background: var(--primary-lighter);
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
}

/* Section common */
.section {
  width: 100%;
  padding: 80px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 112px 0;
  }
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--foreground);
}

.section-subtitle {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 40px;
  }
  .section-subtitle {
    font-size: 18px;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34, 51, 43, 0.75), rgba(32, 128, 85, 0.45), rgba(32, 128, 85, 0.65));
  z-index: 1;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  z-index: 2;
}

.hero-glow-1 {
  top: 80px;
  left: 40px;
  width: 260px;
  height: 260px;
  background: var(--primary);
}

.hero-glow-2 {
  bottom: 80px;
  right: 40px;
  width: 380px;
  height: 380px;
  background: #4ade80;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  text-align: center;
  color: white;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 18px;
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto 12px;
}

.hero-slogan {
  font-size: 16px;
  opacity: 0.75;
  max-width: 520px;
  margin: 0 auto 48px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 60px;
  }
  .hero-subtitle {
    font-size: 22px;
  }
  .hero-slogan {
    font-size: 18px;
  }
}

.hero-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 48px;
}

@media (min-width: 768px) {
  .hero-cards {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 64px;
  }
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 28px;
  text-align: left;
  transition: all 0.3s ease;
}

.hero-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: all 0.3s;
}

.hero-card:hover .hero-card-icon {
  background: rgba(255, 255, 255, 0.3);
}

.hero-card-icon svg {
  width: 26px;
  height: 26px;
}

.hero-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.hero-card p {
  font-size: 14px;
  opacity: 0.8;
  line-height: 1.6;
}

.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-mouse {
  width: 24px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  animation: scrollBounce 1.5s infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* About */
.about {
  background: linear-gradient(to bottom, var(--background), rgba(32, 128, 85, 0.04), var(--background));
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.about-card:hover {
  transform: translateY(-4px);
  border-color: rgba(32, 128, 85, 0.2);
  box-shadow: var(--shadow-md);
}

.about-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-lighter));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-card-icon svg {
  width: 26px;
  height: 26px;
}

.about-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.about-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.about-slogan {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--primary), rgba(32, 128, 85, 0.85));
  color: white;
  padding: 48px 32px;
  text-align: center;
}

.about-slogan::before,
.about-slogan::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  filter: blur(40px);
}

.about-slogan::before {
  top: -80px;
  right: -80px;
}

.about-slogan::after {
  bottom: -80px;
  left: -80px;
}

.about-slogan p {
  position: relative;
  z-index: 1;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .about-slogan p {
    font-size: 24px;
  }
}

/* Services */
.services {
  background: var(--background);
}

.service-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.service-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.3s;
}

.service-tab:hover {
  border-color: rgba(32, 128, 85, 0.3);
  color: var(--primary);
}

.service-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(32, 128, 85, 0.25);
}

.service-tab svg {
  width: 16px;
  height: 16px;
}

.service-panels {
  position: relative;
}

.service-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.service-panel.active {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1024px) {
  .service-panel.active {
    grid-template-columns: 1fr 1fr;
  }
}

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

.service-intro {
  background: linear-gradient(135deg, var(--primary-lighter), var(--card), rgba(32, 128, 85, 0.06));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-tagline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 14px;
}

.service-tagline span {
  padding: 4px 12px;
  background: var(--primary-light);
  border-radius: 100px;
}

.service-intro h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 14px;
}

.service-intro > p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}

.highlight-item svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

.service-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .service-features {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: rgba(32, 128, 85, 0.2);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.feature-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.feature-icon svg {
  width: 18px;
  height: 18px;
}

.feature-card h4 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  padding-top: 6px;
}

.feature-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* Business */
.business {
  background: linear-gradient(to bottom, var(--background), rgba(32, 128, 85, 0.03), var(--background));
}

.business-steps {
  position: relative;
  margin-bottom: 56px;
}

.business-line {
  display: none;
  position: absolute;
  top: 48px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, rgba(32, 128, 85, 0.15), rgba(32, 128, 85, 0.5), rgba(32, 128, 85, 0.15));
}

@media (min-width: 1024px) {
  .business-line {
    display: block;
  }
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  position: relative;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.step-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(32, 128, 85, 0.2);
  box-shadow: var(--shadow-md);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), rgba(32, 128, 85, 0.8));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(32, 128, 85, 0.2);
}

.step-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 14px;
}

.step-icon svg {
  width: 22px;
  height: 22px;
}

.step-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.step-arrow {
  display: none;
  position: absolute;
  top: 40px;
  right: -12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(32, 128, 85, 0.25);
}

.step-arrow svg {
  width: 14px;
  height: 14px;
}

@media (min-width: 1024px) {
  .step-arrow {
    display: flex;
  }
}

.business-summary {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--foreground), rgba(34, 51, 43, 0.95), rgba(34, 51, 43, 0.9));
  color: white;
  padding: 48px 32px;
  text-align: center;
}

.business-summary::before,
.business-summary::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(32, 128, 85, 0.2);
  filter: blur(60px);
}

.business-summary::before {
  top: -100px;
  right: -100px;
}

.business-summary::after {
  bottom: -100px;
  left: -100px;
}

.business-summary h3 {
  position: relative;
  z-index: 1;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

.business-summary p {
  position: relative;
  z-index: 1;
  font-size: 15px;
  opacity: 0.85;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .business-summary p {
    font-size: 17px;
  }
}

/* Advantages */
.advantages {
  background: var(--background);
}

.advantages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .advantages-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.advantage-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  overflow: hidden;
  transition: all 0.3s;
}

.advantage-card:hover {
  transform: translateY(-6px);
  border-color: rgba(32, 128, 85, 0.2);
  box-shadow: var(--shadow-lg);
}

.advantage-number {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 64px;
  font-weight: 900;
  color: rgba(32, 128, 85, 0.06);
  line-height: 1;
  transition: all 0.3s;
}

.advantage-card:hover .advantage-number {
  color: rgba(32, 128, 85, 0.1);
}

.advantage-icon {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-lighter));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 18px;
  transition: all 0.3s;
}

.advantage-card:hover .advantage-icon {
  background: linear-gradient(135deg, rgba(32, 128, 85, 0.2), rgba(32, 128, 85, 0.08));
}

.advantage-icon svg {
  width: 26px;
  height: 26px;
}

.advantage-card h3 {
  position: relative;
  z-index: 1;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

.advantage-card p {
  position: relative;
  z-index: 1;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* Compliance */
.compliance {
  background: linear-gradient(to bottom, var(--background), rgba(32, 128, 85, 0.04), var(--background));
}

.compliance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .compliance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .compliance-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.compliance-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  transition: all 0.3s;
}

.compliance-card:hover {
  transform: translateY(-4px);
  border-color: rgba(32, 128, 85, 0.2);
  box-shadow: var(--shadow-md);
}

.compliance-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.compliance-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.compliance-icon svg {
  width: 22px;
  height: 22px;
}

.compliance-card-header span {
  font-size: 28px;
  font-weight: 900;
  color: rgba(32, 128, 85, 0.15);
}

.compliance-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.compliance-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.compliance-slogan {
  text-align: center;
}

.compliance-slogan-inner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: 100px;
  background: var(--primary-light);
  border: 1px solid rgba(32, 128, 85, 0.15);
}

.compliance-slogan-inner svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.compliance-slogan-inner span {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
}

/* Cooperation */
.cooperation {
  background: var(--background);
}

.cooperation-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1024px) {
  .cooperation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.coop-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 40px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.3s;
}

.coop-card:hover {
  transform: translateY(-4px);
}

.coop-card-primary {
  background: linear-gradient(135deg, var(--primary), rgba(32, 128, 85, 0.9), rgba(32, 128, 85, 0.8));
  color: white;
  box-shadow: 0 12px 40px rgba(32, 128, 85, 0.2);
}

.coop-card-secondary {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.coop-card-secondary:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(32, 128, 85, 0.2);
}

.coop-card::before,
.coop-card::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  filter: blur(50px);
}

.coop-card-primary::before {
  top: -80px;
  right: -80px;
  background: rgba(255, 255, 255, 0.1);
}

.coop-card-primary::after {
  bottom: -80px;
  left: -80px;
  background: rgba(255, 255, 255, 0.05);
}

.coop-card-secondary::before {
  top: -80px;
  right: -80px;
  background: rgba(32, 128, 85, 0.05);
}

.coop-icon {
  position: relative;
  z-index: 1;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.coop-card-primary .coop-icon {
  background: rgba(255, 255, 255, 0.2);
}

.coop-card-secondary .coop-icon {
  background: var(--primary-light);
  color: var(--primary);
}

.coop-icon svg {
  width: 30px;
  height: 30px;
}

.coop-card h3 {
  position: relative;
  z-index: 1;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 14px;
}

.coop-card-secondary h3 {
  color: var(--foreground);
}

.coop-card p {
  position: relative;
  z-index: 1;
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.9;
}

.coop-card-secondary p {
  color: var(--muted);
}

/* Contact */
.contact {
  background: linear-gradient(to bottom, var(--background), rgba(32, 128, 85, 0.03), var(--background));
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 28px 22px;
  text-align: center;
  transition: all 0.3s;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(32, 128, 85, 0.2);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-lighter));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin: 0 auto 18px;
}

.contact-icon svg {
  width: 28px;
  height: 28px;
}

.contact-card .label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.contact-card .value {
  font-size: 15px;
  font-weight: 600;
  color: var(--foreground);
  word-break: break-word;
}

.contact-form-section {
  margin-top: 48px;
}

.contact-form {
  max-width: 720px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--foreground);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-family: inherit;
  background: var(--background);
  color: var(--foreground);
  transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(32, 128, 85, 0.1);
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-xs);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(32, 128, 85, 0.3);
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--foreground), rgba(34, 51, 43, 0.92));
  color: rgba(255, 255, 255, 0.85);
  padding: 64px 0 32px;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 0.9fr;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.footer-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-brand-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.footer-brand-icon svg {
  width: 20px;
  height: 20px;
}

.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  max-width: 300px;
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 16px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
}

.footer-contact p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 8px;
}

.footer-qrcode-wrap {
  text-align: center;
}

.footer-qrcode {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-qrcode img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 8px;
  background: white;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-qrcode p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}


/* Icons SVG helpers */
.icon {
  display: inline-block;
  vertical-align: middle;
}

/* ========================
   Inner Pages Styles
   ======================== */

/* Feature card content line breaks */
.feature-card p {
  white-space: pre-line;
}

/* Page Banner */
.page-banner {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 72px;
  background: linear-gradient(135deg, var(--primary), rgba(32, 128, 85, 0.85), var(--primary-dark));
  overflow: hidden;
}

.page-banner::before,
.page-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}

.page-banner::before {
  top: -60px;
  right: -60px;
  width: 280px;
  height: 280px;
  background: #4ade80;
}

.page-banner::after {
  bottom: -80px;
  left: -80px;
  width: 320px;
  height: 320px;
  background: rgba(255, 255, 255, 0.3);
}

.page-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(34, 51, 43, 0.2);
  z-index: 1;
}

.page-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 64px 24px;
}

.page-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}

.page-banner-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.page-banner-desc {
  font-size: 15px;
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .page-banner {
    min-height: 380px;
  }
  .page-banner-title {
    font-size: 48px;
  }
  .page-banner-desc {
    font-size: 17px;
  }
}

/* Breadcrumb */
.breadcrumb-wrap {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--foreground);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--primary);
}

/* Page Section */
.page-section {
  padding: 64px 0;
}

@media (min-width: 768px) {
  .page-section {
    padding: 96px 0;
  }
}

/* Page Content */
.page-content {
  max-width: 900px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  font-size: 15px;
  line-height: 1.8;
  color: var(--foreground);
}

.page-content h2,
.page-content h3,
.page-content h4 {
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--foreground);
}

.page-content p {
  margin-bottom: 16px;
  color: var(--muted);
}

.page-content ul,
.page-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.page-content li {
  margin-bottom: 8px;
  color: var(--muted);
}

.page-content img {
  border-radius: var(--radius-sm);
  margin: 24px 0;
}

@media (max-width: 640px) {
  .page-content {
    padding: 24px;
  }
}

/* Page List Grid */
.page-list-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 48px;
}

.page-list-grid-2 {
  grid-template-columns: 1fr;
}

.page-list-grid-3 {
  grid-template-columns: 1fr;
}

.page-list-grid-4 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .page-list-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-list-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-list-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .page-list-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-list-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.page-list-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.page-list-card:hover {
  transform: translateY(-4px);
  border-color: rgba(32, 128, 85, 0.2);
  box-shadow: var(--shadow-md);
}

.page-list-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-lighter));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}

.page-list-icon svg {
  width: 26px;
  height: 26px;
}

.page-list-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--foreground);
}

.page-list-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-list-more {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.page-list-card-number {
  position: relative;
  overflow: hidden;
}

.page-list-number {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 64px;
  font-weight: 900;
  color: rgba(32, 128, 85, 0.06);
  line-height: 1;
}

/* Page Timeline */
.page-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 48px;
}

.page-timeline-item {
  display: flex;
  gap: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.page-timeline-item:hover {
  border-color: rgba(32, 128, 85, 0.2);
  box-shadow: var(--shadow-md);
}

.page-timeline-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), rgba(32, 128, 85, 0.8));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.page-timeline-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--foreground);
}

.page-timeline-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.page-timeline-body a {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

@media (max-width: 640px) {
  .page-timeline-item {
    flex-direction: column;
    gap: 16px;
  }
}

/* Page Detail */
.page-detail {
  max-width: 900px;
  margin: 0 auto 48px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
  font-size: 15px;
  line-height: 1.8;
}

.page-detail h2,
.page-detail h3,
.page-detail h4 {
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--foreground);
}

.page-detail p {
  margin-bottom: 16px;
  color: var(--muted);
}

.page-detail img {
  border-radius: var(--radius-sm);
  margin: 24px 0;
}

.page-detail ul,
.page-detail ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.page-detail li {
  margin-bottom: 8px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .page-detail {
    padding: 28px;
  }
}

/* Page Navigation */
.page-nav {
  max-width: 900px;
  margin: 0 auto 32px;
  display: grid;
  gap: 12px;
  font-size: 14px;
}

.page-nav-prev,
.page-nav-next {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-nav a {
  color: var(--foreground);
  font-weight: 500;
}

.page-nav a:hover {
  color: var(--primary);
}

.page-back {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Page CTA */
.page-cta {
  max-width: 900px;
  margin: 48px auto 0;
  background: linear-gradient(135deg, var(--primary), rgba(32, 128, 85, 0.9));
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
  color: white;
}

.page-cta h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-cta p {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 24px;
}

.page-cta .btn-primary {
  background: white;
  color: var(--primary);
}

.page-cta .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* Page Message */
.page-message {
  max-width: 560px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.page-message-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-lighter));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin: 0 auto 24px;
}

.page-message-icon svg {
  width: 40px;
  height: 40px;
}

.page-message h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--foreground);
}

.page-message p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 28px;
}

/* About page cards */
.page-about-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 48px auto 0;
}

@media (min-width: 768px) {
  .page-about-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.page-about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.page-about-card:hover {
  transform: translateY(-4px);
  border-color: rgba(32, 128, 85, 0.2);
  box-shadow: var(--shadow-md);
}

.page-about-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-lighter));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}

.page-about-icon svg {
  width: 26px;
  height: 26px;
}

.page-about-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--foreground);
}

.page-about-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* Pagination */
.page-pagination {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.page-pagination a,
.page-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  margin: 0 4px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--foreground);
  background: var(--card);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.page-pagination a:hover {
  color: var(--primary);
  border-color: rgba(32, 128, 85, 0.3);
}

.page-pagination .current {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Current navigation highlight */
.nav-desktop a.active,
.nav-mobile a.active {
  color: var(--primary);
  background: var(--primary-lighter);
}

/* Feature points split */
.feature-points {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.feature-points-2col {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .feature-points-2col {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-point {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.feature-point svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Services detail page layout */
.service-detail-panels {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.service-detail-panel.service-panel.active {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.service-detail-panel.service-panel.active:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(32, 128, 85, 0.2);
}

.service-detail-panel.service-panel.active .service-intro {
  background: transparent;
  border: none;
  padding: 0;
}

.service-detail-panel.service-panel.active .service-features {
  margin-top: 28px;
}

.service-detail-panel.service-panel.active .feature-card {
  background: var(--background);
  border: 1px solid var(--border);
}

.service-detail-panel.service-panel.active .service-intro > p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

@media (min-width: 1024px) {
  .service-detail-panel.service-panel.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
  }

  .service-detail-panel.service-panel.active .service-features {
    margin-top: 0;
  }
}

/* Preserve line breaks in service highlight slogans */
.highlight-item span {
  white-space: pre-line;
}

/* Home services panel: centered single card layout */
#services .service-panel.active {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 32px;
  box-shadow: var(--shadow);
  text-align: center;
}

#services .service-intro {
  background: transparent;
  border: none;
  padding: 0;
  max-width: 720px;
  margin: 0 auto 36px;
}

#services .service-tagline {
  justify-content: center;
}

#services .service-intro h3 {
  font-size: 28px;
  margin-bottom: 16px;
}

#services .service-intro > p {
  font-size: 16px;
  margin-bottom: 0;
}

#services .service-highlights {
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

#services .service-features {
  display: block;
  max-width: 960px;
  margin: 0 auto;
}

#services .feature-points {
  grid-template-columns: 1fr;
  gap: 16px;
  text-align: left;
}

@media (min-width: 640px) {
  #services .feature-points {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  #services .feature-points {
    grid-template-columns: repeat(3, 1fr);
  }
}

#services .feature-point {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

@media (min-width: 1024px) {
  #services .feature-points-2col {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Feature modules: several sentences per module */
.feature-modules p {
  position: relative;
  padding-left: 18px;
  margin-bottom: 18px;
  line-height: 1.8;
  color: var(--muted);
  text-align: left;
}

.feature-modules p:last-child {
  margin-bottom: 0;
}

.feature-modules p::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 2px;
  background: var(--primary);
}

#services .feature-modules p {
  font-size: 15px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Service detail page modules */
.service-detail-panel .service-features {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 28px;
}

/* Feature modules: 3-column tofu block layout */
.feature-modules {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .feature-modules {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-modules {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-modules p {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  margin-bottom: 0;
  line-height: 1.75;
  color: var(--muted);
  text-align: left;
}

.feature-modules p::before {
  display: none;
}

.feature-modules p:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(32, 128, 85, 0.25);
}

#services .feature-modules p {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

#services .service-features {
  max-width: 1200px;
}

.service-detail-panel .service-features {
  background: transparent;
  border: none;
  padding: 0;
}

.service-detail-panel .feature-modules {
  gap: 24px;
}

/* Feature modules: 2-column compact tofu blocks */
.feature-modules {
  grid-auto-rows: 1fr;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .feature-modules {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-modules {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-modules p {
  padding: 22px;
  font-size: 14px;
  display: flex;
  align-items: center;
}

#services .service-features {
  max-width: 900px;
}

#services .service-panel.active {
  padding: 32px 28px;
}

#services .service-intro {
  margin-bottom: 28px;
}

#services .service-intro > p {
  font-size: 15px;
}

/* =========================================================
   Service section refresh — clean, consistent card layout
   ========================================================= */

/* Home services: single column panel, centered intro */
#services .service-panel.active {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  text-align: center;
}

#services .service-intro {
  background: transparent;
  border: none;
  padding: 0;
  max-width: 760px;
  margin: 0 auto 32px;
}

#services .service-tagline {
  justify-content: center;
}

#services .service-intro h3 {
  font-size: 26px;
  margin-bottom: 14px;
}

#services .service-intro > p {
  font-size: 15px;
  margin-bottom: 0;
  color: var(--muted);
}

#services .service-highlights {
  justify-content: center;
  align-items: center;
  margin-top: 18px;
}

#services .service-features {
  display: grid;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

/* Service detail page panels */
.service-detail-panels {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.service-detail-panel.service-panel.active {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.service-detail-panel.service-panel.active:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(32, 128, 85, 0.2);
}

.service-detail-panel.service-panel.active .service-intro {
  background: transparent;
  border: none;
  padding: 0;
  max-width: 800px;
  margin-bottom: 28px;
}

.service-detail-panel.service-panel.active .service-intro > p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

/* Feature cards grid: 1 -> 2 -> 3 columns */
.service-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .service-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .service-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Feature card refinement */
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  transition: all 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  border-color: rgba(32, 128, 85, 0.25);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.feature-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-card h4 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--foreground);
}

.feature-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 0;
}

/* Detail page slightly darker card background for contrast */
.service-detail-panel .feature-card {
  background: var(--background);
}

/* Highlight item stays centered on home, left-aligned on detail */
.highlight-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--foreground);
  padding: 10px 18px;
  background: var(--primary-light);
  border-radius: 100px;
}

.highlight-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.service-detail-panel .highlight-item {
  display: flex;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

/* Tab buttons refinements */
.service-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.service-tab {
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  cursor: pointer;
  transition: all 0.3s;
}

.service-tab:hover {
  border-color: rgba(32, 128, 85, 0.35);
  color: var(--primary);
}

.service-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(32, 128, 85, 0.25);
}

/* Page content lead paragraph */
.page-content .lead {
  font-size: 17px;
  line-height: 1.9;
  color: var(--foreground);
  margin-bottom: 20px;
}

.page-content p {
  margin-bottom: 16px;
  line-height: 1.85;
  color: var(--muted);
}

.page-content p:last-child {
  margin-bottom: 0;
}

/* Header text visibility on dark hero / banner backgrounds */
.header {
  color: rgba(255, 255, 255, 0.95);
}

.header .logo {
  color: #ffffff;
}

.header .nav-desktop a {
  color: rgba(255, 255, 255, 0.9);
}

.header .nav-desktop a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.header .menu-toggle {
  color: #ffffff;
}

.header .menu-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Scrolled state: switch back to dark theme */
.header.scrolled {
  color: var(--foreground);
}

.header.scrolled .logo {
  color: var(--foreground);
}

.header.scrolled .nav-desktop a {
  color: var(--foreground);
}

.header.scrolled .nav-desktop a:hover {
  color: var(--primary);
  background: var(--primary-lighter);
}

.header.scrolled .menu-toggle {
  color: var(--foreground);
}

.header.scrolled .menu-toggle:hover {
  background: var(--primary-lighter);
}
