/* ==========================================================================
   Ecuadorbirdingtours — Ecuador Birding Tours
   Shared stylesheet
   ========================================================================== */

:root {
  --forest: #1f3d33;
  --forest-light: #2f5c4c;
  --forest-pale: #e7efe9;
  --terracotta: #c9683a;
  --terracotta-dark: #a8502a;
  --gold: #cf9a3e;
  --sky: #3b7ea1;
  --sky-pale: #e5f0f5;
  --cream: #fbf7f0;
  --paper: #ffffff;
  --ink: #23261f;
  --ink-soft: #55584f;
  --line: #e3ddd0;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(31, 61, 51, 0.09);
  --max: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  color: var(--forest);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--forest); }

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--terracotta);
  color: #fff;
}
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--forest);
  color: var(--forest);
}
.btn-outline:hover { background: var(--forest); color: #fff; }
.btn-light {
  background: #fff;
  color: var(--forest);
}
.btn-whatsapp {
  background: #25D366;
  color: #fff;
}
.btn-whatsapp:hover { background: #1ebc59; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 240, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--forest);
}
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.1rem;
}
.brand-text { line-height: 1.15; }
.brand-name { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.15rem; }
.brand-tag { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

nav.primary-nav { display: flex; align-items: center; gap: 28px; }
nav.primary-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.96rem;
  position: relative;
}
nav.primary-nav a:hover { color: var(--terracotta); }
nav.primary-nav .dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 130%;
  left: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 220px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.15s ease;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu a { display: block; padding: 9px 12px; border-radius: 6px; font-size: 0.92rem; }
.dropdown-menu a:hover { background: var(--forest-pale); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--forest); cursor: pointer; }

@media (max-width: 900px) {
  nav.primary-nav {
    position: fixed; inset: 72px 0 0 0; background: var(--cream);
    flex-direction: column; align-items: flex-start; padding: 24px;
    gap: 4px; overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.2s ease;
  }
  nav.primary-nav.open { transform: translateX(0); }
  nav.primary-nav a { padding: 12px 4px; width: 100%; border-bottom: 1px solid var(--line); }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; display: none; padding-left: 12px; }
  .dropdown.open .dropdown-menu { display: block; }
  .nav-toggle { display: block; }
  .nav-cta .btn span.long { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--forest) 0%, var(--forest-light) 55%, #3c6b53 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero .container { padding-top: 88px; padding-bottom: 88px; position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.78rem; font-weight: 700; color: var(--gold); margin-bottom: 18px;
}
.hero h1 { color: #fff; max-width: 780px; }
.hero p.lead { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 620px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-peaks {
  position: absolute; bottom: -2px; left: 0; width: 100%; z-index: 1; opacity: 0.5;
}
.hero-stats { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.hero-stat b { display: block; font-family: "Fraunces", serif; font-size: 1.7rem; color: #fff; }
.hero-stat span { font-size: 0.82rem; color: rgba(255,255,255,0.75); }

.page-hero {
  background: var(--forest);
  color: #fff;
  padding: 64px 0 56px;
}
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,0.82); max-width: 680px; font-size: 1.08rem; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.8); text-decoration: none; }

/* ---------- Sections ---------- */
section { padding: 76px 0; }
section.tight { padding: 48px 0; }
section.alt { background: var(--paper); }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head.left { margin: 0 0 40px; text-align: left; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.76rem; font-weight: 700; color: var(--terracotta); margin-bottom: 10px;
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 10px; }
.icon-badge {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--forest-pale); color: var(--forest);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; font-size: 1.4rem;
}

