/* ==========================================================================
   STATIC SITE FACTORY 2.0 - MASTER DESIGN SYSTEM (60-30-10 CRO TRAVEL PALETTE)
   Standardized High-Converting Travel Theme:
     - 60% Neutral Light (#F8FAFC / #FFFFFF): Clean photo-focus & readability
     - 30% Trust Navy & Ocean (#0F172A / #0284C7): Authority, headings & structure
     - 10% Action CTA Orange (#FF6B00 / #EA580C): Maximum contrast & conversion
   Typography: Inter (body text) + Plus Jakarta Sans (headings H1-H4)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* 60% Neutral Light Foundation */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --border-color: #e2e8f0;
  --border-color-hover: #cbd5e1;

  /* 30% Trust Navy & Ocean Text/Headings */
  --text-primary: #0f172a;    /* Deep Navy Slate */
  --text-secondary: #334155;  /* High-legibility Charcoal Body */
  --text-muted: #64748b;      /* Muted Subtitles */

  --accent-navy: #0f172a;
  --accent-blue: #0284c7;     /* Ocean Trust Blue */
  --accent-gold: #d97706;     /* Warm Gold Accent */
  
  /* 10% High-Converting CTA Orange */
  --accent-orange: #ff6b00;   /* Vivid Action Orange */
  --accent-orange-hover: #ea580c;
  --accent-coral: #ff4757;

  /* Link Defaults */
  --link-color: #0284c7;
  --link-hover-color: #ffffff;
  --link-hover-bg: #ff6b00;

  /* Fonts */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Radius & Shadows */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings - 30% Trust Navy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -0.01em; margin-top: 2rem; }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); margin-top: 1.5rem; }
h4 { font-size: 1.2rem; margin-top: 1.25rem; }

/* ULTRA HIGH-CONTRAST IN-CONTENT LINKS (Rule #1) */
a[href]:not(.btn):not(.btn-cta):not(.btn-secondary):not(.nav-link):not(.brand-logo):not(.footer-link):not(.tour-card) {
  color: #0284c7 !important; /* Ocean Trust Blue */
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-decoration-color: #0284c7 !important;
  text-underline-offset: 3px !important;
  background-color: rgba(2, 132, 199, 0.08) !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  transition: all 0.2s ease-in-out !important;
}

a[href]:not(.btn):not(.btn-cta):not(.btn-secondary):not(.nav-link):not(.brand-logo):not(.footer-link):not(.tour-card):hover {
  color: #ffffff !important;
  background-color: #ff6b00 !important;
  text-decoration-color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(255, 107, 0, 0.4) !important;
}

/* UI Elements Override */
.btn, .btn-cta, .nav-link, .brand-logo, .card, .tour-card, .footer-link, .tag {
  text-decoration: none !important;
}

/* 10% High-Converting Action CTA Button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent-orange) 0%, #ea580c 100%);
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 18px rgba(255, 107, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.5);
  background: linear-gradient(135deg, #ff8533 0%, #ff6b00 100%);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  color: var(--text-primary) !important;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #f1f5f9;
  border-color: var(--accent-blue);
  color: var(--accent-blue) !important;
}

/* Hero Section */
.hero, .home-hero {
  position: relative !important;
  overflow: hidden !important;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.88) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 1.5rem;
}

.hero-title {
  color: #ffffff;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  color: #cbd5e1;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  max-width: 750px;
  margin: 0 auto 2rem auto;
}

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

.reading-container {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Navigation Header - 30% Trust Navy */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0f172a;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.15);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  color: #e2e8f0;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: #38bdf8;
}

.burger-menu {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.75rem;
  cursor: pointer;
  z-index: 1001;
}

/* Mobile Nav */
@media (max-width: 1024px) {
  .burger-menu {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    height: calc(100vh - 76px);
    background: #0f172a;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
  }

  .nav-links.open {
    transform: translateX(0);
  }

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

/* Tour Cards & Power Grid */
.tours-section {
  padding: 3rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-tag {
  display: inline-block;
  color: var(--accent-blue);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.tour-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.tour-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-md);
}

.tour-image-container {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.tour-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tour-card:hover .tour-image {
  transform: scale(1.06);
}

.badge-skip-line {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-orange);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.4);
}

.tour-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.tour-title {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.tour-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}

.tour-rating {
  color: #d97706;
  font-weight: 600;
}

.tour-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.tour-price-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
}

.tour-price {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Author Persona Intro Block */
.author-intro-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 3rem 0;
  box-shadow: var(--shadow-sm);
}

/* Quick Facts Component */
.quick-facts-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

.quick-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.fact-item {
  display: flex;
  flex-direction: column;
}

.fact-label {
  font-size: 0.85rem;
  color: var(--accent-blue);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.fact-value {
  font-size: 1.05rem;
  color: var(--text-primary);
  font-weight: 600;
}

/* POI Grid Component */
.poi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.poi-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-md);
}

/* Split Feature Component */
.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin: 3rem 0;
}

@media (max-width: 768px) {
  .split-feature {
    grid-template-columns: 1fr;
  }
}

.feature-image-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.feature-image-wrapper img {
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

.image-credit {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  text-align: right;
}

.image-credit a {
  color: var(--text-muted) !important;
  text-decoration: underline !important;
  background: none !important;
  padding: 0 !important;
}

/* FAQ Accordion Component */
.faq-section {
  margin: 3rem 0;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--text-secondary);
  display: none;
}

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

.faq-icon {
  transition: transform 0.3s ease;
  color: var(--accent-blue);
}

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

/* Tables Component */
.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  text-align: left;
}

th, td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

th {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  background: #f1f5f9;
}

tr:last-child td {
  border-bottom: none;
}

/* Author Bio Component */
.author-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 3rem 0;
  box-shadow: var(--shadow-sm);
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-blue);
  flex-shrink: 0;
}

.author-info h4 {
  margin: 0 0 0.4rem 0;
  color: var(--text-primary);
}

.author-info p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Weather Widget Card Light Overrides */
.weather-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow-sm) !important;
}

/* Footer - 30% Trust Navy */
.site-footer {
  background: #0f172a;
  border-top: 1px solid #1e293b;
  padding: 4rem 0 2rem 0;
  margin-top: 4rem;
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-link {
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #38bdf8;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #1e293b;
  color: #64748b;
}
