/* =========================================================
   CRITTER TASK FORCE - STYLES
   Colors:
   Black: #000000 / #0a0a0a
   Green: #4caf50
   Dark Green: #1b5e20
   Hover Green: #66bb6a
   Nav Red: #ff0000
   ========================================================= */


/* ========== RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #e0e0e0;
  background: #0a0a0a;
}


/* ========== LAYOUT ========== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}


/* ========== SPLASH SCREEN ========== */
.splash {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  margin: 0;
  padding: 0;
  overflow: hidden;
  transition: opacity 0.7s ease;
}

.splash-content {
  text-align: center;
  z-index: 10;
}

.splash-logo {
  width: 260px;
  margin-bottom: 25px;
  filter: drop-shadow(0 0 20px rgba(76, 175, 80, 0.5));
}

.splash h1 {
  font-size: 3.5rem;
  color: #4caf50;
  margin-bottom: 12px;
}

.splash p {
  font-size: 1.3rem;
  color: #cccccc;
  margin-bottom: 40px;
}

.main-content {
  display: none;
}


/* ========== HEADER / NAV ========== */
header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #000000;
  border-bottom: 3px solid #1b5e20;
  padding: 15px 0;
}

.nav {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo img {
  height: 70px;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a,
.dropbtn {
  color: #4caf50;
  text-decoration: none;
  margin-left: 18px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
}

nav a:hover,
.dropbtn:hover {
  color: #4caf50;
  text-shadow: 0 0 8px #4caf50,
               0 0 15px #4caf50,
               0 0 25px #4caf50;
}

nav a.active,
.dropbtn.active {
  color: #66bb6a !important;
  text-shadow: 0 0 10px rgba(76, 175, 80, 0.6);
}


/* ========== DROPDOWN ========== */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #111;
  min-width: 180px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  border: 1px solid #1b5e20;
  border-radius: 6px;
  z-index: 1000;
  right: 0;
}

.dropdown-content a {
  color: #4caf50;
  padding: 12px 18px;
  text-decoration: none;
  display: block;
  font-size: 0.95rem;
  margin: 0;
  transition: all 0.2s;
}

.dropdown-content a:hover {
  background-color: #1a1a1a;
  color: #66bb6a;
  text-shadow: none;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content.show {
  display: block;
}


/* ========== THEME TOGGLE ========== */
.theme-toggle {
  margin-left: 25px;
  display: flex;
  align-items: center;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #333;
  transition: 0.4s;
  border-radius: 34px;
  border: 1px solid #4caf50;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #4caf50;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #e0e0e0;
}

input:checked + .slider:before {
  transform: translateX(24px);
  background-color: #222;
}


/* ========== HAMBURGER ========== */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #4caf50;
  transition: 0.3s;
}


/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  background: #000000;
  color: #4caf50;
  padding: 15px 38px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1.1rem;
  border: 2px solid #4caf50;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #111111;
  color: #66bb6a;
  border-color: #66bb6a;
  box-shadow: 0 0 18px rgba(76, 175, 80, 0.7);
  transform: translateY(-2px);
}

.btn:focus,
nav a:focus,
.dropbtn:focus {
  outline: 2px solid #4caf50;
  outline-offset: 3px;
}


/* ========== HERO ========== */
.hero {
  background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
              url('CTF-Logo.jpg') center/cover no-repeat;
  height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 3.8rem;
  margin-bottom: 15px;
  color: #4caf50;
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero .btn {
  margin: 20px auto 0;
}


/* ========== HOURS ========== */
.hours {
  display: block;
  width: 100%;
  margin-top: 30px;
  text-align: center;
  color: #cccccc;
  font-size: 1.05rem;
  line-height: 1.7;
}

.hours strong {
  color: #4caf50;
  display: block;
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.hours span {
  display: block;
  margin-top: 8px;
  color: #ffcc80;
  font-size: 0.95rem;
}


/* ========== SECTIONS ========== */
.section {
  padding: 80px 0;
}

.section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 45px;
  color: #4caf50;
}


/* ========== SERVICES ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card {
  background: #141414;
  padding: 35px 25px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #1b5e20;
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card-link:hover .card {
  transform: translateY(-8px);
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.3);
}

.card h3 {
  margin-bottom: 15px;
  color: #4caf50;
  font-size: 1.4rem;
}

.note {
  text-align: center;
  margin-top: 45px;
  font-size: 1.15rem;
  color: #cccccc;
}

.note.warning {
  margin-top: 30px;
  padding: 15px 20px;
  background: #1a1a1a;
  border: 1px solid #1b5e20;
  border-radius: 10px;
  color: #ffcc80;
  font-size: 1.05rem;
  text-align: center;
}


/* ========== GALLERY / CAROUSEL ========== */
.gallery-section {
  background: #0f0f0f;
}

.carousel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  border: 2px solid #1b5e20;
}

