/* ========================================
   CSS Variables & Base Styles
   ======================================== */
:root {
  /* Colors - 沉稳肃穆的深蓝灰色系 */
  --color-primary: #1F2937;
  --color-primary-dark: #111827;
  --color-accent: #6B7280;
  --color-accent-light: #9CA3AF;
  --color-bg-dark: #111827;
  --color-bg-light: #F3F4F6;
  --color-text-dark: #1F2937;
  --color-text-light: #F9FAFB;
  --color-text-muted: #6B7280;
  --color-border: #E5E7EB;

  /* Typography */
  --font-serif: 'Noto Serif SC', serif;
  --font-sans: 'Noto Sans SC', sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 48px;
  --space-2xl: 80px;
  --space-3xl: 120px;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-accent: 0 0 20px rgba(107, 114, 128, 0.3);
  --transition-fast: 200ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 600ms ease-out;
}

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

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

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

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* ========================================
   Utility Classes
   ======================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header.light .section-tag,
.section-header.light .section-title,
.section-header.light .section-desc {
  color: var(--color-text-light);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--color-accent);
  letter-spacing: 2px;
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: var(--space-md);
}

.section-desc {
  font-size: 1.125rem;
  color: var(--color-text-muted);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
  font-weight: 500;
  border-radius: 4px;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  color: var(--color-bg-dark);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-accent);
}

.btn-outline {
  background: transparent;
  color: var(--color-text-light);
  border: 2px solid var(--color-text-light);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-submit {
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  color: var(--color-bg-dark);
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: 8px;
  margin-top: var(--space-md);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-accent);
}

.btn-submit svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   Header
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: all var(--transition-normal);
}

.header.scrolled {
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
}

.logo-icon {
  font-size: 1.75rem;
}

.nav {
  display: flex;
  gap: var(--space-xl);
}

.nav-link {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  position: relative;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent-light);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9375rem;
  color: var(--color-accent-light);
  transition: opacity var(--transition-fast);
}

.header-phone:hover {
  opacity: 0.8;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-light);
  transition: all var(--transition-normal);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
}

.cloud {
  position: absolute;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s infinite ease-in-out;
}

.cloud-1 {
  width: 600px;
  height: 400px;
  top: -100px;
  left: -200px;
  animation-delay: 0s;
}

.cloud-2 {
  width: 800px;
  height: 500px;
  bottom: -150px;
  right: -300px;
  animation-delay: -7s;
}

.cloud-3 {
  width: 500px;
  height: 350px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-text-light);
  padding: var(--space-xl);
}

.hero-badge {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--color-accent);
  border-radius: 50px;
  font-size: 0.875rem;
  letter-spacing: 1px;
  margin-bottom: var(--space-xl);
  animation: fadeInDown 0.8s ease-out;
}

.hero-title {
  margin-bottom: var(--space-lg);
}

