/* ===========================================================================
   Douro Va'a — landing page
   Site estático (HTML/CSS/JS vanilla). Paleta derivada do logo (teal + branco)
   com acento coral nos CTAs. Ver SITE.md (design system) e BLUEPRINT.md.
   =========================================================================== */

:root {
  /* Cores de marca */
  --teal: #0F7A82;
  --teal-dark: #08454B;
  --teal-deep: #063B40;

  /* Acento (CTAs) — turquesa vibrante (cor das canoas) */
  --accent: #19B2C2;
  --accent-hover: #0E97A6;

  /* Neutros */
  --bg: #F4F7F6;
  --foam: #FFFFFF;
  --ink: #14302F;
  --muted: #5A6B6A;
  --line: #e2e9e8;

  /* Tipografia */
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Layout */
  --container: 1200px;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(8, 69, 75, 0.08);
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; font-weight: 800; }

/* ----------------------------- Layout ---------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; }
.section { padding: 88px 0; }
.section--alt { background: #eef3f2; }
.section--dark { background: var(--teal-dark); color: #eaf3f2; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem;
  font-weight: 600; color: var(--teal); margin-bottom: 10px;
}
.eyebrow--light { color: #7fd3d6; }
.section__title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 18px; }
.section--dark .section__title { color: #fff; }
.section__lead { font-size: 1.1rem; color: var(--muted); max-width: 720px; margin-bottom: 36px; }
.section__lead--light { color: #cfe3e2; }
.section__cta { text-align: center; margin-top: 44px; }
.section--dark .section__cta { margin-top: 36px; }

/* ----------------------------- Buttons --------------------------- */
.btn {
  display: inline-block; font-family: var(--font-display); font-weight: 700;
  border-radius: 999px; padding: 14px 28px; transition: all .18s ease;
  cursor: pointer; border: 2px solid transparent; text-align: center;
}
/* CTA branco — para fundos escuros/foto (hero, secções teal, promoção) */
.btn--accent { background: #fff; color: var(--teal-dark); box-shadow: 0 8px 22px rgba(6,59,64,.22); }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(6,59,64,.30); }
/* CTA teal sólido — para fundos claros (nav, preços) */
.btn--solid { background: var(--teal); color: #fff; }
.btn--solid:hover { background: var(--teal-dark); transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.22); }
.btn--outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn--outline:hover { background: var(--teal); color: #fff; }
.btn--sm { padding: 10px 20px; font-size: .92rem; }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }

/* ----------------------------- Nav ------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.85); backdrop-filter: blur(10px);
  transition: box-shadow .2s ease, background .2s ease;
}
.nav.is-scrolled { box-shadow: 0 2px 16px rgba(8,69,75,.1); background: rgba(255,255,255,.96); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo { width: 120px; height: auto; }
.nav__menu { display: flex; align-items: center; gap: 26px; }
.nav__menu a { color: var(--ink); font-weight: 500; font-size: .98rem; }
.nav__menu a:hover { color: var(--teal); }
.nav__menu a.btn { color: #fff; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 30px; height: 24px; position: relative; }
.nav__toggle span { display: block; height: 3px; background: var(--teal-dark); border-radius: 3px; margin: 5px 0; transition: .25s; }

/* Seletor de idioma */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line, #e2e2e2); border-radius: 999px; padding: 2px; }
.lang-switch button {
  background: none; border: 0; cursor: pointer; font: inherit; font-size: .78rem; font-weight: 600;
  color: var(--muted, #6b7280); letter-spacing: .03em; padding: 4px 9px; border-radius: 999px; transition: .2s;
}
.lang-switch button:hover { color: var(--teal); }
.lang-switch button.is-active { background: var(--teal); color: #fff; }

/* ----------------------------- Hero ------------------------------ */
.hero {
  position: relative; padding: 150px 0 110px; color: #fff; overflow: hidden;
  /* gradiente teal como fallback enquanto a imagem carrega */
  background: var(--teal-deep) url('../img/hero-douro.jpg') center/cover no-repeat;
}
.hero__overlay {
  position: absolute; inset: 0;
  /* escurece o lado esquerdo (onde está o texto) e a base, para legibilidade */
  background: linear-gradient(90deg, rgba(6,59,64,.82) 0%, rgba(6,59,64,.5) 55%, rgba(6,59,64,.28) 100%),
              linear-gradient(0deg, rgba(6,59,64,.55), transparent 55%);
}
.hero__inner { position: relative; max-width: 820px; }
.hero__badge { font-size: .9rem; font-weight: 500; color: #ffd9a8; margin-bottom: 18px; }
.hero__title { font-size: clamp(2.2rem, 6vw, 4rem); margin-bottom: 20px; }
.hero__sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: #e7f3f2; max-width: 660px; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero__note { font-size: .92rem; color: #bfe0df; }

/* ----------------------------- Cards ----------------------------- */
.cards { display: grid; gap: 24px; margin-top: 8px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--foam); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow);
}
.card--dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); box-shadow: none; }
.card__title { font-size: 1.3rem; margin-bottom: 6px; }
.section--dark .card__title { color: #fff; }
.card__tag { color: var(--teal); font-weight: 600; font-size: .9rem; margin-bottom: 10px; }

/* ----------------------------- Split ----------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.split--prices { margin-top: 50px; }
.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px;
  background: no-repeat center/contain;
  /* ícone de check em teal */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230F7A82' d='M9.55 17.6L4.4 12.45l1.4-1.4 3.75 3.75 8.25-8.25 1.4 1.4z'/%3E%3C/svg%3E");
}
/* variante simples: check em turquesa */
.checklist--simple li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2319B2C2' d='M9.55 17.6L4.4 12.45l1.4-1.4 3.75 3.75 8.25-8.25 1.4 1.4z'/%3E%3C/svg%3E");
}
/* em secção escura: check dourado */
.section--dark .checklist--simple li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffd9a8' d='M9.55 17.6L4.4 12.45l1.4-1.4 3.75 3.75 8.25-8.25 1.4 1.4z'/%3E%3C/svg%3E");
}

