/* ============================================
   Fire Eye Security - 火眼安防 Premium UI
   Red & Dark Theme based on Logo
   ============================================ */

/* === Google Fonts Import === */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700;900&family=Playfair+Display:wght@700;800&display=swap');

/* === CSS Variables === */
:root {
  --primary: #111318;
  --primary-light: #1a1d24;
  --primary-mid: #22262e;
  --accent: #C62828;
  --accent-dark: #A51C1C;
  --accent-light: #E53935;
  --accent-glow: rgba(198, 40, 40, 0.25);
  --gold: #D4A853;
  --gold-dark: #B8923F;
  --gold-light: #E8C87A;
  --gold-glow: rgba(212, 168, 83, 0.2);
  --success: #4CAF50;
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --gray-50: #F7F7F8;
  --gray-100: #EEEFF1;
  --gray-200: #E0E1E5;
  --gray-300: #C8CAD0;
  --gray-400: #9EA1AA;
  --gray-500: #6E727D;
  --gray-600: #4A4E59;
  --gray-700: #33363F;
  --gray-800: #23262E;
  --text: #1E2028;
  --text-light: #5A5E6A;
  --text-on-dark: #E8E9EC;
  --font-main: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', 'Noto Sans SC', serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.15);
  --shadow-glow: 0 0 24px var(--accent-glow);
  --shadow-gold: 0 0 24px var(--gold-glow);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --radius-full: 9999px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
  --max-width: 1280px;
  --header-h: 76px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-weight: 400;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-dark); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; font-weight: 700; color: var(--text); }

/* === Utilities === */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.section-dark { background: var(--primary); color: var(--text-on-dark); }
.section-alt { background: var(--gray-50); }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.text-gold { color: var(--gold); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid { display: grid; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }

/* === Section Headers === */
.section-header { text-align: center; margin-bottom: 56px; }
.section-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-glow); color: var(--accent);
  padding: 8px 20px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; margin-bottom: 16px;
}
.section-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: pulse-dot 2s infinite;
}
.section-dark .section-badge { background: rgba(198,40,40,0.2); color: var(--accent-light); }
.section-header h2 {
  font-size: 38px; margin-bottom: 16px;
  font-weight: 800; letter-spacing: -0.5px;
}
.section-dark .section-header h2 { color: var(--white); }
.section-header p { font-size: 17px; color: var(--text-light); max-width: 640px; margin: 0 auto; line-height: 1.8; }
.section-dark .section-header p { color: var(--gray-400); }

/* === Header === */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(17, 19, 24, 0.97);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  height: var(--header-h);
  transition: var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.4); }
.header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  color: var(--white); font-size: 22px; font-weight: 800;
  letter-spacing: -0.3px;
}
.logo img, .logo .logo-img { height: 46px; width: auto; transition: var(--transition); }
.logo:hover img, .logo:hover .logo-img { filter: drop-shadow(0 0 10px rgba(198,40,40,0.5)); transform: scale(1.05); }
.logo:hover { color: var(--white); }
.logo .logo-icon {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.logo span { letter-spacing: -0.3px; }
.logo .logo-dot { color: var(--accent); }

/* Nav */
.nav-menu { display: flex; align-items: center; gap: 2px; }
.nav-menu a, .nav-dropdown > span {
  color: rgba(255,255,255,0.7); padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; transition: var(--transition);
  cursor: pointer; white-space: nowrap;
}
.nav-menu a:hover, .nav-dropdown:hover > span {
  color: var(--white); background: rgba(255,255,255,0.07);
}
.nav-menu a.active { color: var(--gold); }
.nav-dropdown { position: relative; }
.nav-dropdown .dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: -8px; min-width: 250px;
  background: var(--primary-light); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: var(--transition); box-shadow: var(--shadow-xl);
  z-index: 100;
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: block; padding: 10px 16px; border-radius: var(--radius-sm);
  font-size: 13px; color: rgba(255,255,255,0.65);
}
.dropdown-menu a:hover { background: rgba(198,40,40,0.12); color: var(--accent-light); }
.header-phone {
  display: flex; align-items: center; gap: 8px;
  color: var(--white); font-weight: 600; font-size: 15px;
}
.header-phone svg { color: var(--gold); }
.btn-header {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white); padding: 10px 24px;
  border-radius: var(--radius-full); font-weight: 600; font-size: 14px;
  border: none; cursor: pointer; transition: var(--transition);
  letter-spacing: 0.3px;
}
.btn-header:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  transform: translateY(-1px); box-shadow: var(--shadow-glow); color: var(--white);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; background: none; border: none;
}
.menu-toggle span {
  width: 24px; height: 2px; background: var(--white);
  transition: var(--transition); border-radius: 2px;
}
.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); }

