/* ============================================
   BRAZOS RIVER CAMPGROUND — STYLES
   ============================================ */

/* --- Custom Properties --- */
:root {
  --emerald: #059669;
  --emerald-dark: #064E3B;
  --emerald-light: #10B981;
  --cream: #FAF8F5;
  --cream-dark: #F0EDE8;
  --charcoal: #1F2937;
  --charcoal-light: #4B5563;
  --white: #FFFFFF;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow: 0 4px 24px rgba(6, 78, 59, 0.08);
  --shadow-lg: 0 12px 48px rgba(6, 78, 59, 0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
.font-playfair { font-family: 'Playfair Display', Georgia, serif; }

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(5, 150, 105, 0.1);
  color: var(--emerald);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-light {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.9);
}

/* --- Section Header --- */
.section-header { text-align: left; }
@media (min-width: 768px) {
  .section-header { text-align: left; }
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--emerald);
  color: var(--white);
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition);
  border: 2px solid var(--emerald);
}
.btn-primary:hover {
  background: var(--emerald-dark);
  border-color: var(--emerald-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.3);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--emerald-dark);
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid var(--emerald-dark);
  transition: all var(--transition);
}
.btn-outline:hover {
  background: var(--emerald-dark);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--white);
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.4);
  transition: all var(--transition);
}
.btn-outline-light:hover {
  background: var(--white);
  color: var(--emerald-dark);
  transform: translateY(-2px);
}
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

/* --- Inputs --- */
.input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(6, 78, 59, 0.15);
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--cream);
  transition: all var(--transition);
  outline: none;
}
.input:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
  background: var(--white);
}
.input::placeholder { color: var(--charcoal-light); opacity: 0.6; }

/* --- NAV --- */
.nav {
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(6, 78, 59, 0.08);
}
.nav.scrolled {
  background: rgba(250, 248, 245, 0.95);
  box-shadow: var(--shadow);
}
.nav-link {
  color: var(--charcoal);
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--emerald);
  transition: width var(--transition);
}
.nav-link:hover { color: var(--emerald); }
.nav-link:hover::after { width: 100%; }
.nav-logo:hover .nav-logo-text { color: var(--emerald); }
.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-menu { animation: slideDown 0.3s ease; }
.mobile-link {
  color: var(--charcoal);
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid rgba(6, 78, 59, 0.08);
  transition: color var(--transition);
}
.mobile-link:hover { color: var(--emerald); }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- HERO --- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}
.hero-text { padding: 0 4px; }
.hero h1 {
  position: relative;
}
.hero h1::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 120px;
  height: 6px;
  background: var(--emerald);
  border-radius: 3px;
}
.hero-img-main {
  position: relative;
  z-index: 2;
}
.hero-img-float {
  position: absolute;
  bottom: -30px;
  left: -40px;
  z-index: 3;
  width: 55%;
  border: 6px solid var(--cream);
}
.hero-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-shape-1 {
  width: 300px;
  height: 300px;
  background: var(--emerald);
  opacity: 0.06;
  top: 10%;
  right: -80px;
}
.hero-shape-2 {
  width: 160px;
  height: 160px;
  background: var(--emerald-light);
  opacity: 0.08;
  bottom: 15%;
  left: 5%;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}
.hero-deco-1 {
  position: absolute;
  top: 20%;
  left: 0;
  width: 120px;
  height: 120px;
  border: 3px solid var(--emerald);
  opacity: 0.1;
  transform: rotate(45deg);
}
.hero-deco-2 {
  position: absolute;
  bottom: 12%;
  right: 5%;
  width: 80px;
  height: 80px;
  background: var(--emerald);
  opacity: 0.05;
  border-radius: 20px;
  transform: rotate(30deg);
}
.hero-deco-3 { opacity: 1; }
.hero-deco-4 { opacity: 1; }
.hero-deco-5 { opacity: 1; }

/* --- SITES --- */
.site-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 8px;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.site-card:hover {
  background: var(--white);
  border-color: rgba(5, 150, 105, 0.15);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.site-card-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--emerald);
  color: var(--white);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.site-card-img { position: relative; overflow: hidden; }

/* --- AMENITIES --- */
.amenity-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.amenity-shape-1 {
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.03);
  top: -200px;
  left: -200px;
}
.amenity-shape-2 {
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.04);
  bottom: -100px;
  right: -50px;
}
.amenity-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.amenity-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.amenity-img-main { position: relative; z-index: 2; }
.amenity-img-float {
  position: absolute;
  bottom: -20px;
  right: -20px;
  z-index: 3;
  width: 50%;
  border: 5px solid rgba(5, 150, 105, 0.9);
}

/* --- AREA --- */
.area-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 8px;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.area-card:hover {
  border-color: rgba(5, 150, 105, 0.15);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.area-card-img { overflow: hidden; }
.area-card-img img { transition: transform 0.6s ease; }
.area-card:hover .area-card-img img { transform: scale(1.05); }

/* --- GALLERY --- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item-1 { grid-row: span 2; }
.gallery-item-4 { grid-column: span 2; }

/* --- CTA --- */
.cta-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.cta-shape-1 {
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.03);
  top: -150px;
  right: -100px;
}
.cta-shape-2 {
  width: 250px;
  height: 250px;
  background: rgba(255,255,255,0.04);
  bottom: -80px;
  left: -50px;
}

/* --- CONTACT --- */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: rgba(5, 150, 105, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald);
}

/* --- FOOTER --- */
footer a { text-decoration: none; }

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--emerald);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.3);
  z-index: 40;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--emerald-dark);
  transform: translateY(-2px);
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 1023px) {
  .hero {
    padding-top: 100px;
  }
  .hero-images { margin-bottom: 2rem; }
  .hero-img-float { display: none; }
  .amenity-img-float { display: none; }
  .hero h1 { font-size: 3rem; }
  .hero h1::after { width: 80px; }
}

@media (max-width: 767px) {
  .hero h1 { font-size: 2.4rem; }
  .hero h1::after { width: 60px; }
  .hero-stats { gap: 16px !important; }
  .hero-stats > div { font-size: 0.9rem; }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .gallery-item-1 { grid-row: span 1; }
  .gallery-item-4 { grid-column: span 1; }
  .gallery-item img { min-height: 200px; }
  .btn-lg { padding: 14px 24px; font-size: 0.95rem; }
  .section-header h2 { font-size: 2.25rem; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero h1 { font-size: 3.5rem; }
}
