/*
Theme Name: Vale do Cedro
Description: Tema de pousada boutique com páginas editáveis e contatos de reserva.
Version: 1.3.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: vale-do-cedro
*/
:root { --cedro-forest:#212a21; --cedro-paper:#f6f3ea; --cedro-white:#fffdf7; --cedro-brass:#e1bf87; --cedro-line:#ded8ca; }
*,*::before,*::after { box-sizing:border-box; }
body { margin:0; }
:focus-visible { outline:2px solid currentColor; outline-offset:4px; }
.cedro-shell,.cedro-header-inner,.cedro-footer-inner { width:min(1232px,calc(100% - 96px)); margin-inline:auto; }
.cedro-masthead { background:#20291f; color:#fffdf3; }
.cedro-header-inner { min-height:82px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.cedro-brand { min-width:0; }
.cedro-masthead a,.cedro-footer .wp-block-site-title a { color:inherit; text-decoration:none; }
.cedro-masthead .wp-block-site-title,.cedro-footer .wp-block-site-title { font:510 clamp(28px,3.2vw,45px)/1.08 var(--wp--preset--font-family--display); letter-spacing:-.055em; }
.cedro-menu { font-size:13px; }
.cedro-menu .wp-block-page-list { gap:clamp(13px,2.3vw,30px); }
.cedro-menu a:hover { text-decoration:underline; text-underline-offset:5px; }
.cedro-menu .wp-block-navigation__responsive-container.is-menu-open { background:var(--cedro-paper); color:var(--cedro-forest); padding:20px; }
.cedro-menu .wp-block-navigation__responsive-container.is-menu-open a { color:var(--cedro-forest); }
.cedro-hero { min-height:clamp(575px,69vh,740px); display:grid; align-items:center; position:relative; isolation:isolate; color:var(--cedro-white); background:#20291f; }
.cedro-hero > .wp-block-image { margin:0; position:absolute; inset:0; z-index:-2; overflow:hidden; }
.cedro-hero > .wp-block-image img { width:100%; height:100%; object-fit:cover; object-position:center; }
.cedro-hero::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,#111a13ed 2%,#111a13b8 36%,#17201535 82%); }
.cedro-hero-inner { padding-block:65px; }
.cedro-hero h1,.cedro-intro h1 { margin:13px 0 17px; max-width:760px; font-size:clamp(50px,7.25vw,111px); line-height:.93; letter-spacing:-.064em; }
.cedro-hero-inner > p:not(.cedro-eyebrow) { max-width:470px; font-size:clamp(16px,2vw,20px); }
.cedro-eyebrow { font-size:11px; letter-spacing:.17em; font-weight:760; text-transform:uppercase; }
.cedro-hero .cedro-eyebrow { color:#f3d9a9; }
.cedro-hero .wp-block-buttons,.cedro-final .wp-block-buttons,.cedro-split .wp-block-buttons { margin-top:23px; gap:12px; }
.cedro-hero .wp-block-button__link { background:var(--cedro-brass); color:#20271e; }
.cedro-hero .wp-block-button:nth-child(2) .wp-block-button__link { background:transparent; border:1px solid #fffdf799; color:var(--cedro-white); }
.wp-block-button__link:hover,.cedro-action:hover { filter:brightness(.91); text-decoration:underline; text-underline-offset:3px; }
.cedro-facts { display:flex; justify-content:center; align-items:center; gap:clamp(12px,3.5vw,54px); padding:12px 18px; color:#282c24; border-bottom:1px solid var(--cedro-line); background:#ede6d6; text-align:center; }
.cedro-facts p { margin:0; font-size:clamp(11px,1.45vw,14px); font-weight:660; }
.cedro-facts p + p { border-left:1px solid #c5b9a2; padding-left:clamp(12px,3.5vw,54px); }
.cedro-section { padding-block:clamp(45px,6vw,86px); }
.cedro-section h2,.cedro-final h2 { margin:8px 0 22px; font-size:clamp(36px,5vw,72px); letter-spacing:-.055em; }
.cedro-section > .cedro-eyebrow,.cedro-intro .cedro-eyebrow,.cedro-split .cedro-eyebrow { color:#705738; }
.cedro-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.cedro-grid-two { grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:25px; }
.cedro-room-card { background:var(--cedro-white); border:1px solid var(--cedro-line); }
.cedro-room-card .wp-block-image { margin:0; overflow:hidden; }
.cedro-room-card img { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; }
.cedro-card-copy { padding:18px; }
.cedro-card-copy .cedro-eyebrow { font-size:10px; letter-spacing:.11em; color:#705738; }
.cedro-card-copy h3 { margin:7px 0 9px; font-size:clamp(27px,3vw,39px); letter-spacing:-.05em; }
.cedro-card-copy p:last-child { margin:0; font-size:14px; color:#4f594e; }
.cedro-split-section { padding-top:0; }
.cedro-split { display:grid; grid-template-columns:1.15fr 1fr; align-items:stretch; background:#ece6d8; }
.cedro-split > .wp-block-image { margin:0; min-width:0; }
.cedro-split > .wp-block-image img { width:100%; height:100%; min-height:340px; object-fit:cover; display:block; }
.cedro-split-copy { padding:clamp(22px,4vw,61px); align-self:center; }
.cedro-split h2 { margin:8px 0 12px; font-size:clamp(33px,4.35vw,58px); }
.cedro-final { padding:clamp(44px,6vw,86px) 24px; text-align:center; background:#d6bd94; color:#20271e; }
.cedro-final .wp-block-buttons { justify-content:center; }
.cedro-final h2 { margin-bottom:12px; }
.cedro-intro { padding-block:clamp(50px,7vw,96px) 25px; }
.cedro-intro h1 { font-size:clamp(47px,7vw,96px); }
.cedro-intro p:last-child { max-width:580px; }
.cedro-after-intro { padding-top:20px; }
.cedro-notes { padding-top:0; }
.cedro-footer { background:#20291f; color:#fffdf3; }
.cedro-footer-inner { display:flex; gap:22px; justify-content:space-between; align-items:center; padding:26px 0; flex-wrap:wrap; }
.cedro-contact-actions { display:flex; flex-wrap:wrap; gap:9px; }
.cedro-action { padding:7px 11px; background:#212a21; color:#fffdf7!important; border:1px solid #a09d85; text-decoration:none; border-radius:2px; font-size:13px; overflow-wrap:anywhere; max-width:100%; }
.cedro-address { margin:8px 0 0; font-size:13px; }
@media(max-width:780px) {
    .cedro-shell,.cedro-header-inner,.cedro-footer-inner { width:calc(100% - 40px); }
    .cedro-header-inner { min-height:66px; }
    .cedro-hero { min-height:520px; }
    .cedro-hero > .wp-block-image img { object-position:60% center; }
    .cedro-hero::before { background:linear-gradient(90deg,#111a13df,#111a1360 100%); }
}
@media(max-width:630px) {
    .cedro-grid,.cedro-grid-two,.cedro-split { grid-template-columns:minmax(0,1fr); }
    .cedro-split > .wp-block-image img { min-height:0; max-height:320px; aspect-ratio:4/3; }
    .cedro-card-copy { padding:15px; }
    .cedro-brand .wp-block-site-title { font-size:clamp(20px,7vw,32px); }
    .cedro-hero .wp-block-button__link { padding:10px 13px; }
}

.cedro-logo-default img { display:block; width:48px; height:auto; }
.cedro-reservation { margin-top:18px; }
.cedro-reservation [hidden] { display:none!important; }
.cedro-calendar { border:1px solid #c5b9a2; padding:9px; margin:0 0 12px; min-width:0; }
.cedro-calendar legend { padding:0 5px; font-size:13px; font-weight:750; }
.cedro-calendar-bar { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:7px; text-transform:capitalize; }
.cedro-calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:3px; text-align:center; font-size:12px; }
.cedro-calendar button { background:var(--cedro-white); color:var(--cedro-forest); border:1px solid var(--cedro-line); border-radius:2px; min-height:30px; padding:0; cursor:pointer; }
.cedro-calendar-bar button { width:33px; font-size:20px; }
.cedro-calendar button:disabled { opacity:.42; cursor:default; }
.cedro-calendar button[aria-pressed="true"] { background:var(--cedro-forest); color:var(--cedro-white); }
.cedro-calendar button.cedro-in-range { background:#e3c796; }
.cedro-reservation-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.cedro-reservation-fields label { display:grid; font-size:12px; font-weight:700; min-width:0; }
.cedro-reservation-fields input { width:100%; min-width:0; min-height:34px; padding:4px; border:1px solid #c5b9a2; background:var(--cedro-white); color:var(--cedro-forest); font:inherit; }
.cedro-reservation-fields .cedro-preference { grid-column:1/-1; display:block; }
.cedro-preference span { font-weight:400; }
.cedro-booking-note { margin:9px 0; font-size:12px; }
.cedro-reservation button.cedro-action { cursor:pointer; }

.cedro-masthead-signature { background:#f9f6ee; color:var(--cedro-forest); border-top:3px solid #b99a61; border-bottom:1px solid #d9cfb9; }
.cedro-masthead-signature .cedro-header-inner { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:0 10px; padding-top:13px; }
.cedro-masthead-signature .cedro-brand { grid-column:2; grid-row:1; justify-content:center; gap:12px; }
.cedro-masthead-signature .cedro-logo-default img { width:42px; }
.cedro-masthead-signature .wp-block-site-title { font-size:clamp(30px,3.55vw,54px); line-height:1; }
.cedro-masthead-signature .cedro-menu { grid-column:1/-1; grid-row:2; width:100%; justify-content:center; border-top:1px solid #ded6c6; margin-top:10px; min-height:39px; }
.cedro-masthead-signature .cedro-menu .wp-block-navigation__container { gap:clamp(15px,3.1vw,50px); }
.cedro-masthead-signature .cedro-menu a { display:inline-flex; align-items:center; min-height:38px; font-size:11px; text-transform:uppercase; letter-spacing:.12em; font-weight:680; }
.cedro-masthead-signature .cedro-menu .current-menu-item > a { box-shadow:inset 0 -2px #b99a61; }
.cedro-header-reserve { grid-column:3; grid-row:1; justify-self:end; }
.cedro-masthead-signature .cedro-reserve-link { display:inline-flex; gap:13px; align-items:center; padding:9px 15px; color:#fffdf3; background:#273326; border:1px solid #273326; border-radius:2px; font-size:12px; font-weight:750; }
.cedro-masthead-signature .cedro-reserve-link:hover { color:#273326; background:transparent; }
.cedro-reserve-link span { color:#e7ce9e; }
.cedro-reserve-link:hover span { color:inherit; }
@media(max-width:660px) {
    .cedro-masthead-signature .cedro-menu .wp-block-navigation__responsive-container-open { display:flex; }
    .cedro-masthead-signature .cedro-menu .wp-block-navigation__responsive-container:not(.is-menu-open) { display:none; }
    .cedro-masthead-signature .cedro-header-inner { display:grid; grid-template-columns:auto minmax(0,1fr) auto; width:calc(100% - 24px); min-height:66px; padding:8px 0; }
    .cedro-masthead-signature .cedro-menu { grid-column:1; grid-row:1; border:0; margin:0; min-height:0; }
    .cedro-masthead-signature .cedro-brand { gap:5px; }
    .cedro-masthead-signature .cedro-logo-default img,.cedro-masthead-signature .wp-block-site-logo img { width:25px; }
    .cedro-masthead-signature .wp-block-site-title { font-size:clamp(19px,5.6vw,32px); }
    .cedro-masthead-signature .cedro-reserve-link { padding:6px 8px; gap:4px; font-size:11px; }
}

/* Cabeçalho e rodapé */
.cedro-masthead-lodge { background:#1d2921; color:#faf6e9; padding:11px 0; }
.home:has(.cedro-hero) .cedro-masthead-lodge { position:absolute; inset:0 0 auto; z-index:5; padding:12px 0 0; background:none; }
.home:has(.cedro-hero) .wp-site-blocks > header { position:relative; z-index:5; }
.home:has(.cedro-hero) .cedro-hero-inner { padding-top:135px; padding-bottom:55px; }
.cedro-masthead-lodge .cedro-header-inner { padding:10px 19px; width:min(1270px,calc(100% - 52px)); border:1px solid #d3bc8770; background:#1d2921; min-height:68px; display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:14px; border-radius:2px; }
.home:has(.cedro-hero) .cedro-masthead-lodge .cedro-header-inner { background:#18261eeb; }
.cedro-masthead-lodge .cedro-brand { gap:11px; }
.cedro-masthead-lodge .wp-block-site-title { font-size:clamp(27px,2.75vw,41px); white-space:nowrap; }
.cedro-masthead-lodge .cedro-logo-default img { width:40px; }
.cedro-masthead-lodge .cedro-menu { justify-content:flex-end; }
.cedro-masthead-lodge .cedro-menu .wp-block-navigation__container { gap:clamp(9px,1.55vw,24px); }
.cedro-masthead-lodge .cedro-menu a { font-size:12px; font-weight:650; }
.cedro-masthead-lodge .cedro-menu .current-menu-item > a { color:#e7cb91; }
.cedro-masthead-lodge .cedro-menu .is-menu-open .current-menu-item > a { color:#594324; }
.cedro-masthead-lodge .cedro-header-reserve { grid-column:auto; grid-row:auto; }
.cedro-masthead-lodge .cedro-reserve-link,.cedro-footer-call .cedro-reserve-link { display:inline-flex; align-items:center; white-space:nowrap; gap:10px; background:#e1bf87; color:#1e2a22; border:1px solid #e1bf87; padding:9px 13px; font-size:12px; font-weight:800; text-decoration:none; }
.cedro-masthead-lodge .cedro-reserve-link:hover,.cedro-footer-call .cedro-reserve-link:hover { background:#f1d5a6; }
.cedro-masthead-lodge .cedro-reserve-link span,.cedro-footer-call .cedro-reserve-link span { color:inherit; }
.cedro-footer-lodge { background:#17231c; color:#f8f4e8; }
.cedro-footer-call { background:linear-gradient(90deg,#17231cf0,#17231cb0 48%,#17231c62),url("assets/terraco.jpg") center 52%/cover; border-top:2px solid #b79b66; }
.cedro-footer-call-inner { display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; padding-block:clamp(34px,5vw,67px); }
.cedro-footer-call h2 { margin:0; font-size:clamp(39px,5.5vw,78px); letter-spacing:-.06em; }
.cedro-footer-lodge .cedro-footer-inner { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,.66fr) minmax(0,1fr); align-items:start; padding:33px 0 25px; gap:20px; }
.cedro-footer-brand { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.cedro-footer-lodge h3 { font:750 12px/1.2 var(--wp--preset--font-family--body); letter-spacing:.14em; text-transform:uppercase; color:#e1bf87; margin:0 0 12px; }
.cedro-footer-lodge .cedro-menu a { color:inherit; }
.cedro-footer-lodge .cedro-menu .wp-block-navigation__container { gap:7px; align-items:flex-start; }
.cedro-footer-lodge .cedro-action { background:transparent; }
.cedro-footer-base { border-top:1px solid #cab78254; padding:12px 0 15px; color:#ddd4bf; font-size:12px; }
.cedro-footer-base p { margin:0; }
@media(max-width:950px) {
    .cedro-masthead-lodge .cedro-menu .wp-block-navigation__responsive-container-open { display:flex; }
    .cedro-masthead-lodge .cedro-menu .wp-block-navigation__responsive-container:not(.is-menu-open) { display:none; }
    .cedro-masthead-lodge .cedro-header-inner { grid-template-columns:auto minmax(0,1fr) auto; gap:8px; width:calc(100% - 24px); }
    .cedro-masthead-lodge .cedro-menu { grid-column:1; grid-row:1; }
    .cedro-masthead-lodge .cedro-brand { grid-column:2; grid-row:1; }
    .cedro-masthead-lodge .cedro-header-reserve { grid-column:3; grid-row:1; justify-self:end; }
}
@media(max-width:620px) {
    .cedro-masthead-lodge .cedro-header-inner { padding:6px 7px; min-height:56px; }
    .cedro-masthead-lodge .cedro-brand { gap:6px; }
    .cedro-masthead-lodge .wp-block-site-title { font-size:clamp(17px,5.2vw,29px); white-space:normal; overflow-wrap:anywhere; }
    .cedro-masthead-lodge .wp-block-site-logo img { width:26px; }
    .cedro-masthead-lodge .cedro-reserve-link { padding:6px 7px; gap:4px; font-size:11px; }
    .home:has(.cedro-hero) .cedro-hero-inner { padding-top:106px; }
    .cedro-footer-lodge .cedro-footer-inner { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
    .cedro-footer-brand { grid-column:1/-1; }
}
/* Where the page already ends with a booking call, carry the photo into the footer itself. */
body:has(main .cedro-final .wp-block-button__link) .cedro-footer-lodge { background:linear-gradient(90deg,#17231cf8,#17231ce8 52%,#17231ccf),url("assets/terraco.jpg") center 60%/cover; border-top:2px solid #b79b66; }
body:has(main .cedro-final .wp-block-button__link) .cedro-footer-call { display:none; }