/* === Hero === */
.hero {
  position: relative; min-height: 620px;
  background: var(--primary); overflow: hidden;
  display: flex; align-items: center;
  padding-top: var(--header-h);
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(145deg, #111318 0%, #181b22 40%, #1a1520 70%, #111318 100%);
}
.hero-bg::before {
  content: ''; position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80"><rect fill="none" stroke="rgba(198,40,40,0.04)" stroke-width="0.5" width="80" height="80"/></svg>');
  background-size: 80px 80px;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(198,40,40,0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 30%, rgba(212,168,83,0.05) 0%, transparent 40%);
}
.hero-scanline {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-light), var(--gold), transparent);
  animation: scanline 5s linear infinite;
}
@keyframes scanline { from { top: 0; } to { top: 100%; } }
.hero-content { position: relative; z-index: 2; max-width: var(--max-width); margin: 0 auto; padding: 80px 24px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-text h1 {
  font-size: 46px; color: var(--white); margin-bottom: 20px;
  line-height: 1.2; letter-spacing: -0.5px; font-weight: 800;
}
.hero-text h1 .highlight {
  background: linear-gradient(135deg, var(--accent-light), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text p { font-size: 17px; color: var(--gray-400); margin-bottom: 32px; line-height: 1.85; }
.hero-stats {
  display: flex; gap: 36px; margin-top: 44px;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-stat-item h3 { font-size: 38px; color: var(--gold); font-weight: 800; letter-spacing: -1px; }
.hero-stat-item p { font-size: 13px; color: var(--gray-400); margin-top: 4px; font-weight: 500; letter-spacing: 0.5px; }
.hero-visual {
  position: relative; display: flex; justify-content: center;
}
.hero-visual img {
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255,255,255,0.08);
}
.hero-visual .cam-badge {
  position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%);
  background: var(--primary-light); border: 1px solid rgba(198,40,40,0.3);
  padding: 10px 24px; border-radius: var(--radius-full);
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--gold); font-weight: 600;
  white-space: nowrap;
}
.cam-badge .rec-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: var(--radius-full);
  font-weight: 600; font-size: 15px; cursor: pointer;
  transition: var(--transition); border: none; text-align: center;
  letter-spacing: 0.3px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
}
.btn-primary:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-glow);
  color: var(--white);
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
}
.btn-outline {
  background: transparent; color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline:hover { background: var(--gold); color: var(--primary); }
.btn-danger {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
}
.btn-danger:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); color: var(--white); }
.btn-white { background: var(--white); color: var(--primary); font-weight: 700; }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--primary); }
.btn-sm { padding: 10px 22px; font-size: 13px; }
.btn-lg { padding: 18px 38px; font-size: 17px; }
.btn-icon { width: 48px; height: 48px; padding: 0; border-radius: 50%; justify-content: center; }

/* === Service Cards === */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: 0; border: 1px solid var(--gray-200);
  transition: var(--transition); position: relative; overflow: hidden;
  text-decoration: none; color: inherit; display: block;
}
.service-card .service-card-img {
  width: 100%; height: 200px; overflow: hidden;
}
.service-card .service-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: var(--transition);
}
.service-card:hover .service-card-img img { transform: scale(1.06); }
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--accent), var(--gold));
  transform: scaleX(0); transition: var(--transition); transform-origin: left;
  z-index: 1;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card h3 {
  font-size: 17px; margin: 0; padding: 20px 24px 8px;
  color: var(--text); font-weight: 700;
}
.service-card p {
  font-size: 14px; color: var(--text-light); line-height: 1.7;
  padding: 0 24px 24px; margin: 0;
}
.service-card .card-icon {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(198,40,40,0.1), rgba(198,40,40,0.03));
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 20px;
}
.service-card .card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--accent); margin-top: 16px;
  padding: 0 24px 20px;
}
.service-card .card-link:hover { gap: 10px; }

