/*
Theme Name: EcoHost Blog
Author: Be-Wide
Author URI: https://www.be-wide.com
Description: Tema leve para blog.ecohost.pt, com o aspeto do site principal (www.ecohost.pt).
Version: 1.0.0
Requires PHP: 8.0
Text Domain: ecohost-blog
*/

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/montserrat-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/montserrat-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/montserrat-italic-latin.woff2) format("woff2"); }

:root {
	--mint: #bdddc8;
	--mint-70: rgba(189, 221, 200, .7);
	--mint-soft: #eef6f1;
	--green: #3f7a58;      /* verde mais escuro para texto legível sobre branco */
	--ink: #222;
	--grey: #6b6b6b;
	--line: #e3ece6;
	--white: #fff;
	--font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
	--nav-h: 74px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
html.no-scroll { overflow: hidden; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.7; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.center { text-align: center; }

/* ---------- Cabeçalho (igual ao site principal) ---------- */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; transition: background-color .25s, box-shadow .25s; }
.nav.is-solid { background: rgba(28, 38, 32, .88); box-shadow: 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.nav a, .nav button { color: var(--mint); font-family: var(--font); font-size: 17px; text-transform: uppercase; text-decoration: none; letter-spacing: .01em; }
.nav__lang { position: relative; min-width: 120px; }
.nav__lang-btn { background: none; border: 0; padding: 8px 4px; cursor: pointer; }
.nav__lang-list { position: absolute; top: 100%; left: 0; margin: 0; padding: 6px 0; list-style: none; background: rgba(28,38,32,.92); display: none; min-width: 64px; }
.nav__lang.is-open .nav__lang-list { display: block; }
.nav__lang-list a { display: block; padding: 6px 12px; }
.nav__menu ul { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; }
.nav__menu li { position: relative; }
.nav__menu a { display: block; padding: 24px 16px; line-height: 26px; transition: color .2s; }
.nav__menu a:hover, .nav__book:hover { color: #fff; }
.nav__menu li.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #fff; }
.nav__menu li.is-active a { color: #fff; }
.nav__book { display: inline-flex; align-items: center; gap: 10px; min-width: 120px; justify-content: flex-end; }
.nav__burger { display: none; background: none; border: 0; padding: 6px; cursor: pointer; }

.mnav { position: fixed; inset: 0; z-index: 60; background: rgba(28, 38, 32, .97); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.mnav[hidden] { display: none; }
.mnav ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.mnav li a { display: block; padding: 12px; color: var(--mint); font-size: 20px; text-transform: uppercase; text-decoration: none; }
.mnav li.is-active a { color: #fff; }
.mnav__close { position: absolute; top: 18px; right: 18px; background: none; border: 0; color: var(--mint); cursor: pointer; }
.mnav__langs { margin-top: 24px; display: flex; gap: 18px; }
.mnav__langs a { color: var(--mint); text-decoration: none; font-size: 16px; }
.mnav__langs a.is-active { color: #fff; border-bottom: 2px solid #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; background: #2b3a31 var(--hero) center / cover no-repeat; color: #efefef; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .38); }
.hero__in { position: relative; padding: calc(var(--nav-h) + 40px) 24px 60px; max-width: 900px; }
.hero--blog { min-height: 62vh; }
.hero--short { min-height: 46vh; }
.hero--post { min-height: 52vh; }
.hero__title { margin: 0 0 6px; font-weight: 400; font-size: 55px; line-height: 1.1; color: #efefef; }
.hero__sub { margin: 0; font-size: 24px; font-weight: 400; line-height: 1.35; color: #efefef; }

/* ---------- Botões (como "RESERVAR AGORA") ---------- */
.btn { display: inline-block; background: var(--mint); border: 2px solid var(--mint); color: #fff; font-family: var(--font); font-size: 16px; text-transform: uppercase; text-decoration: none; padding: 10px 18px; line-height: 1.2; transition: background-color .2s, color .2s; }
.btn:hover { background: #fff; color: var(--green); }
.btn--ghost { background: transparent; color: var(--green); }
.btn--ghost:hover { background: var(--mint); color: #fff; }

/* ---------- Listagem ---------- */
.list { padding: 64px 24px 80px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.card { display: flex; flex-direction: column; }
.card__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--mint-soft); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__img img { transform: scale(1.04); }
.card__body { padding: 18px 2px 0; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.card__meta { margin: 0 0 6px; font-size: 13px; color: var(--grey); text-transform: uppercase; letter-spacing: .04em; }
.card__title { margin: 0 0 10px; font-size: 21px; line-height: 1.3; font-weight: 600; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--green); }
.card__ex { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: #444; }
.card .btn { margin-top: auto; font-size: 14px; padding: 8px 14px; }
.pager { display: flex; justify-content: space-between; margin-top: 48px; }
.pager a { text-transform: uppercase; font-size: 15px; text-decoration: none; }

/* ---------- Artigo ---------- */
.post__head { text-align: center; padding-top: 48px; }
.post__crumb { margin: 0 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.post__crumb a { text-decoration: none; }
.post__title { margin: 0 0 12px; color: var(--mint); font-size: 40px; line-height: 1.2; font-weight: 700; }
.post__meta { margin: 0 0 32px; font-size: 14px; color: var(--grey); }
.toc { margin-bottom: 28px; }
.toc details { border: 1px solid var(--line); background: var(--mint-soft); padding: 14px 20px; }
.toc summary { cursor: pointer; font-weight: 600; text-transform: uppercase; font-size: 14px; letter-spacing: .05em; color: var(--green); }
.toc ol { margin: 12px 0 0; padding-left: 20px; font-size: 15px; line-height: 1.6; }
.toc a { text-decoration: none; }
.post__body h2 { color: var(--green); font-size: 28px; line-height: 1.25; font-weight: 700; margin: 2em 0 .6em; }
.post__body h3 { color: var(--ink); font-size: 20px; line-height: 1.35; font-weight: 600; margin: 1.6em 0 .4em; }
.post__body p, .post__body ul, .post__body ol { margin: 0 0 1.1em; }
.post__body ul, .post__body ol { padding-left: 1.3em; }
.post__body li { margin-bottom: .45em; }
.post__body li::marker { color: var(--green); }
.post__body table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15px; display: block; overflow-x: auto; }
.post__body th, .post__body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.post__body th { background: var(--mint-soft); }
.post__body blockquote { margin: 2em 0; padding: 22px 26px; background: var(--mint-soft); border-left: 4px solid var(--mint); }
.post__body blockquote p:last-child { margin-bottom: 0; }
.post__body blockquote.cta-reserva { background: var(--mint); border: 0; color: #1f3a2a; text-align: center; padding: 28px; }
.post__body blockquote.cta-reserva a { color: #1f3a2a; font-weight: 700; }
.post__back { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; padding-top: 16px; padding-bottom: 56px; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.related { padding: 56px 24px 80px; }
.related__title { text-align: center; color: var(--mint); font-size: 35px; font-weight: 700; margin: 0 0 32px; }
.related .card__title { font-size: 19px; }

/* ---------- Rodapé (verde menta, como o site principal) ---------- */
.foot { background: var(--mint); color: #fff; text-align: center; padding: 16px 24px 90px; }
.foot__brand { margin: 0; padding: 16px 0 8px; font-size: 48px; line-height: 1.1; color: #efefef; }
.foot__social { display: flex; gap: 14px; justify-content: center; margin: 0 0 12px; }
.foot__social a { color: #fff; display: inline-flex; }
.foot__links { list-style: none; margin: 0 auto; padding: 10px 0 0; border-top: 1px solid rgba(255,255,255,.6); max-width: 900px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; }
.foot a { color: #fff; text-decoration: none; font-size: 14px; }
.foot a:hover { text-decoration: underline; }
.foot__langs { display: flex; gap: 14px; justify-content: center; margin: 10px 0 6px; }
.foot__langs a[aria-current] { font-weight: 700; }
.foot__copy { margin: 8px 0 0; font-size: 13px; color: #2f5a41; }
.foot__copy a { color: #2f5a41; font-size: 13px; }

/* Barra "Reservar / Melhor preço garantido" (canto inferior esquerdo, como no site principal) */
.bookbar { position: fixed; left: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 14px; background: var(--mint); color: #1f1f1f; text-decoration: none; padding: 12px 22px; min-width: 280px; }
.bookbar:hover { color: #000; background: #b0d4bd; }
.bookbar__icon { display: inline-flex; }
.bookbar__icon svg { width: 34px; height: 34px; }
.bookbar__txt { display: flex; flex-direction: column; line-height: 1.25; }
.bookbar strong { font-weight: 500; font-size: 18px; text-transform: uppercase; }
.bookbar small { font-size: 15px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
	.nav { padding: 0 20px; }
	.nav__menu a { padding: 24px 10px; font-size: 15px; }
	.nav__lang, .nav__book { min-width: 80px; }
}
@media (max-width: 991px) {
	:root { --nav-h: 64px; }
	.nav__menu, .nav__book { display: none; }
	.nav__burger { display: inline-flex; }
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hero__title { font-size: 42px; }
	.hero__sub { font-size: 20px; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.wrap, .list, .related { padding-left: 16px; padding-right: 16px; }
	.wrap-narrow { padding-left: 16px; padding-right: 16px; }
	.grid { grid-template-columns: 1fr; gap: 36px; }
	.hero--blog { min-height: 52vh; }
	.hero--post { min-height: 36vh; }
	.hero__title { font-size: 34px; }
	.hero__sub { font-size: 17px; }
	.post__title { font-size: 28px; }
	.post__body h2 { font-size: 23px; }
	.post__body h3 { font-size: 18px; }
	.related__title { font-size: 26px; }
	.foot__brand { font-size: 38px; }
	.bookbar { right: 0; min-width: 0; justify-content: center; padding: 10px 16px; }
	.bookbar strong { font-size: 16px; }
	.bookbar small { font-size: 13px; }
	.foot { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
