/*
 * Sync Tours - Luxury Travel Design System
 * Global Stylesheet
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Fonts */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Color Palette - Premium Navy, Gold & White */
  --primary-navy: #040D21;     /* Midnight Navy */
  --secondary-navy: #0A1931;   /* Rich Royal Navy */
  --accent-gold: #C5A059;      /* Elegant Muted Gold */
  --accent-gold-light: #E5D5B8;/* Champagne Cream */
  --accent-gold-dark: #A47E3B; /* Deep Amber Gold */
  
  /* Light Theme Defaults */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFC;     /* Slate 50 */
  --bg-tertiary: #F1F5F9;      /* Slate 100 */
  --text-primary: #0F172A;    /* Slate 900 */
  --text-secondary: #475569;  /* Slate 600 */
  --text-muted: #94A3B8;     /* Slate 400 */
  --border-color: #E2E8F0;    /* Slate 200 */
  --card-bg: #FFFFFF;
  
  /* Glassmorphism Variables - Light */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(197, 160, 89, 0.2);
  --glass-blur: 16px;
  
  /* UI Accents */
  --white: #FFFFFF;
  --black: #000000;
  --success: #10B981;
  
  /* Shadows & Radius */
  --shadow-sm: 0 2px 8px rgba(4, 13, 33, 0.04);
  --shadow-md: 0 8px 24px rgba(4, 13, 33, 0.06);
  --shadow-lg: 0 16px 48px rgba(4, 13, 33, 0.1);
  --shadow-gold: 0 10px 25px rgba(197, 160, 89, 0.15);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  /* Layout */
  --container-width: 1280px;
  --header-height: 80px;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Overrides */
body.dark-theme {
  --bg-primary: #030712;      /* Slate 950 */
  --bg-secondary: #080E1E;    /* Custom ultra-dark navy */
  --bg-tertiary: #0F172A;     /* Slate 900 */
  --text-primary: #F8FAFC;    /* Slate 50 */
  --text-secondary: #CBD5E1;  /* Slate 300 */
  --text-muted: #64748B;      /* Slate 500 */
  --border-color: #1E293B;    /* Slate 800 */
  --card-bg: #091122;
  
  /* Glassmorphic - Dark */
  --glass-bg: rgba(4, 13, 33, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.4);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

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

li {
  list-style: none;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-navy);
  border: 2px solid var(--bg-secondary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-padding {
  padding-top: 100px;
  padding-bottom: 100px;
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

/* Typography Classes */
.font-serif {
  font-family: var(--font-display);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 500;
  line-height: 1.15;
  color: var(--primary-navy);
  margin-bottom: 20px;
}

body.dark-theme .section-title {
  color: var(--white);
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2.2rem;
  }
}

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

/* Buttons & CTAs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  color: var(--white);
  box-shadow: var(--shadow-gold);
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
}

.btn-gold:hover::after {
  left: 100%;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(197, 160, 89, 0.3);
}

.btn-outline {
  border: 1px solid var(--accent-gold);
  color: var(--text-primary);
}

body.dark-theme .btn-outline {
  color: var(--white);
}

.btn-outline:hover {
  background: var(--accent-gold);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-dark {
  background-color: var(--primary-navy);
  color: var(--white);
  border: 1px solid var(--primary-navy);
}

.btn-dark:hover {
  background-color: transparent;
  color: var(--primary-navy);
  border-color: var(--primary-navy);
  transform: translateY(-2px);
}

body.dark-theme .btn-dark {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
}

body.dark-theme .btn-dark:hover {
  background-color: transparent;
  color: var(--accent-gold);
}

/* Glassmorphism Utility */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
}

/* Sticky Navbar Components */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-normal);
  padding: 24px 0;
}

.header.scrolled {
  padding: 12px 0;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1440px; /* Stretch on wide desktops */
}

.logo {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--white); /* White logo text at the top for contrast */
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  transition: color var(--transition-normal);
}

.logo span {
  color: var(--accent-gold);
}

.nav-menu {
  display: flex;
  gap: 18px; /* Balanced spacing to fit links */
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.85rem; /* Increased font size for better readability */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.85); /* White text at the top */
  position: relative;
  padding: 4px 0;
  white-space: nowrap; /* Prevent multi-line wrap for ABOUT US */
  transition: color var(--transition-fast);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width var(--transition-normal);
}

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