/* Dark variant */
.section-dark .service-card {
  background: var(--primary-light); border-color: rgba(255,255,255,0.06);
}
.section-dark .service-card:hover { border-color: rgba(198,40,40,0.3); }
.section-dark .service-card h3 { color: var(--white); }
.section-dark .service-card p { color: var(--gray-400); }

/* === Industry Cards === */
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.industry-card {
  border-radius: var(--radius-md); overflow: hidden;
  position: relative; cursor: pointer; transition: var(--transition);
  background: var(--primary-light);
  padding: 28px 24px; text-decoration: none; display: block;
  border: 1px solid rgba(255,255,255,0.06);
}
.industry-card:hover {
  transform: translateY(-4px); border-color: rgba(198,40,40,0.25);
  box-shadow: 0 8px 30px rgba(198,40,40,0.1);
}
.industry-card h3 {
  color: var(--white); font-size: 16px; margin-bottom: 6px; font-weight: 600;
}
.industry-card p { color: var(--gray-400); font-size: 13px; line-height: 1.6; }
.industry-card::after {
  content: '\2192'; position: absolute; top: 28px; right: 24px;
  color: var(--accent); font-size: 18px; opacity: 0;
  transition: var(--transition); transform: translateX(-8px);
}
.industry-card:hover::after { opacity: 1; transform: translateX(0); }

/* === Feature List (Why Choose Us) === */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature-item {
  display: flex; gap: 18px; padding: 26px;
  background: rgba(255,255,255,0.03); border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
}
.feature-item:hover { background: rgba(198,40,40,0.06); border-color: rgba(198,40,40,0.15); }
.feature-icon {
  width: 50px; height: 50px; min-width: 50px;
  border-radius: var(--radius-sm); display: flex;
  align-items: center; justify-content: center;
  font-size: 24px;
  background: linear-gradient(135deg, rgba(198,40,40,0.15), rgba(212,168,83,0.08));
}
.feature-item h4 { font-size: 16px; color: var(--white); margin-bottom: 6px; font-weight: 600; }
.feature-item p { font-size: 14px; color: var(--gray-400); line-height: 1.7; }

/* === Testimonials === */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: var(--white); padding: 32px; border-radius: var(--radius-md);
  border: 1px solid var(--gray-200); transition: var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.testimonial-card .stars { color: var(--gold); font-size: 16px; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card blockquote { font-size: 14px; color: var(--text-light); line-height: 1.8; margin-bottom: 20px; }
.testimonial-card .author { display: flex; align-items: center; gap: 12px; }
.testimonial-card .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 16px;
}
.testimonial-card .author-info h5 { font-size: 14px; font-weight: 600; }
.testimonial-card .author-info p { font-size: 12px; color: var(--text-light); }

/* === CTA Section === */
.cta-section {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent), #8B1A1A);
  color: var(--white); text-align: center; padding: 90px 0;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80"><rect fill="none" stroke="rgba(255,255,255,0.06)" stroke-width="0.5" width="80" height="80"/></svg>');
  background-size: 80px 80px;
}
.cta-section::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0.2), transparent 70%);
}
.cta-section h2 { font-size: 38px; margin-bottom: 16px; position: relative; z-index: 1; font-weight: 800; }
.cta-section p { font-size: 18px; opacity: 0.9; margin-bottom: 32px; position: relative; z-index: 1; }
.cta-phone {
  font-size: 44px; font-weight: 800; position: relative; z-index: 1;
  margin-bottom: 28px; letter-spacing: 2px;
}
.cta-phone a { color: var(--white); }
.cta-phone a:hover { text-shadow: 0 0 30px rgba(255,255,255,0.4); color: var(--white); }
.cta-section .btn { position: relative; z-index: 1; }

