/* ==========================================================================
   PÈLERINS ÎLE MAURICE - PREMIUM GOOGLE ADS COMPLIANT WHITEHAT STYLESHEET
   Design System: Deep Emerald Green, Warm Sand/Cream, Coral Sunset & Soft Gold
   Mobile-First Refined & Optimized (375px - 1920px)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,700;0,900;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --color-emerald: #15382F;
  --color-emerald-dark: #0D261F;
  --color-emerald-light: #224D41;
  --color-sand: #FAF5EA;
  --color-sand-dark: #EFE4D2;
  --color-sand-card: #F4EBE0;
  --color-coral: #F06A4F;
  --color-coral-hover: #D9543A;
  --color-gold: #DFB76C;
  --color-text-dark: #1C2622;
  --color-text-muted: #5C6E66;
  --color-text-light: #F7FAF8;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 12px rgba(13, 38, 31, 0.06);
  --shadow-md: 0 12px 32px rgba(13, 38, 31, 0.12);
  --shadow-lg: 0 24px 48px rgba(13, 38, 31, 0.18);
  --shadow-glow: 0 0 25px rgba(240, 106, 79, 0.35);
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-sand);
  color: var(--color-text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Glassmorphism utility */
.glass-panel {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-panel-dark {
  background: rgba(21, 56, 47, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(223, 183, 108, 0.25);
}

/* Custom Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-coral {
  background-color: var(--color-coral);
  color: #FFFFFF;
  box-shadow: var(--shadow-glow);
}

.btn-coral:hover {
  background-color: var(--color-coral-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240, 106, 79, 0.5);
}

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

.btn-outline-gold:hover {
  background: var(--color-gold);
  color: var(--color-emerald-dark);
}

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */
.header {
  background-color: var(--color-emerald);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 14px 0;
  border-bottom: 1px solid rgba(223, 183, 108, 0.15);
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Custom SVG Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-text span {
  background: linear-gradient(135deg, var(--color-gold), #FFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

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

.header-cta-desktop {
  display: inline-flex;
}

.mobile-toggle {
  display: none;
  color: white;
  font-size: 1.8rem;
  padding: 4px;
  line-height: 1;
  background: transparent;
  border: none;
}

/* ==========================================================================
   HERO SECTION (Matching Ref Top Section)
   ========================================================================== */
.hero {
  background-color: var(--color-emerald);
  color: var(--color-text-light);
  padding: 50px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(223, 183, 108, 0.15);
  border: 1px solid rgba(223, 183, 108, 0.3);
  color: var(--color-gold);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.5vw, 4rem);
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero-title span {
  display: block;
  font-weight: 400;
  font-style: italic;
  color: var(--color-gold);
}

.hero-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 28px;
  max-width: 520px;
  line-height: 1.6;
}

/* Indicator Pills matching dots in ref */
.hero-indicators {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: var(--transition);
}

.indicator-dot.active {
  background: var(--color-coral);
  width: 28px;
  border-radius: 12px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-img-wrapper {
  position: relative;
  border-radius: 50%;
  padding: 10px;
  background: linear-gradient(135deg, rgba(223, 183, 108, 0.4), rgba(21, 56, 47, 0.8));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  max-width: 100%;
}

.hero-img {
  width: 400px;
  height: 400px;
  max-width: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.floating-stamp {
  position: absolute;
  top: 10px;
  right: -10px;
  background: rgba(21, 56, 47, 0.92);
  border: 1.5px solid var(--color-gold);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  color: var(--color-gold);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

/* Torn Edge Canvas Divider matching Ref */
.torn-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  pointer-events: none;
  z-index: 5;
}

.torn-divider svg {
  display: block;
  width: 100%;
  height: 50px;
  fill: var(--color-sand);
}

/* ==========================================================================
   SECTION 2: VALUE PROPOSITION / STORY (Matching Ref Middle Block)
   ========================================================================== */
.value-section {
  padding: 80px 0 70px;
  background-color: var(--color-sand);
  position: relative;
}

.value-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.value-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.value-card-bg {
  background: var(--color-sand-card);
  border-radius: 30px;
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 480px;
  display: flex;
  justify-content: center;
}

.value-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 380px;
  object-fit: cover;
}

.value-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  color: var(--color-emerald-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.value-content p {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.value-features-list {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.value-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-emerald);
}

.value-feature-item svg {
  color: var(--color-coral);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   SECTION 3: FEATURES GRID & CENTRAL PLATE (Matching Ref Bottom Section)
   ========================================================================== */
.features-section {
  background-color: var(--color-sand);
  padding: 40px 0 80px;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-subtitle {
  color: var(--color-coral);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  color: var(--color-emerald-dark);
  line-height: 1.15;
}

.bottom-plate-container {
  position: relative;
  background: var(--color-emerald);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  color: white;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.plate-torn-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  background: radial-gradient(circle, var(--color-gold) 0%, transparent 70%);
  pointer-events: none;
}

.plate-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 32px;
  align-items: center;
}

.plate-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.plate-feature-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.plate-feature-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-gold);
}

.plate-feature-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--color-gold);
  margin-bottom: 6px;
}

.plate-feature-desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.plate-center-img-wrapper {
  text-align: center;
  position: relative;
  display: flex;
  justify-content: center;
}

.plate-center-img {
  width: 320px;
  height: 320px;
  max-width: 100%;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto;
  border: 4px solid var(--color-gold);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   SECTION 4: INTERACTIVE ITINERARY CALCULATOR
   ========================================================================== */
.calculator-section {
  padding: 70px 0;
  background: var(--color-sand-dark);
}

.calc-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 28px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-emerald);
}

.form-control {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #E0E7E4;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition);
  width: 100%;
  min-height: 48px;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-coral);
  box-shadow: 0 0 0 3px rgba(240, 106, 79, 0.15);
}

.calc-result {
  background: var(--color-emerald);
  color: white;
  padding: 28px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-price {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--color-gold);
  font-weight: 700;
}

/* ==========================================================================
   SECTION 5: FAQ ACCORDION
   ========================================================================== */
.faq-section {
  padding: 70px 0;
  background: var(--color-sand);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid rgba(21, 56, 47, 0.08);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-header {
  padding: 20px 24px;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-emerald-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 16px;
}

.faq-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transition: var(--transition);
  color: var(--color-coral);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-body {
  padding: 0 24px 20px;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-body {
  display: block;
}

/* ==========================================================================
   FOOTER & LEGAL COMPLIANCE
   ========================================================================== */
.footer {
  background-color: var(--color-emerald-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 24px;
  border-top: 3px solid var(--color-gold);
  font-size: 0.88rem;
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--color-gold);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link a {
  transition: var(--transition);
}

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

.legal-badges {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.badge-anpc {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 0.75rem;
  color: #FFF;
  background: rgba(255, 255, 255, 0.05);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}

/* Legal Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 38, 31, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  padding: 16px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: white;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px 24px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.6rem;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-content h3 {
  font-family: var(--font-serif);
  color: var(--color-emerald-dark);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.modal-content p, .modal-content ul {
  margin-bottom: 14px;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

/* ==========================================================================
   REFINED MOBILE RESPONSIVE MEDIA QUERIES (375px - 992px)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }

  .hero-description {
    margin: 0 auto 24px;
  }

  .hero-indicators {
    justify-content: center;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .value-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .value-features-list {
    align-items: center;
    text-align: left;
  }

  .plate-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .plate-center-img-wrapper {
    order: -1; /* Place image at top of features on mobile */
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .header {
    padding: 10px 0;
  }

  .header-cta-desktop {
    display: none; /* Hide header CTA button on mobile header to avoid crowding */
  }

  .mobile-toggle {
    display: block; /* Show hamburger button */
  }

  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background: var(--color-emerald-dark);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    transform: translateX(100%);
    transition: transform 0.35s ease-in-out;
    border-top: 1px solid rgba(223, 183, 108, 0.2);
    overflow-y: auto;
    z-index: 999;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.15rem;
  }

  .hero {
    padding: 36px 0 70px;
  }

  .hero-img {
    width: 280px;
    height: 280px;
  }

  .floating-stamp {
    position: relative;
    top: 0;
    right: 0;
    margin-top: 14px;
    display: inline-block;
    font-size: 0.75rem;
    padding: 8px 14px;
  }

  .value-card-bg {
    padding: 16px;
    border-radius: 20px;
  }

  .bottom-plate-container {
    padding: 32px 16px;
  }

  .plate-center-img {
    width: 240px;
    height: 240px;
  }

  .calc-box {
    padding: 24px 16px;
    border-radius: var(--radius-md);
  }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .calc-result {
    padding: 20px 16px;
  }

  .calc-price {
    font-size: 2.2rem;
  }

  .faq-header {
    padding: 16px;
    font-size: 0.98rem;
  }

  .faq-body {
    padding: 0 16px 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

@media (max-width: 480px) {
  .logo-text {
    font-size: 1.1rem;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.92rem;
    width: 100%;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-img {
    width: 240px;
    height: 240px;
  }
}
