/* Tenerife Outdoor Guide — Design System
   Island outdoor: Atlantic blue + volcanic terracotta
   Playfair Display headings, Inter body, mobile-first */

:root {
  --primary: #1B3A4B; --primary-dark: #0F2530; --primary-light: #2A5A6E;
  --atlantic: #1B6B8A; --atlantic-light: #2A8AAA;
  --terracotta: #C67B4B; --terracotta-dark: #A85D35;
  --volcanic: #3D3230; --volcanic-light: #6B5E5B;
  --bg: #FAFAF8; --surface: #FFFFFF; --sand: #F5F0E8;
  --border: #E0D8CE; --border-light: #EDE8E0;
  --text: #2D2523; --text-secondary: #6B5E5B; --text-muted: #7A6F6B;
  --cta: #C67B4B; --cta-hover: #A85D35;
  --touch: 44px; --radius: 8px; --max-width: 1100px;
}

*, *::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: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, .nav-logo, .category-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700; line-height: 1.3; color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.8rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.3rem); }
h4 { font-size: 1rem; }
p { margin-bottom: 1rem; color: var(--text-secondary); }
a { color: var(--atlantic); text-decoration: underline; text-underline-offset: 2px; }

/* ── NAV ── */
.nav {
  background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}
.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-size: 1.15rem; font-weight: 500; color: var(--primary); text-decoration: none; }
.nav-links { display: none; list-style: none; gap: 0; align-items: center; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; font-weight: 500; padding: 0.5rem 0.75rem; border-radius: 6px; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--sand); }
.nav-cta, .nav-overlay-cta {
  color: var(--cta) !important; border: 1.5px solid var(--cta); padding: 0.4rem 1rem !important;
  border-radius: 6px; font-weight: 600 !important; font-size: 0.85rem !important;
  text-decoration: none; transition: all 0.2s;
}
.nav-cta:hover, .nav-overlay-cta:hover { background: var(--cta); color: #fff !important; }

/* Hamburger */
.hamburger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: var(--touch); height: var(--touch); background: none; border: none;
  cursor: pointer; padding: 10px; z-index: 200;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 1px; transition: 0.3s; }

/* Mobile overlay */
.nav-overlay {
  position: fixed; inset: 0; background: rgba(250,250,248,0.98);
  z-index: 150; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.nav-overlay.active { opacity: 1; pointer-events: all; }
.nav-overlay-content { text-align: center; padding: 2rem; }
.nav-overlay-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: var(--touch); height: var(--touch); background: none; border: none;
  font-size: 1.5rem; cursor: pointer; color: var(--text);
}
.nav-overlay-links { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.nav-overlay-links a {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem; font-weight: 300; color: var(--text); text-decoration: none;
  display: block; padding: 0.5rem;
}
.nav-overlay-links a:hover { color: var(--primary); }
.nav-overlay-cta { display: inline-block; margin-top: 0.5rem; font-family: 'Inter', sans-serif !important; font-size: 1rem !important; }

body.no-scroll { overflow: hidden; }

@media (min-width: 769px) {
  .nav-links { display: flex; }
  .hamburger { display: none; }
  .nav-overlay { display: none; }
}

/* ── HERO ── */
.hero { position: relative; overflow: hidden; min-height: 420px; display: flex; align-items: center; }
.hero-image {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  z-index: 0;
}
.hero-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,37,48,0.55) 0%, rgba(27,58,75,0.55) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: var(--max-width); margin: 0 auto; padding: 3rem 1.25rem; text-align: center; }
.hero-content h1 { color: #fff; margin-bottom: 0.75rem; }
.hero-subtitle { color: rgba(255,255,255,0.85) !important; font-size: 1.1rem; max-width: 600px; margin: 0 auto 1.5rem !important; }
.hero-cta {
  display: inline-block; color: #fff; border: 2px solid rgba(255,255,255,0.8);
  padding: 0.75rem 2rem; border-radius: 6px; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; text-transform: uppercase; letter-spacing: 0.03em;
  transition: all 0.2s;
}
.hero-cta:hover { background: #fff; color: var(--primary); }

/* ── CATEGORY GRID ── */
.category-grid { padding: 3rem 1.25rem; max-width: var(--max-width); margin: 0 auto; }
.category-grid h2 { text-align: center; margin-bottom: 2rem; }
.grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.category-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; transition: box-shadow 0.2s;
  display: block;
}
.category-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.category-img { height: 180px; background-size: cover; background-position: center; }
.category-text { padding: 1.25rem; }
.category-text h3 { color: var(--text); margin-bottom: 0.5rem; }
.category-text p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 0.75rem; }
.category-link { color: var(--cta); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }

@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } }

/* ── CONTENT ── */
.content-section { padding: 2rem 1.25rem; max-width: 720px; margin: 0 auto; }
.content-body h2 { margin-top: 2rem; }
.content-body h2:first-child { margin-top: 0; }
.content-body ul, .content-body ol { margin: 0.5rem 0 1.5rem 1.5rem; color: var(--text-secondary); }
.content-body li { margin-bottom: 0.5rem; }