/* === FAQ === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--gray-200); border-radius: var(--radius-md);
  margin-bottom: 12px; overflow: hidden; transition: var(--transition);
}
.faq-item.active { border-color: var(--accent); box-shadow: 0 2px 12px rgba(198,40,40,0.08); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; cursor: pointer; font-weight: 600;
  font-size: 15px; background: var(--white); transition: var(--transition);
}
.faq-question:hover { background: var(--gray-50); }
.faq-question .icon, .faq-toggle {
  font-size: 20px; color: var(--accent); transition: var(--transition);
  min-width: 24px; text-align: center;
}
.faq-item.active .faq-question .icon, .faq-item.active .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
  background: var(--gray-50);
}
.faq-answer p, .faq-answer-inner {
  padding: 0 24px 20px; font-size: 14px; color: var(--text-light); line-height: 1.8;
}

/* Dark FAQ */
.section-dark .faq-item { border-color: rgba(255,255,255,0.08); }
.section-dark .faq-question { background: var(--primary-light); color: var(--white); }
.section-dark .faq-question:hover { background: var(--primary-mid); }
.section-dark .faq-answer { background: rgba(0,0,0,0.2); }
.section-dark .faq-answer-inner, .section-dark .faq-answer p { color: var(--gray-400); }

/* === Inner Page Hero === */
.page-hero {
  background: var(--primary); padding: 130px 0 64px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80"><rect fill="none" stroke="rgba(198,40,40,0.03)" stroke-width="0.5" width="80" height="80"/></svg>');
  background-size: 80px 80px;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 80%, rgba(198,40,40,0.06) 0%, transparent 50%);
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--gray-400); margin-bottom: 16px;
}
.breadcrumb a { color: var(--gray-400); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--gray-500); }
.page-hero h1 { font-size: 40px; color: var(--white); margin-bottom: 12px; font-weight: 800; }
.page-hero .subtitle { font-size: 17px; color: var(--gray-400); }

/* === Page Content Layout === */
.page-content { padding: 64px 0 90px; }
.content-grid { display: grid; grid-template-columns: 1fr 340px; gap: 48px; }
.content-main {}
.content-main h2 {
  font-size: 26px; margin: 44px 0 16px; color: var(--text);
  position: relative; padding-left: 18px; font-weight: 700;
}
.content-main h2::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 4px; background: linear-gradient(to bottom, var(--accent), var(--gold));
  border-radius: 2px;
}
.content-main h3 { font-size: 20px; margin: 28px 0 12px; font-weight: 600; }
.content-main p { margin-bottom: 16px; color: var(--text-light); line-height: 1.8; }
.content-main ul, .content-main ol { margin: 16px 0; padding-left: 24px; }
.content-main ul { list-style: none; padding: 0; }
.content-main ul li { padding: 8px 0 8px 28px; position: relative; color: var(--text-light); }
.content-main ul li::before {
  content: ''; position: absolute; left: 0; top: 16px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); opacity: 0.5;
}
.content-main ol { list-style: decimal; padding-left: 24px; }
.content-main ol li { padding: 8px 0; color: var(--text-light); }
.content-main img {
  border-radius: var(--radius-md); margin: 24px 0;
  box-shadow: var(--shadow-sm);
}
.content-image { margin: 24px 0; }
.content-image img { border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }

/* Image Gallery */
.image-gallery {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  margin: 24px 0;
}
.image-gallery img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius-sm); }
.image-gallery.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* === Sidebar === */
.sidebar {}
.sidebar-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); padding: 28px; margin-bottom: 24px;
}
.sidebar-card h3, .sidebar-card h4 {
  font-size: 16px; margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}
.contact-card {
  background: linear-gradient(145deg, var(--primary), var(--primary-light));
  color: var(--white); border: none;
}
.contact-card h3, .contact-card h4 { color: var(--white); border-bottom-color: var(--accent); }
.contact-card .phone, .contact-card .contact-phone {
  font-size: 22px; font-weight: 800; color: var(--gold);
  margin: 16px 0;
}
.contact-card .phone a, .contact-card .contact-phone a { color: var(--gold); }
.contact-card .contact-phone a:hover { color: var(--gold-light); }
.contact-card p { color: var(--gray-400); font-size: 14px; margin-bottom: 12px; }
.contact-card .btn, .contact-card .btn-sidebar {
  display: block; width: 100%; text-align: center;
  margin-top: 16px; background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white); padding: 12px 20px; border-radius: var(--radius-full);
  font-weight: 600; font-size: 14px; transition: var(--transition);
}
.contact-card .btn:hover, .contact-card .btn-sidebar:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  box-shadow: var(--shadow-glow); color: var(--white);
}

