/* -------------------------------------------------------------
 * Wonderfix UI/UX Pro Max Enterprise Master CSS
 * Corporate Light Theme + Brand Crimson Red (#E30613 / #DC2626)
 * Full Responsive Mobile/Tablet & Full-Bleed Enterprise Footer
 * ------------------------------------------------------------- */

:root {
  /* Corporate Palette Tokens */
  --bg-main: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark-footer: #0f172a;   /* Deep Slate Navy for Enterprise Footer */
  
  /* Text Colors */
  --text-main: #0f172a;        /* Dark Slate 900 */
  --text-muted: #475569;       /* Slate 600 */
  --text-light: #64748b;

  /* Brand Colors */
  --brand-red: #e30613;        /* Original Wonderfix Red */
  --primary-cta: #dc2626;      /* Bright Crimson Red */
  --primary-hover: #b91c1c;    /* Deep Red Hover */
  --primary-subtle: rgba(227, 6, 19, 0.08);

  /* Borders & Shadows */
  --border-color: #e2e8f0;
  --border-hover: #cbd5e1;
  --shadow-subtle: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  --shadow-elevated: 0 12px 30px -5px rgba(15, 23, 42, 0.1);
  --shadow-red-glow: 0 8px 25px -5px rgba(220, 38, 38, 0.3);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout Spacing */
  --container-max: 1280px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-subtle);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

ul, ol {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* -------------------------------------------------------------
 * Enterprise Header & Mobile/Tablet Drawer Navigation
 * ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.6rem 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.04);
}

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

.brand-logo .logo-img {
  height: 29px; /* Scaled down 30% for compact high-density header layout */
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

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

.main-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav-link {
  font-weight: 600;
  font-size: 0.88rem;
  color: #334155;
  padding: 0.35rem 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-red);
}

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

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 270px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.8rem;
  box-shadow: var(--shadow-elevated);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1100;
}

.nav-item.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.dropdown-menu li a:hover {
  background: var(--primary-subtle);
  color: var(--brand-red);
}

.mobile-drawer-cta {
  display: none;
  padding: 1.2rem 0 0.5rem 0;
  border-top: 1px solid var(--border-color);
  margin-top: 1rem;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--brand-red);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-red-glow);
  transform: translateY(-2px);
}

.btn-outline {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
  background: var(--primary-subtle);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  color: var(--text-main);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Direct Answer (BLUF) Styling */
.bluf-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--brand-red);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.8rem;
  margin: 1.5rem 0 2.5rem 0;
  box-shadow: var(--shadow-subtle);
}

.bluf-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand-red);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.bluf-text {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.7;
  font-weight: 500;
}

/* Universal Sub-Page Hero Banner Standard Spacing */
.about-hero, .service-hero, .page-hero {
  padding: 4.5rem 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

/* Badges & Section Headers */
.sub-badge {
  display: inline-block;
  background: var(--primary-subtle);
  color: var(--brand-red);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.8rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 720px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

/* FAQ Accordion Section */
.section-faq {
  padding: 5rem 0;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
}

.faq-accordion {
  max-width: 900px;
  margin: 3rem auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item.active {
  border-color: var(--brand-red);
  background: #ffffff;
  box-shadow: var(--shadow-subtle);
}

.faq-question {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-answer {
  padding: 0 1.5rem 1.2rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .q-icon {
  transform: rotate(45deg);
  color: var(--brand-red);
}

/* -------------------------------------------------------------
 * Full-Bleed 100% Viewport Width Enterprise Corporate Footer
 * ------------------------------------------------------------- */
.site-footer {
  width: 100%;
  background: var(--bg-dark-footer);
  color: #f8fafc;
  padding: 5rem 0 2rem 0;
  margin-top: 5rem;
  border-top: 4px solid var(--brand-red);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.5fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-logo {
  height: 40px;
  margin-bottom: 1.2rem;
  filter: brightness(0) invert(1);
}

.footer-desc {
  color: #94a3b8;
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.eeat-badges {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.badge-item {
  font-size: 0.85rem;
  color: #34d399;
  font-weight: 600;
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.4rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  background: var(--brand-red);
  border-radius: 2px;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.93rem;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 5px;
}

.text-admin-link {
  color: #64748b !important;
}

.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: #94a3b8;
  font-size: 0.93rem;
  margin-bottom: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.8rem;
  text-align: center;
  color: #64748b;
  font-size: 0.88rem;
}

/* -------------------------------------------------------------
 * Full Mobile & Tablet Responsiveness (1024px, 768px, 480px)
 * ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .site-header {
    padding: 0.8rem 0;
  }

  .desktop-only-cta {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  /* Full Width Mobile Drawer Navigation */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 1.5rem 1.8rem;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 0.7rem 0;
    width: 100%;
    justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
  }

  /* Mobile Dropdown Sub-menu */
  .dropdown-menu {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    display: none;
    margin-top: 0.4rem;
  }

  .nav-item.dropdown.open .dropdown-menu {
    display: block;
  }

  .mobile-drawer-cta {
    display: block;
  }

  /* Footer Tablet Breakdown */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .brand-logo .logo-img {
    height: 26px;
  }
  .site-footer {
    padding: 3.5rem 0 1.5rem 0;
  }
}

/* Universal Page Responsive Rules (Mobile & Tablet) */
@media (max-width: 1024px) {
  .service-detail-grid,
  .contact-grid,
  .hero-grid,
  .timeline-grid,
  div[style*="grid-template-columns: 1fr 1.1fr"],
  div[style*="grid-template-columns: 1.1fr 1fr"],
  div[style*="grid-template-columns: 1.2fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
  
  .services-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .services-grid,
  .product-grid {
    grid-template-columns: 1fr !important;
  }
  
  .section-title {
    font-size: 1.8rem !important;
  }
  
  .bluf-box {
    padding: 1.2rem !important;
  }
}

