/* TheRVzone.com — site styles */

:root {
  --blue: #3d93c8;
  --dark: #1a1a1a;
  --gray: #666666;
  --light-bg: #f7f9fb;
  --white: #ffffff;
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  background-color: var(--white);
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

ul {
  list-style: none;
}

/* Announcement bar */

.announcement-bar {
  background-color: #252625;
  color: var(--white);
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Header */

.site-header {
  border-bottom: 1px solid #eaeaea;
}

.header-inner {
  width: 100%;
  padding: 10px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.logo {
  height: 64px;
  display: block;
}

.main-nav ul {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-weight: 500;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dark);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.nav-slot {
  display: flex;
  align-items: center;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--dark);
  transition: transform 0.2s, opacity 0.2s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
}

.mobile-nav a {
  display: block;
  padding: 14px 24px;
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-top: 1px solid #eaeaea;
}

.mobile-nav a.active {
  color: var(--blue);
}

.mobile-nav.open {
  display: block;
}

/* Mobile layout */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .logo {
    height: 48px;
  }
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-self: end;
  color: var(--dark);
  transition: color 0.2s;
}

.cart-link:hover {
  color: var(--blue);
}

.cart-icon {
  width: 26px;
  height: 26px;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: var(--blue);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

main {
  max-width: 1536px;
  margin: 0 auto;
  padding: 48px 24px;
}

.coming-soon {
  text-align: center;
  padding: 120px 24px;
}

.coming-soon p {
  color: var(--gray);
  margin: 16px 0 28px;
  font-size: 16px;
}

/* Category grid */

.category-grid {
  max-width: 1536px;
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.section-title {
  text-align: center;
  font-size: 40px;
  margin-bottom: 32px;
}

.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(368px, 1fr));
  gap: 24px;
}

.category-card {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 28px;
  background-color: rgba(0, 0, 0, 0.2);
}

.category-card-overlay h3 {
  display: inline-block;
  background-color: var(--blue);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 32px;
  border-radius: 999px;
  transition: background-color 0.2s;
}

.category-card:hover .category-card-overlay h3 {
  background-color: #2f7aa8;
}

/* Feature strip */

.feature-strip {
  background-color: #3396d1;
  color: #262626;
  text-align: center;
  padding: 10px 16px;
}

.feature-strip p {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .feature-strip p {
    font-size: 14px;
  }

  .category-cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .category-cards::-webkit-scrollbar {
    display: none;
  }

  .category-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
  }
}

/* Testimonials */

.testimonials {
  position: relative;
  background:
    linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)),
    url('../images/logo/van-icon.png') center 65% / 720px no-repeat,
    var(--white);
  padding: 24px 24px 96px;
  text-align: center;
}

.testimonial-cards {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.testimonial-card {
  padding: 0 32px;
}

.testimonial-card:not(:first-child) {
  border-left: 3px solid var(--blue);
}

.stars {
  color: #f5a623;
  letter-spacing: 3px;
  font-size: 16px;
  margin-bottom: 14px;
}

.testimonial-quote {
  font-size: 24px;
  line-height: 1.6;
  color: var(--dark);
}

.testimonial-divider {
  width: 40px;
  height: 2px;
  background-color: var(--blue);
  margin: 20px auto;
}

.testimonial-name {
  font-weight: 600;
  color: var(--dark);
}

@media (max-width: 768px) {
  .testimonial-cards {
    grid-template-columns: none;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 8px;
    scrollbar-width: none;
  }

  .testimonial-cards::-webkit-scrollbar {
    display: none;
  }

  .testimonial-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
    border-left: none !important;
    background-color: var(--white);
    border-radius: 8px;
    padding: 28px 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  }
}

/* Footer */

.site-footer {
  background-color: #252625;
  color: #f9f8ee;
  padding: 56px 32px 0;
}

.footer-main {
  max-width: 1536px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-bottom: 48px;
}

.footer-brand {
  justify-self: start;
}

.footer-logo {
  height: 72px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  justify-self: center;
  gap: 24px;
}

.footer-links a {
  color: #f9f8ee;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--blue);
}

.footer-newsletter {
  max-width: 440px;
  justify-self: end;
}

.footer-newsletter h3 {
  color: #f9f8ee;
  font-size: 20px;
  margin-bottom: 10px;
}

.footer-newsletter p {
  font-size: 13px;
  color: #f9f8ee;
  line-height: 1.5;
  margin-bottom: 18px;
  text-transform: none;
  white-space: nowrap;
}

.newsletter-form {
  position: relative;
  display: flex;
}

.newsletter-form input {
  width: 100%;
  height: 54px;
  padding: 14px 145px 14px 20px;
  background-color: #353b3e;
  border: 1px solid #353b3e;
  color: #f9f8ee;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  border-radius: 4px;
}

.newsletter-form input::placeholder {
  color: #d0d0d1;
}

.newsletter-form button {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 135px;
  height: 42px;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f8ee;
  color: #252625;
  border: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.4px;
  border-radius: 15px;
  cursor: pointer;
  transition: opacity 0.2s;
  gap: 8px;
}

.btn-arrow {
  flex-shrink: 0;
}

.newsletter-form button:hover {
  opacity: 0.85;
}

.footer-bottom {
  border-top: 1px solid rgba(249, 248, 238, 0.15);
  padding: 20px 32px;
  text-align: center;
  font-size: 13px;
  color: #9a9a92;
}

@media (max-width: 640px) {
  .footer-main {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-brand,
  .footer-newsletter {
    justify-self: center;
  }

  .footer-newsletter {
    max-width: none;
    width: 100%;
  }

  .footer-newsletter p {
    white-space: normal;
  }
}

/* Hero */

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  background-image: url('../images/hero/hero-family-campfire.jpg');
  background-size: cover;
  background-position: center;
}

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

.hero-content {
  position: relative;
  z-index: 1;
  padding: 36px 24px 24px 48px;
  color: var(--white);
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 28px;
  color: var(--white);
}

.btn-primary {
  display: inline-block;
  background-color: var(--blue);
  color: var(--white);
  padding: 14px 36px;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: #2f7aa8;
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 32px;
  }
}
