/* Bohem Pansiyon Cafe & Bistro — one page */
:root {
  --sand: #f4ede1;
  --sand-2: #ebe1d0;
  --paper: #fbf8f2;
  --pine: #1f3a2e;
  --pine-2: #2b4c3c;
  --moss: #3d5f4c;
  --terra: #b8562f;
  --terra-dark: #9a4524;
  --sea: #2e8c8a;
  --sun: #e3a83b;
  --ink: #1d221f;
  --muted: #5a605a;
  --wa: #1f7a4d;
  --wa-dark: #186240;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 72px;
  --radius: 14px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--sand);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; font-weight: 300; }
p { margin: 0 0 1em; }
address { font-style: normal; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--pine); color: var(--sand); padding: .75rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; position: relative; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terra-dark);
  margin-bottom: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: currentColor; }
.eyebrow-light { color: var(--sun); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 50px;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 42px; padding: .5rem 1.05rem; font-size: .93rem; }
.btn-sm svg { width: 16px; height: 16px; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-terra { background: var(--terra); color: #fff; }
.btn-terra:hover { background: var(--terra-dark); }
.btn-ghost-light { color: var(--sand); border-color: rgba(244, 237, 225, .55); }
.btn-ghost-light:hover { background: rgba(244, 237, 225, .12); border-color: var(--sand); }
.btn-block { width: 100%; }

.text-link {
  font-weight: 600;
  color: var(--sun);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(227, 168, 59, .4);
  padding-bottom: 2px;
}
.text-link:hover { border-bottom-color: var(--sun); }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--sand);
  transition: background-color .3s, box-shadow .3s, color .3s;
}
.site-header.is-scrolled, .site-header.nav-open {
  background: rgba(244, 237, 225, .96);
  color: var(--pine);
  box-shadow: 0 1px 0 rgba(31, 58, 46, .1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.header-inner {
  width: min(100% - 2.5rem, 1320px);
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; margin-right: auto; }
.brand-name { font-family: var(--serif); font-style: italic; font-size: 1.85rem; font-weight: 400; letter-spacing: -0.01em; }
.brand-sub { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; margin-top: .3rem; opacity: .85; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
.site-nav a:not(.btn) { text-decoration: none; font-size: .95rem; font-weight: 500; padding: .4rem 0; position: relative; }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-cta-mobile { display: none; }

.nav-toggle { display: none; background: none; border: 0; width: 46px; height: 46px; color: inherit; cursor: pointer; border-radius: 10px; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; margin-inline: auto; position: relative; transition: transform .25s, background-color .25s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-open .nav-toggle-bars { background: transparent; }
.nav-open .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--sand);
  isolation: isolate;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 32, 25, .55) 0%, rgba(16, 32, 25, .05) 28%, rgba(16, 32, 25, .25) 55%, rgba(16, 32, 25, .88) 100%);
}
.hero-content {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  padding: calc(var(--header-h) + 3rem) 0 clamp(4rem, 9vh, 6.5rem);
}
.hero h1 {
  font-size: clamp(2.6rem, 6.6vw, 5.6rem);
  max-width: 13ch;
  margin-bottom: 1.4rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.hero h1 em { color: #f6d8a8; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 40ch; color: rgba(244, 237, 225, .92); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.2rem; }

.rating {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem .7rem;
  text-decoration: none;
  padding: .55rem 1rem .55rem .6rem;
  border-radius: 999px;
  background: rgba(16, 32, 25, .45);
  border: 1px solid rgba(244, 237, 225, .25);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.rating:hover { background: rgba(16, 32, 25, .65); }
.rating-score { font-family: var(--serif); font-size: 1.35rem; background: var(--sand); color: var(--pine); border-radius: 999px; padding: .05rem .6rem; }
.rating-stars { color: var(--sun); letter-spacing: .1em; }
.rating-text { font-size: .9rem; }

.photo-credit { font-size: .75rem; color: var(--muted); margin: 1.25rem 0 0; }
.hero-credit { position: absolute; right: 1.25rem; bottom: .9rem; color: rgba(244, 237, 225, .7); margin: 0; max-width: calc(100% - 2.5rem); text-align: right; }

/* About */
.about { background: var(--sand); padding-bottom: clamp(6rem, 12vw, 10rem); }
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.about h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); color: var(--pine); }
.about h2 em { color: var(--terra); }
.lead { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.45; color: var(--pine); font-weight: 300; }
.about-body p:not(.lead) { color: var(--muted); max-width: 54ch; }
.aerial {
  margin: 2.2rem 0 0;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem 1.25rem 1rem 1rem;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid rgba(31, 58, 46, .1);
  max-width: 470px;
}
.aerial img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 4px var(--sand), 0 0 0 5px rgba(184, 86, 47, .5); }
.aerial figcaption { font-size: .93rem; color: var(--muted); line-height: 1.5; }
.aerial a { color: var(--terra-dark); font-weight: 600; text-decoration: none; display: inline-block; margin-top: .25rem; }
.aerial a:hover { text-decoration: underline; }