.title-main {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 700;
  letter-spacing: 8px;
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.title-sub {
  display: block;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 12px;
  color: var(--color-accent);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-desc {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 2;
  margin-bottom: var(--space-2xl);
  opacity: 0.9;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-actions {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-light);
  opacity: 0.7;
  font-size: 0.875rem;
  animation: bounce 2s infinite;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ========================================
   Services Section
   ======================================== */
.services {
  padding: var(--space-3xl) 0;
  background: var(--color-bg-light);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.service-card {
  background: white;
  border-radius: 12px;
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(212, 175, 55, 0.2);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card .service-title,
.service-card .service-desc,
.service-card .service-features,
.service-card .service-footer {
  flex-shrink: 0;
}

.service-features {
  flex-grow: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 50%;
}

.service-icon svg {
  width: 40px;
  height: 40px;
  stroke: var(--color-text-light);
}

.service-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: var(--space-md);
}

.service-desc {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.service-features {
  text-align: left;
  margin-bottom: var(--space-lg);
}

.service-features li {
  padding: var(--space-sm) 0;
  padding-left: var(--space-lg);
  position: relative;
  color: var(--color-text-dark);
  border-bottom: 1px solid #eee;
}

.service-features li:last-child {
  border-bottom: none;
}

.service-features li::before {
  content: '♦';
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.service-footer {
  padding-top: var(--space-md);
  border-top: 1px dashed rgba(212, 175, 55, 0.3);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.service-price {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
}

.btn-view-cases {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.btn-view-cases:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-view-cases svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-normal);
}

.btn-view-cases.active svg {
  transform: rotate(180deg);
}

.service-cases {
  display: none;
  padding-top: var(--space-lg);
  border-top: 1px solid #eee;
  margin-top: var(--space-lg);
  animation: slideDown 0.3s ease-out;
}

.service-cases.active {
  display: block;
}

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

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.case-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.case-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.case-item:hover img {
  transform: scale(1.05);
}

.case-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-xs) var(--space-sm);
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
  font-size: 0.75rem;
  text-align: left;
  z-index: 3;
}

.case-video {
  background: var(--color-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

.case-video-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.video-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  z-index: 1;
}

.video-placeholder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  z-index: 2;
}

.case-video:hover .video-placeholder {
  background: rgba(255,255,255,0.5);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-placeholder svg {
  width: 20px;
  height: 20px;
  fill: white;
  margin-left: 3px;
}

.btn-close-cases {
  display: block;
  width: 100%;
  padding: var(--space-sm);
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-close-cases:hover {
  background: #f5f5f5;
  color: var(--color-text-dark);
}

/* ========================================
   Video Modal
   ======================================== */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 3000;
  align-items: center;
  justify-content: center;
}

.video-modal.active {
  display: flex;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 1000px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.video-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all var(--transition-fast);
  z-index: 3001;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.video-modal-close svg {
  width: 24px;
  height: 24px;
}

.video-modal-player {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.video-modal-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.section-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
  padding: var(--space-xl) 0;
}

.decoration-line {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.decoration-icon {
  font-size: 2rem;
  color: var(--color-accent);
}

/* ========================================
   Gallery Section
   ======================================== */
.gallery {
  padding: var(--space-3xl) 0;
  background: linear-gradient(180deg, var(--color-bg-dark) 0%, var(--color-primary-dark) 100%);
}

.gallery .section-title,
.gallery .section-tag,
.gallery .section-desc {
  color: var(--color-text-light);
}

.gallery .section-desc {
  color: rgba(253, 245, 230, 0.7);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 280px;
  gap: var(--space-md);
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(196, 30, 58, 0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-light);
}

.gallery-location {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.wide {
  grid-column: span 2;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
  padding: var(--space-3xl) 0;
  background: var(--color-bg-light);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-2xl);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.info-item {
  display: flex;
  gap: var(--space-lg);
}

.info-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 12px;
}

.info-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-text-light);
}

.info-content h4 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: var(--space-sm);
}

.info-content p {
  color: var(--color-text-muted);
  line-height: 1.8;
}

.cloud-form-wrapper {
  background: white;
  padding: var(--space-lg);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  position: relative;
  min-height: 700px;
}

.cloud-form-wrapper iframe {
  border-radius: 8px;
  width: 100%;
  height: 100%;
  min-height: 700px;
  border: none;
}

.form-float-btn {
  position: fixed;
  left: 0;
  bottom: 15%;
  width: 36px;
  padding: 12px 6px;
  background: var(--color-primary);
  color: white;
  font-size: 14px;
  writing-mode: vertical-rl;
  text-align: center;
  border-radius: 0 6px 6px 0;
  text-decoration: none;
  z-index: 999;
  transition: all var(--transition-fast);
}

.form-float-btn:hover {
  background: var(--color-primary-dark);
  color: white;
}

/* ========================================
   Team Section
   ======================================== */
.team {
  padding: var(--space-3xl) 0;
  background: linear-gradient(180deg, var(--color-bg-dark) 0%, var(--color-primary-dark) 100%);
}

.team .section-title,
.team .section-tag,
.team .section-desc {
  color: var(--color-text-light);
}

.team .section-desc {
  color: rgba(253, 245, 230, 0.7);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.team-card {
  background: white;
  border-radius: 16px;
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

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

.team-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--space-lg);
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--color-accent);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: var(--space-xs);
}

.team-id {
  font-size: 0.875rem;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.team-bio {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  min-height: 50px;
}

.team-stats {
  padding-top: var(--space-md);
  border-top: 1px dashed rgba(212, 175, 55, 0.3);
}

.team-fans {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-weight: 500;
  color: var(--color-text-dark);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-md);
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: border-color var(--transition-fast);
  background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  background: white;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

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

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.footer-links h5,
.footer-social h5 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  color: var(--color-accent);
}

.footer-links a {
  display: block;
  padding: var(--space-xs) 0;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

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

.social-icons {
  display: flex;
  gap: var(--space-md);
}

.social-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: var(--color-accent-light);
  color: var(--color-bg-dark);
}

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

.footer-bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* ========================================
   Modal
   ======================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  background: white;
  padding: var(--space-2xl);
  border-radius: 16px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--color-text-dark);
}

.modal-close svg {
  width: 24px;
  height: 24px;
}

.modal-success {
  padding: var(--space-xl) 0;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  border-radius: 50%;
  font-size: 2.5rem;
  color: white;
}

.modal-success h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: var(--space-md);
}

.modal-success p {
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ========================================
   Animations
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-item.large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background: var(--color-bg-dark);
    padding: var(--space-3xl) var(--space-xl);
    gap: var(--space-lg);
    transform: translateX(100%);
    transition: transform var(--transition-normal);
  }

  .nav.active {
    transform: translateX(0);
  }

  .header-phone {
    display: none;
  }

  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

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

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

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

  .services-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .gallery-item.large,
  .gallery-item.wide {
    grid-column: span 1;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

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

  .btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  :root {
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
  }

  .hero-content {
    padding: var(--space-lg);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }
}
