/* InfoVolarisMX Global Styles */
:root {
  /* Colors */
  --color-primary: #2F2A86;
  --color-secondary: #00B8D4;
  --color-accent: #D81B60;
  --color-text-main: #333333;
  --color-text-muted: #666666;
  --color-bg-base: #FFFFFF;
  --color-bg-soft: #F4F6F9;
  --color-border: #E0E4E8;
  --color-success: #16A34A;
  --color-warning: #F59E0B;
  --color-error: #DC2626;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Dimensions */
  --max-width: 1300px;
  --header-height: 70px;
  --top-notice-height: 40px;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

body {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: var(--color-bg-base);
  line-height: 1.6;
  padding-bottom: 70px; /* Space for mobile bottom bar */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-secondary);
}

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

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

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; margin-top: 2rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; margin-top: 1.5rem; }

/* Top Notice */
.top-notice {
  background-color: var(--color-bg-soft);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.top-notice a.btn-outline-small {
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.75rem;
}

.top-notice a.btn-outline-small:hover {
  background-color: var(--color-primary);
  color: white;
}

@media (min-width: 768px) {
  .top-notice {
    flex-direction: row;
    height: var(--top-notice-height);
  }
}

/* Header */
.main-header {
  background-color: var(--color-bg-base);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 1rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 2rem;
}

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

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

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--color-bg-base);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
  z-index: 1000;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 0;
}

.dropdown-content a {
  color: var(--color-text-main);
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  font-weight: 500;
  white-space: nowrap;
}

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

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

.mobile-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: none;
}

.mobile-menu-btn svg {
  color: var(--color-primary);
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
    width: 100%;
  }
  .nav-help-btn {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .dropdown-content {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    background-color: transparent;
    transform: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
  }
  .dropdown-content a {
    padding: 8px 16px;
  }
}

.nav-menu {
  display: none;
}

.header-actions {
  display: none;
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    font-weight: 600;
  }

  .nav-menu a {
    color: var(--color-text-main);
  }

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

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

/* Base Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-family: var(--font-heading);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background-color: #1a1659;
  color: white;
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: white;
}

.btn-secondary:hover {
  background-color: #008fa6;
  color: white;
}

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

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

/* Mobile Bottom Bar */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--color-bg-base);
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-around;
  padding: 0.5rem 0;
  z-index: 100;
}

.mobile-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  gap: 0.25rem;
}

.mobile-tab.active,
.mobile-tab:hover {
  color: var(--color-primary);
}

.mobile-tab svg {
  width: 24px;
  height: 24px;
}

@media (min-width: 768px) {
  .mobile-bottom-bar {
    display: none;
  }
}

/* Hero Section */
.nav-help-btn {
  white-space: nowrap;
}

.hero {
  background: linear-gradient(135deg, rgba(246, 247, 255, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%);
  padding: 4rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.hero p {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.hero p.subtitle {
  font-size: 1.125rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
  }
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 3rem;
  }
}

.page-header {
  background: var(--color-bg-soft);
  color: var(--color-primary);
  padding: 4rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--color-text-muted);
}

/* Content Layout */
.content-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 70% 28%;
    gap: 2%;
  }
}

.main-content {
  background: var(--color-bg-base);
  min-width: 0;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
}

.sidebar-sticky {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

/* Cards & Grids */
.grid-cards {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

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

@media (min-width: 768px) {
  .grid-cards.cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .grid-cards.cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

.card {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--color-border);
  transition: transform 0.2s;
  overflow: hidden;
  word-wrap: break-word;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.card h3 {
  margin-top: 0;
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  font-family: var(--font-heading);
}

.faq-question svg {
  transition: transform 0.3s;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--color-text-alt);
  margin-top: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  margin-top: 1rem;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

/* Quick Notice Module */
.notice-box {
  background-color: var(--color-bg-soft);
  border-left: 4px solid var(--color-secondary);
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

.notice-box p {
  margin: 0;
}

/* Footer */
.main-footer {
  background-color: #111827;
  color: #e5e7eb;
  padding: 4rem 1rem 2rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.footer-col h4 {
  color: #fff;
  margin-top: 0;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul a {
  color: #9ca3af;
}

.footer-col ul a:hover {
  color: var(--color-secondary);
}

.footer-disclaimer {
  max-width: var(--max-width);
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid #374151;
  text-align: center;
  font-size: 0.875rem;
  color: #9ca3af;
}
