/* ============================================
   Twin Rivers RV Park - Custom Styles
   ============================================ */

/* ============================================
   1. CSS VARIABLES & ROOT STYLES
   ============================================ */
:root {
  /* Color Palette */
  --primary-blue: #2C5F7C;
  --accent-teal: #3A9FB5;
  --success-green: #4A9B7F;
  --warm-orange: #E67E22;
  --dark-orange: #D35400;
  --neutral-gray: #6C757D;
  --light-bg: #F8F9FA;
  --dark-text: #212529;
  --white: #FFFFFF;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  /* Spacing */
  --section-padding: 80px 0;
  --section-padding-mobile: 50px 0;

  /* Transitions */
  --transition-standard: all 0.3s ease;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 20px rgba(0,0,0,0.15);
}

/* ============================================
   2. GLOBAL STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-text);
  background-color: var(--white);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary-blue);
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--accent-teal);
  text-decoration: none;
  transition: var(--transition-standard);
}

a:hover {
  color: var(--primary-blue);
}

/* Utility Classes */
.section {
  padding: var(--section-padding);
}

.section-alt {
  background-color: var(--light-bg);
}

.text-center {
  text-align: center;
}

.container-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   3. HEADER & NAVIGATION
   ============================================ */
.site-header {
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-standard);
}

.navbar {
  padding: 1rem 0;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.navbar-brand:hover {
  color: var(--accent-teal);
}

.navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--dark-text);
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  transition: var(--transition-standard);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent-teal);
}

.header-phone {
  display: inline-block;
  background-color: var(--warm-orange);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-heading);
  text-decoration: none;
  transition: var(--transition-standard);
  white-space: nowrap;
}

.header-phone:hover {
  background-color: var(--dark-orange);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.header-phone i {
  margin-right: 0.5rem;
}

/* Mobile Menu Toggle */
.navbar-toggler {
  border: 2px solid var(--primary-blue);
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(44, 95, 124, 0.25);
}

/* ============================================
   4. HERO SECTION
   ============================================ */
.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.6) 60%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   5. BUTTONS
   ============================================ */
.btn-primary-custom {
  display: inline-block;
  background-color: var(--warm-orange);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-decoration: none;
  border: 2px solid var(--warm-orange);
  transition: var(--transition-standard);
  cursor: pointer;
}

.btn-primary-custom:hover {
  background-color: var(--dark-orange);
  border-color: var(--dark-orange);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-primary-custom i {
  margin-right: 0.5rem;
}

.btn-secondary-custom {
  display: inline-block;
  background-color: var(--accent-teal);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-decoration: none;
  border: 2px solid var(--accent-teal);
  transition: var(--transition-standard);
  cursor: pointer;
}

.btn-secondary-custom:hover {
  background-color: #2C8BA0;
  border-color: #2C8BA0;
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-custom {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition-standard);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline-custom:hover {
  background-color: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ============================================
   6. ANNOUNCEMENT BANNER
   ============================================ */
.announcement-banner {
  background: linear-gradient(90deg, var(--success-green) 0%, var(--accent-teal) 100%);
  color: var(--white);
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
}

.announcement-banner i {
  margin-right: 0.5rem;
}

/* ============================================
   7. FEATURE CARDS
   ============================================ */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-standard);
  border: 2px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-teal);
}

.feature-icon {
  font-size: 3.5rem;
  color: var(--accent-teal);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-blue);
}

.feature-card .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--warm-orange);
  margin: 1rem 0;
}

.feature-card .price-details {
  font-size: 0.9rem;
  color: var(--neutral-gray);
  margin-bottom: 1rem;
}

.feature-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  text-align: left;
}

.feature-card ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--light-bg);
}

.feature-card ul li:last-child {
  border-bottom: none;
}

.feature-card ul li i {
  color: var(--success-green);
  margin-right: 0.5rem;
}

/* ============================================
   8. ICON GRID (Why Choose Us)
   ============================================ */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

.icon-item {
  text-align: center;
  padding: 1.5rem;
}

.icon-item i {
  font-size: 3rem;
  color: var(--accent-teal);
  margin-bottom: 1rem;
}