.carousel-slide {
  display: none;
  position: relative;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
}

.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #4caf50;
  text-align: center;
  padding: 15px;
  font-size: 1.2rem;
  font-weight: 600;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #4caf50;
  border: 2px solid #4caf50;
  font-size: 2.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
}

.carousel-btn:hover {
  background: #000;
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.6);
}

.prev { left: 15px; }
.next { right: 15px; }

.carousel-dots {
  text-align: center;
  margin-top: 20px;
}

.dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: #333;
  border-radius: 50%;
  margin: 0 6px;
  cursor: pointer;
}

.dot.active {
  background: #4caf50;
}


/* ========== ABOUT ========== */
.about-text {
  max-width: 800px;
  margin: 0 auto 25px;
  text-align: center;
  font-size: 1.2rem;
  color: #dddddd;
}

.tagline {
  text-align: center;
  font-size: 1.35rem;
  color: #4caf50;
}


/* ========== CONTACT ========== */
.contact-section {
  background: #0f0f0f;
  text-align: center;
}

.contact-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.phone a {
  color: #4caf50;
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: bold;
}

.phone a:hover {
  color: #66bb6a;
  text-shadow: 0 0 10px rgba(76, 175, 80, 0.6);
}

.emergency-note {
  margin: 20px 0;
  padding: 12px 18px;
  background: #1a1a1a;
  border: 1px solid #1b5e20;
  border-radius: 8px;
  color: #ffcc80;
  display: inline-block;
}


/* ========== FOOTER ========== */
footer {
  background: #000000;
  color: #aaaaaa;
  text-align: center;
  padding: 35px 0;
  border-top: 3px solid #1b5e20;
}

.footer-links {
  margin-top: 12px;
}

.footer-links a {
  color: #4caf50;
  text-decoration: none;
  margin: 0 6px;
}

.footer-links a:hover {
  text-decoration: underline;
}


/* ========== LIGHT MODE ========== */
body.light-mode {
  background: #f5f5f5;
  color: #222;
}

body.light-mode header {
  background: #ffffff;
  border-bottom: 3px solid #2e7d32;
}

body.light-mode nav a,
body.light-mode .dropbtn {
  color: #c62828;
}

body.light-mode .card {
  background: #ffffff;
  border: 1px solid #2e7d32;
  color: #333;
}

body.light-mode .section h2 {
  color: #2e7d32;
}

body.light-mode .contact-section {
  background: #e8f5e9;
}

body.light-mode footer {
  background: #1b5e20;
  color: #fff;
}

body.light-mode .emergency-note {
  background: #fff3e0;
  border-color: #ef6c00;
  color: #e65100;
}


/* ========== MOBILE ========== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  #nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #000;
    flex-direction: column;
    padding: 20px;
    border-bottom: 3px solid #1b5e20;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
  }

  #nav-menu.active {
    display: flex;
    max-height: 500px;
    opacity: 1;
  }

  #nav-menu a,
  .dropdown {
    margin: 12px 0;
  }

  .theme-toggle {
    margin: 15px 0 0 0;
  }

  .dropdown-content {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    background: #111;
    margin-top: 8px;
  }

  .hero h1,
  .splash h1 {
    font-size: 2.6rem;
  }

  .splash-logo {
    width: 200px;
  }

  .logo img {
    height: 55px;
  }

  .carousel-slide img {
    height: 260px;
  }

  body.light-mode #nav-menu {
    background: #ffffff;
  }
}