/* ── AUTHOR ── */
.author-block {
  display: flex; gap: 1rem; align-items: flex-start;
  max-width: 720px; margin: 2rem auto; padding: 1.5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.author-avatar {
  width: 56px; height: 56px; border-radius: 50%; background: var(--primary);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', Georgia, serif; font-size: 1.2rem; font-weight: 700;
  flex-shrink: 0;
}
.author-info h4 { margin-bottom: 0.25rem; }
.author-title { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.author-link { font-size: 0.85rem; font-weight: 600; color: var(--cta); text-decoration: none; }
.author-link:hover { text-decoration: underline; }

/* ── ABOUT PAGE ── */
.about-content { max-width: 720px; margin: 0 auto; padding: 2rem 1.25rem; }
.author-large { text-align: center; margin-bottom: 2rem; }
.author-avatar-lg {
  width: 80px; height: 80px; border-radius: 50%; background: var(--primary);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', Georgia, serif; font-size: 1.8rem; font-weight: 700;
  margin: 0 auto 1rem;
}
.author-title-lg { color: var(--text-muted); font-size: 1rem; }
.about-body p { margin-bottom: 1.25rem; }
.about-body h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.about-body ul { margin: 0.5rem 0 1.5rem 1.5rem; color: var(--text-secondary); }
.about-body li { margin-bottom: 0.75rem; }

/* ── COMPARISON METHODOLOGY ── */
.comparison-methodology { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin: 1rem 0; }
.method-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem;
}
.method-item strong { color: var(--primary); display: block; margin-bottom: 0.25rem; }
@media (min-width: 600px) { .comparison-methodology { grid-template-columns: repeat(2, 1fr); } }

/* ── FOOTER ── */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.7); padding: 2.5rem 1.25rem 1.5rem; font-size: 0.85rem; }
.footer-content { max-width: var(--max-width); margin: 0 auto; }
.footer-about { margin-bottom: 1.5rem; }
.footer-about h4 { color: #fff; margin-bottom: 0.5rem; }
.footer-about p { color: rgba(255,255,255,0.55) !important; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-bottom: 1.5rem; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1rem; }
.footer-bottom p { color: rgba(255,255,255,0.4) !important; font-size: 0.8rem; margin-bottom: 0.25rem; }
.copyright { margin-top: 0.5rem; }

/* ── COMPARISON TABLES ── */
.comp-table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0;
  font-size: 0.9rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: block;
}
.comp-table thead { background: var(--primary); color: #fff; }
.comp-table th {
  text-align: left; padding: 0.75rem 1rem; font-weight: 600;
  font-size: 0.85rem; white-space: nowrap;
}
.comp-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-light); }
.comp-table tbody tr:last-child td { border-bottom: none; }
.comp-table tbody tr:nth-child(even) { background: var(--sand); }
.comp-table .best-badge {
  display: inline-block; background: var(--terracotta); color: #fff;
  padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.75rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
}
.comp-table .rating { color: var(--terracotta); font-weight: 700; }
.comp-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── TOUR CARDS (individual tour review) ── */
.tour-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem;
}
.tour-card-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem;
}
.tour-card-header h3 { margin-bottom: 0; }
.tour-card-meta {
  display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem;
  color: var(--text-muted);
}
.tour-card-meta span { display: flex; align-items: center; gap: 0.25rem; }
.tour-card-pros-cons {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0;
}
.tour-pros h5, .tour-cons h5 {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}
.tour-pros h5 { color: #2D7D46; }
.tour-cons h5 { color: #C44; }
.tour-pros ul, .tour-cons ul { margin: 0; padding: 0; list-style: none; }
.tour-pros li::before { content: '+ '; color: #2D7D46; font-weight: 700; }
.tour-cons li::before { content: '− '; color: #C44; font-weight: 700; }
.tour-pros li, .tour-cons li { font-size: 0.85rem; margin-bottom: 0.35rem; color: var(--text-secondary); }
.tour-card-footer {
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-light);
  font-size: 0.85rem; color: var(--text-muted);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
}

/* ── VERDICT BOX ── */
.verdict-box {
  background: var(--sand); border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem; margin: 1.5rem 0; border-radius: 0 var(--radius) var(--radius) 0;
}
.verdict-box h4 { color: var(--primary); margin-bottom: 0.5rem; }
.verdict-box p { margin-bottom: 0; }

/* ── PLANNING SECTIONS ── */
.planning-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin: 1.5rem 0;
}
.planning-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.planning-card h4 { margin-bottom: 0.75rem; color: var(--primary); }
.planning-card ul { margin: 0 0 0 1.25rem; color: var(--text-secondary); }
.planning-card li { margin-bottom: 0.5rem; font-size: 0.9rem; }
@media (min-width: 600px) { .planning-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── SEASON TABLE ── */
.season-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
.season-table th {
  background: var(--primary); color: #fff; padding: 0.5rem 0.75rem;
  text-align: left; font-size: 0.8rem;
}
.season-table td { padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--border-light); }
.season-table td:first-child { font-weight: 600; white-space: nowrap; }
.season-great { color: #2D7D46; }
.season-good { color: var(--atlantic); }
.season-ok { color: var(--terracotta); }

/* ── BREADCRUMB ── */
.breadcrumb { padding: 1rem 1.25rem 0; max-width: var(--max-width); margin: 0 auto; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumb a { color: var(--atlantic); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .tour-card-pros-cons { grid-template-columns: 1fr; }
  .tour-card-header { flex-direction: column; }
}

/* ── 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; }