.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 60px; fill: var(--pine); }

/* Experience */
.experience { background: var(--pine); color: var(--sand); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.experience h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
.experience h2 em { color: #f6d8a8; }

.exp-grid {
  display: grid;
  grid-template-columns: 1fr 1.7fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
}
.exp-item {
  border-top: 1px solid rgba(244, 237, 225, .25);
  padding-top: 1.6rem;
  display: flex;
  flex-direction: column;
}
.exp-item h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin-bottom: .9rem; }
.exp-item p { color: rgba(244, 237, 225, .8); font-size: 1rem; }
.exp-item .text-link { margin-top: auto; align-self: flex-start; }
.exp-num { font-family: var(--serif); font-style: italic; color: var(--sun); font-size: 1rem; margin-bottom: 1rem; display: block; }
.exp-feature { border-top: 0; padding-top: 0; background: var(--pine-2); border-radius: var(--radius); overflow: hidden; }
.exp-photo { margin: 0; position: relative; aspect-ratio: 16 / 10; }
.exp-photo img { width: 100%; height: 100%; object-fit: cover; }
.exp-photo figcaption, .g-badge {
  position: absolute;
  left: .75rem;
  top: .75rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  background: rgba(16, 32, 25, .72);
  color: var(--sand);
  padding: .25rem .6rem;
  border-radius: 999px;
}
.exp-feature-text { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }

/* Region / gallery */
.region { background: var(--paper); }
.region-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: end; }
.region h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); color: var(--pine); }
.region h2 em { color: var(--sea); }
.region-intro { color: var(--muted); max-width: 46ch; margin: 0; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(180px, 22vw, 290px);
  gap: clamp(.6rem, 1.2vw, 1rem);
}
.g-item { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--sand-2); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.g-item:hover img { transform: scale(1.04); }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }
.g-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem 1rem .9rem;
  background: linear-gradient(180deg, transparent, rgba(16, 32, 25, .82));
  color: var(--sand);
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.g-item figcaption strong { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; }
.g-item figcaption span { font-size: .82rem; opacity: .85; }

/* Booking */
.booking { background: var(--sand); }
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.booking h2 { font-size: clamp(2.2rem, 4.4vw, 3.7rem); color: var(--pine); margin-bottom: 1.4rem; }
.booking h2 em { color: var(--terra); }
.booking-intro > p { color: var(--muted); max-width: 48ch; }
.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid rgba(31, 58, 46, .15); }
.contact-list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(31, 58, 46, .15); flex-wrap: wrap; }
.contact-label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-list a { font-family: var(--serif); font-size: 1.2rem; color: var(--pine); text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--terra); }

