/* ============================================
   DESIGN SYSTEM - Ethos Consulting
   ============================================ */

/* CSS Variables */
:root {
  --primary: #0A0E27;
  --secondary: #0D2149;
  --accent: #F2A900;
  --bg-light: #FFFFFF;
  --bg-grey: #F8F9FA;
  --text-dark: #1A1A1A;
  --font-primary: 'Inter', 'Montserrat', sans-serif;
}

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

body { 
  font-family: var(--font-primary);
  color: var(--text-dark); 
  line-height: 1.5; 
  font-weight: 400;
}

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

.container { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 2rem; 
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-weight: 900;
  font-size: 3.5rem;
  letter-spacing: -0.03em;
}

h2 {
  font-weight: 800;
  font-size: 2.5rem;
}

h3 {
  font-weight: 700;
  font-size: 1.75rem;
}

p {
  font-weight: 400;
  line-height: 1.6;
}

/* ============================================
   HEADER - Sticky Navigation
   ============================================ */

.header { 
  background: var(--bg-light); 
  box-shadow: 0 2px 20px rgba(10, 14, 39, 0.08); 
  position: sticky; 
  top: 0; 
  z-index: 1000;
  transition: all 0.3s ease;
}

.header .container { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 1.25rem 2rem;
}

.logo img { 
  height: 60px;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: scale(1.05);
}

.nav ul { 
  display: flex; 
  gap: 2.5rem; 
  list-style: none; 
  align-items: center;
}

.nav a { 
  text-decoration: none; 
  color: var(--text-dark); 
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

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

.nav a:hover,
.nav a.active { 
  color: var(--secondary);
}

/* Dropdown Menu */
.nav .dropdown {
  position: relative;
}

.nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-light);
  box-shadow: 0 8px 24px rgba(10, 14, 39, 0.15);
  border-radius: 8px;
  padding: 1rem 0;
  min-width: 220px;
  margin-top: 0.5rem;
}

.nav .dropdown:hover .dropdown-menu {
  display: block;
  animation: fadeInDown 0.3s ease;
}

.nav .dropdown-menu li {
  padding: 0;
}

.nav .dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-dark);
  font-weight: 500;
}

.nav .dropdown-menu a::after {
  display: none;
}

.nav .dropdown-menu a:hover {
  background: var(--bg-grey);
  color: var(--secondary);
}

/* Nested dropdown for Automotive */
.nav .dropdown-menu .nested {
  position: relative;
}

.nav .dropdown-menu .nested-menu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  background: var(--bg-light);
  box-shadow: 0 8px 24px rgba(10, 14, 39, 0.15);
  border-radius: 8px;
  padding: 1rem 0;
  min-width: 200px;
  margin-left: 0.5rem;
}

.nav .dropdown-menu .nested:hover .nested-menu {
  display: block;
}

/* CTA Button in Header */
.nav .btn-cta {
  background: var(--accent);
  color: var(--bg-light);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav .btn-cta::after {
  display: none;
}

.nav .btn-cta:hover {
  background: #d99300;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(242, 169, 0, 0.3);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero { 
  background: linear-gradient(135deg, rgba(10, 14, 39, 0.92), rgba(13, 33, 73, 0.88)), 
              url('/images/hero-bg.jpg') center/cover no-repeat; 
  color: var(--bg-light); 
  text-align: center; 
  padding: 10rem 2rem 8rem; 
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(242, 169, 0, 0.1), transparent 50%);
  animation: parallaxBg 20s ease-in-out infinite;
}

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

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

.hero-content { 
  position: relative; 
  z-index: 2; 
  max-width: 900px; 
  margin: 0 auto;
  animation: fadeInUp 1s ease-out;
}

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

.hero h1 { 
  font-family: var(--font-primary);
  font-size: 4rem; 
  font-weight: 900;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero p { 
  font-size: 1.5rem; 
  margin-bottom: 2.5rem;
  font-weight: 400;
  line-height: 1.6;
  opacity: 0.95;
}

.hero .btn-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   BUTTONS & CTAs
   ============================================ */

.btn { 
  display: inline-block; 
  padding: 1rem 2.5rem; 
  border-radius: 8px; 
  text-decoration: none; 
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary { 
  background: var(--accent);
  color: var(--bg-light);
}

.btn-primary:hover { 
  background: #d99300;
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(242, 169, 0, 0.3);
}

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

.btn-secondary:hover {
  background: var(--bg-light);
  color: var(--primary);
  transform: scale(1.05);
}

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

.btn-outline:hover {
  background: var(--secondary);
  color: var(--bg-light);
  transform: scale(1.05);
}

/* ============================================
   SECTIONS & CONTENT
   ============================================ */

section {
  padding: 5rem 0;
}

section h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary);
}

.solutions-preview {
  background: var(--bg-grey);
  padding: 6rem 0;
}

.value-proposition {
  padding: 6rem 0;
  background: var(--bg-light);
}

