/* =====================
   RESET & BASE STYLES
   ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Times New Roman', Times, serif;
}

body {
  background: rgba(20, 20, 20, 0.877);
  overflow-x: hidden; /* Prevents side-scrolling on mobile */
}

/* =====================
   HERO SLIDER (BASE)
   ===================== */
.slider {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 480px;
  max-height: 900px;
  overflow: hidden;
  background: #000;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(45%);
}

.slide-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  text-align: center;
  width: 90%;
  max-width: 820px;
}

.slide-text h1 {
  font-size: clamp(26px, 5vw, 48px);
  margin-bottom: 10px;
  line-height: 1.25;
}

.slide-text p {
  font-size: clamp(14px, 2.5vw, 20px);
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  font-size: 28px;
  padding: 10px 14px;
  cursor: pointer;
  z-index: 3;
}

.prev { left: 18px; }
.next { right: 18px; }

/* =====================
   INFO CARDS (BASE)
   ===================== */
.cards {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #1b1b1ba0;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card h3 {
  color: #df5110;
  margin-bottom: 10px;
  font-size: 20px;
}

.card p {
  font-size: 15px;
  color: #ffffff;
  line-height: 1.6;
}

/* =====================
   RESPONSIVE (PHONES & TABLETS)
   ===================== */
@media (max-width: 768px) {
  
  /* 1. Header & Toggle Menu */
  .nav-wrapper {
    position: relative;
    z-index: 1000;
  }

  .menu-toggle {
    display: block !important; /* Ensures it shows on mobile */
    color: white;
  }

  .menu {
    display: none; /* Hidden until 'active' class added via JS */
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #df5110; /* Brand orange background for mobile menu */
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  }

  .menu a {
    padding: 15px 20px;
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  /* 2. Slider Adjustments */
  .slider {
    height: 50vh;
    min-height: 320px;
  }

  .slide-text {
    width: 85%;
    padding: 0 20px;
  }

  .slide-text h1 {
    font-size: 1.6rem;
  }

  .slide-text p {
    font-size: 0.95rem;
    /* Limit lines on small screens to prevent overlap */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* 3. Card Stacking (Top to Bottom) */
  .cards {
    grid-template-columns: 1fr;
    margin: 30px auto;
    gap: 20px;
  }

  /* 4. Footer Alignment */
  .footer-container {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
}

/* VERY SMALL DEVICES */
@media (max-width: 480px) {
  .slide-text h1 {
    font-size: 1.3rem;
  }
  
  .arrow {
    padding: 8px;
    font-size: 18px;
  }
}

/* =====================
   MOBILE HEADER FIX (HOME)
   ===================== */
@media (max-width: 768px) {

  /* Lock header height */
  header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    z-index: 1000;
  }

  .nav {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
  }

  /* Ensure toggle is visible */
  .menu-toggle {
    display: block;
    font-size: 26px;
  }

  /* Make menu overlay instead of pushing page */
  .menu {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background: #df5110;
    display: none;
    flex-direction: column;
    overflow-y: auto;
  }

  

  /* Slider must start below fixed header */
  .slider {
    margin-top: 64px;
    height: calc(100vh - 64px);
    min-height: unset;
  }
}
img {
  max-width: 100%;
  height: auto;
}