.nav-link.active {
  color: var(--accent-gold) !important;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

/* Adaptive styles when header is scrolled */
.header.scrolled .logo {
  color: var(--primary-navy);
}

body.dark-theme .header.scrolled .logo {
  color: var(--white);
}

.header.scrolled .nav-link {
  color: var(--text-primary);
}

body.dark-theme .header.scrolled .nav-link {
  color: var(--text-secondary);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
  color: var(--accent-gold) !important;
}

/* Adjust hamburger color to stay white at top, adapt on scroll */
.hamburger span {
  background-color: var(--white);
}

.header.scrolled .hamburger span {
  background-color: var(--text-primary);
}

body.dark-theme .header.scrolled .hamburger span {
  background-color: var(--white);
}

/* Medium Desktop Responsiveness */
@media (min-width: 1025px) and (max-width: 1280px) {
  .logo {
    font-size: 1.4rem;
  }
  .nav-menu {
    gap: 12px;
  }
  .nav-link {
    font-size: 0.8rem; /* Fit perfectly on medium viewports */
  }
  .nav-actions {
    gap: 10px;
  }
}

/* Theme Toggle Button Adaptive Styling */
.theme-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--white); /* White icon at top */
  background-color: rgba(255, 255, 255, 0.1); /* Translucent background */
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background-color: var(--accent-gold);
  color: var(--primary-navy);
}

.header.scrolled .theme-toggle-btn {
  color: var(--text-primary);
  background-color: var(--bg-tertiary);
}

body.dark-theme .header.scrolled .theme-toggle-btn {
  color: var(--white);
  background-color: var(--bg-tertiary);
}

.header.scrolled .theme-toggle-btn:hover {
  background-color: var(--accent-gold);
  color: var(--primary-navy);
}



.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
}

.theme-toggle-btn .sun-icon { display: block; }
.theme-toggle-btn .moon-icon { display: none; }

body.dark-theme .theme-toggle-btn .sun-icon { display: none; }
body.dark-theme .theme-toggle-btn .moon-icon { display: block; }

/* Hamburger Menu Icon */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-primary);
  transition: all var(--transition-fast);
  border-radius: 2px;
}

body.dark-theme .hamburger span {
  background-color: var(--white);
}

@media (max-width: 1024px) {
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-primary);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    padding: 100px 40px 40px;
    align-items: flex-start;
    transition: right var(--transition-normal);
    z-index: 1050;
    border-left: 1px solid var(--border-color);
  }
  
  .nav-menu.open {
    right: 0;
  }
  
  .nav-menu li {
    width: 100%;
  }
  
  .nav-link {
    display: block;
    padding: 12px 0;
    font-size: 1.1rem;
  }
}

/* CTA Banner Component */
.cta-banner {
  background: linear-gradient(rgba(4, 13, 33, 0.85), rgba(4, 13, 33, 0.85)), url('https://images.unsplash.com/photo-1544644181-1484b3fdfc62?q=80&w=2000') no-repeat center center/cover;
  padding: 120px 0;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 400;
  margin-bottom: 24px;
  line-height: 1.1;
}

.cta-text {
  font-size: 1.1rem;
  color: var(--accent-gold-light);
  margin-bottom: 40px;
  font-weight: 300;
}

@media (max-width: 768px) {
  .cta-title {
    font-size: 2.5rem;
  }
}

/* Footer Component */
.footer {
  background-color: var(--primary-navy);
  color: var(--white);
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 20px;
}

.footer-brand p {
  color: #94A3B8;
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background-color: var(--accent-gold);
  color: var(--primary-navy);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(197, 160, 89, 0.2);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--accent-gold-light);
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 1.5px;
  background-color: var(--accent-gold);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #94A3B8;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  color: #94A3B8;
  font-size: 0.95rem;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.footer-newsletter p {
  color: #94A3B8;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.03);
}

.newsletter-form input {
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--white);
  width: 100%;
}

.newsletter-form button {
  background-color: var(--accent-gold);
  color: var(--primary-navy);
  padding: 0 20px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color var(--transition-fast);
}

.newsletter-form button:hover {
  background-color: var(--accent-gold-hover);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748B;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

.footer-legal-links {
  display: flex;
  gap: 24px;
}

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

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background-color: #25D366;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
  color: var(--white);
  cursor: pointer;
  transition: all var(--transition-normal);
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  background-color: #22c35e;
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

/* Scroll Animations CSS */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

/* Subpage Hero Standard Styling */
.subpage-hero {
  height: 45vh;
  min-height: 350px;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  position: relative;
  color: var(--white);
  padding-top: var(--header-height);
}

.subpage-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(rgba(4, 13, 33, 0.75), rgba(4, 13, 33, 0.4));
  z-index: 1;
}

.subpage-hero .container {
  position: relative;
  z-index: 2;
}

.subpage-hero-title {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.1;
}

.subpage-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--accent-gold-light);
}

.subpage-breadcrumbs a {
  opacity: 0.8;
}

.subpage-breadcrumbs a:hover {
  opacity: 1;
  color: var(--accent-gold);
}

.subpage-breadcrumbs span {
  opacity: 0.6;
}

@media (max-width: 768px) {
  .subpage-hero {
    height: 35vh;
  }
  .subpage-hero-title {
    font-size: 2.8rem;
  }
}
