@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --primary: #0f172a; /* Deep blue, trust */
  --primary-light: #1e293b;
  --secondary: #f97316; /* Bright orange, warmth/urgent */
  --secondary-hover: #ea580c;
  --text-dark: #334155;
  --text-light: #f8fafc;
  --bg-light: #f1f5f9;
  --bg-white: #ffffff;
  --border: #e2e8f0;
  
  /* Typography */
  --font-main: 'Inter', sans-serif;
  
  /* Shadows & Radius */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.3s ease-in-out;
}

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

html {
  font-family: var(--font-main);
  scroll-behavior: smooth;
  font-size: 16px;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: clip;
  max-width: 100vw;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: clip;
  max-width: 100vw;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  line-height: 1.2;
  font-weight: 700;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.py-section { padding: 5rem 0; }
.hidden { display: none !important; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 1rem;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--text-light);
}

.btn-primary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--text-light);
}

/* Navbar */
.header {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.header-top {
  background-color: var(--primary);
  color: var(--text-light);
  font-size: 0.875rem;
  padding: 0.5rem 0;
}

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

.header-top-info {
  display: flex;
  gap: 1.5rem;
}

.header-top-info a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-top-info a:hover {
  color: var(--secondary);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-dark);
}

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

.mobile-menu-btn {
  display: none;
  background: var(--secondary);
  border: 1px solid var(--secondary-hover);
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  transition: var(--transition);
  animation: pulse-orange 2s infinite;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

.mobile-menu-btn:active {
  background: var(--secondary-hover);
  transform: scale(0.95);
}

@keyframes pulse-orange {
  0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(249, 115, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

/* CTA Sticky Mobile */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-white);
  box-shadow: 0 -4px 6px -1px rgb(0 0 0 / 0.1);
  z-index: 999;
  padding: 0.75rem;
  text-align: center;
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: var(--text-light);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  color: var(--text-light);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-col p {
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--primary-light);
  color: #94a3b8;
  font-size: 0.875rem;
}

/* Accordion & Error Codes */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}
.brand-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
}
.brand-card:hover, .brand-card.active {
  background-color: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.brand-card:hover i, .brand-card.active i {
  color: var(--text-light) !important;
}
.error-section {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}
.error-section.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.accordion {
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  overflow: hidden;
}
.accordion-header {
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background-color: #f8fafc;
  font-weight: 600;
  transition: var(--transition);
}
.accordion-header:hover {
  background-color: #f1f5f9;
}
.accordion-header i {
  transition: transform 0.3s;
}
.accordion.active .accordion-header {
  background-color: var(--primary);
  color: var(--text-light);
}
.accordion.active .accordion-header i {
  transform: rotate(180deg);
}
.accordion-body {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
}
.accordion.active .accordion-body {
  padding: 1.5rem;
  max-height: 500px; /* arbitrary max height for transition */
  border-top: 1px solid var(--border);
}

/* Floating WhatsApp */
.floating-wa {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  border-radius: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4), inset 0 -2px 0 rgba(0,0,0,0.1);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  animation: pulse-wa 2.5s infinite;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.floating-wa i {
  font-size: 1.5rem;
}
.wa-text {
  font-size: 1rem;
  font-weight: 700;
}
.floating-wa:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 25px rgba(37, 211, 102, 0.5), inset 0 -2px 0 rgba(0,0,0,0.1);
  color: #fff;
}
@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Media Queries */
@media (max-width: 768px) {
  .header-top {
    display: none;
  }
  
  .nav-links {
    display: none; /* Hidden by default on mobile */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    flex-direction: column;
    padding: 1.5rem 0;
    box-shadow: var(--shadow-md);
    gap: 1.5rem;
  }
  
  .nav-links.show {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
    margin-right: 0.5rem; /* Moved away from edge */
  }

  .sticky-cta {
    display: flex;
    gap: 1rem;
  }
  
  .sticky-cta .btn {
    flex: 1;
    padding: 0.75rem;
  }
  
  body {
    padding-bottom: 70px; /* Space for sticky cta */
  }
  
  .py-section { padding: 3rem 0; }
  
  .floating-wa {
    bottom: 85px; /* Above the sticky CTA */
    right: 15px; /* Better alignment on mobile right corner */
    padding: 0.6rem 1.25rem;
  }
  .floating-wa i {
    font-size: 1.25rem;
  }
  .wa-text {
    font-size: 0.9rem;
  }
}
