/* ============================================
   SolidRed - Premium Design System
   ============================================ */

:root {
  --color-primary: #dc2626;
  --color-primary-dark: #991b1b;
  --color-primary-light: #fca5a5;
  --color-primary-glow: rgba(220, 38, 38, 0.15);
  --color-text: #111827;
  --color-text-secondary: #4b5563;
  --color-text-muted: #9ca3af;
  --color-bg: #ffffff;
  --color-bg-soft: #f9fafb;
  --color-bg-subtle: #f3f4f6;
  --color-bg-dark: #0f172a;
  --color-bg-dark-lighter: #1e293b;
  --color-border: #e5e7eb;
  --color-border-light: #f3f4f6;
  --color-white: #ffffff;
  --gradient-primary: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-glow: 0 0 40px rgba(220, 38, 38, 0.1);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-height: 76px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: all var(--transition-fast); }
a:hover { color: var(--color-primary-dark); }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================
   Header - Glassmorphism
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1000;
  transition: all var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 20px rgba(0, 0, 0, 0.04);
}

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

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

.logo img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--color-primary);
}

/* Navigation */
.nav { display: flex; align-items: center; gap: 2px; }

.nav a {
  padding: 8px 18px;
  color: var(--color-text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--color-primary);
  background: var(--color-primary-glow);
}

.nav-dropdown { position: relative; }

.nav-dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: -8px;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,0.04);
  min-width: 240px;
  padding: 8px;
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-content { display: block; }

.nav-dropdown-content a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  color: var(--color-text-secondary);
}

.nav-dropdown-content a:hover {
  background: var(--color-primary-glow);
  color: var(--color-primary);
}

.nav-dropdown > a::after {
  content: '▾';
  font-size: 0.65em;
  opacity: 0.4;
  margin-left: 4px;
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ============================================
   Hero - Cinematic
   ============================================ */
.hero {
  margin-top: var(--header-height);
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.12); }
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.7) 40%, rgba(220, 38, 38, 0.15) 100%),
    radial-gradient(ellipse at 20% 50%, rgba(220, 38, 38, 0.12) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 40px 0;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}

.hero h1 span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  line-height: 1.75;
  max-width: 520px;
  font-weight: 400;
}

/* ============================================
   Buttons - Refined
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.btn-outline {
  background: rgba(255,255,255,0.08);
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  color: var(--color-white);
  border-color: rgba(255,255,255,0.5);
}

.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================
   Sections - Elegant
   ============================================ */
.section { padding: 100px 0; }

.section-alt {
  background: var(--color-bg-soft);
}

.section-dark {
  background: var(--gradient-dark);
  color: var(--color-white);
  position: relative;
}

.section-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.3), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 14px;
  letter-spacing: -0.8px;
}

.section-dark .section-header h2 { color: var(--color-white); }

.section-header p {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-dark .section-header p { color: rgba(255,255,255,0.6); }

.accent-line {
  width: 48px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
  margin: 20px auto 0;
}

/* ============================================
   Cards - Premium
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--color-border-light);
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

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

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

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover .card-img { transform: scale(1.03); }

.card-body { padding: 32px; }

.card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
  letter-spacing: -0.3px;
}

.card-body p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 22px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all var(--transition-fast);
}

.card-link:hover { gap: 14px; color: var(--color-primary-dark); }

/* ============================================
   Features Grid
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-item {
  display: flex;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.feature-item:hover {
  background: var(--color-white);
  border-color: var(--color-border-light);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--color-primary-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.feature-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.feature-item p {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* ============================================
   Stats - Refined
   ============================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  padding: 56px 0;
}

.stat-item {
  padding: 24px;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.stat-item h3 {
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
  letter-spacing: -1px;
  line-height: 1;
}

.stat-item p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   Content Block
   ============================================ */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.content-block.reverse { direction: rtl; }
.content-block.reverse > * { direction: ltr; }

.content-block img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.content-text h2 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.8px;
  line-height: 1.2;
}

.content-text p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.85;
  margin-bottom: 16px;
}

.content-text ul { margin: 20px 0; }

.content-text ul li {
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
  font-size: 0.92rem;
  color: var(--color-text-secondary);
}

.content-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
  margin-top: var(--header-height);
  padding: 72px 0;
  background: var(--gradient-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.3), transparent);
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.15), transparent);
}

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 12px;
  letter-spacing: -0.8px;
}

.page-header p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
}

.breadcrumb {
  margin-top: 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  font-weight: 400;
}

.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--color-white); }

/* ============================================
   Service Detail
   ============================================ */
.service-detail { padding: 72px 0; }
.service-detail .container { max-width: 860px; }

.service-detail h2 {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--color-text);
  letter-spacing: -0.4px;
}

.service-detail p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.85;
  margin-bottom: 16px;
}

.service-detail ul { margin: 16px 0 28px; }

.service-detail ul li {
  padding: 7px 0;
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  list-style: none;
  padding-left: 24px;
  position: relative;
}

.service-detail ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 600;
}

.highlight-box {
  background: var(--color-bg-soft);
  border-left: 3px solid var(--color-primary);
  padding: 28px 32px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 36px 0;
}

.highlight-box h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.highlight-box p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* ============================================
   Contact Form - Elegant
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
}

.contact-form {
  background: var(--color-white);
  padding: 44px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-light);
}

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

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 18px;
  font-size: 0.93rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  transition: all var(--transition-fast);
  background: var(--color-bg-soft);
  color: var(--color-text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-white);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

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

.contact-info { padding: 20px 0; }

.contact-info h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 28px;
  letter-spacing: -0.4px;
}

.contact-item {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.contact-item-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--color-primary-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.contact-item h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

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

/* ============================================
   Footer - Premium Dark
   ============================================ */
.footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.6);
  padding: 72px 0 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.3), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.75;
  margin-top: 14px;
  color: rgba(255,255,255,0.5);
}

.footer h4 {
  color: var(--color-white);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer ul li { margin-bottom: 12px; }

.footer ul li a {
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.footer ul li a:hover { color: var(--color-white); }

.footer-bottom {
  padding: 28px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .content-block { grid-template-columns: 1fr; gap: 48px; }
  .content-block.reverse { direction: ltr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-height: 68px; }

  .menu-toggle { display: flex; }

  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }

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

  .nav a {
    padding: 14px 18px;
    font-size: 1rem;
    width: 100%;
    border-radius: var(--radius-sm);
  }

  .nav-dropdown-content {
    position: static;
    box-shadow: none;
    padding-left: 20px;
    display: none;
  }

  .nav-dropdown.open .nav-dropdown-content { display: block; }

  .hero { min-height: auto; padding: 64px 0; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }

  .cards-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-item h3 { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }
  .section-header h2 { font-size: 1.5rem; }
  .page-header { padding: 56px 0; }
  .page-header h1 { font-size: 1.7rem; }
  .btn-group { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .contact-form { padding: 28px; }
}

/* ============================================
   Utilities
   ============================================ */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Stagger children */
.fade-in.visible .card:nth-child(1) { transition-delay: 0s; }
.fade-in.visible .card:nth-child(2) { transition-delay: 0.08s; }
.fade-in.visible .card:nth-child(3) { transition-delay: 0.16s; }
