/* ============================================
   南京紫晶杉法律咨询有限公司 — 官网样式
   高贵紫 + 金色 主视觉
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --purple-900: #1a0a2e;
  --purple-800: #2d1b4e;
  --purple-700: #4a2d7a;
  --purple-600: #6B3FA0;
  --purple-500: #8B5FBF;
  --purple-400: #A883DD;
  --purple-300: #C4A6EA;
  --purple-200: #DEC9F5;
  --purple-100: #F0E6FF;
  --purple-50: #F8F2FF;

  --gold: #C9A84C;
  --gold-light: #E6CF7A;
  --gold-dark: #A88A2E;

  --text-primary: #1a1a2e;
  --text-secondary: #4a4a6a;
  --text-light: #8a8aaa;
  --bg-white: #ffffff;
  --bg-light: #F8F5FF;
  --bg-dark: #1a0a2e;

  --shadow-sm: 0 1px 3px rgba(74, 45, 122, 0.08);
  --shadow-md: 0 4px 20px rgba(74, 45, 122, 0.12);
  --shadow-lg: 0 10px 40px rgba(74, 45, 122, 0.18);
  --shadow-glow: 0 0 30px rgba(107, 63, 160, 0.3);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;

  --font-serif: 'Noto Serif SC', 'STSong', 'SimSun', serif;
  --font-sans: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

ul { list-style: none; }

img { max-width: 100%; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

/* ---------- Section Header ---------- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--purple-600);
  background: var(--purple-100);
  padding: 6px 20px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--purple-800);
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-700));
  color: #fff;
  box-shadow: 0 4px 15px rgba(107, 63, 160, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(107, 63, 160, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--purple-600);
  border: 2px solid var(--purple-400);
}

.btn-outline:hover {
  background: var(--purple-600);
  color: #fff;
  border-color: var(--purple-600);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 16px;
}

.btn-icon { font-size: 1.1rem; }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(107, 63, 160, 0.08);
  transition: all 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 2px 30px rgba(74, 45, 122, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.logo-icon {
  font-size: 1.8rem;
  color: var(--purple-600);
  line-height: 1;
}

.logo-img {
  height: 42px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--purple-800);
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.6rem;
  color: var(--text-light);
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 50px;
  transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--purple-600);
  background: var(--purple-100);
}

.nav-cta {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-700));
  color: #fff !important;
  padding: 8px 22px;
  margin-left: 8px;
}

.nav-cta:hover {
  background: linear-gradient(135deg, var(--purple-700), var(--purple-800));
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(107, 63, 160, 0.35);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  gap: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--purple-800);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--bg-light) 0%, #f0e6ff 50%, #e8dff5 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 63, 160, 0.08), transparent);
  animation: float 8s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--purple-600);
  background: rgba(107, 63, 160, 0.1);
  border: 1px solid rgba(107, 63, 160, 0.15);
  padding: 8px 24px;
  border-radius: 50px;
  margin-bottom: 28px;
  letter-spacing: 2px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.6rem;
  font-weight: 900;
  color: var(--purple-800);
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: 4px;
}

.hero-highlight {
  background: linear-gradient(135deg, var(--purple-600), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

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

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 60px;
  padding: 30px 50px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(107, 63, 160, 0.1);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--purple-700);
  line-height: 1;
}

.stat-plus,
.stat-percent {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  margin-left: 2px;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 6px;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: rgba(107, 63, 160, 0.15);
}

/* ============ ABOUT ============ */
.about {
  background: var(--bg-white);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.about-card {
  text-align: center;
  padding: 48px 30px;
  border-radius: var(--radius-lg);
  background: var(--bg-light);
  border: 1px solid rgba(107, 63, 160, 0.06);
  transition: all 0.4s;
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(107, 63, 160, 0.15);
}

.about-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  color: var(--purple-600);
}

.about-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--purple-800);
  margin-bottom: 14px;
}

