/* CSS Variables for theming */
:root {
  --primary-color: #3C2415;
  --secondary-color: #6F4E37;
  --accent-color: #A67B5B;
  --light-accent: #C4915C;
  --background-color: #F5F0E8;
  --text-color: #3C2415;
  --text-light: #6F4E37;
  --card-background: #ffffff;
  --border-color: #E0D5C8;
  --success-color: #22C55E;
  --warning-color: #F59E0B;
  --danger-color: #EF4444;
  --info-color: #3B82F6;
  --shadow: 0 2px 8px rgba(60, 36, 21, 0.08);
  --shadow-hover: 0 8px 24px rgba(60, 36, 21, 0.15);
  --border-radius: 16px;
  --border-radius-sm: 8px;
  --transition: all 0.2s ease;
  --header-height: 110px;
  --bottom-nav-height: 70px;
}


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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  padding-top: var(--header-height);
  padding-bottom: var(--bottom-nav-height);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.black-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 30px;
background-color: #000000;
z-index: 1001;
}
/* Header Styles - Fixed */
.header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  gap: 1rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  letter-spacing: -0.02em;
}

.logo img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 12px;
}

.logo-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.header-controls {
  display: flex;
  gap: 0.5rem;
}

.btn-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-control:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-control:active {
  transform: scale(0.96);
}

.btn-control svg {
  width: 18px;
  height: 18px;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: var(--card-background);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom, 0);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 80px;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-light);
  padding: 6px 8px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  min-width: 56px;
  position: relative;
  flex: 1;
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
  transition: var(--transition);
}

.bottom-nav-item span {
  font-size: 0.6rem;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60px;
}

.bottom-nav-item.active {
  color: var(--secondary-color);
}

.bottom-nav-item.active svg {
  stroke-width: 2.5;
}

.bottom-nav-item:active {
  transform: scale(0.92);
}

/* Main Content Styles */
.main-content {
  min-height: calc(100vh - var(--header-height) - var(--bottom-nav-height));
  padding: 1.5rem 0 2rem;
}

.content-section {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.content-section.active {
  display: block;
}

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

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.75rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto;
}

/* Equipment Grid Styles */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.equipment-card {
  background: var(--card-background);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.equipment-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.equipment-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.equipment-icon svg {
  width: 48px;
  height: 48px;
}

.equipment-card h3 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-align: center;
  font-weight: 600;
}

.equipment-card p {
  color: var(--text-light);
  margin-bottom: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.equipment-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  background: rgba(60, 36, 21, 0.03);
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
}


.equipment-rating {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.85rem;
}

.stars {
  color: #F59E0B;
  font-size: 1rem;
  letter-spacing: 1px;
}

/* Behavior Styles */
.behavior-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.behavior-item {
  background: var(--card-background);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.behavior-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.behavior-icon.do {
  color: var(--success-color);
}

.behavior-icon.dont {
  color: var(--danger-color);
}

.behavior-icon svg {
  width: 40px;
  height: 40px;
}

.behavior-content h3 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 600;
}

.behavior-points {
  list-style: none;
}

.behavior-points li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9rem;
}

.behavior-points li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-color);
}

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

/* Checklist Styles */
.checklist-container {
  background: var(--card-background);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.checklist-progress {
  margin-bottom: 1.5rem;
  text-align: center;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--success-color), var(--accent-color));
  width: 0%;
  transition: width 0.4s ease;
  border-radius: 3px;
}