/* Sidebar Services List */
.sidebar-services a, .sidebar-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--gray-100);
  color: var(--text); font-size: 14px;
}
.sidebar-services a:last-child, .sidebar-nav li:last-child a { border: none; }
.sidebar-services a:hover, .sidebar-nav a:hover { color: var(--accent); padding-left: 4px; }
.sidebar-services a .arrow { color: var(--gray-400); font-size: 12px; }
.sidebar-nav { list-style: none; padding: 0; margin: 0; }
.sidebar-nav li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--gray-100); color: var(--text); font-size: 14px; transition: var(--transition); }
.sidebar-nav li:last-child a { border-bottom: none; }
.sidebar-nav li a:hover { color: var(--accent); padding-left: 6px; }
.sidebar-nav li a.active { color: var(--accent); font-weight: 600; }

/* === Related Services === */
.related-services {
  padding: 64px 0; background: var(--gray-50);
  margin-top: 0;
}
.related-services h2 {
  font-size: 26px; margin-bottom: 32px; text-align: center; font-weight: 700;
}
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.related-card {
  background: var(--white); border-radius: var(--radius-md);
  overflow: hidden; border: 1px solid var(--gray-200);
  transition: var(--transition); display: flex;
  align-items: center; justify-content: space-between;
  padding: 20px 24px; text-decoration: none; color: inherit;
}
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent); }
.related-card h3 { font-size: 14px; margin: 0; font-weight: 600; color: var(--text); }
.related-card .related-arrow { color: var(--accent); font-size: 16px; font-weight: 600; }
.related-card img { width: 100%; height: 160px; object-fit: cover; }
.related-card .info { padding: 16px; }
.related-card h4 { font-size: 14px; margin-bottom: 4px; }
.related-card p { font-size: 12px; color: var(--text-light); }

/* === Footer === */
.site-footer {
  background: var(--primary); color: var(--gray-400);
  padding: 70px 0 0;
}
.footer-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand { margin-bottom: 0; }
.footer-logo {
  font-size: 20px; font-weight: 800; color: var(--white);
  display: block; margin-bottom: 12px;
}
.footer-brand p { font-size: 14px; line-height: 1.85; color: var(--gray-400); margin-top: 12px; }
.footer-col h4 {
  color: var(--white); font-size: 15px; margin-bottom: 20px;
  padding-bottom: 10px; border-bottom: 2px solid var(--accent);
  display: inline-block; font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 0; }
.footer-col a, .footer-col li a {
  display: block; padding: 6px 0; font-size: 14px; color: var(--gray-400);
  transition: var(--transition);
}
.footer-col a:hover, .footer-col li a:hover { color: var(--gold); padding-left: 4px; }
.contact-info { list-style: none; padding: 0; margin: 0; }
.contact-info li {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 8px 0; font-size: 14px; color: var(--gray-400);
}
.contact-info li a { display: inline; padding: 0; color: var(--gray-400); }
.contact-info li a:hover { color: var(--gold); padding-left: 0; }
.footer-cta { margin-top: 20px; }
.btn-footer {
  display: inline-block; padding: 10px 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white); border-radius: var(--radius-full);
  font-weight: 600; font-size: 14px; transition: var(--transition);
}
.btn-footer:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  box-shadow: var(--shadow-glow); color: var(--white);
  transform: translateY(-1px);
}
.footer-bottom {
  max-width: var(--max-width); margin: 0 auto;
  padding: 24px; text-align: center;
  font-size: 13px; color: var(--gray-500);
}
.footer-bottom a { color: var(--gray-400); }
.footer-bottom a:hover { color: var(--gold); }