.about-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============ SERVICES ============ */
.services {
  background: linear-gradient(135deg, var(--bg-light), #f0e6ff);
}

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

.service-card {
  background: var(--bg-white);
  padding: 36px 28px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(107, 63, 160, 0.08);
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--purple-500), var(--gold));
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover::before { opacity: 1; }

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

.service-number {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--purple-400);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--purple-800);
  margin-bottom: 12px;
}

.service-card > p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-list li {
  font-size: 0.85rem;
  color: var(--text-light);
  padding-left: 16px;
  position: relative;
}

.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.service-card-cta {
  background: linear-gradient(135deg, var(--purple-700), var(--purple-800));
  border-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card-cta::before { display: none; }

.service-cta-inner {
  text-align: center;
  color: #fff;
}

.service-cta-inner h3 {
  color: #fff !important;
  font-size: 1.3rem !important;
}

.service-cta-inner p {
  color: rgba(255, 255, 255, 0.8) !important;
  margin-bottom: 20px;
}

.service-cta-inner .btn-primary {
  background: var(--gold);
  color: var(--purple-900);
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.4);
}

.service-cta-inner .btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 8px 25px rgba(201, 168, 76, 0.5);
}

/* ============ CASES ============ */
.cases {
  background: var(--bg-white);
}

.cases-slider {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.case-card {
  padding: 36px 32px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(107, 63, 160, 0.08);
  transition: all 0.4s;
  background: var(--bg-light);
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(107, 63, 160, 0.2);
}

.case-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--purple-600);
  background: var(--purple-100);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.case-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--purple-800);
  margin-bottom: 12px;
}

.case-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============ ABOUT CTA ============ */
.about-cta {
  max-width: 700px;
  margin: 40px auto 0;
  padding: 28px 36px;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-800));
  border-radius: var(--radius-lg);
  text-align: center;
}

.about-cta p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.8;
  font-weight: 500;
}

/* ============ ADVANTAGE ============ */
.advantage {
  background: var(--bg-white);
}

.advantage-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.advantage-item {
  display: flex;
  gap: 28px;
  padding: 36px 40px;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(107, 63, 160, 0.06);
  transition: all 0.4s;
}

.advantage-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(107, 63, 160, 0.15);
}

.advantage-num {
  flex-shrink: 0;
}

.advantage-num span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-700));
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
}

.advantage-content h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--purple-800);
  margin-bottom: 10px;
}

.advantage-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============ FAQ ============ */
.faq {
  background: var(--bg-white);
}

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

.faq-item {
  border: 1px solid rgba(107, 63, 160, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item:hover {
  border-color: rgba(107, 63, 160, 0.25);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: var(--bg-light);
  border: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--purple-800);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.faq-question:hover {
  background: var(--purple-100);
}

.faq-arrow {
  font-size: 0.85rem;
  color: var(--purple-400);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 400px;
}

.faq-answer div {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============ CASES ============ */
.cases {
  background: var(--bg-white);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.case-card {
  padding: 32px 28px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(107, 63, 160, 0.08);
  background: var(--bg-light);
  transition: all 0.4s;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(107, 63, 160, 0.2);
}

.case-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--purple-600);
  background: var(--purple-100);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.case-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--purple-800);
  margin-bottom: 10px;
}

.case-summary {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.case-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(107, 63, 160, 0.08);
  font-size: 0.85rem;
}

.case-label {
  color: var(--text-light);
}

.case-detail strong {
  color: var(--purple-600);
  font-weight: 600;
}

.section-footer-cta {
  text-align: center;
  margin-top: 40px;
  padding: 24px;
  background: linear-gradient(135deg, var(--purple-50), rgba(201, 168, 76, 0.06));
  border-radius: var(--radius-md);
  border: 1px solid rgba(107, 63, 160, 0.08);
}

.section-footer-cta p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* ============ RESEARCH ============ */
.research {
  background: linear-gradient(135deg, var(--bg-light), #f0e6ff);
}

.research-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.research-item {
  background: var(--bg-white);
  padding: 32px 32px 28px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(107, 63, 160, 0.08);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.research-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--purple-500), var(--gold));
}

