/* ===== Hotel Pedra Bela — proposta de site (MeriForm) ===== */
:root {
  --bg: #f7f4ee;
  --ink: #1b211d;
  --muted: #6c7670;
  --accent: #1f3d34;      /* verde-mata profundo */
  --accent-dark: #14271f;
  --gold: #c4a049;
  --gold-soft: #d8be86;
  --card: #fffdf9;
  --line: #e2dccf;
  --dark: #14271f;
  --radius: 14px;
  --shadow: 0 14px 40px rgba(20, 32, 26, 0.12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1140px, 92%); margin: 0 auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.section-kicker, .hero-kicker {
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.74rem;
  font-weight: 600; color: var(--gold);
}
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-note { color: var(--muted); margin-top: 0.6rem; }
.muted { color: var(--muted); }

/* ===== Demo bar ===== */
.demo-bar {
  background: var(--dark); color: #e8e2d2; text-align: center;
  font-size: 0.8rem; padding: 0.5rem 1rem; letter-spacing: 0.02em;
}
.demo-bar strong { color: var(--gold); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(20,32,26,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 70px; }
.logo { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.logo .stars { font-size: 0.7rem; color: var(--gold); letter-spacing: 0.1em; vertical-align: middle; }
.nav { display: flex; align-items: center; gap: 1.8rem; margin-left: auto; }
.nav a { font-size: 0.92rem; font-weight: 500; color: var(--ink); transition: color .2s; }
.nav a:hover { color: var(--accent); }
.nav a.active { color: var(--accent); border-bottom: 2px solid var(--gold); }
.nav a.active.nav-cta { border-bottom: 0; }
.nav-cta {
  background: var(--accent); color: #fff !important; padding: 0.55rem 1.2rem;
  border-radius: 100px; font-weight: 600;
}
.nav-cta:hover { background: var(--accent-dark); }

/* Selector de idioma (demonstração) */
.lang { display: flex; gap: 0.5rem; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.lang span { cursor: pointer; transition: color .2s; }
.lang span:hover { color: var(--accent); }
.lang .lang-active { color: var(--gold); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 0.85rem 1.7rem; border-radius: 100px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer; border: 2px solid transparent;
  transition: transform .15s ease, background .2s, color .2s; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.6); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-ghost-dark { border-color: var(--line); color: var(--ink); }
.btn-ghost-dark:hover { background: var(--dark); color: #fff; border-color: var(--dark); }
.btn-block { width: 100%; grid-column: 1 / -1; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  color: #fff; text-align: center;
  background: #16231d url("https://images.unsplash.com/photo-1551882547-ff40c63fe5fa?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,20,15,.45), rgba(12,20,15,.74)); }
.hero-content { position: relative; max-width: 760px; }
.hero-kicker { color: var(--gold-soft); }
.hero h1 { font-size: clamp(2.1rem, 8.5vw, 5.2rem); margin: 1rem 0; }
.hero-sub { font-size: 1.15rem; color: #ece6da; max-width: 560px; margin: 0 auto 2rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: #fff; opacity: .8; animation: bob 1.8s infinite; }
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ===== Page hero (páginas interiores) ===== */
.page-hero {
  position: relative; min-height: 44vh; display: flex; align-items: flex-end;
  color: #fff; background: #16231d center/cover no-repeat;
}
.page-hero.ph-restaurante { background-image: url("https://images.unsplash.com/photo-1414235077428-338989a2e8c0?auto=format&fit=crop&w=1600&q=80"); }
.page-hero.ph-quartos { background-image: url("https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=1600&q=80"); }
.page-hero.ph-contactos { background-image: url("https://images.unsplash.com/photo-1551882547-ff40c63fe5fa?auto=format&fit=crop&w=1600&q=80"); }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,20,15,.35), rgba(12,20,15,.72)); }
.page-hero-content { position: relative; z-index: 1; padding: 3rem 0 2.6rem; }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 0.4rem 0 0.6rem; }
.page-hero p { color: #e6e0d3; max-width: 540px; }

/* ===== Home: cartões de secção ===== */
.cards-section { padding: 6rem 0; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  position: relative; min-height: 340px; border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: flex-end; box-shadow: var(--shadow); color: #fff;
  background-size: cover; background-position: center;
}
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,20,15,0) 30%, rgba(12,20,15,.82)); transition: background .3s; }
.card:hover::after { background: linear-gradient(180deg, rgba(12,20,15,.1) 10%, rgba(20,39,31,.88)); }
.card-body { position: relative; z-index: 1; padding: 1.6rem 1.6rem 1.8rem; }
.card-body h3 { font-size: 1.7rem; margin-bottom: 0.3rem; }
.card-body p { font-size: 0.95rem; color: #e2ddd0; margin-bottom: 0.6rem; }
.card-body .link-arrow { color: var(--gold-soft); }
.card-restaurante { background-image: url("https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=800&q=80"); }
.card-quartos { background-image: url("https://images.unsplash.com/photo-1611892440504-42a792e24d32?auto=format&fit=crop&w=800&q=80"); }
.card-bar { background-image: url("https://images.unsplash.com/photo-1514362545857-3bc16c4c7d1b?auto=format&fit=crop&w=800&q=80"); }

/* ===== Highlights ===== */
.highlights { background: var(--dark); color: #e8e2d2; }
.highlights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 1.6rem 0; }
.highlight { display: flex; align-items: center; gap: 0.9rem; justify-content: center; font-size: 0.95rem; }
.highlight strong { color: #fff; }
.highlight-ico { font-size: 1.6rem; }

/* ===== Restaurante (sobre) ===== */
.sobre { padding: 6rem 0; }
.sobre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.sobre-img {
  border-radius: var(--radius); min-height: 440px; box-shadow: var(--shadow);
  background: #c7c0ac url("https://images.unsplash.com/photo-1414235077428-338989a2e8c0?auto=format&fit=crop&w=900&q=80") center/cover no-repeat;
}
.sobre-text h2 { margin: 0.6rem 0 1.2rem; }
.sobre-text p { color: var(--muted); margin-bottom: 1rem; }
.sobre-text strong { color: var(--ink); }
.link-arrow { color: var(--accent); font-weight: 600; }
.link-arrow:hover { color: var(--accent-dark); }

/* ===== Ementa ===== */
.ementa { padding: 6rem 0; background: #efeadd; }
.menu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; max-width: 980px; margin: 0 auto; }
.menu-group h3 {
  font-size: 1.5rem; color: var(--accent); margin: 1.8rem 0 1rem;
  padding-bottom: 0.5rem; border-bottom: 2px solid var(--line);
}
.menu-group h3:first-child { margin-top: 0; }
.menu-list { list-style: none; }
.menu-list li { display: flex; align-items: baseline; gap: 0.5rem; padding: 0.5rem 0; }
.dish { font-weight: 500; }
.dish em { display: block; font-style: normal; font-size: 0.82rem; color: var(--muted); font-weight: 400; }
.dots { flex: 1; border-bottom: 1px dotted #b9b199; transform: translateY(-3px); min-width: 18px; }
.price { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.price::after { content: " €"; font-size: 0.8rem; color: var(--muted); }
.menu-note {
  max-width: 980px; margin: 2.5rem auto 0; padding: 1.2rem 1.5rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  text-align: center; color: var(--muted);
}
.menu-note strong { color: var(--ink); }

/* ===== Bar D. Henrique ===== */
.bar { padding: 6rem 0; background: var(--dark); color: #e8e2d2; }
.bar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.bar .section-kicker.light { color: var(--gold-soft); }
.bar-text h2 { color: #fff; margin: 0.6rem 0 1.2rem; }
.bar-text p { color: #c8c2b3; margin-bottom: 1.5rem; }
.bar-feats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; font-size: 0.95rem; }
.bar-img {
  border-radius: var(--radius); min-height: 380px; box-shadow: var(--shadow);
  background: #2a3a31 url("https://images.unsplash.com/photo-1514362545857-3bc16c4c7d1b?auto=format&fit=crop&w=900&q=80") center/cover no-repeat;
}

/* ===== Estadia ===== */
.estadia { padding: 6rem 0; }
.rooms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.room { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.room-img { height: 200px; background-size: cover; background-position: center; }
.r1 { background-image: url("https://images.unsplash.com/photo-1611892440504-42a792e24d32?auto=format&fit=crop&w=700&q=80"); }
.r2 { background-image: url("https://images.unsplash.com/photo-1566665797739-1674de7a421a?auto=format&fit=crop&w=700&q=80"); }
.r3 { background-image: url("https://images.unsplash.com/photo-1582719478250-c89cae4dc85b?auto=format&fit=crop&w=700&q=80"); }
.room-body { padding: 1.3rem 1.4rem 1.6rem; }
.room-body h3 { font-size: 1.4rem; color: var(--accent); margin-bottom: 0.4rem; }
.room-body p { color: var(--muted); font-size: 0.95rem; }
.estadia-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.5rem; }
.estadia-tip { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 1.2rem; }

/* ===== Galeria ===== */
.galeria { padding: 6rem 0 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 1rem; }
.gallery-item { aspect-ratio: 1 / 1; background-size: cover; background-position: center; filter: saturate(1.03); transition: transform .5s ease; }
.gallery-item:hover { transform: scale(1.04); z-index: 1; }
.g1 { background-image: url("https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=600&q=80"); }
.g2 { background-image: url("https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=600&q=80"); }
.g3 { background-image: url("https://images.unsplash.com/photo-1414235077428-338989a2e8c0?auto=format&fit=crop&w=600&q=80"); }
.g4 { background-image: url("https://images.unsplash.com/photo-1551218808-94e220e084d2?auto=format&fit=crop&w=600&q=80"); }
.g5 { background-image: url("https://images.unsplash.com/photo-1559847844-5315695dadae?auto=format&fit=crop&w=600&q=80"); }
.g6 { background-image: url("https://images.unsplash.com/photo-1455587734955-081b22074882?auto=format&fit=crop&w=600&q=80"); }

/* ===== Visitar ===== */
.visitar { padding: 6rem 0; }
.visitar-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: center; }
.visitar-info h2 { margin: 0.6rem 0 1.5rem; }
.info-list { list-style: none; display: grid; gap: 1.2rem; margin-bottom: 2rem; }
.info-list strong { color: var(--accent); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; }
.info-list a { color: var(--ink); border-bottom: 1px solid var(--accent); }
.visitar-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.visitar-map iframe { width: 100%; height: 420px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); filter: grayscale(0.2); }

/* ===== Reservar ===== */
.reservar { padding: 6rem 0; background: var(--accent); color: #e8e2d2; text-align: center; }
.reservar .section-kicker.light { color: var(--gold-soft); }
.reservar h2 { color: #fff; margin: 0.6rem 0 0.8rem; }
.reservar-sub { color: #cdd4cd; max-width: 480px; margin: 0 auto 2.5rem; }
.reservar-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 560px; margin: 0 auto; text-align: left;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: #a9b3a9; }
.field input, .field select {
  padding: 0.8rem 1rem; border-radius: 10px; border: 1px solid #ffffff2e;
  background: #18302681; color: #fff; font-family: var(--sans); font-size: 0.95rem;
}
.field input:focus, .field select:focus { outline: 2px solid var(--gold); }

/* ===== Footer ===== */
.site-footer { background: #0f1c16; color: #b7c0b8; padding: 3rem 0 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 2rem; }
.footer-logo { font-family: var(--serif); font-size: 1.4rem; color: #fff; }
.footer-social { display: flex; gap: 1.5rem; }
.footer-social a:hover { color: var(--gold); }
.footer-credit { border-top: 1px solid #21312a; text-align: center; padding: 1.2rem; font-size: 0.85rem; }
.footer-credit a { color: var(--gold); }

/* ===== WhatsApp FAB ===== */
.whatsapp-fab {
  position: fixed; bottom: 22px; right: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .5); transition: transform .2s;
}
.whatsapp-fab:hover { transform: scale(1.08); }

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

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 70px 0 auto 0; background: var(--bg); flex-direction: column;
    gap: 0; padding: 1rem 0; border-bottom: 1px solid var(--line);
    transform: translateY(-150%); transition: transform .35s ease; box-shadow: var(--shadow); margin-left: 0;
  }
  .nav.open { transform: translateY(0); }
  .nav a { width: 100%; text-align: center; padding: 0.9rem; }
  .nav-cta { border-radius: 0; }
  .lang { display: none; }
  .nav-toggle { display: flex; }
  .sobre-grid, .visitar-grid, .bar-grid { grid-template-columns: 1fr; gap: 2rem; }
  .sobre-img { min-height: 300px; }
  .bar-img { min-height: 260px; order: -1; }
  .menu-cols { grid-template-columns: 1fr; gap: 1rem; }
  .highlights-grid { grid-template-columns: 1fr; gap: 1rem; }
  .rooms-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .reservar-form { grid-template-columns: 1fr; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
