/* ==========================================================================
   Travel Oregon — Main Stylesheet
   Nature-inspired palette: forest greens, deep blues, earth tones, warm gold.
   Mobile-first, no external CDNs.
   ========================================================================== */

:root {
  /* Palette */
  --forest: #1f4d3a;
  --forest-dark: #143527;
  --moss: #3b7a57;
  --pine: #2e6b4f;
  --deep-blue: #14384f;
  --lake-blue: #2a6f97;
  --sky: #6ba8c4;
  --earth: #8a6d4b;
  --sand: #e9e1d3;
  --cream: #f7f4ee;
  --gold: #d99b3a;
  --gold-dark: #c2842a;
  --ink: #20281f;
  --muted: #5c6660;
  --white: #ffffff;
  --shadow: 0 6px 24px rgba(20, 53, 39, 0.12);
  --shadow-lg: 0 18px 48px rgba(20, 53, 39, 0.18);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1180px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", Cambria, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

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

a { color: var(--pine); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-dark); }

h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.2; color: var(--forest-dark); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p { margin-bottom: 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.2rem; }

.section { padding: 3.5rem 0; }
.section--tint { background: var(--sand); }
.section--forest { background: var(--forest); color: var(--cream); }
.section--forest h2, .section--forest h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: .6rem;
}
.section--forest .eyebrow { color: var(--gold); }

.section-head { max-width: 760px; margin: 0 auto 2.4rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section--forest .section-head p { color: #d5e4da; }

/* Buttons */
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--gold); color: var(--forest-dark); }
.btn--primary:hover { background: var(--gold-dark); color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: var(--white); color: var(--forest-dark); }
.btn--solid { background: var(--forest); color: var(--white); }
.btn--solid:hover { background: var(--forest-dark); color: var(--white); }

/* ===================== Header / Nav ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247, 244, 238, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(31, 77, 58, 0.12);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .7rem 1.2rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: .55rem; font-family: var(--font-serif); font-weight: 700; font-size: 1.3rem; color: var(--forest-dark); }
.brand:hover { color: var(--forest-dark); }
.brand .logo-mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--pine), var(--lake-blue));
  display: grid; place-items: center; color: #fff; font-size: 1.2rem; flex-shrink: 0;
}
.brand small { display: block; font-family: var(--font-sans); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; }

.nav-toggle {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .4rem;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--forest-dark); border-radius: 3px; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-menu {
  list-style: none;
  position: fixed;
  inset: 0 0 0 25%;
  background: var(--forest);
  flex-direction: column;
  padding: 5rem 1.5rem 2rem;
  gap: .4rem;
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex;
  box-shadow: var(--shadow-lg);
}
.nav-menu.open { transform: translateX(0); }
.nav-menu a {
  display: block; color: var(--cream); padding: .7rem .4rem; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--gold); }

/* ===================== Hero ===================== */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: #fff;
  text-align: center;
  padding: 4rem 0;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,53,39,.45), rgba(20,53,39,.72));
  z-index: 1;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.35); margin-bottom: 1rem; }
.hero p { font-size: 1.15rem; max-width: 640px; margin: 0 auto 1.6rem; color: #f2eee5; }
.hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* Compact inner-page hero */
.hero--inner { min-height: 52vh; }

/* Search / quick filter bar */
.quick-search {
  margin: 1.8rem auto 0;
  max-width: 640px;
  background: rgba(255,255,255,.95);
  border-radius: 50px;
  padding: .4rem .5rem .4rem 1.2rem;
  display: flex;
  gap: .5rem;
  align-items: center;
  box-shadow: var(--shadow);
}
.quick-search input {
  flex: 1; border: none; background: transparent; font-size: 1rem; color: var(--ink);
  padding: .6rem 0;
}
.quick-search input:focus { outline: none; }

/* ===================== Cards / Grid ===================== */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .5rem; }
.card-body p { color: var(--muted); font-size: .97rem; margin-bottom: 1rem; }
.card-tag {
  display: inline-block; align-self: flex-start; background: var(--sand); color: var(--forest-dark);
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: .25rem .7rem; border-radius: 50px; margin-bottom: .7rem;
}
.card .card-link { margin-top: auto; font-weight: 700; color: var(--gold-dark); }
.card .card-link::after { content: " →"; }

/* Feature media row */
.media-row { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; }
.media-row img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.media-row .media-text h2 { margin-bottom: .8rem; }
.media-row .media-text p { color: var(--muted); }
.section--forest .media-row .media-text p { color: #d5e4da; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; text-align: center; }
.stat .num { font-family: var(--font-serif); font-size: 2.4rem; color: var(--gold); font-weight: 700; }
.stat .label { font-size: .9rem; color: var(--muted); }
.section--forest .stat .label { color: #d5e4da; }

/* ===================== Comparison Table ===================== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
table.compare { width: 100%; border-collapse: collapse; min-width: 720px; }
table.compare caption { text-align: left; padding: 1rem 1.2rem; font-weight: 700; color: var(--muted); }
table.compare th, table.compare td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid #ececec; font-size: .95rem; }
table.compare thead th { background: var(--forest); color: #fff; font-family: var(--font-sans); position: sticky; top: 0; }
table.compare tbody tr:nth-child(even) { background: #faf8f3; }
table.compare tbody tr:hover { background: var(--sand); }
table.compare td:first-child { font-weight: 700; color: var(--forest-dark); }

/* Filter controls */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 1.8rem; }
.filter-btn {
  border: 2px solid var(--pine); background: transparent; color: var(--pine);
  padding: .45rem 1.1rem; border-radius: 50px; cursor: pointer; font-weight: 600; font-size: .9rem;
  transition: all .2s ease;
}
.filter-btn:hover, .filter-btn.active { background: var(--pine); color: #fff; }

/* ===================== FAQ / Accordion ===================== */
.faq-item { background: #fff; border-radius: var(--radius-sm); margin-bottom: .8rem; box-shadow: var(--shadow); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 1.1rem 1.3rem; font-size: 1.05rem; font-weight: 700; color: var(--forest-dark);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--font-serif);
}
.faq-q .icon { transition: transform .25s ease; color: var(--gold-dark); flex-shrink: 0; font-size: 1.4rem; }
.faq-q[aria-expanded="true"] .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 1.3rem 1.2rem; color: var(--muted); margin: 0; }

/* ===================== Itinerary timeline ===================== */
.timeline { position: relative; padding-left: 1.8rem; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 3px; background: var(--moss); border-radius: 3px; }
.timeline-item { position: relative; margin-bottom: 1.8rem; }
.timeline-item::before {
  content: ""; position: absolute; left: -1.8rem; top: .35rem; width: 15px; height: 15px;
  border-radius: 50%; background: var(--gold); border: 3px solid var(--cream);
}
.timeline-item h3 { margin-bottom: .3rem; }
.timeline-day { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-dark); font-weight: 700; }