/* Estrelas (SVG, sem emojis) */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; line-height: 0; }
.stars .star { width: 18px; height: 18px; fill: var(--accent); }
.stars--gold .star { fill: #ffd9a8; }
.section__title .stars .star { width: 22px; height: 22px; }

/* ----------------------------- Schedule -------------------------- */
.schedule { display: grid; gap: 14px; }
.schedule__day {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 20px;
  background: var(--foam); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 24px; box-shadow: var(--shadow);
}
.schedule__name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; min-width: 110px; color: var(--teal-dark); }
.schedule__slots { color: var(--muted); font-size: 1.02rem; }

/* ----------------------------- Prices ---------------------------- */
.price {
  background: var(--foam); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; text-align: center; box-shadow: var(--shadow); position: relative;
}
.price--featured { border-color: var(--accent); border-width: 2px; transform: translateY(-6px); }
.price__flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--teal-deep); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; padding: 5px 14px; border-radius: 999px;
}
.price__name { font-size: 1.15rem; margin-bottom: 8px; color: var(--teal-dark); }
.price__value { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: var(--ink); }
.price__value span { font-family: var(--font-body); font-weight: 400; font-size: .95rem; color: var(--muted); }
.price__note { margin-top: 16px; font-size: .9rem; color: var(--muted); text-align: center; }

/* ----------------------------- Promo ----------------------------- */
.promo { background: linear-gradient(135deg, var(--teal) 0%, #0b6168 100%); color: #fff; padding: 60px 0; }
.promo__inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.promo__inner .eyebrow--light { color: #ffe6cf; }
.promo__title { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 12px; }
.promo__text { max-width: 620px; font-size: 1.08rem; }
.promo .btn--accent:hover { background: var(--teal-deep); color: #fff; box-shadow: none; }

/* ----------------------------- Map ------------------------------- */
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map iframe { display: block; }

/* ----------------------------- Quotes ---------------------------- */
.quote { background: var(--foam); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow); }
.quote__stars { display: flex; gap: 2px; margin-bottom: 12px; }
.quote__text { font-style: italic; margin-bottom: 14px; }
.quote__author { font-weight: 600; color: var(--teal-dark); }

/* ----------------------------- Gallery --------------------------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery__item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; transition: transform .3s ease; }
.gallery__item img:hover { transform: scale(1.05); }
.gallery__item--ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: rgba(255,255,255,.85); font-family: var(--font-display); font-weight: 600; font-size: .95rem;
}

/* ----------------------------- FAQ ------------------------------- */
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--foam); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px; }
.faq__item summary { cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; padding: 16px 0; list-style: none; position: relative; padding-right: 30px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.5rem; color: var(--accent); transition: transform .2s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 0 18px; color: var(--muted); }

/* ----------------------------- Final ----------------------------- */
.final { text-align: center; }
.final__title { font-size: clamp(1.9rem, 4.5vw, 2.8rem); color: #fff; margin-bottom: 16px; }
.final__sub { font-size: 1.15rem; color: #cfe3e2; max-width: 620px; margin: 0 auto 30px; }
.final__note { font-size: .9rem; color: #9fc5c4; margin-top: 18px; }

/* ----------------------------- Lightbox -------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 30px;
  background: rgba(6,59,64,.92); cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 90vh; border-radius: var(--radius); }

/* ----------------------------- Footer ---------------------------- */
.footer { background: var(--teal-deep); color: #cfe3e2; padding: 56px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.footer__brand img { margin-bottom: 14px; width: 140px; height: auto; }
.footer__brand p { color: #a9cdcc; max-width: 320px; }
.footer__col h3 { font-size: 1.05rem; color: #fff; margin-bottom: 14px; }
.footer__col a, .footer__col p { display: block; color: #cfe3e2; margin-bottom: 8px; }
.footer__col a:hover { color: #fff; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 22px; font-size: .85rem; color: #8fb6b5; }

/* ----------------------------- Animations ------------------------ */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ----------------------------- Responsive ------------------------ */
@media (max-width: 900px) {
  .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .promo__inner { flex-direction: column; align-items: flex-start; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 28px; }

  /* Nav colapsa em menu mobile (há mais itens com o seletor de idioma) */
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background: #fff; padding: 20px 24px 28px; gap: 18px; box-shadow: 0 12px 24px rgba(8,69,75,.12);
    transform: translateY(-130%); transition: transform .28s ease; align-items: stretch;
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__menu a { font-size: 1.05rem; }
  .nav__menu .btn { margin-top: 4px; }
  .lang-switch { align-self: center; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 120px 0 76px; }
  .cards--3, .cards--4 { grid-template-columns: 1fr; }
  .price--featured { transform: none; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .hero__cta .btn { width: 100%; }
}