.value-proposition .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.value-proposition img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(10, 14, 39, 0.15);
}

.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--bg-light);
  text-align: center;
  padding: 5rem 2rem;
}

.cta-section h2 {
  color: var(--bg-light);
  margin-bottom: 1.5rem;
}

.cta-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* Grid */
.grid { 
  display: grid; 
  gap: 2.5rem; 
}

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

.solution-card { 
  background: var(--bg-light); 
  padding: 2.5rem; 
  border-radius: 12px; 
  text-align: center; 
  box-shadow: 0 8px 24px rgba(10, 14, 39, 0.08); 
  transition: all 0.4s ease;
  text-decoration: none;
  color: var(--text-dark);
  border: 2px solid transparent;
}

.solution-card:hover { 
  transform: translateY(-12px);
  box-shadow: 0 16px 48px rgba(10, 14, 39, 0.15);
  border-color: var(--accent);
}

.solution-card img { 
  height: 100px; 
  margin: 0 auto 1.5rem;
  object-fit: contain;
}

.solution-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.solution-card p {
  color: var(--text-dark);
  line-height: 1.6;
}

/* Scroll Reveal Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================
   PAGE HERO (for internal pages)
   ============================================ */

.page-hero { 
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--bg-light); 
  text-align: center; 
  padding: 5rem 2rem;
  position: relative;
}

.page-hero.small { 
  padding: 4rem 2rem; 
}

.page-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 1.5rem 0;
  background: var(--bg-grey);
}

.breadcrumbs ul {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs li::after {
  content: '/';
  color: var(--text-dark);
  opacity: 0.5;
}

.breadcrumbs li:last-child::after {
  display: none;
}

.breadcrumbs a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* Content Sections */
.content {
  padding: 5rem 0;
}

.content h2 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 2.25rem;
}

.content h3 {
  color: var(--secondary);
  margin-bottom: 1rem;
  margin-top: 2rem;
  font-size: 1.75rem;
}

.content p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.content ul, .content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.content li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.content strong {
  color: var(--primary);
  font-weight: 600;
}

/* Solutions Full */
.solutions-full {
  padding: 5rem 0;
}

.solution-detail { 
  display: flex; 
  align-items: center; 
  gap: 3rem; 
  margin-bottom: 4rem; 
  padding: 3rem; 
  background: var(--bg-light);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(10, 14, 39, 0.08);
  transition: all 0.3s ease;
}

.solution-detail:hover {
  box-shadow: 0 12px 32px rgba(10, 14, 39, 0.12);
  transform: translateY(-4px);
}

.solution-detail img { 
  width: 140px; 
  flex-shrink: 0;
  object-fit: contain;
}

.solution-detail h2 {
  text-align: left;
  margin-bottom: 1rem;
  color: var(--primary);
}

.solution-detail p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* FAQ Section */
.faq-section {
  padding: 5rem 0;
  background: var(--bg-grey);
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary);
}

.faq-item {
  background: var(--bg-light);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(10, 14, 39, 0.06);
}

.faq-item h3 {
  color: var(--secondary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.faq-item p {
  line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */

.footer { 
  background: var(--primary);
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 2rem; 
}

.footer-grid { 
  display: grid; 
  gap: 3rem; 
  margin-bottom: 3rem; 
}

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

.footer h4 {
  color: var(--bg-light);
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.footer p {
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 0.75rem;
}

.footer a { 
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 50px;
}

.footer-description {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 400px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-3px);
  padding-left: 0;
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: var(--bg-light);
}

.footer-bottom { 
  text-align: center; 
  font-size: 0.95rem; 
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 2rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .nav { 
    display: none; 
    position: absolute; 
    top: 100%; 
    left: 0; 
    width: 100%; 
    background: var(--bg-light);
    box-shadow: 0 10px 30px rgba(10, 14, 39, 0.15);
    padding: 1.5rem;
  }

  .nav.open { 
    display: block; 
  }

  .nav ul { 
    flex-direction: column;
    gap: 0;
  }

  .nav li {
    border-bottom: 1px solid var(--bg-grey);
    padding: 0.75rem 0;
  }

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

  .nav .dropdown-menu {
    position: static;
    box-shadow: none;
    padding: 0.5rem 0 0 1rem;
    margin-top: 0.5rem;
  }

  .nav .dropdown-menu .nested-menu {
    position: static;
    margin-left: 1rem;
    margin-top: 0.5rem;
  }

  .menu-toggle {
    display: block;
  }

  .hero { 
    padding: 6rem 1.5rem 5rem;
  }

  .hero h1 { 
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.25rem;
  }

  .hero .btn-group {
    flex-direction: column;
  }

  .page-hero h1 {
    font-size: 2.25rem;
  }

  .solution-detail { 
    flex-direction: column; 
    text-align: center;
    padding: 2rem;
  }

  .solution-detail img {
    width: 100px;
  }

  .value-proposition .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}