/* ==========================================================================
   LANGKAWI EXPEDITION — V2 DESIGN SYSTEM
   Palette: Corporate #00293F | Warm Gold #d9b56c | WhatsApp #25D366
   ========================================================================== */

:root {
  --brand-navy: #00293F;
  --brand-navy-dark: #001c2b;
  --brand-navy-light: #0d3d59;
  
  --accent-gold: #d9b56c;
  --accent-gold-hover: #c49f55;
  --action-emerald: #25D366;
  --action-emerald-hover: #1eb857;

  --bg-base: #F8F9FA;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F1F4F6;
  
  --text-main: #1A2421;
  --text-muted: #5A6561;
  --text-inverse: #FFFFFF;
  --text-inverse-muted: #D1D9DE;
  
  --border-light: rgba(0, 41, 63, 0.08);
  --border-medium: rgba(0, 41, 63, 0.15);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", Menlo, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 41, 63, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 41, 63, 0.08);
  --shadow-lg: 0 16px 36px rgba(0, 41, 63, 0.12);

  --max-w: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Utility */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--brand-navy);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}

.section-head {
  margin-bottom: 40px;
}

.section-title {
  font-size: clamp(28px, 3.8vw, 42px);
  color: var(--brand-navy);
  margin-bottom: 12px;
}

.section-lede {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 58ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: var(--brand-navy-dark);
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background-color: var(--action-emerald);
  color: #032d14;
}

.btn-whatsapp:hover {
  background-color: var(--action-emerald-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--text-inverse);
}

.btn-outline:hover {
  border-color: var(--text-inverse);
  background-color: rgba(255, 255, 255, 0.05);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 41, 63, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-inverse);
  letter-spacing: 0.02em;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-inverse-muted);
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-inverse);
}

.nav-cta-btn {
  background-color: var(--accent-gold);
  color: var(--brand-navy-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 8px 18px;
  border-radius: var(--radius-full);
}

.nav-cta-btn:hover {
  background-color: var(--accent-gold-hover);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-inverse);
  font-size: 24px;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%);
  color: var(--text-inverse);
  padding: 80px 0 100px;
  position: relative;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  color: var(--text-inverse);
  max-width: 20ch;
  margin-bottom: 18px;
}

.hero p {
  font-size: 17px;
  color: var(--text-inverse-muted);
  max-width: 52ch;
  margin-bottom: 32px;
}

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

.hero-stats {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  max-width: 560px;
}

.hero-stats strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--accent-gold);
}

.hero-stats span {
  font-size: 12px;
  color: var(--text-inverse-muted);
}

/* Sections General */
section {
  padding: 80px 0;
}

/* Value Props */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
}

.why-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.why-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Category Tab Headers */
.category-anchor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--brand-navy);
}

.category-anchor-head h2 {
  font-size: 20px;
  letter-spacing: 0.04em;
}

/* Horizontal Package Cards */
.package-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pkg-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 0.8fr;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.pkg-card:hover {
  box-shadow: var(--shadow-md);
}

.pkg-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background-color: var(--brand-navy);
}

.pkg-card.is-popular {
  border: 2px solid var(--accent-gold);
}

.pkg-card.is-popular::before {
  background-color: var(--accent-gold);
}

.popular-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background-color: var(--accent-gold);
  color: var(--brand-navy-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.pkg-main {
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.pkg-main h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.pkg-main p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.pkg-specs {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand-navy);
  margin-top: auto;
  background: var(--bg-subtle);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.pkg-details {
  padding: 28px 24px;
  background: #FCFDFE;
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  font-size: 13px;
}

.price-matrix {
  margin-bottom: 16px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px dashed var(--border-medium);
  font-family: var(--font-mono);
}

.price-row strong {
  color: var(--brand-navy);
}

.detail-block {
  margin-bottom: 8px;
  line-height: 1.5;
}

.detail-block strong {
  color: var(--brand-navy);
}

.pkg-action {
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  text-align: right;
  background: var(--bg-surface);
}

.price-display {
  margin-bottom: 18px;
}

.price-display span {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
}

.price-display strong {
  font-family: var(--font-mono);
  font-size: 30px;
  color: var(--brand-navy);
  line-height: 1;
}

.pkg-action .btn {
  width: 100%;
}

/* Route Itinerary Nodes */
.route-trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
}

.route-stop {
  background: var(--bg-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: var(--brand-navy);
  font-weight: 500;
}

.route-arrow {
  color: var(--accent-gold);
  font-weight: 700;
}

/* Comparison Table */
.comparison-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.comp-table th, .comp-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}

.comp-table th {
  background-color: var(--brand-navy);
  color: var(--text-inverse);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.comp-table tr:hover td {
  background-color: var(--bg-subtle);
}

/* Lunch Add-On Section */
.lunch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.lunch-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.lunch-card.is-premium {
  border-color: var(--accent-gold);
}

.lunch-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.lunch-head strong {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--brand-navy);
}

.lunch-price-tag {
  background: var(--bg-subtle);
  color: var(--brand-navy);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.lunch-card.is-premium .lunch-price-tag {
  background: var(--accent-gold);
  color: var(--brand-navy-dark);
}

.lunch-items {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.lunch-items li::before {
  content: "✓ ";
  color: var(--accent-gold);
  font-weight: 700;
}

/* FAQ Accordion */
.faq-grid {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.faq-item summary {
  font-weight: 600;
  color: var(--brand-navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  color: var(--accent-gold);
  font-size: 20px;
  font-weight: 600;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-body {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Footer */
footer {
  background: var(--brand-navy-dark);
  color: var(--text-inverse-muted);
  padding: 60px 0 24px;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-col h4 {
  color: var(--text-inverse);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a:hover {
  color: var(--text-inverse);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

/* Sticky Mobile WhatsApp Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-medium);
  padding: 12px 20px;
  z-index: 999;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

/* Responsive Adaptations */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  
  .pkg-card {
    grid-template-columns: 1fr;
  }
  
  .pkg-details {
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
  }
  
  .pkg-action {
    align-items: flex-start;
    text-align: left;
  }

  .why-grid, .lunch-grid, .footer-grid {
    grid-template-columns: 1fr;
  }

  .mobile-sticky-bar {
    display: block;
  }
}

/* ==========================================================================
   Logo & Social Icons Styling
   ========================================================================== */

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

.site-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.footer-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.lang-switch {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  color: var(--accent-gold);
  transition: all 0.2s;
}

.lang-switch:hover {
  background: var(--accent-gold);
  color: var(--brand-navy-dark) !important;
}

/* Social Icon Badges */
.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.social-icon:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--brand-navy-dark);
  transform: translateY(-2px);
}

@media (max-width: 860px) {
  .site-logo {
    height: 38px;
  }
}