/*
Theme Name: Buorsi
Author: Buorsi
Description: Fast, SEO-focused theme for Buorsi, a flexible-stay retreat in Ubud, Bali. Room-only pricing with optional meals and activities. Includes room and FAQ post types, multi-currency prices and LodgingBusiness plus FAQPage structured data.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: buorsi
Tags: one-column, custom-menu, custom-logo, featured-images, translation-ready, blog
*/

:root {
  --b-mustard: #f2b33d;
  --b-mustard-dark: #e3a12c;
  --b-green: #1e4d3a;
  --b-green-light: #2a6450;
  --b-cream: #fbf3e6;
  --b-sand: #ead9bc;
  --b-white: #ffffff;
  --b-radius: 28px;
  --b-radius-lg: 40px;
  --b-max: 1440px;
  --b-pad: clamp(20px, 4vw, 64px);
  --b-font: "Nunito", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --b-display: "Lilita One", var(--b-font);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--b-cream);
  color: var(--b-green);
  font-family: var(--b-font);
  font-size: 18px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

a { color: var(--b-green); }
a:hover, a:focus { color: #123326; }

:focus-visible { outline: 3px solid var(--b-green); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--b-display); font-weight: 400; line-height: 1.03; margin: 0 0 16px; text-wrap: balance; }
h1 { font-size: clamp(44px, 8vw, 96px); }
h2 { font-size: clamp(32px, 5vw, 56px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); font-family: var(--b-font); font-weight: 800; line-height: 1.25; }
p { margin: 0 0 16px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--b-green); color: var(--b-mustard);
  padding: 12px 20px; border-radius: 0 0 12px 0; font-weight: 800;
}
.skip-link:focus { left: 0; }

.b-wrap { max-width: var(--b-max); margin: 0 auto; padding-left: var(--b-pad); padding-right: var(--b-pad); }
.b-section { padding-block: clamp(48px, 7vw, 104px); }
.b-section--tight { padding-block: 0 clamp(48px, 7vw, 104px); }
.b-grid { display: grid; gap: clamp(20px, 2.5vw, 32px); }
.b-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.b-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.b-eyebrow { font-weight: 800; font-size: 15px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px; }
.b-lead { font-size: clamp(18px, 2vw, 22px); font-weight: 600; line-height: 1.5; }
.b-muted { font-size: 14px; font-weight: 600; opacity: 0.85; }

