/* ============================================
   Cusco Travel Helper — Styles
   Premium, mobile-first, no external dependencies
   ============================================ */

/* --- Variables --- */
:root {
  --color-deep-blue: #0f2b46;
  --color-ink: #1a2332;
  --color-cream: #faf7f2;
  --color-sand: #e8e0d4;
  --color-earth: #8b7355;
  --color-gold: #c9a84c;
  --color-gold-hover: #b8983f;
  --color-orange-soft: #d4864a;
  --color-white: #ffffff;
  --color-text: #2d3748;
  --color-text-light: #5a6575;
  --color-border: #ddd5c7;
  --color-success: #4a7c59;
  --color-warning: #b8811c;
  --color-error: #a04545;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(15, 43, 70, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 43, 70, 0.10);
  --shadow-lg: 0 8px 32px rgba(15, 43, 70, 0.14);

  --max-width: 960px;
  --header-height: 64px;
}

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

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

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

a {
  color: var(--color-deep-blue);
  text-decoration: none;
}

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

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 56px 0;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-deep-blue);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.main-nav {
  display: none;
}

.main-nav a {
  font-size: 0.875rem;
  color: var(--color-text-light);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.main-nav a:hover {
  color: var(--color-deep-blue);
  background: var(--color-sand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.lang-switch button {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border: none;
  background: transparent;
  color: var(--color-text-light);
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.lang-switch button.active {
  background: var(--color-deep-blue);
  color: var(--color-white);
}

.lang-divider {
  color: var(--color-border);
  font-size: 0.75rem;
}

.btn-whatsapp-header {
  display: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-success);
  border: 1px solid var(--color-success);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.btn-whatsapp-header:hover {
  background: var(--color-success);
  color: var(--color-white);
}

/* --- Hero --- */
.hero {
  background: linear-gradient(160deg, #0f2b46 0%, #1a4a6e 50%, #2d6a8f 100%);
  color: var(--color-white);
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}

.hero::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");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 600px;
}

.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.65;
  opacity: 0.88;
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
}

/* --- Buttons --- */
.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-block;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-deep-blue);
  box-shadow: var(--shadow-sm);
}

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

.btn-secondary {
  background: var(--color-white);
  color: var(--color-deep-blue);
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--color-deep-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-light);
  border: 1.5px solid var(--color-border);
}

.btn-ghost:hover {
  color: var(--color-deep-blue);
  border-color: var(--color-earth);
}

/* --- Trust Bar --- */
.trust-bar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 24px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.trust-dot {
  width: 8px;
  height: 8px;
  background: var(--color-gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Section Headers --- */
h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--color-deep-blue);
  margin-bottom: 10px;
  line-height: 1.3;
}

.section-intro {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 32px;
  max-width: 640px;
}

/* --- Quote Form --- */
.quote-section {
  background: var(--color-white);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 28px;
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-cream);
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-deep-blue);
  box-shadow: 0 0 0 3px rgba(15, 43, 70, 0.08);
  background: var(--color-white);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 20px;
  padding-right: 36px;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- Quote Result --- */
.quote-result {
  margin-top: 36px;
  animation: fadeInUp 0.4s ease;
}

.quote-result.hidden {
  display: none;
}

.result-card {
  background: var(--color-cream);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.result-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-deep-blue);
  margin-bottom: 18px;
}

.result-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 22px;
}

.result-meta-item {
  background: var(--color-white);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  border-left: 3px solid var(--color-gold);
}

.result-meta-item strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-earth);
  margin-bottom: 4px;
}

.result-meta-item span {
  font-size: 0.95rem;
  color: var(--color-text);
}

.result-warnings {
  margin-bottom: 22px;
}

.result-warnings h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-earth);
  margin-bottom: 10px;
}

.result-warn-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.result-warn-item.info {
  background: rgba(15, 43, 70, 0.05);
  border-left: 3px solid var(--color-deep-blue);
  color: var(--color-deep-blue);
}

.result-warn-item.warning {
  background: rgba(184, 129, 28, 0.08);
  border-left: 3px solid var(--color-warning);
  color: var(--color-ink);
}

.warn-icon {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 1px;
}

.result-disclaimer {
  background: var(--color-white);
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 22px;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* --- Routes Section --- */
.routes-section {
  background: var(--color-cream);
}

.routes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.route-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}

.route-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.route-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--color-deep-blue);
  margin-bottom: 10px;
}

.route-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.route-badge {
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}

.route-badge.time {
  background: rgba(15, 43, 70, 0.06);
  color: var(--color-deep-blue);
}

.route-badge.level-easy {
  background: rgba(74, 124, 89, 0.1);
  color: var(--color-success);
}

.route-badge.level-moderate {
  background: rgba(184, 129, 28, 0.1);
  color: var(--color-warning);
}

.route-badge.level-high {
  background: rgba(160, 69, 69, 0.1);
  color: var(--color-error);
}

.route-warning {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 14px;
  line-height: 1.55;
}

.route-card .btn-secondary {
  font-size: 0.85rem;
  padding: 10px 18px;
  width: 100%;
}

/* --- Trip Checks --- */
.trip-checks-section {
  background: var(--color-white);
}

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

.product-card {
  background: var(--color-cream);
  border-radius: var(--radius-md);
  padding: 26px;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s;
}

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

.product-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-deep-blue);
  margin-bottom: 6px;
}

.product-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-earth);
  margin-bottom: 10px;
}

.product-card p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  margin-bottom: 14px;
  line-height: 1.55;
}

.product-includes {
  list-style: none;
  margin-bottom: 18px;
}

.product-includes li {
  font-size: 0.85rem;
  color: var(--color-text);
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
}

.product-includes li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-weight: 700;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-actions .btn-primary,
.product-actions .btn-secondary {
  font-size: 0.85rem;
  padding: 10px 18px;
  width: 100%;
}

/* --- Machu Picchu Note --- */
.machu-note {
  background: linear-gradient(135deg, #f0ebe3 0%, #e4ddd2 100%);
}

.machu-note-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  text-align: center;
}

.machu-note-card h2 {
  margin-bottom: 12px;
}

.machu-note-card p {
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto 22px;
  font-size: 0.95rem;
}

/* --- FAQ --- */
.faq-section {
  background: var(--color-white);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--color-cream);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.faq-item summary {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-deep-blue);
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
}

.faq-item summary:hover {
  background: rgba(15, 43, 70, 0.03);
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-earth);
  transition: transform 0.2s;
}

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

.faq-item p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  padding: 0 20px 18px;
  line-height: 1.65;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-deep-blue);
  color: rgba(255, 255, 255, 0.7);
  padding: 44px 0 28px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-white);
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-contact a,
.footer-contact p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

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

.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
}

.footer-disclaimer p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
  max-width: 720px;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Tablet --- */
@media (min-width: 640px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-ctas {
    flex-direction: row;
    max-width: none;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-actions {
    flex-direction: row;
    align-items: center;
  }

  .result-actions {
    flex-direction: row;
    align-items: center;
  }

  .result-meta {
    grid-template-columns: repeat(2, 1fr);
  }

  .routes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-actions {
    flex-direction: row;
  }

  .main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .btn-whatsapp-header {
    display: inline-block;
  }
}

/* --- Desktop --- */
@media (min-width: 900px) {
  .hero {
    padding: 88px 0 96px;
  }

  .hero h1 {
    font-size: 2.9rem;
  }

  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  section {
    padding: 72px 0;
  }

  .routes-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}