/* Pills / list checks */
.check-list { list-style: none; }
.check-list li { padding-left: 1.8rem; position: relative; margin-bottom: .6rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--moss); font-weight: 700; }

/* ===================== Testimonials ===================== */
.testimonial { background: #fff; border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.testimonial p { font-style: italic; color: var(--ink); }
.testimonial .who { display: flex; align-items: center; gap: .7rem; margin-top: 1rem; }
.testimonial .who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testimonial .who strong { display: block; font-size: .95rem; }
.testimonial .who span { font-size: .82rem; color: var(--muted); }

/* ===================== Footer ===================== */
.site-footer { background: var(--forest-dark); color: #cfe0d6; padding: 3rem 0 1.5rem; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
.site-footer h4 { color: #fff; margin-bottom: .9rem; font-size: 1.05rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { color: #cfe0d6; }
.site-footer a:hover { color: var(--gold); }
.footer-brand p { color: #aac3b6; max-width: 320px; }
.footer-email-btn {
  background: var(--moss); color: #fff; border: none; padding: .5rem 1rem; border-radius: 50px;
  cursor: pointer; font-weight: 600; font-size: .9rem; margin-top: .4rem;
}
.footer-email-btn:hover { background: var(--gold-dark); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.3rem; text-align: center; color: #9fbcab; font-size: .85rem; line-height: 1.8; }
.footer-bottom a { color: var(--gold); }
.footer-cookie { font-size: .8rem; color: #8fae9f; max-width: 760px; margin: .6rem auto 0; }

/* Cookie banner */
.cookie-banner {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem; z-index: 1200;
  background: var(--forest-dark); color: #e8f1ea; border-radius: var(--radius);
  padding: 1rem 1.2rem; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: .8rem; max-width: 640px; margin: 0 auto;
}
.cookie-banner p { margin: 0; font-size: .9rem; }
.cookie-banner .cookie-actions { display: flex; gap: .6rem; }
.cookie-banner.hide { display: none; }

/* Breadcrumbs */
.breadcrumbs { background: var(--sand); font-size: .85rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: .7rem 1.2rem; max-width: var(--maxw); margin: 0 auto; color: var(--muted); }
.breadcrumbs li::after { content: "›"; margin-left: .5rem; color: var(--earth); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--pine); font-weight: 600; }

/* Newsletter CTA band */
.cta-band { background: linear-gradient(135deg, var(--pine), var(--lake-blue)); color: #fff; border-radius: var(--radius); padding: 2.2rem 1.6rem; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e4f0ea; max-width: 540px; margin: 0 auto 1.3rem; }
.cta-band form { display: flex; gap: .5rem; max-width: 440px; margin: 0 auto; flex-wrap: wrap; }
.cta-band input { flex: 1; min-width: 200px; border: none; border-radius: 50px; padding: .8rem 1.2rem; font-size: 1rem; }
.cta-band input:focus { outline: 2px solid var(--gold); }
.form-msg { margin-top: .8rem; font-weight: 600; min-height: 1.2em; }

/* Article / prose */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin: 2rem 0 .8rem; }
.prose h3 { margin: 1.5rem 0 .6rem; }
.prose p, .prose ul, .prose ol { color: #313a30; }
.prose ul, .prose ol { margin: 0 0 1rem 1.3rem; }
.prose figure { margin: 1.6rem 0; }
.prose figure img { border-radius: var(--radius); box-shadow: var(--shadow); }
.prose figcaption { font-size: .82rem; color: var(--muted); text-align: center; margin-top: .5rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm); box-shadow: var(--shadow); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Skip link */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: .6rem 1rem; z-index: 2000; }
.skip-link:focus { left: 0; }

/* ===================== Responsive ===================== */
@media (min-width: 600px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-menu {
    position: static; inset: auto; flex-direction: row; background: none;
    transform: none; padding: 0; gap: .2rem; box-shadow: none; align-items: center;
  }
  .nav-menu a { color: var(--forest-dark); border: none; padding: .5rem .85rem; border-radius: 8px; }
  .nav-menu a:hover, .nav-menu a.active { color: var(--gold-dark); background: var(--sand); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .media-row { grid-template-columns: 1fr 1fr; }
  .media-row.reverse .media-text { order: 2; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .cookie-banner { flex-direction: row; align-items: center; justify-content: space-between; left: auto; right: 1.5rem; bottom: 1.5rem; }
  .cookie-banner .cookie-actions { flex-shrink: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
