/* Variables */
:root {
  --primary: #D35400; /* Andalusian Orange */
  --primary-dark: #A04000; /* Dark Orange */
  --secondary: #2C3E50; /* Deep Blue */
  --secondary-light: #3498DB; /* Light Blue */
  --accent: #F1C40F; /* Golden Yellow */
  --text-dark: #1A1A1A; /* Almost Black */
  --text-light: #6D7B8D; /* Medium Gray */
  --bg-light: #FBF7E4; /* Warm Off-White */
  --bg-tan: #F2E3C6; /* Sandy Beige */
  --card-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Playfair Display', serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

p {
  margin-bottom: 1.2rem;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: all 0.3s ease;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

img, svg {
  max-width: 100%;
  height: auto;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

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

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

.btn.outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

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

.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title:after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--accent);
  margin: 1rem auto 0;
}

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

/* Andalusian Pattern - Background Elements */
.pattern-bg {
  position: relative;
  overflow: hidden;
}

.pattern-bg:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath fill='%23D35400' fill-opacity='0.03' d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2l-2 2V0zm0 4l4-4h2l-6 6V4zm0 4l8-8h2L40 10V8zm0 4L52 0h2L40 14v-2zm0 4L56 0h2L40 18v-2zm0 4L60 0h2L40 22v-2zm0 4L64 0h2L40 26v-2zm0 4L68 0h2L40 30v-2zm0 4L72 0h2L40 34v-2zm0 4L76 0h2L40 38v-2zm0 4L80 0v2L42 40h-2zm4 0L80 4v2L46 40h-2zm4 0L80 8v2L50 40h-2zm4 0l28-28v2L54 40h-2zm4 0l24-24v2L58 40h-2zm4 0l20-20v2L62 40h-2zm4 0l16-16v2L66 40h-2zm4 0l12-12v2L70 40h-2zm4 0l8-8v2l-6 6h-2zm4 0l4-4v2l-2 2h-2z'/%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: -1;
}

/* Header */
.header {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
  margin-right: 15px;
}

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin: 0 1rem;
}

.nav-links a {
  color: var(--text-dark);
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  position: relative;
}

.nav-links a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover:after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
}

/* Hero Section */
.hero {
  background: linear-gradient(
    to bottom,
    rgba(44, 62, 80, 0.8),
    rgba(44, 62, 80, 0.6)
  ), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Crect width='100' height='100' fill='%232C3E50' fill-opacity='0.7'/%3E%3C/svg%3E");
  color: white;
  padding: 12rem 0 8rem;
  text-align: center;
  position: relative;
}

.hero:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath fill='%23FBF7E4' d='M1200 120L0 16.48V0h1200v120z'/%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  font-weight: 300;
}

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

/* About Section */
.about {
  position: relative;
  background-color: var(--bg-light);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.about-card {
  background: white;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.about-card:hover {
  transform: translateY(-10px);
}

.about-icon {
  width: 70px;
  height: 70px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

.about-icon svg {
  width: 35px;
  height: 35px;
  color: white;
}

.about-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Destinations Section */
.destinations {
  background-color: var(--bg-tan);
  position: relative;
}

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

.destination-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.destination-card:hover {
  transform: translateY(-8px);
}

.destination-image {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.destination-content {
  padding: 1.5rem;
}

.destination-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.destination-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Games Section */
.games {
  background: white;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.game-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
}

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

.game-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.game-card p {
  font-size: 0.95rem;
  color: var(--text-dark);
}

/* Testimonials */
.testimonials {
  background: linear-gradient(
    to right,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  position: relative;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 8px;
  position: relative;
}

.testimonial-card:before {
  content: '"';
  font-size: 8rem;
  position: absolute;
  top: -2rem;
  left: 1rem;
  font-family: Georgia, serif;
  color: rgba(255,255,255,0.1);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 1rem;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
}

.author-info span {
  display: block;
}

.author-name {
  font-weight: bold;
  font-size: 1.1rem;
}

.author-title {
  opacity: 0.8;
  font-size: 0.9rem;
}

/* Contact Section */
.contact {
  background-color: var(--bg-light);
}

.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.contact-info {
  padding: 2rem;
  background: white;
  border-radius: 8px;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.contact-info p {
  margin-bottom: 1.5rem;
}

.contact-info p svg {
  margin-right: 10px;
  color: var(--primary);
}

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

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

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 40px;
  margin-right: 10px;
}

.footer-logo span {
  font-weight: bold;
  font-size: 1.2rem;
}

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

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: rgba(255,255,255,0.8);
  transition: all 0.3s ease;
}

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

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .hero {
    padding: 10rem 0 6rem;
  }
  
  .hero h1 {
    font-size: 2.4rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .menu-toggle {
    display: block;
    font-size: 1.5rem;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }
  
  .nav-links.active {
    max-height: 300px;
    padding: 1rem 0;
  }
  
  .nav-links li {
    margin: 0;
    text-align: center;
    padding: 0.8rem 0;
  }
}

@media (max-width: 576px) {
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
}
