/* ============================================================
   Casa Romana B&B — Blue & Grey theme
   Inspired by The Raz guesthouse aesthetic
   ============================================================ */

:root {
  --blue-900: #0b1f3a;
  --blue-800: #122d4f;
  --blue-700: #1a3a63;
  --blue-600: #234b7a;
  --blue-500: #2d5f96;
  --blue-400: #3d7ab8;
  --blue-300: #5b9ad4;
  --blue-200: #8bb8e0;
  --blue-100: #c5daf0;
  --blue-50:  #e8f1f9;

  --grey-900: #1a1d23;
  --grey-800: #2a2e36;
  --grey-700: #3d424d;
  --grey-600: #555b68;
  --grey-500: #6e7585;
  --grey-400: #8b92a0;
  --grey-300: #aeb4bf;
  --grey-200: #d0d4db;
  --grey-100: #e8eaee;
  --grey-50:  #f4f5f7;

  --ink:    var(--grey-900);
  --muted:  var(--grey-600);
  --bg:     #f7f8fa;
  --surface:#ffffff;
  --accent: var(--blue-500);
  --accent-hover: var(--blue-600);
  --cta:    #2b6cb0;
  --cta-hover: #1e4e8c;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 12px 40px rgba(11, 31, 58, 0.14);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --serif: "Georgia", "Times New Roman", serif;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }
ul { list-style: none; }

/* ---- Demo bar ---- */
.demo-bar {
  background: var(--blue-900);
  color: var(--blue-100);
  font-size: 12.5px;
  text-align: center;
  padding: 8px 16px;
  line-height: 1.45;
}
.demo-bar a { color: #7eb8f0; text-decoration: underline; }
.demo-bar b { color: #fff; }

/* ---- Header ---- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--grey-100);
  transition: box-shadow .25s;
}
.site-head .row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  color: var(--blue-800);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.brand:hover { color: var(--blue-600); }
.brand small {
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--grey-500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  color: var(--grey-700);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background .2s, color .2s;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--blue-700);
  background: var(--blue-50);
}
.nav a.cta {
  background: var(--cta);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  margin-left: 8px;
  box-shadow: 0 2px 10px rgba(43, 108, 176, 0.3);
}
.nav a.cta:hover {
  background: var(--cta-hover);
  box-shadow: 0 4px 16px rgba(43, 108, 176, 0.4);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--blue-800);
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--grey-100);
    box-shadow: var(--shadow-lg);
    gap: 2px;
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; text-align: left; padding: 12px 16px; }
  .nav a.cta { margin-left: 0; text-align: center; margin-top: 8px; }
}

/* ---- Hero (The Raz style) ---- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, #0b1f3a 0%, #1a3a63 40%, #2d5f96 70%, #3d7ab8 100%);
  color: #fff;
}
@media (max-width: 600px) {
  .hero {
    min-height: auto;
    padding-bottom: 0;
  }
  .hero .inner {
    padding: 48px 16px 120px;
  }
  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
    max-width: none;
  }
  .hero .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero .actions .btn {
    justify-content: center;
    width: 100%;
  }
  .hero-features .wrap {
    gap: 12px 20px;
    padding: 14px 16px;
  }
  .hero-features .feat {
    font-size: 0.8rem;
  }
}

.hero .bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.55;
}

.hero .veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(11,31,58,0.88) 0%, rgba(11,31,58,0.55) 45%, rgba(11,31,58,0.25) 100%),
    linear-gradient(to top, rgba(11,31,58,0.7) 0%, transparent 40%);
}

.hero .inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 24px 100px;
  width: 100%;
}

.hero .kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-200);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 14ch;
  margin-bottom: 20px;
  color: #fff;
}

.hero .sub {
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
  max-width: 42ch;
  margin-bottom: 32px;
}

.hero .facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.hero .fact {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

/* Feature strip at bottom of hero */
.hero-features {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  z-index: 3;
  background: rgba(11, 31, 58, 0.55);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-features .wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
}
.hero-features .feat {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.9);
  font-size: 0.88rem;
  font-weight: 500;
}
.hero-features .feat svg,
.hero-features .feat .ico {
  width: 22px;
  height: 22px;
  opacity: 0.9;
  flex-shrink: 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background .2s, box-shadow .2s, transform .15s;
  text-decoration: none;
  max-width: 100%;
  box-sizing: border-box;
}
.btn:active { transform: scale(0.98); }
@media (max-width: 600px) {
  .actions .btn,
  .sec .btn {
    width: 100%;
    margin-bottom: 8px;
  }
}

.btn-primary {
  background: #fff;
  color: var(--blue-800);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-primary:hover {
  background: var(--blue-50);
  color: var(--blue-900);
  box-shadow: 0 6px 28px rgba(0,0,0,0.2);
}

.btn-acc {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 2px 12px rgba(43, 108, 176, 0.3);
}
.btn-acc:hover {
  background: var(--cta-hover);
  color: #fff;
  box-shadow: 0 4px 18px rgba(43, 108, 176, 0.4);
}

.btn-wa {
  background: #25d366;
  color: #fff;
}
.btn-wa:hover {
  background: #1da851;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
}

/* ---- Sections ---- */
.sec {
  padding: 72px 0;
}
.sec.alt {
  background: var(--surface);
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 600px) {
  .sec { padding: 40px 0; }
  .wrap { padding: 0 16px; }
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin-bottom: 10px;
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--blue-900);
  line-height: 1.2;
}
h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  margin-bottom: 12px;
}
h3 {
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--blue-900);
  margin-bottom: 6px;
}