.progress-text {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

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

.checklist-category h3 {
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
  font-weight: 600;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--border-radius-sm);
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.checklist-item:hover {
  background: rgba(60, 36, 21, 0.03);
}


.checklist-checkbox {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  position: relative;
  transition: var(--transition);
  flex-shrink: 0;
}

.checklist-checkbox:checked + .checkmark {
  background: var(--success-color);
  border-color: var(--success-color);
}

.checklist-checkbox:checked + .checkmark:after {
  content: "";
  position: absolute;
  top: 3px;
  left: 6px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checklist-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

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

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

.btn-primary:active {
  transform: scale(0.97);
}

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

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

.btn-secondary:active {
  transform: scale(0.97);
}

/* Emergency Styles */
.emergency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.emergency-card {
  background: var(--card-background);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.emergency-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.emergency-card.critical {
  border-left: 4px solid var(--danger-color);
}

.emergency-card.warning {
  border-left: 4px solid var(--warning-color);
}

.emergency-card.info {
  border-left: 4px solid var(--info-color);
}

.emergency-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.emergency-card.critical .emergency-icon {
  color: var(--danger-color);
}

.emergency-card.warning .emergency-icon {
  color: var(--warning-color);
}

.emergency-card.info .emergency-icon {
  color: var(--info-color);
}

.emergency-card h3 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 600;
}

.emergency-steps ol {
  padding-left: 1.25rem;
}

.emergency-steps li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
  line-height: 1.5;
  font-size: 0.9rem;
}

.emergency-contacts {
  background: var(--card-background);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.emergency-contacts h3 {
  font-size: 1.1rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 600;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
}

.contact-item {
  text-align: center;
  padding: 1rem;
  background: rgba(60, 36, 21, 0.03);
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
}

.contact-item:hover {
  background: rgba(60, 36, 21, 0.06);
}

.contact-item strong {
  display: block;
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.contact-item span {
  color: var(--text-light);
  font-size: 0.8rem;
}

/* Footer Styles */
.footer {
  background: var(--primary-color);
  color: white;
  text-align: center;
  padding: 1.5rem 0;
  margin-bottom: var(--bottom-nav-height);
}

.footer p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.9;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablets and larger phones */
@media (min-width: 481px) {
  .container {
    padding: 0 24px;
  }
  
  .bottom-nav-item span {
    font-size: 0.65rem;
    max-width: 70px;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
}

/* Tablets */
@media (min-width: 768px) {
  :root {
    --header-height: 130px;
    --bottom-nav-height: 0px;
  }
  
  body {
    padding-bottom: 0;
  }
  
  .bottom-nav {
    display: none;
  }
  
  .header-content {
    height: var(--header-height);
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .logo img {
    width: 110px;
    height: 110px;
  }
  
  .logo-icon {
    width: 32px;
    height: 32px;
  }
  
  .main-content {
    padding: 2rem 0;
  }
  
  .section-header h2 {
    font-size: 2.25rem;
  }
  
  .section-header p {
    font-size: 1.1rem;
  }
  
  .equipment-grid,
  .emergency-grid {
    gap: 1.5rem;
  }
  
  .equipment-card,
  .behavior-item,
  .checklist-container,
  .emergency-card,
  .emergency-contacts {
    padding: 2rem;
  }
  
  .footer {
    margin-bottom: 0;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .container {
    padding: 0 32px;
  }
  
  .section-header {
    margin-bottom: 3rem;
  }
  
  .section-header h2 {
    font-size: 2.5rem;
  }
  
  .equipment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .behavior-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .checklist-categories {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .emergency-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large Desktop */
@media (min-width: 1280px) {
  .equipment-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .emergency-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile-specific */
@media (max-width: 480px) {
  :root {
    --header-height: 100px;
    --bottom-nav-height: 64px;
  }
  
  .logo {
    font-size: 1rem;
    gap: 0.5rem;
  }
  
  .logo img {
    width: 80px;
    height: 80px;
  }
  
  .logo-icon {
    width: 24px;
    height: 24px;
  }
  
  .lang-text {
    display: none;
  }
  
  .btn-control {
    padding: 0.5rem;
  }
  
  .main-content {
    padding: 1rem 0 1.5rem;
  }
  
  .section-header {
    margin-bottom: 1.5rem;
  }
  
  .section-header h2 {
    font-size: 1.5rem;
  }
  
  .section-header p {
    font-size: 0.9rem;
  }
  
  .equipment-grid,
  .behavior-list,
  .emergency-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .equipment-card,
  .behavior-item,
  .checklist-container,
  .emergency-card,
  .emergency-contacts {
    padding: 1.25rem;
    border-radius: 12px;
  }
  
  .checklist-categories {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .checklist-actions {
    flex-direction: column;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    padding: 0.875rem;
  }
  
  .contacts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .bottom-nav-item {
    padding: 4px 4px;
    min-width: auto;
  }
  
  .bottom-nav-item svg {
    width: 18px;
    height: 18px;
  }
  
  .bottom-nav-item span {
    font-size: 0.55rem;
    max-width: 50px;
  }
}

/* Small phones */
@media (max-width: 360px) {
  .container {
    padding: 0 12px;
  }
  
  .logo {
    font-size: 0.9rem;
    gap: 0.4rem;
  }
  
  .logo img {
    width: 70px;
    height: 70px;
  }
  
  .section-header h2 {
    font-size: 1.35rem;
  }
  
  .bottom-nav-item span {
    display: none;
  }
  
  .bottom-nav-item {
    padding: 8px 12px;
  }
  
  .bottom-nav-item svg {
    width: 24px;
    height: 24px;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus styles for keyboard navigation */
.bottom-nav-item:focus,
.btn-control:focus,
.btn-primary:focus,
.btn-secondary:focus,
.checklist-item:focus-within {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --shadow: 0 0 0 1px var(--primary-color);
    --shadow-hover: 0 0 0 2px var(--primary-color);
  }
  
  .equipment-card,
  .behavior-item,
  .emergency-card,
  .checklist-container,
  .emergency-contacts {
    border-width: 2px;
  }
}

/* Print styles */
@media print {
  .header,
  .bottom-nav,
  .checklist-actions {
    display: none !important;
  }
  
  body {
    padding: 0;
  }
  
  .content-section {
    display: block !important;
    page-break-inside: avoid;
  }
  
  .equipment-card,
  .behavior-item,
  .emergency-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
  :root {
    --header-height: 48px;
    --bottom-nav-height: 56px;
  }
  
  .logo {
    font-size: 1rem;
  }
  
  .logo img {
    width: 70px;
    height: 70px;
  }
  
  .bottom-nav-item span {
    display: none;
  }
}

/* FAQ Page Specific Styles */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-background);
  border-radius: var(--border-radius);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color);
  gap: 1rem;
}

.faq-question:hover {
  background: rgba(60, 36, 21, 0.03);
}


.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-icon svg {
  width: 20px;
  height: 20px;
}

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

.faq-answer {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.25rem 1.25rem 1.25rem;
}

.faq-answer p {
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
  font-size: 0.9rem;
}

.faq-answer ul {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
}

.faq-answer li {
  color: var(--text-light);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 1.5rem;
  transition: var(--transition);
  font-size: 0.9rem;
}

.back-link:hover {
  color: var(--primary-color);
}

.back-link svg {
  width: 18px;
  height: 18px;
}
