/* A guesthouse site. The colours come from Settings (--brand, --accent on <body>); everything else is here.
   Light and calm: off-white and sand, a thin serif for headings, small spaced capitals for labels, photos edge to
   edge with square corners and no shadows. The fonts are served by the site (public/fonts, SIL Open Font License). */
@font-face { font-family: "Cormorant Garamond"; font-weight: 300; font-style: normal; font-display: swap; src: url(/fonts/cormorant-garamond-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 300; font-style: italic; font-display: swap; src: url(/fonts/cormorant-garamond-latin-300-italic.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 300; font-style: normal; font-display: swap; src: url(/fonts/jost-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/jost-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/jost-latin-500-normal.woff2) format("woff2"); }

:root {
  --ink: #26302f; --ink-2: #4a5553; --muted: #7d8683; --line: #dcd8cf;
  --paper: #fbfaf7; --sand: #f2eee6;
  --wrap: 1240px; --narrow: 760px;
  --font: "Jost", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font: 300 17px/1.75 var(--font); color: var(--ink-2); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 4px; }
b, strong { font-weight: 500; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 300; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .45em; }
h1 { font-size: clamp(44px, 6.4vw, 88px); }
h2 { font-size: clamp(36px, 4.6vw, 62px); }
h3 { font-size: 28px; line-height: 1.15; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.narrow { max-width: var(--narrow); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; }
.eyebrow { font: 400 12px/1.4 var(--font); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.7; color: var(--ink-2); }
.icon { flex: none; }

/* buttons: thin, square, spaced capitals */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 400 12px/1 var(--font); letter-spacing: .24em; text-transform: uppercase; padding: 17px 30px; background: var(--brand); color: #fff; border: 1px solid var(--brand); text-decoration: none; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.btn:hover { background: transparent; color: var(--brand); }
.btn-light { background: transparent; color: #fff; border-color: #ffffffb3; }
.btn-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { color: inherit; background: color-mix(in srgb, currentColor 10%, transparent); }
.more { display: inline-flex; align-items: center; gap: 10px; font: 400 12px/1 var(--font); letter-spacing: .24em; text-transform: uppercase; color: var(--ink); text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid currentColor; transition: gap .3s var(--ease); }
.more:hover { gap: 16px; }
.more .icon { width: 14px; height: 14px; }
.buttons { display: flex; flex-wrap: wrap; gap: 14px; margin: 36px 0 0; }
.center .buttons, .hero .buttons { justify-content: center; }

/* header: on the page, or over the big photo when a page starts with one */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
body:has(main > .hero:first-child) .site-head { position: absolute; left: 0; right: 0; background: linear-gradient(#0000004d, #0000); border-bottom-color: #ffffff2e; backdrop-filter: none; }
body:has(main > .hero:first-child) .site-head :is(.brand, .menu-links a, .menu-toggle) { color: #fff; }
body:has(main > .hero:first-child) .site-head .menu .btn { background: transparent; border-color: #ffffffb3; }
body:has(main > .hero:first-child) .site-head .menu .btn:hover { background: #fff; color: var(--ink); }
.head-row { display: flex; align-items: center; gap: 32px; height: 86px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 300 28px/1 var(--serif); letter-spacing: .02em; color: var(--ink); text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid currentColor; font-size: 20px; }
.menu { display: flex; align-items: center; flex: 1; gap: 28px; }
.menu-links { display: flex; gap: 6px; flex: 1; justify-content: flex-end; }
.menu-links a { font: 400 12px/1 var(--font); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; padding: 10px 12px; position: relative; }
.menu-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .35s var(--ease); }
.menu-links a:hover::after, .menu-links a[aria-current]::after { transform: scaleX(1); }
.menu .btn { padding: 14px 22px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; }
@media (max-width: 900px) {
  .head-row { height: 72px; }
  .menu-toggle { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 16px 24px 28px; gap: 16px; }
  .site-head.open .menu { display: flex; }
  body:has(main > .hero:first-child) .site-head.open { background: var(--paper); }
  body:has(main > .hero:first-child) .site-head.open :is(.brand, .menu-links a, .menu-toggle) { color: var(--ink); }
  body:has(main > .hero:first-child) .site-head.open .menu .btn { background: var(--brand); border-color: var(--brand); }
  .menu-links { flex-direction: column; }
  .menu-links a { padding: 14px 0; font-size: 13px; }
  .menu-links a::after { left: 0; right: auto; width: 24px; }
  .no-js .menu { display: flex; position: static; }
}

/* bands */
.band { padding: clamp(72px, 10vw, 140px) 0; }
.band-soft { background: var(--sand); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lead { margin-bottom: 0; }
.more-row { margin: 56px 0 0; }
.page-head { padding: clamp(80px, 11vw, 150px) 0 clamp(32px, 5vw, 56px); text-align: center; position: relative; }
.page-head .lead { max-width: 620px; margin-left: auto; margin-right: auto; }
.page-head.with-photo { padding: 0; color: #fff; min-height: min(78vh, 720px); display: grid; align-items: end; }
.page-head.with-photo .wrap { position: relative; padding-top: 160px; padding-bottom: clamp(48px, 7vw, 96px); }
.page-head.with-photo :is(h1, .eyebrow, .crumbs, .crumbs a) { color: #fff; }
.page-head.with-photo .lead { color: #ffffffeb; }
.page-photo, .hero-photo, .cta-photo { position: absolute; inset: 0; overflow: hidden; }
.page-photo img, .hero-photo img, .cta-photo img { width: 100%; height: 100%; object-fit: cover; }
.page-photo::after, .hero-photo::after, .cta-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #00000052, #00000024 32%, #00000033 55%, #00000085); }
.cta-photo::after { background: #0000005c; }
.hero h1, .hero h2, .hero .lead, .cta-band.with-photo :is(h2, .lead), .page-head.with-photo :is(h1, .lead) { text-shadow: 0 1px 24px #0000004d; }
.crumbs { font: 400 12px/1.4 var(--font); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: inherit; text-decoration: none; }

/* the big photo */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: end; color: #fff; background: var(--ink); }
.hero-photo img { animation: drift 24s ease-out both; }
@keyframes drift { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero-photo img { animation: none; } }
.hero-text { position: relative; text-align: center; padding-top: 180px; padding-bottom: clamp(64px, 11vw, 140px); max-width: 980px; }
.hero h1, .hero h2 { color: #fff; font-size: clamp(54px, 8.6vw, 128px); line-height: 1; margin-bottom: .3em; }
.hero .eyebrow { color: #ffffffe0; }
.hero .lead { color: #fffffff0; max-width: 600px; margin: 0 auto; font-size: clamp(18px, 1.6vw, 21px); }
.hero .btn:not(.btn-light) { background: #fff; color: var(--ink); border-color: #fff; }
.hero .btn:not(.btn-light):hover { background: transparent; color: #fff; }

/* text and photo */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 8vw, 128px); align-items: center; }
.image-left .split-text { order: 2; }
.split-text { max-width: 520px; }
.split-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .image-left .split-text { order: 0; } }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: 40px; margin-top: 1.3em; }
.prose h3 { margin-top: 1.3em; }

/* rooms: photo first, the words underneath */
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(40px, 5vw, 64px) clamp(24px, 3vw, 40px); }
.room-card { display: flex; flex-direction: column; }
.room-cover { display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand); margin-bottom: 26px; }
.room-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.room-card:hover .room-cover img { transform: scale(1.04); }
.cover-blank { display: grid; place-items: center; height: 100%; color: var(--muted); }
.room-body { display: flex; flex-direction: column; flex: 1; }
.room-body h3 { margin-bottom: 10px; font-size: 32px; }
@media (min-width: 1100px) {
  .room-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); }
  .room-grid:has(> :nth-child(4):last-child) .room-body h3 { font-size: 27px; }
}
.room-body h3 a { color: inherit; text-decoration: none; }
.room-body > p { font-size: 16px; }
.room-foot { margin: auto 0 0; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.from { font: 400 12px/1 var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.from b { font: 300 24px/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink); }
.facts { list-style: none; padding: 0; margin: 2px 0 20px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); }
.facts li { display: inline-flex; align-items: center; gap: 8px; }

/* a room */
.room-head { padding-top: clamp(64px, 9vw, 120px); padding-bottom: 40px; max-width: 980px; text-align: center; }
.room-head .lead { max-width: 620px; margin: 0 auto; }
.room .carousel { --carousel-per-view: 1; --carousel-gap: 12px; margin: 0 0 56px; }
@media (min-width: 760px) { .room .carousel { --carousel-per-view: 2; } }
.room-photo { margin: 0 auto 56px; max-width: 640px; }
.room-grid-2 { display: grid; grid-template-columns: 1fr 360px; gap: clamp(40px, 7vw, 112px); align-items: start; padding-bottom: clamp(72px, 10vw, 140px); }
.room-main h2 { font-size: 36px; margin-top: 1.5em; }
.room-main .facts { font-size: 15px; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.book-box { position: sticky; top: 110px; background: var(--sand); padding: 36px; display: grid; gap: 14px; text-align: center; }
.book-price { margin: 0; font: 400 12px/1.6 var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.book-price b { display: block; font: 300 44px/1.1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink); margin: 6px 0; }
.book-box p.muted { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-size: 15px; }
.book-box .btn { margin-top: 10px; }
@media (max-width: 900px) { .room-grid-2 { grid-template-columns: 1fr; } .book-box { position: static; order: -1; } }

/* what's included */
.amenities { list-style: none; padding: 0; margin: 0 auto; max-width: 1040px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 44px 24px; }
.amenities li { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; font-size: 15px; color: var(--ink); }
.amenities .icon { color: var(--brand); stroke-width: 1.2; }
.amenities.compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px 24px; max-width: none; }
.amenities.compact li { flex-direction: row; text-align: left; gap: 12px; }

/* photos */
.gallery-band .carousel { --carousel-per-view: 1; --carousel-gap: 12px; }
@media (min-width: 640px) { .gallery-band .carousel { --carousel-per-view: 2; } }
@media (min-width: 1000px) { .gallery-band .carousel { --carousel-per-view: 3; } }
.gallery-band figcaption { font-size: 14px; color: var(--muted); padding-top: 14px; }
.carousel .carousel-arrow { border-radius: 0; background: #fffffff2; box-shadow: none; width: 52px; height: 52px; }
.carousel .carousel-arrow svg { stroke-width: 1.4; }
.carousel .carousel-dots { gap: 6px; margin-top: 22px; color: var(--ink); }
.carousel .carousel-dots button { width: 24px; height: 2px; border: 0; border-radius: 0; background: currentColor; opacity: .25; }
.carousel .carousel-dots button[aria-current] { background: currentColor; opacity: .9; }

/* reviews: the words, large and quiet */
.avg { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; color: var(--muted); margin: 0; }
.score { display: inline-flex; align-items: baseline; gap: 1px; color: var(--brand); font-size: 13px; line-height: 1; }
.score b { font: 400 22px/1 var(--serif); } .score span { opacity: .7; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 56px clamp(32px, 4vw, 56px); }
.review { margin: 0; display: flex; flex-direction: column; gap: 22px; padding-top: 28px; border-top: 1px solid var(--line); }
.review blockquote { margin: 0; font: italic 300 23px/1.45 var(--serif); color: var(--ink); }
.review blockquote p { margin: 0; }
.review figcaption { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 400 12px/1.5 var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.review figcaption b { color: var(--ink); font-weight: 400; }
.review-meta { display: inline-flex; align-items: center; gap: 10px; } .review-meta small { font-size: inherit; }

/* house rules */
.rules { margin: 0; display: grid; border-top: 1px solid var(--line); }
.rules > div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.rules dt { font: 400 12px/1.8 var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.rules dt .icon { color: var(--brand); stroke-width: 1.3; }
.rules dd { margin: 0; }
@media (max-width: 600px) { .rules > div { grid-template-columns: 1fr; gap: 4px; } }

/* questions */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 48px 24px 0; font: 300 24px/1.3 var(--serif); color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: translateY(-75%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-25%) rotate(225deg); }
.faq-a { padding: 0 0 24px; max-width: 640px; }

/* call to action */
.cta-band { background: var(--brand); color: #fff; position: relative; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: #ffffffe6; }
.cta-band .wrap { position: relative; }
.cta-band .btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .btn-light:hover { background: transparent; color: #fff; }
.cta-band .btn-ghost { color: #fff; border-color: #ffffffb3; }
.cta-band.with-photo { padding: clamp(120px, 18vw, 240px) 0; }

/* footer */
.site-foot { background: var(--sand); color: var(--ink-2); padding: clamp(72px, 9vw, 120px) 0 32px; font-size: 15px; border-top: 1px solid var(--line); }
.site-foot a { color: var(--ink); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot h2 { font: 400 12px/1 var(--font); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.site-foot .brand { margin-bottom: 18px; font-size: 34px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr .8fr; gap: 48px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.foot-brand p { max-width: 320px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { margin-top: 4px; color: var(--brand); stroke-width: 1.3; }
.foot-stay .btn { margin-top: 24px; background: var(--brand); color: #fff; border-color: var(--brand); text-decoration: none; }
.foot-stay .btn:hover { background: transparent; color: var(--brand); }
.socials { display: flex; gap: 16px; }
.socials .icon { stroke-width: 1.3; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid var(--line); margin-top: 72px; padding-top: 28px; font: 400 12px/1.5 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.foot-bottom p { margin: 0; }

/* WhatsApp */
.float-chat { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 8px 24px #0002; transition: transform .3s var(--ease); }
.float-chat:hover { transform: scale(1.06); }

/* languages (config.languages): EN · PT in the header */
.langs { display: flex; gap: 2px; }
.langs a { font: 400 12px/1 var(--font); letter-spacing: .16em; color: var(--muted); text-decoration: none; padding: 8px 6px; }
.langs a[aria-current] { color: var(--ink); border-bottom: 1px solid currentColor; }
body:has(main > .hero:first-child) .site-head .langs a { color: #ffffffb3; }
body:has(main > .hero:first-child) .site-head .langs a[aria-current] { color: #fff; }
@media (max-width: 900px) { .langs { justify-content: flex-start; } body:has(main > .hero:first-child) .site-head.open .langs a { color: var(--muted); } }
