/* Madeira Hiking Tours — Design System v2
Research-informed: UX best practices, anthropologist personas, geographer palette
Mobile-first, comparison-led, trust-focused */
:root {
/* Palette — geographer-informed: forest + volcanic + Atlantic */
--forest: #2D5A27;
--forest-dark: #1E3D1A;
--moss: #4A7A3E;
--atlantic: #1B6B8A;
--atlantic-light: #2A8AAA;
--volcanic: #3D3230;
--volcanic-light: #6B5E5B;
--stone: #6B5E5B;
/* Surfaces */
--bg: #FAF9F6;
--surface: #FFFFFF;
--sand: #F5F0E8;
--border: #E0D8CE;
--border-light: #EDE8E0;
/* Text */
--text: #3D3230;
--text-secondary: #6B5E5B;
--text-muted: #7A6F6B;
/* Semantic */
--cta: #C94E32;           /* UX research: coral/terracotta converts best */
--cta-hover: #B04228;
--success: #2D5A27;
--warning: #C4922A;
--winner-bg: rgba(45,90,39,0.05);
--winner-border: #2D5A27;

/* Author photo avatar */
.author-avatar img,
img.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #d4c8b8;
}

/* Sizing */
--touch: 48px;            /* UX: minimum 48px touch target */

/* Mobile tap targets — WCAG 2.5.8 compliance */
.nav-links a,
.nav-categories a,
.nav-toggle,
.hero-cta,
.cta-button,
.cta-btn,
.product-card .cta-button,
footer a,
.badge {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}
--radius: 8px;
--radius-sm: 4px;
--max-width: 1100px;
--content-width: 720px;   /* UX: optimal reading width */
}
/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
line-height: 1.6; color: var(--text); background: var(--bg);
-webkit-font-smoothing: antialiased;
}
/* Typography */
h1, h2, h3, h4 {
font-family: Georgia, "Times New Roman", serif;
color: var(--volcanic); line-height: 1.3;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: clamp(1.05rem, 2.5vw, 1.25rem); font-weight: 600; }
p { margin-bottom: 1rem; color: var(--text-secondary); }
/* Links */
a { color: var(--atlantic); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--atlantic-light); }
/* Layout */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; }
.content { max-width: var(--content-width); margin: 0 auto; }
/* === NAVIGATION === */
.nav { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-inner { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1.25rem; max-width: var(--max-width); margin: 0 auto; }
.nav-logo { font-family: Georgia, serif; font-size: 1.1rem; font-weight: 700; color: var(--forest); text-decoration: none; white-space: nowrap; }
.nav-logo:hover { color: var(--forest-dark); }
.nav-categories { display: flex; gap: 0.25rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 0.25rem 0; }
.nav-categories::-webkit-scrollbar { display: none; }
.nav-categories a { color: var(--volcanic); text-decoration: none; font-size: 0.85rem; font-weight: 500; padding: 0.35rem 0.75rem; border-radius: 99px; white-space: nowrap; }
.nav-categories a:hover, .nav-categories a.active { background: var(--sand); color: var(--forest); }
/* === HERO === */
.hero { background: linear-gradient(135deg, var(--forest-dark) 0%, var(--forest) 60%, var(--moss) 100%); color: #fff; padding: 3rem 1.25rem; text-align: center; }
.hero h1 { color: #fff; margin-bottom: 0.5rem; }
.hero p { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 600px; margin: 0 auto 1.5rem; }
.hero .external-refs { color: rgba(255,255,255,0.65) !important; }
.hero-cta { display: inline-block; background: #fff; color: var(--forest); padding: 0.75rem 1.75rem; border-radius: var(--radius); font-weight: 600; text-decoration: none; transition: transform 0.15s; }
.hero-cta:hover { transform: translateY(-1px); color: var(--forest-dark); }
/* === VERDICT BOX (UX: Wirecutter-style, verdict in first 200px) === */
.verdict {
background: var(--sand); border-left: 4px solid var(--forest);
padding: 1.25rem 1.5rem; margin: 1.5rem 0; border-radius: 0 var(--radius) var(--radius) 0;
font-size: 1.05rem;
}
.verdict strong { color: var(--forest); }
.verdict-label { display: inline-block; background: var(--forest); color: #fff; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.2rem 0.6rem; border-radius: var(--radius-sm); margin-bottom: 0.5rem; }
/* === HONESTY BOX (UX: "Who it's not for" — highest ROI trust pattern) === */
.honesty {
background: #FFF8F6; border: 1px solid #F5D5CC;
padding: 1rem 1.25rem; margin: 1.5rem 0; border-radius: var(--radius);
}
.honesty h4 { font-size: 0.95rem; color: var(--volcanic); margin-bottom: 0.5rem; }
.honesty ul { margin: 0 0 0 1.25rem; font-size: 0.9rem; color: var(--text-secondary); }
.honesty li { margin-bottom: 0.25rem; }
/* === TRUST BADGES (UX: Wirecutter-style credibility bar) === */
.trust-badges {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  justify-content: center; padding: 0.75rem 0;
}
.trust-badge {
  font-size: 0.8rem; color: var(--text-secondary);
  display: flex; align-items: center; gap: 0.25rem;
}
.badge {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: inline-block;
}
.trust-badge::before {
  content: "✓"; color: var(--forest); font-weight: 700;
}
/* === COMPARISON CARDS (UX: card stack for mobile, not horizontal tables) === */
.card-stack { display: flex; flex-direction: column; gap: 1.25rem; margin: 1.5rem 0; }
.comp-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.comp-card.winner { border-color: var(--winner-border); box-shadow: 0 0 0 1px var(--winner-border); }
.comp-card-img { width: 100%; height: 200px; object-fit: cover; background: var(--sand); display: block; }
.comp-card-body { padding: 1.25rem; }
.comp-card-badge { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.15rem 0.5rem; border-radius: var(--radius-sm); margin-bottom: 0.5rem; }
.comp-card-badge.winner-badge { background: var(--forest); color: #fff; }
.comp-card-badge.alt-badge { background: var(--sand); color: var(--forest); }
.comp-card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.comp-card-specs { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; font-size: 0.85rem; color: var(--stone); margin-bottom: 0.75rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border-light); }
.comp-card-specs span { display: flex; align-items: center; gap: 0.25rem; }
.comp-card-price { font-weight: 700; color: var(--forest); font-size: 1.2rem; margin: 0.75rem 0; }
/* === CTA BUTTON (UX: "Check Price on Viator", 48px touch target) === */
.cta-btn {
display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
background: var(--cta); color: #fff; padding: 0 1.5rem; height: var(--touch);
border-radius: var(--radius); text-decoration: none; font-weight: 600; font-size: 0.95rem;
transition: background 0.15s; white-space: nowrap; min-width: 180px;
}
.cta-btn:hover { background: var(--cta-hover); color: #fff; }
.cta-btn-secondary { background: var(--surface); color: var(--cta); border: 2px solid var(--cta); }
.cta-btn-secondary:hover { background: #FFF8F6; color: var(--cta-hover); }
/* === PRODUCT CARD (UX: full product card anatomy) === */
.product-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin: 2rem 0; }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.product-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.product-card-img { width: 100%; height: 200px; object-fit: cover; background: var(--sand); }
.product-card-body { padding: 1rem 1.25rem 1.25rem; }
.product-card-title { font-family: Georgia, serif; font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--volcanic); }
.product-card-specs { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-size: 0.85rem; color: var(--stone); margin-bottom: 0.5rem; }
.product-card-rating { color: var(--warning); font-weight: 600; }
.product-card-price { font-weight: 700; color: var(--forest); font-size: 1.1rem; margin-bottom: 0.75rem; }
.product-card .cta-btn { width: 100%; justify-content: center; }
/* === INFO TABLE (fallback for simple comparisons) === */
.info-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; display: none; }
.info-table th { background: var(--forest); color: #fff; padding: 0.75rem; text-align: left; font-weight: 600; }
.info-table td { padding: 0.75rem; border-bottom: 1px solid var(--border); }
.info-table tr:nth-child(even) td { background: var(--bg); }
@media (min-width: 768px) {
.info-table { display: table; }
.card-stack.mobile-only { display: none; }
}
/* === SECTION === */
.section { padding: 3rem 1.25rem; }
.section-alt { background: var(--surface); }
.section-header { text-align: center; margin-bottom: 2rem; }
.section-header p { max-width: 600px; margin: 0 auto; }
/* === DISCLOSURE (UX: above first CTA, honest) === */
.disclosure { background: var(--sand); padding: 0.75rem 1.25rem; border-radius: var(--radius); font-size: 0.85rem; color: var(--text-muted); margin: 1.5rem 0; }
.disclosure a { color: var(--text-secondary); }
/* === FAQ === */
.faq-item { border-bottom: 1px solid var(--border-light); padding: 1rem 0; }
.faq-item h3 { font-size: 1.05rem; cursor: default; }
.faq-item p { margin-top: 0.5rem; }
/* === BREADCRUMBS === */
.breadcrumbs { font-size: 0.85rem; color: var(--text-muted); padding: 1rem 0; }
.breadcrumbs a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 2px; }
.breadcrumbs a:hover { color: var(--forest); }
/* === TAG === */
.tag { display: inline-block; background: var(--sand); color: var(--forest); padding: 0.15rem 0.6rem; border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 600; }
/* === GUIDE CONTENT === */
.guide-body h2 { margin-top: 2rem; }
.guide-body ul, .guide-body ol { margin: 1rem 0 1.5rem 1.5rem; color: var(--text-secondary); }
.guide-body li { margin-bottom: 0.5rem; }
/* === FOOTER === */
.footer { background: var(--volcanic); color: rgba(255,255,255,0.75); padding: 2rem 1.25rem; text-align: center; font-size: 0.85rem; }
.footer li a { display: inline-block; padding: 0.5rem 0; min-height: 48px; line-height: 1.2; }
.footer a { color: rgba(255,255,255,0.85); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; text-align: left; margin-bottom: 1.5rem; }
/* === RESPONSIVE === */
@media (min-width: 768px) {
.product-grid { grid-template-columns: repeat(2, 1fr); }
.product-grid-3 { grid-template-columns: repeat(3, 1fr); }
.footer-grid { grid-template-columns: repeat(3, 1fr); }
.hero { padding: 4rem 2rem; }
.section { padding: 4rem 2rem; }
}
@media (min-width: 1024px) {
.container { padding: 0 2rem; }
}
/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
:focus-visible { outline: 3px solid var(--atlantic); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Last updated date */
.last-updated { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 0.5rem; }
/* === HAMBURGER MENU (Mobile Navigation) === */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: var(--touch);
  min-height: var(--touch);
  z-index: 101;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--volcanic);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }
  .nav-categories {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.5rem;
    overflow-y: auto;
    z-index: 100;
  }
  .nav-categories.active {
    display: flex;
  }
  .nav-categories a {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    white-space: normal;
  }
  body.no-scroll {
    overflow: hidden;
  }
}


/* Comparison tables */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.comparison-table thead {
  background: var(--primary, #2d5e4b);
  color: white;
}
.comparison-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.comparison-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border, #e2dcd0);
  vertical-align: top;
  line-height: 1.5;
}
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}
.comparison-table tbody tr:hover {
  background: rgba(0,0,0,0.02);
}
.comparison-table td:first-child {
  font-weight: 600;
}
@media (max-width: 700px) {
  .comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .comparison-table {
    font-size: 0.82rem;
  }
  .comparison-table th,
  .comparison-table td {
    padding: 0.6rem 0.7rem;
  }
}
