/* =========================================
   CSS Variables & Tokens
   ========================================= */
:root {
  --color-primary: #0077b6;     /* Ocean Blue */
  --color-primary-hover: #023e8a;
  --color-sand: #D4C4A8;        /* Soft Sand */
  --color-beige: #FDFBF7;       /* Background Beige */
  --color-wood: #4A3C31;        /* Wood Dark / Text */
  --color-wood-light: #8b7355;  
  --color-white: #FFFFFF;
  --color-black: #1A1A1A;
  
  --font-main: 'Inter', sans-serif;
  
  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
  --border-radius: 12px;
}

/* =========================================
   Reset & Base
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--color-beige);
  color: var(--color-wood);
  overflow-x: hidden;
}

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: url('../images/sand_texture.png');
  background-repeat: repeat;
  background-attachment: fixed;
  background-size: 500px;
  overflow-x: hidden;
  width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================
   Typography
   ========================================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-wood);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

p {
  margin-bottom: 1rem;
}

/* =========================================
   Layout & Container
   ========================================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
}

/* =========================================
   Header & Navigation
   ========================================= */
.header {
  background-color: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-wood);
}

.nav-links a:hover {
  color: var(--color-primary);
}

/* Mobile Menu Button */
.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-wood);
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-beige);
    flex-direction: column;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: var(--shadow-md);
  }
  
  .nav-links.active {
    max-height: 400px;
  }
  
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  
  .nav-links a {
    display: block;
    padding: 1rem;
    border-bottom: 1px solid var(--color-sand);
  }
  
  .menu-btn {
    display: block;
  }
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  margin-top: 60px;
  background-color: var(--color-sand);
  background-size: cover;
  background-position: center;
}

/* A dark overlay to make text readable */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.hero-content {
  position: relative;
  z-index: 10;
  color: var(--color-white);
  max-width: 800px;
  padding: 0 2rem;
}

.hero-content h1 {
  color: var(--color-white);
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

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

.btn {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

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

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

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

/* =========================================
   Features / Benefits
   ========================================= */
.features {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(5px);
}

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

.feature-card {
  padding: 2rem;
  background-color: var(--color-beige);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* =========================================
   Caravans List
   ========================================= */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--color-primary);
}

.caravans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.caravan-card {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.caravan-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.caravan-image-container {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.caravan-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.caravan-card:hover .caravan-image-container img {
  transform: scale(1.05);
}

.caravan-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.caravan-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.caravan-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.caravan-content p {
  color: #666;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* =========================================
   Individual Caravan Page
   ========================================= */
.caravan-detail-hero {
  margin-top: 80px;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.caravan-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.gallery-main {
  grid-column: 1 / -1;
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 500px;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbnails {
  grid-column: 1 / -1;
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.gallery-thumbnails img {
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
}

.gallery-thumbnails img.active,
.gallery-thumbnails img:hover {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--color-primary);
}

.caravan-info-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.highlight-box {
  background-color: rgba(144, 238, 144, 0.2);
  border-left: 4px solid var(--color-primary);
  padding: 1rem;
  border-radius: 0 8px 8px 0;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.highlight-icon {
  font-size: 2rem;
}

.amenities-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.amenities-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.amenities-list i {
  color: var(--color-primary);
}

/* Sidebar Contact Form */
.booking-sidebar {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
  height: fit-content;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-sand);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background-color: var(--color-beige);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(106, 141, 115, 0.2);
}

.form-text {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.3rem;
}

/* =========================================
   Pricing Table
   ========================================= */
.pricing-table-container {
  overflow-x: auto;
  margin-bottom: 3rem;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.pricing-table th,
.pricing-table td {
  padding: 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--color-sand);
}

.pricing-table th {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  font-size: 1.1rem;
}

.pricing-table tr:last-child td {
  border-bottom: none;
}

.pricing-table tr:hover td {
  background-color: var(--color-beige);
}

.condition-list {
  padding-left: 1.5rem;
  list-style: disc;
}

.condition-list li {
  margin-bottom: 0.8rem;
}

/* =========================================
   Footer
   ========================================= */
.footer {
  background-color: var(--color-wood);
  color: var(--color-white);
  padding: 4rem 0 2rem;
}

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

.footer-col h3 {
  color: var(--color-sand);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #DDD;
}

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

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #DDD;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #AAA;
  font-size: 0.9rem;
}

/* =========================================
   Sticky Mobile Call Button
   ========================================= */
.sticky-call {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--color-primary);
  color: var(--color-white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.sticky-call:hover {
  transform: scale(1.1);
  background-color: var(--color-primary-hover);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(106, 141, 115, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(106, 141, 115, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(106, 141, 115, 0);
  }
}

/* =========================================
   Responsive Adjustments
   ========================================= */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .caravan-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .gallery-main {
    height: 300px;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}