/* === Back to Top === */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer; border: none;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: var(--transition); box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  transform: translateY(-3px); box-shadow: var(--shadow-glow);
}

/* === Scroll Animation === */
.fade-in {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-left { opacity: 0; transform: translateX(-28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in-left.visible { opacity: 1; transform: translateX(0); }

/* === Homepage Hero Specific === */
.hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.15; filter: brightness(0.3) contrast(1.2);
}
.hero-bg::after {
  background: linear-gradient(135deg, rgba(17,19,24,0.85) 0%, rgba(17,19,24,0.5) 50%, rgba(17,19,24,0.7) 100%) !important;
}
.hero h1, .hero-content h1 {
  text-shadow: 0 2px 30px rgba(0,0,0,0.8), 0 0 60px rgba(0,0,0,0.4);
  color: #fff !important;
}
.hero-subtitle {
  font-size: 20px; color: rgba(255,255,255,0.85); margin-bottom: 8px;
  font-weight: 500;
}
.hero-desc {
  font-size: 16px; color: var(--gray-400); margin-bottom: 36px; line-height: 1.7;
}
.hero-buttons {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.hero-buttons .btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white); font-weight: 700; font-size: 16px;
  transition: var(--transition); text-decoration: none;
}
.hero-buttons .btn-primary:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-glow);
  background: linear-gradient(135deg, var(--accent-light), var(--accent)); color: var(--white);
}
.hero-buttons .btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-full);
  background: transparent; border: 2px solid var(--gold);
  color: var(--gold); font-weight: 600; font-size: 16px;
  transition: var(--transition); text-decoration: none;
}
.hero-buttons .btn-secondary:hover {
  background: var(--gold); color: var(--primary);
  transform: translateY(-2px);
}
.hero-stats .stat {
  text-align: center;
}
.hero-stats .stat strong {
  display: block; font-size: 36px; color: var(--gold); font-weight: 800; letter-spacing: -1px;
}
.hero-stats .stat span {
  font-size: 13px; color: var(--gray-400); font-weight: 500;
}

/* === Section Titles (index page) === */
.section-title {
  font-size: 34px; font-weight: 800; margin-bottom: 12px;
  text-align: center; letter-spacing: -0.5px;
}
.section-subtitle {
  font-size: 16px; color: var(--text-light); text-align: center;
  margin-bottom: 48px; max-width: 600px; margin-left: auto; margin-right: auto;
}

/* === Page Subtitle (inner pages) === */
.page-subtitle {
  font-size: 17px; color: var(--gray-300); line-height: 1.7;
  max-width: 700px;
}

/* === Advantages Section === */
.advantages-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.advantage-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: 32px; text-align: center; border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.advantage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.advantage-num {
  font-size: 40px; font-weight: 800; color: var(--accent);
  margin-bottom: 8px; letter-spacing: -1px;
}
.advantage-card h3 { font-size: 17px; margin-bottom: 8px; font-weight: 700; }
.advantage-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* === Testimonials (index page) === */
.testimonials { background: var(--gray-50); }
.testimonial-stars { color: var(--gold); font-size: 18px; margin-bottom: 16px; letter-spacing: 3px; }
.testimonial-text { font-size: 15px; color: var(--text-light); line-height: 1.8; margin-bottom: 20px; }
.testimonial-author { display: flex; flex-direction: column; gap: 2px; }
.testimonial-author strong { font-size: 15px; color: var(--text); }
.testimonial-author span { font-size: 13px; color: var(--text-light); }

/* === CTA Buttons === */
.cta-buttons {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.cta-buttons .btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px; border-radius: var(--radius-full);
  background: var(--white); color: var(--accent-dark);
  font-weight: 700; font-size: 16px; transition: var(--transition);
  text-decoration: none;
}
.cta-buttons .btn-primary:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--accent-dark);
}
.cta-buttons .btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 36px; border-radius: var(--radius-full);
  background: transparent; border: 2px solid rgba(255,255,255,0.5);
  color: var(--white); font-weight: 600; font-size: 16px;
  transition: var(--transition); text-decoration: none;
}
.cta-buttons .btn-secondary:hover {
  background: rgba(255,255,255,0.15); border-color: var(--white); color: var(--white);
}

