/* ============================================
   BARBADOS ELITE - Premium Luxury Styles
   ============================================ */

/* CSS Variables */
:root {
  --color-navy: #0f1e3d;
  --color-navy-light: #152850;
  --color-navy-dark: #0a1528;
  --color-gold: #d8c38b;
  --color-gold-light: #e5d5a8;
  --color-gold-dark: #c4ad70;
  --color-white: #ffffff;
  --color-cream: #f8f6f2;
  --color-gray: #9ca3af;
  --color-gray-light: #e5e7eb;

  --font-heading: "Cinzel", serif;
  --font-body: "Inter", sans-serif;

  --transition-smooth: all 0.3s ease;
  --transition-slow: all 0.5s ease;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-cream);
  background-color: var(--color-navy);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-white);
  letter-spacing: 0.03em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1.25rem;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin-bottom: 1rem;
  color: var(--color-gold);
}

h4 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--color-gold);
}

p {
  margin-bottom: 1rem;
  color: var(--color-gray-light);
}

.lead {
  font-size: 1.25rem;
  color: var(--color-cream);
}

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

a:hover {
  color: var(--color-gold-light);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

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

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

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(20, 35, 67, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(216, 195, 139, 0.1);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-toggle {
  display: flex;
  gap: 0.5rem;
}

.lang-btn {
  width: 32px;
  height: 22px;
  border: 2px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  overflow: hidden;
  background: none;
  padding: 0;
  opacity: 0.6;
  transition: var(--transition-smooth);
}

.lang-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.lang-btn.active {
  opacity: 1;
  border-color: var(--color-gold);
  box-shadow: 0 0 10px rgba(216, 195, 139, 0.3);
}

.flag-icon {
  width: 100%;
  height: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-logo {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
}

.logo:hover {
  color: var(--color-gold-light);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-cream);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-gold);
  transition: var(--transition-smooth);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-gold);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-gold);
  transition: var(--transition-smooth);
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--color-gold);
  color: var(--color-navy);
  border-color: var(--color-gold);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--color-gold);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-cream);
  border-color: var(--color-cream);
}

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

.btn-full {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
  background-color: #0f1e3d;
  position: relative;
}

.hero::before {
  display: none;
}

.hero-content {
  position: relative;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  max-width: 500px;
  width: 50%;
  height: auto;
  margin-bottom: 2rem;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: var(--color-gold);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--color-gray-light);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

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

/* Page Hero */
.page-hero {
  padding: 10rem 0 4rem;
  text-align: center;
  background: linear-gradient(180deg, var(--color-navy-dark) 0%, var(--color-navy) 100%);
  position: relative;
}

/* Villas Page Hero Extended Background */
.villas-hero-extended {
  background: url('villa-bg.jpg') center center / cover no-repeat fixed;
  position: relative;
}

.villas-hero-extended::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 21, 40, 0.75);
  z-index: 1;
}

.villas-hero-extended .page-hero,
.villas-hero-extended .villa-intro {
  position: relative;
  z-index: 2;
  background: transparent;
}

.villas-hero-extended .page-hero {
  padding: 12rem 0 4rem;
}

.villas-hero-extended .villa-intro {
  padding-bottom: 6rem;
}

/* Experiences Page Hero Extended Background */
.experiences-hero-extended {
  background: url('experiences-bg.jpg') center center / cover no-repeat fixed;
  position: relative;
}

.experiences-hero-extended::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 21, 40, 0.7);
  z-index: 1;
}

.experiences-hero-extended .page-hero,
.experiences-hero-extended .experiences-intro {
  position: relative;
  z-index: 2;
  background: transparent;
}

.experiences-hero-extended .page-hero {
  padding: 12rem 0 4rem;
}

.experiences-hero-extended .experiences-intro {
  padding-bottom: 6rem;
}

/* About Page Hero Extended Background */
.about-hero-extended {
  background: url('about-bg.jpg') center center / cover no-repeat fixed;
  position: relative;
}

.about-hero-extended::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 21, 40, 0.7);
  z-index: 1;
}

.about-hero-extended .page-hero,
.about-hero-extended .about-story {
  position: relative;
  z-index: 2;
  background: transparent;
}

.about-hero-extended .page-hero {
  padding: 12rem 0 4rem;
}

.about-hero-extended .about-story {
  padding-bottom: 6rem;
}