.photo-slot {
  background: repeating-linear-gradient(135deg, var(--forest-pale), var(--forest-pale) 10px, #f2ede1 10px, #f2ede1 20px);
  border: 1px dashed #b9c8bd;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--forest-light);
  font-size: 0.82rem;
  text-align: center;
  padding: 20px;
  min-height: 180px;
}

/* ---------- Tour list (accordion) ---------- */
.tour-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 18px;
  overflow: hidden;
}
.tour-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.tour-item summary::-webkit-details-marker { display: none; }
.tour-item summary .ti-main { flex: 1; min-width: 220px; }
.tour-item summary h3 { margin-bottom: 6px; }
.tour-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 0.82rem; color: var(--ink-soft); }
.tour-meta span { background: var(--forest-pale); color: var(--forest); padding: 4px 11px; border-radius: 999px; font-weight: 600; }
.tour-price { text-align: right; white-space: nowrap; }
.tour-price b { display: block; font-family: "Fraunces", serif; font-size: 1.25rem; color: var(--terracotta); }
.tour-price span { font-size: 0.76rem; color: var(--ink-soft); }
.chevron { transition: transform 0.2s ease; color: var(--forest); font-size: 1.3rem; }
details[open] .chevron { transform: rotate(180deg); }
.tour-body { padding: 0 26px 30px; border-top: 1px solid var(--line); }
.tour-body h4 { margin-top: 22px; margin-bottom: 8px; font-size: 1rem; color: var(--forest); }
.tour-body ul { margin: 0 0 1em; padding-left: 20px; color: var(--ink-soft); }
.tour-body li { margin-bottom: 5px; }
.day-block { border-left: 3px solid var(--forest-pale); padding-left: 16px; margin-bottom: 16px; }
.day-block .day-label { font-weight: 700; color: var(--forest); font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.incl-excl { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 10px; }
@media (max-width: 640px) { .incl-excl { grid-template-columns: 1fr; } }
.incl-excl .box { background: var(--cream); border-radius: 8px; padding: 14px 16px; font-size: 0.92rem; }
.incl-excl .box.yes { border-left: 3px solid var(--forest); }
.incl-excl .box.no { border-left: 3px solid var(--terracotta); }
.tour-note { background: #fbf1e6; border: 1px solid #ecd9bd; border-radius: 8px; padding: 12px 16px; font-size: 0.87rem; color: #6b4a1e; margin-top: 14px; }
.tour-cta { margin-top: 20px; }

/* ---------- Filters ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.filter-btn {
  border: 1px solid var(--line); background: #fff; padding: 8px 16px; border-radius: 999px;
  font-size: 0.85rem; cursor: pointer; color: var(--ink);
}
.filter-btn.active, .filter-btn:hover { background: var(--forest); color: #fff; border-color: var(--forest); }

/* ---------- Testimonials ---------- */
.quote-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; font-size: 0.95rem; }
.quote-name { font-weight: 700; color: var(--forest); margin-top: 14px; font-size: 0.92rem; }
.quote-origin { font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- Forms ---------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
label { display: block; font-size: 0.86rem; font-weight: 600; color: var(--forest); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 0.95rem; margin-bottom: 18px; background: #fff; color: var(--ink);
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--forest-light); outline-offset: 1px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: -8px; margin-bottom: 18px; }
.star-picker { display: flex; gap: 6px; margin-bottom: 18px; font-size: 1.6rem; }
.star-picker button { background: none; border: none; cursor: pointer; color: #d8d2c2; padding: 0; }
.star-picker button.active, .star-picker button:hover { color: var(--gold); }
.form-success { display: none; background: var(--forest-pale); border: 1px solid #b9c8bd; color: var(--forest); padding: 16px 18px; border-radius: 8px; margin-bottom: 18px; }

/* ---------- Credential strip ---------- */
.cred-strip { background: var(--forest-pale); }
.cred-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; text-align: center; }
.cred-item { flex: 1; min-width: 140px; }
.cred-item b { display: block; font-family: "Fraunces", serif; font-size: 1.5rem; color: var(--forest); }
.cred-item span { font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--forest); color: rgba(255,255,255,0.82); padding: 56px 0 26px; }
footer.site-footer h4 { color: #fff; font-family: "Fraunces", serif; font-size: 1.05rem; margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
footer.site-footer a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.92rem; }
footer.site-footer a:hover { color: #fff; }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.15);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; color: rgba(255,255,255,0.55);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }

/* ---------- Legal disclosure banner ---------- */
.disclosure {
  background: #fff8ec; border: 1px solid #ecd9bd; border-radius: var(--radius);
  padding: 18px 22px; font-size: 0.88rem; color: #6b4a1e; display: flex; gap: 12px;
}
.disclosure svg { flex-shrink: 0; margin-top: 2px; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.tag-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.tag { background: var(--forest-pale); color: var(--forest); font-size: 0.78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em; }
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
  background: #25D366; color: #fff; width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0,0,0,0.25);
  text-decoration: none; font-size: 1.6rem;
}

/* ---------- Audience fork (serious birders vs nature-curious) ---------- */
.fork-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 800px) { .fork-grid { grid-template-columns: 1fr; } }
.fork-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow); border-top: 4px solid var(--sky);
}
.fork-card.track-b { border-top-color: var(--terracotta); }
.fork-card .eyebrow-sky { color: var(--sky); }
.fork-card .eyebrow-terracotta { color: var(--terracotta); }

/* ---------- Species chips (technical content for lister track) ---------- */
.species-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 18px; }
.species-chip {
  background: var(--sky-pale); color: var(--sky); border-radius: 999px;
  padding: 6px 13px; font-size: 0.8rem; font-weight: 600;
}

/* ---------- Blog ---------- */
.blog-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.blog-card .blog-thumb {
  min-height: 150px; background: var(--forest-pale); display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}
.blog-card .blog-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.blog-card .blog-meta { font-size: 0.78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.blog-card h3 { margin-bottom: 10px; }
.blog-card p { flex: 1; }
.blog-card a.read-more { font-weight: 700; color: var(--terracotta); text-decoration: none; font-size: 0.92rem; }

article.post { max-width: 760px; margin: 0 auto; }
article.post h2 { margin-top: 2em; }
article.post h3 { margin-top: 1.6em; }
article.post p, article.post li { color: var(--ink-soft); font-size: 1.04rem; }
article.post ul { padding-left: 20px; }
article.post blockquote {
  border-left: 4px solid var(--terracotta); margin: 1.6em 0; padding: 4px 0 4px 20px;
  font-family: "Fraunces", serif; font-size: 1.2rem; color: var(--forest); font-style: italic;
}
.post-meta { display: flex; gap: 14px; align-items: center; color: rgba(255,255,255,0.75); font-size: 0.88rem; margin-top: 10px; }
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 30px; }
.author-box {
  display: flex; gap: 16px; align-items: center; background: var(--forest-pale);
  border-radius: var(--radius); padding: 20px 24px; margin-top: 48px;
}
.author-box .author-photo {
  width: 60px; height: 60px; border-radius: 50%; background: var(--forest); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: "Fraunces", serif; font-weight: 600; flex-shrink: 0;
}