.lede {
  color: var(--muted);
  max-width: 60ch;
  font-size: 1.05rem;
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split .ph {
  width: 100%;
  max-width: 100%;
}
.split .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; gap: 24px; }
}

/* Cards */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 900px) {
  .grid3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid3, .grid2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--grey-100);
  transition: transform .25s, box-shadow .25s;
  width: 100%;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card .ph {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-100), var(--grey-200));
  width: 100%;
}
.card .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .4s;
}
.card:hover .ph img { transform: scale(1.04); }

.card .bd {
  padding: 20px 22px 24px;
}
.card .meta {
  font-size: 0.85rem;
  color: var(--grey-600);
  margin-bottom: 6px;
}
.card .meta b { color: var(--blue-700); }
.room-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.room-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--blue-50);
  color: var(--blue-700);
  padding: 4px 10px;
  border-radius: 6px;
}

/* Amenities list */
.amen {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: 6px 24px;
  font-size: 0.95rem;
  color: var(--grey-700);
}
.amen li {
  padding: 6px 0;
  padding-left: 22px;
  position: relative;
}
.amen li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-400);
}
.amen li.grp {
  grid-column: 1 / -1;
  font-weight: 700;
  color: var(--blue-800);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 16px;
  padding-left: 0;
}
.amen li.grp::before { display: none; }
.amen li.grp:first-child { margin-top: 0; }

/* Gallery */
.gal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.gal button {
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.gal button:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}
.gal button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lightbox */
.lb {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 95vw;
  max-height: 90vh;
}
.lb::backdrop {
  background: rgba(11, 31, 58, 0.88);
  backdrop-filter: blur(6px);
}
.lb img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.lb-close, .lb-nav {
  position: fixed;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 1.2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,0.3); }
.lb-close { top: 20px; right: 20px; font-size: 0.9rem; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Book page */
.book-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 800px) {
  .book-grid { grid-template-columns: 1fr; }
}

.enq {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--grey-100);
}
.form-ok {
  display: none;
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  color: var(--blue-800);
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 0.95rem;
}
.f-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 500px) { .f-2 { grid-template-columns: 1fr; } }
.f-row {
  margin-bottom: 14px;
}
.f-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--grey-700);
  margin-bottom: 5px;
}
.f-row input,
.f-row select,
.f-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--grey-200);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.f-row input:focus,
.f-row select:focus,
.f-row textarea:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(61, 122, 184, 0.15);
}
.f-note {
  font-size: 0.8rem;
  color: var(--muted);
}

.map-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--grey-100);
}
.map-box iframe { width: 100%; height: 280px; border: none; }

.contact-list li {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--grey-100);
  font-size: 0.95rem;
}
.contact-list li b {
  min-width: 70px;
  color: var(--blue-800);
  font-weight: 600;
}
.contact-list li span { color: var(--muted); }

.ota {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.ota a {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  background: var(--blue-50);
  color: var(--blue-700);
  border-radius: 8px;
  transition: background .2s;
}
.ota a:hover { background: var(--blue-100); }

/* Reveal animation — always visible by default so mobile never shows blank gaps */
.reveal {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: no-preference) {
  .reveal.js-ready:not(.in) {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .55s ease, transform .55s ease;
  }
  .reveal.in {
    opacity: 1;
    transform: none;
  }
}

/* ---- Footer ---- */
.site-foot {
  background: var(--blue-900);
  color: var(--blue-100);
  padding: 56px 0 0;
}
.site-foot h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 650;
  margin-bottom: 14px;
  font-family: var(--font);
}
.site-foot p { font-size: 0.9rem; line-height: 1.6; color: var(--blue-200); }
.site-foot a { color: var(--blue-200); }
.site-foot a:hover { color: #fff; }
.site-foot .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
@media (max-width: 700px) {
  .site-foot .cols { grid-template-columns: 1fr; gap: 28px; }
}
.site-foot .fine {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--blue-300);
}
.site-foot .kw { color: #7eb8f0; font-weight: 600; }

/* Placeholder for missing images */
.ph-placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  background: linear-gradient(135deg, var(--blue-100) 0%, var(--grey-200) 50%, var(--blue-50) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-400);
  font-size: 0.85rem;
  font-weight: 500;
}

/* Utility */
.mt-20 { margin-top: 20px; }
.mt-28 { margin-top: 28px; }