/* === Content Section (inner pages) === */
.content-section { padding: 64px 0 0; }
.main-content {}

@media (max-width: 1024px) {
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .advantages-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .cta-buttons { flex-direction: column; align-items: center; }
}

/* === FAQ Section === */
.faq-section { margin-top: 0; padding-top: 0; }
.faq-section.section { background: var(--gray-50); }
.faq-section h2 { font-size: 28px; margin-bottom: 32px; text-align: center; font-weight: 800; }
.page-inner .faq-section { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--gray-200); background: none; }

/* === Industry Solutions Section === */
.industry-solutions { background: var(--primary); color: var(--white); }
.industry-solutions .section-title { color: var(--white); }
.industry-solutions .section-subtitle { color: var(--gray-400); }

/* === Responsive === */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { display: none; }
  .hero-stats { justify-content: center; }
  .hero-text h1 { font-size: 36px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }

  /* General */
  .section { padding: 48px 0; }
  .container { padding: 0 16px; }
  body { line-height: 1.7; }

  /* Header */
  .nav-menu { display: none; }
  .nav-menu.open {
    display: flex; flex-direction: column; position: fixed;
    top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--primary); padding: 16px;
    overflow-y: auto; gap: 0; z-index: 999;
  }
  .nav-menu.open a, .nav-menu.open .nav-dropdown > span {
    padding: 14px 16px; font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: block; width: 100%;
  }
  .nav-dropdown .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; border: none; box-shadow: none;
    padding: 0 0 0 16px; display: none;
  }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .menu-toggle { display: flex; }
  .header-phone { display: none; }
  .btn-header { padding: 8px 16px; font-size: 13px; }
  .logo { font-size: 18px; gap: 8px; }
  .logo img, .logo .logo-img { height: 36px; }

  /* Hero */
  .hero { min-height: auto; padding-top: var(--header-h); }
  .hero-content { padding: 48px 16px 56px; }
  .hero-content h1, .hero h1, .hero-text h1 { font-size: 26px; line-height: 1.3; letter-spacing: 0; }
  .hero-subtitle { font-size: 15px; }
  .hero-desc { font-size: 13px; margin-bottom: 24px; }
  .hero-buttons { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%; justify-content: center; padding: 14px 20px; font-size: 15px;
  }
  .hero-stats { flex-wrap: wrap; gap: 0; margin-top: 32px; padding-top: 24px; }
  .hero-stats .stat { flex: 1; min-width: 33%; }
  .hero-stats .stat strong { font-size: 26px; }
  .hero-stats .stat span { font-size: 11px; }
  .hero-stat-item h3 { font-size: 26px; }
  .hero-stat-item { flex: 1; min-width: 33%; text-align: center; }

  /* Section Headers */
  .section-title { font-size: 24px; }
  .section-subtitle { font-size: 14px; margin-bottom: 32px; }
  .section-header h2 { font-size: 24px; }
  .section-header p { font-size: 14px; }

  /* Service Cards */
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card .service-card-img { height: 180px; }
  .service-card h3 { padding: 16px 16px 6px; font-size: 16px; }
  .service-card p { padding: 0 16px 16px; font-size: 13px; }

  /* Industry Cards */
  .industry-grid { grid-template-columns: 1fr; gap: 12px; }
  .industry-card { padding: 20px 18px; }
  .industry-card h3 { font-size: 15px; }
  .industry-card p { font-size: 12px; }

  /* Advantages */
  .advantages-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .advantage-card { padding: 20px 14px; }
  .advantage-num { font-size: 30px; }
  .advantage-card h3 { font-size: 14px; }
  .advantage-card p { font-size: 12px; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }
  .testimonial-card { padding: 24px; }
  .testimonial-text { font-size: 14px; }

  /* CTA */
  .cta-section { padding: 48px 0; }
  .cta-section h2 { font-size: 24px; }
  .cta-section p { font-size: 15px; }
  .cta-phone { font-size: 24px; letter-spacing: 0; }
  .cta-buttons { flex-direction: column; align-items: stretch; padding: 0 16px; }
  .cta-buttons .btn-primary,
  .cta-buttons .btn-secondary {
    width: 100%; justify-content: center; padding: 14px 20px; font-size: 15px;
  }

  /* FAQ */
  .faq-section h2 { font-size: 22px; margin-bottom: 20px; }
  .faq-question { padding: 16px; font-size: 14px; }
  .faq-answer p, .faq-answer-inner { padding: 0 16px 16px; font-size: 13px; }
  .faq-item { margin-bottom: 8px; }

  /* Inner Pages */
  .page-hero { padding: 90px 0 32px; }
  .page-hero h1 { font-size: 24px; }
  .page-subtitle { font-size: 14px; }
  .breadcrumb { font-size: 12px; }
  .content-section { padding: 32px 0 0; }
  .content-grid { grid-template-columns: 1fr; gap: 24px; }
  .sidebar { order: -1; }
  .content-main h2 { font-size: 20px; margin: 28px 0 12px; }
  .content-main h3 { font-size: 17px; margin: 20px 0 8px; }
  .content-main p { font-size: 14px; }

  /* Sidebar */
  .sidebar-card { padding: 20px; }
  .contact-card .contact-phone { font-size: 20px; }

  /* Related */
  .related-services { padding: 40px 0; }
  .related-services h2 { font-size: 20px; margin-bottom: 20px; }
  .related-grid { grid-template-columns: 1fr; gap: 12px; }
  .related-card { padding: 16px; }

  /* Footer */
  .site-footer { padding: 40px 0 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
  .footer-logo { font-size: 18px; }
  .footer-brand p { font-size: 13px; }
  .footer-col h4 { font-size: 14px; margin-bottom: 14px; }
  .footer-col a, .footer-col li a { font-size: 13px; padding: 5px 0; }
  .contact-info li { font-size: 13px; padding: 6px 0; }
  .footer-bottom { padding: 16px; font-size: 11px; }
  .btn-footer { font-size: 13px; padding: 10px 20px; }

  /* Buttons */
  .btn { padding: 12px 22px; font-size: 14px; }
  .btn-lg { padding: 14px 28px; font-size: 15px; }

  /* Image Gallery */
  .image-gallery { grid-template-columns: 1fr; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-item { padding: 18px; }
  .feature-icon { width: 42px; height: 42px; min-width: 42px; font-size: 20px; }
  .feature-item h4 { font-size: 15px; }
  .feature-item p { font-size: 13px; }

  /* Back to top */
  .back-to-top { width: 40px; height: 40px; font-size: 16px; bottom: 16px; right: 16px; }
}

/* === Extra small screens (under 380px) === */
@media (max-width: 380px) {
  .hero-content h1, .hero h1, .hero-text h1 { font-size: 22px; }
  .hero-stats .stat strong { font-size: 22px; }
  .advantages-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 20px; }
  .cta-phone { font-size: 20px; }
}