.booking-form {
  background: var(--paper);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border: 1px solid rgba(31, 58, 46, .1);
  box-shadow: 0 30px 60px -40px rgba(31, 58, 46, .45);
}
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-size: .9rem; font-weight: 600; color: var(--pine); }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #cfc6b6;
  border-radius: 10px;
  padding: .75rem .85rem;
  min-height: 50px;
  width: 100%;
  min-width: 0;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px rgba(227, 168, 59, .45); }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.form-error { color: #b3261e; font-weight: 600; font-size: .95rem; margin-bottom: 1rem; }
.form-hint { font-size: .85rem; color: var(--muted); margin: .9rem 0 0; text-align: center; }

/* Location */
.location { background: var(--pine); color: var(--sand); overflow: hidden; }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.location h2 { font-size: clamp(2.2rem, 4.4vw, 3.7rem); margin-bottom: 1.6rem; }
.location h2 em { color: #f6d8a8; }
.location address { font-size: 1.15rem; line-height: 1.6; margin-bottom: 2rem; color: rgba(244, 237, 225, .9); }
.location-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.map-art { position: relative; border-radius: 20px; background: var(--pine-2); overflow: hidden; border: 1px solid rgba(244, 237, 225, .12); }
.map-svg { width: 100%; height: auto; display: block; }
.coords { position: absolute; right: 1rem; bottom: .6rem; margin: 0; font-size: .78rem; letter-spacing: .12em; color: rgba(244, 237, 225, .75); }

/* Footer */
.site-footer { background: #15281f; color: rgba(244, 237, 225, .85); padding: 3.5rem 0 2rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(244, 237, 225, .12); }
.footer-brand { font-size: 2.4rem; color: var(--sand); margin: 0; line-height: 1; }
.footer-sub { font-size: .9rem; margin: .5rem 0 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; }
.footer-links a { text-decoration: none; font-weight: 500; display: inline-block; padding: .35rem 0; }
.footer-links a:hover { color: var(--sun); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; font-size: .82rem; color: rgba(244, 237, 225, .6); }
.footer-bottom p { margin: 0; }

/* Mobile action bar */
.mobile-bar { display: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .site-nav ul { gap: 1.1rem; }
  .exp-grid { grid-template-columns: 1fr 1fr; }
  .exp-feature { grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: 1.1fr 1fr; }
  .exp-photo { aspect-ratio: auto; min-height: 280px; }
}

@media (max-width: 920px) {
  :root { --header-h: 66px; }
  .header-cta { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--sand);
    color: var(--pine);
    padding: 1rem 1.25rem 1.5rem;
    border-top: 1px solid rgba(31, 58, 46, .1);
    box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .3);
    display: none;
  }
  .nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a:not(.btn) { display: block; padding: .85rem 0; font-size: 1.1rem; border-bottom: 1px solid rgba(31, 58, 46, .1); }
  .site-nav a:not(.btn)::after { display: none; }
  .nav-cta-mobile { display: flex; margin-top: 1.2rem; width: 100%; }

  .about-grid, .booking-grid, .location-grid, .region-head { grid-template-columns: 1fr; }
  .region-head { gap: 1.2rem; }
}

@media (max-width: 680px) {
  body { font-size: 1rem; padding-bottom: 68px; }
  .hero { align-items: flex-end; }
  .hero-media img { object-position: 60% 50%; }
  .hero-actions .btn { width: 100%; }
  .hero-credit { position: static; text-align: left; padding: 0 1.25rem 1rem; }
  .hero { flex-direction: column; justify-content: flex-end; align-items: stretch; }
  .hero-content { padding-bottom: 1.5rem; }

  .exp-grid { grid-template-columns: 1fr; }
  .exp-feature { display: flex; grid-row: auto; }
  .exp-photo { aspect-ratio: 4 / 3; min-height: 0; }

  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .g-wide { grid-column: 1 / -1; }
  .g-tall { grid-row: span 2; }
  .g-item figcaption strong { font-size: 1.02rem; }

  .field-row { grid-template-columns: 1fr; gap: 0; }
  .location-actions .btn { flex: 1 1 100%; }

  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 90;
    background: var(--paper);
    border-top: 1px solid rgba(31, 58, 46, .15);
    padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom));
    gap: .55rem;
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; font-weight: 600; text-decoration: none; }
  .mobile-bar-call { border: 1.5px solid var(--pine); color: var(--pine); }
  .mobile-bar-wa { background: var(--wa); color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .g-item:hover img { transform: none; }
}
