/* ============================================
   TripXu Global Stylesheet
   ============================================ */

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

:root {
  --primary: #0B3D2E;
  --primary-light: #14614A;
  --accent: #D4A843;
  --accent-light: #E8C96A;
  --dark: #1A1A2E;
  --text: #2C2C3A;
  --text-light: #6B7280;
  --bg: #FAFAF8;
  --white: #FFFFFF;
  --border: #E5E7EB;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s ease;
  --max-width: 1200px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--dark); line-height: 1.25; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 620px;
  margin: 16px auto 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.3px;
}

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

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

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

.btn-sm { padding: 10px 24px; font-size: 0.88rem; }

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
}
.site-header.scrolled .nav-link { color: var(--text); }
.site-header.scrolled .nav-link:hover { color: var(--primary); }
.site-header.scrolled .logo-text { color: var(--dark); }
.site-header.scrolled .logo-icon { color: var(--primary); }
.site-header.scrolled .header-cta { background: var(--primary); color: var(--white); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 1.6rem; color: var(--accent); }
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  transition: color var(--transition);
}
.logo-text span { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 36px; }
.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
  position: relative;
}
.nav-link:hover { color: var(--white); }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.header-cta {
  padding: 10px 24px;
  background: var(--accent);
  color: var(--dark);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 50px;
  transition: all var(--transition);
}
.header-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* Mobile Nav */
.mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.mobile-toggle span { width: 24px; height: 2px; background: var(--white); transition: all var(--transition); border-radius: 2px; }
.site-header.scrolled .mobile-toggle span { background: var(--dark); }

/* Page-specific header (non-transparent) */
.header-solid { background: var(--primary); }
.header-solid .nav-link { color: rgba(255,255,255,0.85); }
.header-solid .nav-link:hover { color: var(--white); }
.header-solid .logo-text { color: var(--white); }

/* ============================================
   HERO SECTIONS
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,61,46,0.82) 0%, rgba(26,26,46,0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  color: var(--white);
}
.hero-content h1 { color: var(--white); margin-bottom: 20px; }
.hero-content p { font-size: 1.15rem; color: rgba(255,255,255,0.85); margin-bottom: 32px; line-height: 1.8; }

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

/* Mini Hero for subpages */
.hero-mini {
  padding: 160px 0 80px;
  background: var(--primary);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-mini::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-mini h1 { color: var(--white); margin-bottom: 12px; position: relative; }
.hero-mini p { color: rgba(255,255,255,0.75); font-size: 1.1rem; position: relative; }

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 100px 0; }
.section-dark { background: var(--dark); color: var(--white); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-alt { background: var(--white); }
.section-header { text-align: center; margin-bottom: 60px; }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.card-image {
  height: 240px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.card-image .card-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--accent);
  color: var(--dark);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.card-body { padding: 28px; }
.card-body h3 { margin-bottom: 10px; }
.card-body p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 16px; }

.card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-light);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.card-meta svg { width: 16px; height: 16px; }

/* ============================================
   GRID LAYOUTS
   ============================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ============================================
   FEATURES / STATS
   ============================================ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 48px 0;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.65); }

.feature-card {
  text-align: center;
  padding: 40px 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.feature-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }

.feature-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--white);
  font-size: 1.5rem;
}

.feature-card h4 { margin-bottom: 10px; }
.feature-card p { color: var(--text-light); font-size: 0.92rem; }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.testimonial::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--accent);
  position: absolute;
  top: 16px; left: 28px;
  line-height: 1;
  opacity: 0.3;
}
.testimonial p { font-size: 1rem; font-style: italic; margin-bottom: 20px; padding-top: 24px; color: var(--text); }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
}
.testimonial-name { font-weight: 600; font-size: 0.92rem; }
.testimonial-role { font-size: 0.82rem; color: var(--text-light); }

/* ============================================
   CTA BAND
   ============================================ */
.cta-band {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  text-align: center;
  color: var(--white);
}
.cta-band h2 { color: var(--white); margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.65);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-text { color: var(--white); margin-bottom: 16px; display: inline-block; }
.footer-brand p { font-size: 0.92rem; line-height: 1.7; max-width: 320px; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent); }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--accent); color: var(--dark); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.82rem;
}
.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: var(--accent); }
.footer-legal { display: flex; gap: 24px; }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  height: 480px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 5rem;
  position: relative;
}
.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.value-card {
  padding: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}
.value-icon { font-size: 2.4rem; margin-bottom: 16px; }
.value-card h4 { margin-bottom: 10px; }
.value-card p { color: var(--text-light); font-size: 0.92rem; }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-info-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  transition: border-color var(--transition);
}
.contact-info-card:hover { border-color: var(--accent); }

.contact-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-info-card h4 { margin-bottom: 4px; font-size: 1rem; }
.contact-info-card p { color: var(--text-light); font-size: 0.92rem; }

.form-placeholder {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  border: 2px dashed var(--border);
  text-align: center;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}
.form-placeholder svg { width: 48px; height: 48px; color: var(--text-light); opacity: 0.4; }
.form-placeholder p { color: var(--text-light); font-size: 0.95rem; }

/* ============================================
   GROUP TRAVEL PAGE
   ============================================ */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process-timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.step-number {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-md);
}
.process-step h4 { margin-bottom: 8px; }
.process-step p { font-size: 0.88rem; color: var(--text-light); }

/* Trip type cards */
.trip-type-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  height: 360px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}
.trip-type-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 60%);
}
.trip-type-content {
  position: relative;
  padding: 32px;
  color: var(--white);
  width: 100%;
}
.trip-type-content h3 { color: var(--white); margin-bottom: 8px; }
.trip-type-content p { color: rgba(255,255,255,0.8); font-size: 0.92rem; margin-bottom: 16px; }

/* ============================================
   DESTINATIONS PAGE
   ============================================ */
.dest-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  height: 400px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition);
}
.dest-card:hover { transform: scale(1.02); }
.dest-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
}
.dest-info {
  position: relative;
  padding: 32px;
  color: var(--white);
  width: 100%;
}
.dest-info h3 { color: var(--white); margin-bottom: 4px; font-size: 1.4rem; }
.dest-region { font-size: 0.85rem; color: var(--accent-light); margin-bottom: 12px; }
.dest-info p { color: rgba(255,255,255,0.8); font-size: 0.9rem; }

/* Destination filter tabs */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 10px 24px;
  border-radius: 50px;
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
}
.filter-tab:hover, .filter-tab.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--white);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
  color: var(--text);
}
.faq-question:hover { color: var(--primary); }
.faq-icon { font-size: 1.2rem; transition: transform var(--transition); flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner { padding: 0 24px 20px; color: var(--text-light); font-size: 0.95rem; line-height: 1.7; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .grid-4, .stats-bar, .process-timeline { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .process-timeline::before { display: none; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .values-grid, .about-intro, .contact-grid { grid-template-columns: 1fr; }
  .grid-4, .stats-bar { grid-template-columns: repeat(2, 1fr); }

  .main-nav { display: none; }
  .mobile-toggle { display: flex; }
  .header-cta { display: none; }

  /* Mobile menu */
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    padding: 24px;
    gap: 0;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open .nav-link {
    color: var(--text);
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open .nav-link::after { display: none; }

  .hero { min-height: 80vh; }
  .hero-mini { padding: 130px 0 60px; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .grid-4, .stats-bar, .process-timeline { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