/* === Mobile sticky CTA bar === */
@media (max-width: 768px) {
  .mobile-cta-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 998;
    background: var(--primary); padding: 10px 16px;
    display: flex; gap: 10px; align-items: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  }
  .mobile-cta-bar a {
    flex: 1; text-align: center; padding: 12px 8px;
    border-radius: var(--radius-full); font-weight: 700; font-size: 14px;
    text-decoration: none;
  }
  .mobile-cta-bar .cta-call {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--white);
  }
  .mobile-cta-bar .cta-quote {
    background: var(--gold); color: var(--primary);
  }
  /* Add bottom padding to body to prevent content being hidden behind fixed bar */
  body.page-home, body.page-inner { padding-bottom: 64px; }
  .site-footer { margin-bottom: 0; }
}

/* === Mobile CTA bar - hidden on desktop === */
.mobile-cta-bar { display: none; }

/* === Lazy Load === */
img[loading="lazy"] { opacity: 0; transition: opacity 0.5s ease; }
img[loading="lazy"].loaded, img[loading="lazy"][complete] { opacity: 1; }

/* === Print === */
@media print {
  .site-header, .site-footer, .back-to-top, .sidebar, .cta-section { display: none; }
  .content-grid { grid-template-columns: 1fr; }
  body { font-size: 12pt; color: #000; }
}
