/* Phillips RV Center - Main Styles */

:root {
  --color-blue-dark: #001a33;
  --color-blue-900: #002554;
  --color-yellow: #FFC600;
  --color-yellow-bright: #FFD700;
  --color-gray-100: #f3f4f6;
  --color-gray-600: #4b5563;
  --color-gray-800: #1f2937;
  --color-white: #ffffff;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-gray-800);
  background-color: var(--color-gray-100);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
header {
  background-color: var(--color-white);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 3px solid var(--color-yellow);
}

.logo img {
  height: 80px;
  width: auto;
}

.header-contact {
  text-align: right;
}

.header-top-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.header-contact p {
  margin: 0.25rem 0;
}

.phone-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-blue-900);
}

.address {
  font-size: 0.9rem;
  color: var(--color-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.social-links {
  display: flex;
  gap: 0.5rem;
}

.social-links a {
  color: var(--color-blue-900);
  font-size: 2rem;
  text-decoration: none;
}

.social-links a:hover {
  color: var(--color-yellow-bright);
}

/* Navigation */
nav {
  background-color: var(--color-blue-900);
  position: relative;
}

.nav-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  padding: 0;
  gap: 0;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 700;
  padding: 1rem 2rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s, border-color 0.3s;
  border-bottom: 3px solid transparent;
}

.nav-item > a:hover,
.nav-item > a.active {
  color: var(--color-yellow);
  border-bottom-color: var(--color-yellow);
}

/* Dropdown */
.has-dropdown > a::after {
  content: ' ▼';
  font-size: 0.6rem;
  vertical-align: middle;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-blue-900);
  min-width: 220px;
  list-style: none;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.dropdown a {
  color: var(--color-white);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.3s, color 0.3s;
}

.dropdown a:hover {
  background-color: rgba(255, 198, 0, 0.2);
  color: var(--color-yellow);
}

/* Secret admin link - invisible clickable area on right side of nav */
.secret-admin {
  position: absolute;
  right: 0;
  top: 0;
  width: 50px;
  height: 100%;
  cursor: default;  /* Don't show pointer cursor - keep it secret! */
}

/* Hero Section */
.hero {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 10;
  color: var(--color-white);
  text-align: center;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.25rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-yellow-bright);
  color: var(--color-blue-900);
}

.btn-primary:hover {
  background-color: var(--color-yellow);
  transform: translateY(-2px);
}

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

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

/* Content Sections */
.section {
  padding: 3rem 1rem;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: var(--color-blue-900);
}

/* Category Cards */
.category-section {
  background: linear-gradient(rgba(245, 245, 245, 0.85), rgba(245, 245, 245, 0.85)),
              url('https://pub-6b86fa88f2a24702bcb994af96fee35f.r2.dev/uploads/camping-bg.jpg') center/cover fixed;
  padding: 2rem 1rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.category-card {
  background: transparent;
  text-align: center;
}

.category-card img {
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.category-card-content {
  padding: 1rem 0;
  text-align: center;
}

.category-card h3 {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 0.25rem;
  color: var(--color-blue-900);
  text-transform: uppercase;
}

.category-links {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  font-weight: 700;
}

.category-links a {
  color: var(--color-blue-900);
  text-decoration: underline;
  font-size: 1rem;
  transition: color 0.3s;
}

.category-links a:hover {
  color: var(--color-yellow-bright);
}

.category-links .separator {
  color: var(--color-blue-900);
  font-weight: bold;
}

/* Inventory Grid */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.inventory-card {
  background: var(--color-white);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.inventory-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.inventory-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.inventory-card-content {
  padding: 1.5rem;
}

.inventory-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-blue-900);
}

.price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-yellow-bright);
  margin: 0.5rem 0;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-gray-800);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  font-size: 1rem;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background-color: var(--color-blue-900);
  color: var(--color-white);
  margin-top: 3rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

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

.footer-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

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

.footer-section a {
  color: var(--color-white);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--color-yellow);
  text-decoration: underline;
}

.footer-highlight {
  color: var(--color-yellow);
  font-weight: 600;
}

/* Map Button */
.map-button {
  background-color: var(--color-yellow-bright);
  color: var(--color-blue-900);
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: all 0.3s;
}