.b-btn {
  display: inline-block; text-decoration: none; text-align: center;
  background: var(--b-green); color: var(--b-mustard);
  padding: 16px 28px; border-radius: 999px; font-weight: 800; font-size: 17px;
  border: 0; cursor: pointer; font-family: inherit;
}
.b-btn:hover, .b-btn:focus { background: #123326; color: var(--b-mustard); }
.b-btn--light { background: var(--b-mustard); color: var(--b-green); }
.b-btn--light:hover, .b-btn--light:focus { background: var(--b-mustard-dark); color: var(--b-green); }

/* Header */
.b-header { background: var(--b-mustard); }
.b-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 96px; padding-block: 12px; }
.b-logo { font-family: var(--b-display); font-size: clamp(32px, 4vw, 44px); line-height: 1; color: var(--b-green); text-decoration: none; display: inline-flex; align-items: center; }
.b-logo svg { display: block; height: clamp(44px, 5vw, 60px); width: auto; }
.b-footer .b-logo svg { height: 58px; }
.custom-logo { display: block; height: clamp(44px, 5vw, 60px); width: auto; }
.b-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(14px, 2vw, 30px); list-style: none; margin: 0; padding: 0; font-weight: 700; font-size: 17px; }
.b-nav a { text-decoration: none; }
.b-nav .b-btn { padding: 14px 26px; }
.b-nav .b-menu-cta a { display: inline-block; background: var(--b-green); color: var(--b-mustard); padding: 14px 26px; border-radius: 999px; font-weight: 800; }
.b-nav .b-menu-cta a:hover, .b-nav .b-menu-cta a:focus { background: #123326; color: var(--b-mustard); }
.b-nav-toggle { display: none; background: var(--b-green); color: var(--b-mustard); border: 0; border-radius: 999px; padding: 12px 20px; font-family: inherit; font-weight: 800; font-size: 16px; cursor: pointer; }

/* Hero */
.b-hero { background: var(--b-mustard); }
.b-hero__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(28px, 4vw, 56px); align-items: center; padding-block: clamp(40px, 6vw, 72px); }
.b-hero h1 { margin-bottom: 20px; }
.b-hero__media { border-radius: var(--b-radius-lg); overflow: hidden; background: var(--b-mustard-dark); aspect-ratio: 5 / 4; }
.b-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.b-book { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: var(--b-cream); padding: 16px; border-radius: var(--b-radius); margin-top: 24px; }
.b-book__field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 140px; }
.b-book label { font-size: 13px; font-weight: 800; }
.b-book input { height: 48px; border: 2px solid var(--b-green); border-radius: 12px; padding: 0 12px; font-family: inherit; font-size: 16px; color: var(--b-green); background: #fff; }

/* Cards */
.b-card { background: var(--b-white); border-radius: var(--b-radius); padding: clamp(24px, 3vw, 36px); }
.b-card--flat { background: var(--b-cream); }
.b-step__num { width: 56px; height: 56px; border-radius: 50%; background: var(--b-mustard); display: flex; align-items: center; justify-content: center; font-family: var(--b-display); font-size: 28px; margin-bottom: 14px; }
.b-addon { background: var(--b-cream); color: var(--b-green); border-radius: var(--b-radius); overflow: hidden; }
.b-addon__media { aspect-ratio: 3 / 2; background: var(--b-mustard); }
.b-addon__media img { width: 100%; height: 100%; object-fit: cover; }
.b-addon__body { padding: clamp(20px, 2.5vw, 32px); }
.b-price { font-weight: 800; font-size: 20px; }

.b-room__media { aspect-ratio: 4 / 3; border-radius: var(--b-radius); overflow: hidden; background: var(--b-sand); margin-bottom: 14px; }
.b-room__media img { width: 100%; height: 100%; object-fit: cover; }

/* Panels */
.b-panel { border-radius: var(--b-radius-lg); padding: clamp(28px, 4vw, 64px); display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(28px, 4vw, 64px); align-items: center; }
.b-panel--green { background: var(--b-green); color: var(--b-cream); }
.b-panel--green h2, .b-panel--green a { color: var(--b-mustard); }
.b-panel--mustard { background: var(--b-mustard); }
.b-panel--white { background: var(--b-white); }
.b-panel__price { background: var(--b-cream); border-radius: var(--b-radius); padding: clamp(24px, 3vw, 40px); }
.b-panel__price .b-amount { font-family: var(--b-display); font-size: clamp(44px, 5vw, 64px); line-height: 1; display: block; margin-bottom: 8px; }
.b-media-box { border-radius: var(--b-radius); overflow: hidden; background: var(--b-sand); aspect-ratio: 4 / 3; }
.b-media-box img { width: 100%; height: 100%; object-fit: cover; }
.b-panel--green .b-media-box { color: var(--b-green); }

.b-section--green { background: var(--b-green); color: var(--b-cream); }
.b-section--green h2 { color: var(--b-mustard); }
.b-section--green .b-addon { color: var(--b-green); }
.b-section--mustard { background: var(--b-mustard); }

.b-ticklist { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.b-ticklist li { display: flex; align-items: center; gap: 14px; font-size: 19px; font-weight: 700; }
.b-ticklist svg { width: 26px; height: 26px; flex-shrink: 0; }

.b-faq__item { background: var(--b-cream); border: 1px solid var(--b-sand); border-radius: var(--b-radius); padding: clamp(20px, 2.5vw, 32px); }
.b-faq__item h3 { margin-bottom: 10px; }
.b-faq__item p:last-child { margin-bottom: 0; }

.b-cta { text-align: center; display: grid; justify-items: center; gap: 20px; }
.b-cta svg { width: 96px; height: 96px; }

/* Footer */
.b-footer { background: var(--b-green); color: var(--b-cream); padding-block: clamp(40px, 6vw, 72px) 32px; }
.b-footer a { color: var(--b-cream); text-decoration: none; }
.b-footer a:hover, .b-footer a:focus { color: var(--b-mustard); text-decoration: underline; }
.b-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: clamp(28px, 4vw, 64px); }
.b-footer__brand { max-width: 340px; }
.b-footer h2, .b-footer h3 { font-family: var(--b-font); font-size: 17px; font-weight: 800; color: var(--b-mustard); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px; }
.b-footer ul { list-style: none; margin: 0; padding: 0; font-size: 16px; }
.b-footer li { margin-bottom: 10px; }
.b-footer address { font-style: normal; line-height: 1.7; font-size: 16px; }
.b-footer__bottom { border-top: 1px solid var(--b-green-light); margin-top: 40px; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; font-size: 14px; }
.b-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 24px; }
.b-footer__bottom li { margin: 0; }

/* Blog and pages */
.b-entry { max-width: 760px; margin: 0 auto; }
.b-entry img { border-radius: var(--b-radius); }
.b-entry__meta { font-size: 15px; font-weight: 700; opacity: 0.8; margin-bottom: 24px; }
.b-breadcrumb { font-size: 15px; font-weight: 700; margin-bottom: 24px; }
.b-breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.b-pagination { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
.b-pagination .page-numbers { padding: 10px 16px; border-radius: 999px; background: var(--b-white); text-decoration: none; font-weight: 700; }
.b-pagination .current { background: var(--b-green); color: var(--b-mustard); }

.screen-reader-text {
  border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; width: 1px; white-space: nowrap;
}

.alignwide { max-width: 1100px; }
.alignfull { max-width: none; }
.wp-caption, .gallery-caption { font-size: 15px; }

@media (max-width: 860px) {
  .b-nav-toggle { display: inline-block; }
  .b-nav { display: none; flex-basis: 100%; }
  .b-nav.is-open { display: block; }
  .b-nav ul { flex-direction: column; align-items: flex-start; gap: 14px; padding-block: 12px; }
  .b-header__inner { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

@media print {
  .b-header, .b-footer, .b-book, .b-btn { display: none !important; }
  body { background: #fff; color: #000; }
}