.page-tagline {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: var(--color-gold);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Intro Section */
.intro-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

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

.feature-card {
  text-align: center;
  padding: 2rem;
}

.feature-icon {
  color: var(--color-gold);
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  width: 48px;
  height: 48px;
}

/* Content Blocks */
.content-block {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--color-gold);
}

/* Two Column Layout */
.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-gray-light);
  border-bottom: 1px solid rgba(216, 195, 139, 0.1);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: var(--color-gold);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  padding: 2rem;
  background-color: rgba(216, 195, 139, 0.03);
  border: 1px solid rgba(216, 195, 139, 0.1);
  transition: var(--transition-smooth);
}

.service-card:hover {
  border-color: rgba(216, 195, 139, 0.3);
  background-color: rgba(216, 195, 139, 0.05);
}

/* Experiences Grid */
.experiences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.experience-card {
  padding: 2rem;
  background-color: var(--color-navy);
  border: 1px solid rgba(216, 195, 139, 0.1);
  transition: var(--transition-smooth);
}

.experience-card:hover {
  border-color: var(--color-gold);
}

/* Premium Grid */
.premium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.premium-card {
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(216, 195, 139, 0.08) 0%, rgba(216, 195, 139, 0.02) 100%);
  border: 1px solid rgba(216, 195, 139, 0.2);
  transition: var(--transition-smooth);
}

.premium-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  text-align: center;
  padding: 2rem;
}

/* Story Content */
.story-content {
  max-width: 800px;
  margin: 0 auto;
}

.story-content p {
  margin-bottom: 1.5rem;
}

/* Promise Content */
.promise-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* CTA Section */
.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content p {
  margin-bottom: 2rem;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-details {
  margin-top: 3rem;
}

.contact-item {
  margin-bottom: 2rem;
}

.contact-item h4 {
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: var(--color-cream);
}

/* Contact Form */
.contact-form {
  background-color: var(--color-navy-light);
  padding: 3rem;
  border: 1px solid rgba(216, 195, 139, 0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-cream);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-cream);
  background-color: var(--color-navy);
  border: 1px solid rgba(216, 195, 139, 0.2);
  transition: var(--transition-smooth);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-gray);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
}

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

/* Form Success */
.form-success {
  text-align: center;
  padding: 3rem;
  background-color: var(--color-navy-light);
  border: 1px solid rgba(216, 195, 139, 0.1);
}

.success-icon {
  color: var(--color-gold);
  margin-bottom: 1.5rem;
}

.form-success h3 {
  color: var(--color-gold);
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  padding: 4rem 0 2rem;
  background-color: var(--color-navy-dark);
  border-top: 1px solid rgba(216, 195, 139, 0.1);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--color-gray);
  font-size: 0.875rem;
}

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

.footer-links a {
  color: var(--color-gray-light);
  font-size: 0.875rem;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(216, 195, 139, 0.1);
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--color-gray);
}

/* Villa Carousel */
.villa-carousel {
  background-color: var(--color-navy);
}

.carousel-subtitle {
  color: var(--color-gray);
  font-size: 0.9rem;
  margin-top: -0.5rem;
}

.carousel-wrapper {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.carousel {
  overflow: hidden;
  border-radius: 4px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.carousel-slide:hover img {
  transform: scale(1.02);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(15, 30, 61, 0.9);
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  color: var(--color-gold);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.carousel-btn:hover {
  background: var(--color-gold);
  color: var(--color-navy);
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
}

.carousel-prev {
  left: -25px;
}

.carousel-next {
  right: -25px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(216, 195, 139, 0.3);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.carousel-dot.active,
.carousel-dot:hover {
  background: var(--color-gold);
}

@media (max-width: 1100px) {
  .carousel-prev {
    left: 10px;
  }
  .carousel-next {
    right: 10px;
  }
}

@media (max-width: 768px) {
  .carousel-btn {
    width: 40px;
    height: 40px;
  }
  .carousel-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: rgba(20, 35, 67, 0.98);
    padding: 2rem;
    gap: 0;
    display: none;
    border-bottom: 1px solid rgba(216, 195, 139, 0.1);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(216, 195, 139, 0.1);
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .section {
    padding: 4rem 0;
  }

  .hero {
    padding: 6rem 1.5rem 3rem;
  }

  .page-hero {
    padding: 8rem 0 3rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 2rem;
  }

  .two-column {
    gap: 3rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  /* Fix background images on mobile - fixed attachment doesn't work on mobile */
  .villas-hero-extended,
  .experiences-hero-extended,
  .about-hero-extended {
    background-attachment: scroll;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }

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