.icon-item h4 {
  font-size: 1.1rem;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.icon-item p {
  font-size: 0.95rem;
  color: var(--neutral-gray);
  margin-bottom: 0;
}

/* ============================================
   9. CALL-TO-ACTION SECTIONS
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  z-index: 0;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* ============================================
   10. POLICIES BOX
   ============================================ */
.policies-box {
  background-color: var(--light-bg);
  border-left: 5px solid var(--warm-orange);
  padding: 2rem;
  border-radius: 8px;
  margin: 3rem 0;
}

.policies-box h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.policies-box ul {
  list-style: none;
  padding: 0;
}

.policies-box ul li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  display: flex;
  align-items: start;
  gap: 0.75rem;
}

.policies-box ul li:last-child {
  border-bottom: none;
}

.policies-box ul li i {
  color: var(--success-green);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* ============================================
   11. PROGRESS/AMENITIES SECTION
   ============================================ */
.progress-item {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--success-green);
  display: flex;
  align-items: start;
  gap: 1rem;
}

.progress-icon {
  font-size: 2.5rem;
  color: var(--success-green);
  flex-shrink: 0;
}

.progress-content h4 {
  margin-bottom: 0.5rem;
  color: var(--primary-blue);
}

.progress-content p {
  margin-bottom: 0;
  color: var(--neutral-gray);
  font-size: 0.95rem;
}

.mind-dust-callout {
  background: linear-gradient(135deg, #FFF5E6 0%, #FFE8CC 100%);
  border: 2px solid var(--warm-orange);
  border-radius: 12px;
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
}

.mind-dust-callout i {
  font-size: 3rem;
  color: var(--warm-orange);
  margin-bottom: 1rem;
}

.mind-dust-callout h3 {
  color: var(--warm-orange);
  margin-bottom: 1rem;
}

.mind-dust-callout p {
  margin-bottom: 0;
  font-size: 1.1rem;
}

/* ============================================
   12. GALLERY
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: var(--transition-standard);
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-standard);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* ============================================
   13. CONTACT SECTION
   ============================================ */
.contact-info-box {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--light-bg);
}

.contact-info-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-icon {
  font-size: 2rem;
  color: var(--accent-teal);
  flex-shrink: 0;
}

.contact-details h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  color: var(--primary-blue);
}

.contact-details p {
  margin-bottom: 0;
  color: var(--neutral-gray);
}

.contact-details a {
  color: var(--accent-teal);
  font-weight: 600;
}

/* Google Maps Embed */
.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 450px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Contact Form */
.contact-form {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--light-bg);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-standard);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(58, 159, 181, 0.1);
}

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

/* ============================================
   14. FOOTER
   ============================================ */
.site-footer {
  background-color: var(--primary-blue);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

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

.footer-column h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-column p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
  display: inline;
}

.footer-column a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-standard);
}

.footer-column ul li a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ============================================
   15. RESPONSIVE DESIGN
   ============================================ */

/* Desktop Large */
@media (min-width: 1200px) {
  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.75rem;
  }

  h3 {
    font-size: 2rem;
  }
}

/* Tablet */
@media (max-width: 991px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section {
    padding: var(--section-padding-mobile);
  }

  .feature-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .cta-section h2 {
    font-size: 2rem;
  }
}

/* Mobile */
@media (max-width: 767px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.35rem;
  }

  .hero {
    height: 500px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary-custom,
  .btn-secondary-custom,
  .btn-outline-custom {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .feature-cards {
    grid-template-columns: 1fr;
  }

  .icon-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cta-section {
    padding: 3rem 1.5rem;
  }

  .cta-section h2 {
    font-size: 1.75rem;
  }

  .policies-box {
    padding: 1.5rem;
  }

  .map-container {
    height: 350px;
  }

  .header-phone {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Mobile Small */
@media (max-width: 480px) {
  .icon-grid {
    grid-template-columns: 1fr;
  }

  .announcement-banner {
    font-size: 0.95rem;
    padding: 0.75rem;
  }
}

/* ============================================
   16. UTILITY & HELPER CLASSES
   ============================================ */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }
.mt-5 { margin-top: 3rem !important; }

.text-primary-blue { color: var(--primary-blue) !important; }
.text-accent-teal { color: var(--accent-teal) !important; }
.text-warm-orange { color: var(--warm-orange) !important; }
.text-success-green { color: var(--success-green) !important; }

.bg-light { background-color: var(--light-bg) !important; }
.bg-primary-blue { background-color: var(--primary-blue) !important; }

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--accent-teal);
  outline-offset: 2px;
}