.map-button:hover {
  background-color: var(--color-yellow);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

/* Inventory Carousel - Full Width */
.inventory-carousel {
  position: relative;
  background-color: var(--color-blue-900);
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  flex: 0 0 100%;
  position: relative;
  text-decoration: none;
  display: block;
}

.carousel-slide img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  background: linear-gradient(transparent, rgba(0, 37, 84, 0.95));
  padding: 3rem 1.5rem 1.5rem;
}

.carousel-caption h3 {
  color: var(--color-white);
  font-size: 1.5rem;
  margin: 0 0 0.25rem 0;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.carousel-caption .price {
  color: var(--color-yellow);
  font-size: 2rem;
  font-weight: 900;
  margin: 0;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Seasonal/promo fallback slide */
.seasonal-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  background: repeating-linear-gradient(
    180deg,
    #BF0A30 0px,
    #BF0A30 30px,
    #ffffff 30px,
    #ffffff 60px
  );
  position: relative;
}

.seasonal-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 55%;
  background:
    radial-gradient(circle at 10% 15%, white 3px, transparent 3px),
    radial-gradient(circle at 25% 15%, white 3px, transparent 3px),
    radial-gradient(circle at 40% 15%, white 3px, transparent 3px),
    radial-gradient(circle at 55% 15%, white 3px, transparent 3px),
    radial-gradient(circle at 70% 15%, white 3px, transparent 3px),
    radial-gradient(circle at 85% 15%, white 3px, transparent 3px),
    radial-gradient(circle at 17.5% 35%, white 3px, transparent 3px),
    radial-gradient(circle at 32.5% 35%, white 3px, transparent 3px),
    radial-gradient(circle at 47.5% 35%, white 3px, transparent 3px),
    radial-gradient(circle at 62.5% 35%, white 3px, transparent 3px),
    radial-gradient(circle at 77.5% 35%, white 3px, transparent 3px),
    radial-gradient(circle at 10% 55%, white 3px, transparent 3px),
    radial-gradient(circle at 25% 55%, white 3px, transparent 3px),
    radial-gradient(circle at 40% 55%, white 3px, transparent 3px),
    radial-gradient(circle at 55% 55%, white 3px, transparent 3px),
    radial-gradient(circle at 70% 55%, white 3px, transparent 3px),
    radial-gradient(circle at 85% 55%, white 3px, transparent 3px),
    radial-gradient(circle at 17.5% 75%, white 3px, transparent 3px),
    radial-gradient(circle at 32.5% 75%, white 3px, transparent 3px),
    radial-gradient(circle at 47.5% 75%, white 3px, transparent 3px),
    radial-gradient(circle at 62.5% 75%, white 3px, transparent 3px),
    radial-gradient(circle at 77.5% 75%, white 3px, transparent 3px),
    radial-gradient(circle at 10% 95%, white 3px, transparent 3px),
    radial-gradient(circle at 25% 95%, white 3px, transparent 3px),
    radial-gradient(circle at 40% 95%, white 3px, transparent 3px),
    #002868;
  z-index: 1;
}

.seasonal-slide .seasonal-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
}

.carousel-logo {
  max-height: 120px;
  margin-bottom: 1rem;
  filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
}

.seasonal-slide h2 {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-yellow);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-style: italic;
  margin: 0;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-yellow);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--color-blue-900);
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.carousel-nav:hover {
  background: var(--color-yellow-bright);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 1rem;
}

.carousel-next {
  right: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    text-align: center;
  }

  .header-contact {
    text-align: center;
    margin-top: 1rem;
  }

  .social-links {
    justify-content: center;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0;
  }

  .nav-item > a {
    padding: 0.75rem 1rem;
    text-align: center;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    background-color: rgba(0,0,0,0.2);
  }

  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown {
    display: block;
  }

  .dropdown a {
    padding: 0.5rem 1rem;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .seasonal-slide h2 {
    font-size: 1.5rem;
  }

  .carousel-logo {
    max-height: 60px;
  }

  .carousel-slide img {
    height: 250px;
  }

  .seasonal-slide {
    min-height: 250px;
  }

  .carousel-caption h3 {
    font-size: 1rem;
  }

  .carousel-caption .price {
    font-size: 1.25rem;
  }

  .seasonal-slide h2 {
    font-size: 1.5rem;
  }

  .carousel-logo {
    max-height: 80px;
  }
}