.research-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.research-date {
  font-size: 0.8rem;
  color: var(--purple-400);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.research-item h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--purple-800);
  margin-bottom: 10px;
}

.research-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.research-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.research-keywords li {
  font-size: 0.75rem;
  color: var(--purple-500);
  background: var(--purple-100);
  padding: 4px 12px;
  border-radius: 50px;
}

.research-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple-600);
  text-decoration: none;
  transition: all 0.3s;
}

.research-link:hover {
  color: var(--gold-dark);
  transform: translateX(4px);
}

/* ============ NEWS ============ */
.news {
  background: var(--bg-white);
}

.news-default {
  text-align: center;
  padding: 60px 30px;
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(107, 63, 160, 0.15);
}

.news-placeholder-icon {
  color: var(--purple-300);
  margin-bottom: 20px;
}

.news-default h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--purple-800);
  margin-bottom: 12px;
}

.news-default p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}

.news-update-tip {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--gold-dark);
  background: rgba(201, 168, 76, 0.1);
  padding: 6px 18px;
  border-radius: 50px;
  margin-top: 8px;
}

/* ============ CONTACT ============ */
.contact {
  background: linear-gradient(135deg, var(--bg-light), #f0e6ff);
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--purple-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-600);
}

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

.contact-item h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--purple-800);
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.contact-item a:hover {
  color: var(--purple-600);
}

.contact-item-highlight {
  background: linear-gradient(135deg, var(--purple-50), rgba(201, 168, 76, 0.08));
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.contact-item-highlight h4 {
  color: var(--purple-700);
  font-size: 1rem;
}

.contact-phone a {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--purple-700) !important;
  letter-spacing: 2px;
}

.contact-wechat {
  margin-top: 12px;
  text-align: center;
  padding: 24px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(107, 63, 160, 0.08);
}

.wechat-qr {
  width: 160px;
  height: 160px;
  margin: 0 auto 12px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.wechat-qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wechat-tip {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ---------- Contact Form ---------- */
.contact-form {
  background: var(--bg-white);
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(107, 63, 160, 0.06);
}

.contact-form h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--purple-800);
  margin-bottom: 24px;
}

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

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple-800);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(107, 63, 160, 0.12);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-primary);
  background: var(--bg-light);
  transition: all 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(107, 63, 160, 0.1);
  background: var(--bg-white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

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

.form-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 12px;
  text-align: center;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 50px 0 30px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-brand h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: flex;
  gap: 24px;
}

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

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a:hover {
  color: var(--gold);
}

/* ============ SCROLL TOP ============ */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-600), var(--purple-700));
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s;
  z-index: 100;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
  .section { padding: 80px 0; }
  .section-title { font-size: 2rem; }
  .hero-title { font-size: 2.8rem; }
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-stats { gap: 24px; padding: 24px 32px; flex-wrap: wrap; }
  .stat-divider:last-child { display: none; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    border-bottom: 1px solid rgba(107, 63, 160, 0.08);
    transform: translateY(-120%);
    transition: transform 0.4s;
  }

  .nav-menu.open { transform: translateY(0); }

  .nav-toggle {
    display: flex;
  }

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

  .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  .hero-title {
    font-size: 2.2rem;
    letter-spacing: 2px;
  }

  .hero-desc { font-size: 1rem; }
  .hero-stats {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
  }
  .stat-divider { display: none; }

  .section-title { font-size: 1.7rem; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .footer-links { flex-wrap: wrap; gap: 16px; justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .advantage-item { flex-direction: column; align-items: center; text-align: center; padding: 28px 24px; gap: 16px; }
  .about-cta { padding: 24px 20px; }
  .about-cta p { font-size: 0.95rem; }
  .contact-phone a { font-size: 1.2rem; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-badge { font-size: 0.75rem; }
  .section { padding: 60px 0; }
}
