/* ===========================================================
   RAKKA GUEST HOUSE — Design System
   Purple #4A1881 pulled directly from the client logo.
   Brass accent pulled from real wood/brass tones in property photos.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --purple: #4A1881;
  --purple-deep: #2E0F52;
  --purple-ink: #241033;
  --lavender: #8B5FBF;
  --lavender-pale: #F1EBF9;
  --brass: #BD8A3E;
  --brass-light: #D9AE63;
  --cream: #FAF7F3;
  --cream-alt: #F3EEF9;
  --white: #FFFFFF;
  --line: rgba(36, 16, 51, 0.1);

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;

  --container: 1180px;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--purple-ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  color: var(--purple-ink);
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.4rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

/* --- signature diagonal speed-lines motif, from the logo --- */
.slash-mark {
  display: inline-flex;
  gap: 3px;
  flex-shrink: 0;
}
.slash-mark span {
  width: 3px;
  height: 16px;
  background: currentColor;
  transform: skewX(-20deg);
}
.slash-mark span:nth-child(2) { height: 12px; align-self: flex-end; opacity: .7; }
.slash-mark span:nth-child(3) { height: 8px; align-self: flex-end; opacity: .45; }

.section { padding: 96px 0; }
.section-alt { background: var(--cream-alt); }
.section-purple { background: var(--purple-deep); color: var(--white); }
.section-purple h2, .section-purple .eyebrow { color: var(--white); }
.section-purple .eyebrow { color: var(--brass-light); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-brass { background: var(--brass); color: var(--white); }
.btn-brass:hover { background: var(--brass-light); box-shadow: 0 10px 24px rgba(189,138,62,0.35); }
.btn-outline { border-color: currentColor; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,0.08); }
.btn-purple { background: var(--purple); color: var(--white); }
.btn-purple:hover { background: var(--purple-deep); box-shadow: 0 10px 24px rgba(74,24,129,0.3); }
.btn-block { width: 100%; justify-content: center; }

/* ---------------- HEADER ---------------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,247,243,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--purple-ink);
}
.brand img { height: 38px; width: auto; }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}
nav.main-links {
  display: flex;
  gap: 30px;
  font-size: 0.92rem;
  font-weight: 500;
}
nav.main-links a { position: relative; padding: 4px 0; color: var(--purple-ink); }
nav.main-links a.active { color: var(--purple); }
nav.main-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--brass); transition: width .2s ease;
}
nav.main-links a:hover::after, nav.main-links a.active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--purple); }

/* Mobile menu overlay — deliberately a SIBLING of <header>, not nested inside
   it. header.site uses position:sticky, and on several mobile browsers a
   sticky ancestor traps position:fixed descendants inside its own box
   instead of the real viewport, shrinking the menu to the header's height.
   Keeping this overlay outside the header avoids that entirely. */
#mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100dvh;
  background: var(--cream);
  z-index: 90; /* below header's 100, so the toggle button stays clickable on top */
  flex-direction: column;
  padding: 100px 32px 40px;
  gap: 22px;
  font-size: 1.15rem;
  font-weight: 500;
  overflow-y: auto;
}
#mobile-nav.open { display: flex; }
#mobile-nav a { color: var(--purple-ink); }
#mobile-nav a.active { color: var(--purple); }

@media (max-width: 860px) {
  nav.main-links { display: none; }
  .menu-toggle { display: block; }
  .header-actions .btn {
    padding: 9px 16px;
    font-size: 0.82rem;
  }
}
@media (max-width: 400px) {
  .header-actions .btn { padding: 8px 12px; font-size: 0.78rem; }
}
@media (min-width: 861px) {
  #mobile-nav { display: none !important; }
}

/* ---------------- FOOTER ---------------- */
footer.site {
  background: var(--purple-ink);
  color: rgba(255,255,255,0.82);
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
footer.site h4 {
  color: var(--white); font-family: var(--font-body); font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; margin-bottom: 18px;
}
footer.site .brand { color: var(--white); margin-bottom: 14px; }
footer.site ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 0.94rem; }
footer.site a:hover { color: var(--brass-light); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 0.82rem; color: rgba(255,255,255,0.5); flex-wrap: wrap; gap: 12px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------------- PAGE HERO (interior pages) ---------------- */
.page-hero {
  padding: 70px 0 60px;
  background: var(--purple-deep);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero p.lead { color: rgba(255,255,255,0.75); max-width: 560px; margin-top: 14px; font-size: 1.05rem; }
.page-hero::after {
  content: ''; position: absolute; right: -60px; top: -60px; width: 340px; height: 340px;
  background: var(--purple); opacity: .5; border-radius: 50%; filter: blur(10px);
}

/* ---------------- UTILS ---------------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

.center { text-align: center; margin-left: auto; margin-right: auto; }
.max-content { max-width: 640px; }

/* diagonal image crop, echoing logo geometry */
.cut-corner {
  clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(36,16,51,0.1); }

/* trust strip */
.trust-strip {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px;
  padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 600; color: var(--purple-ink); }
.trust-item .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brass); flex-shrink: 0; }

/* room card */
.room-card { display: flex; flex-direction: column; }
.room-card .img-box { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.room-card .img-box img { width: 100%; height: 100%; object-fit: cover; }
.price-tag {
  position: absolute; top: 16px; right: 16px; background: var(--purple);
  color: var(--white); padding: 8px 14px; font-weight: 700; font-size: 0.95rem;
  border-radius: var(--radius);
}
.price-tag small { display: block; font-weight: 500; font-size: 0.62rem; letter-spacing: .06em; opacity: .8; text-transform: uppercase; }
.room-card .body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
ul.amenity-list { list-style: none; margin: 16px 0 22px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: 0.86rem; color: #55495f; }
ul.amenity-list li { display: flex; align-items: flex-start; gap: 4px; }
ul.amenity-list li::before { content: '—'; color: var(--brass); flex-shrink: 0; }
@media (max-width: 560px) {
  ul.amenity-list { grid-template-columns: 1fr; }
}

/* testimonial */
.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 32px;
  height: 260px;
  display: flex;
  flex-direction: column;
}
.testimonial-card p.quote {
  font-family: var(--font-display);
  font-style: italic;
  line-height: 1.5;
  margin: 0 0 18px;
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  overflow: hidden;
}
.testimonial-card .who { font-size: 0.85rem; color: var(--brass-light); font-weight: 600; flex-shrink: 0; }
@media (max-width: 700px) {
  .testimonial-card { height: 300px; }
}

/* room detail gallery: one big hero shot + two supporting shots */
.room-gallery { display: flex; flex-direction: column; gap: 14px; }
.room-gallery .hero-shot { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.room-gallery .hero-shot img { width: 100%; height: 100%; object-fit: cover; }
.room-gallery .sub-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.room-gallery .sub-shots figure { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.room-gallery .sub-shots img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .room-gallery .hero-shot { aspect-ratio: 16/10; }
}

/* gallery grid — uniform cards, same visual weight as the room hero photos */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.gallery-grid figure { overflow: hidden; border-radius: var(--radius); position: relative; aspect-ratio: 4/3; margin: 0; box-shadow: 0 8px 24px rgba(36,16,51,0.08); }
.gallery-grid img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-grid figure:hover img { transform: scale(1.05); }
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-btn {
  padding: 9px 18px; border-radius: 30px; border: 1.5px solid var(--line);
  background: var(--white); font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: all .18s ease;
}
.filter-btn.active, .filter-btn:hover { background: var(--purple); color: var(--white); border-color: var(--purple); }

/* floating whatsapp button */
.float-whatsapp {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  background: #25D366; color: white; width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(0,0,0,0.25);
  transition: transform .2s ease;
}
.float-whatsapp:hover { transform: scale(1.08); }

/* forms */
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.95rem; background: var(--white); color: var(--purple-ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--purple);
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .form-row-2 { grid-template-columns: 1fr; } }

.contact-block { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.contact-block .icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--lavender-pale);
  color: var(--purple); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.1rem;
}

/* map */
.map-frame { border: 0; width: 100%; height: 100%; min-height: 340px; border-radius: var(--radius); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* video hero background */
.hero-video-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}

/* click-to-play video tour */
.video-tour-frame {
  max-width: 900px; margin: 0 auto; aspect-ratio: 16/9; border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 24px 60px rgba(36,16,51,0.18); background: #000;
}
.video-tour-play {
  position: relative; width: 100%; height: 100%; border: none; padding: 0; cursor: pointer; display: block;
}
.video-tour-play img { width: 100%; height: 100%; object-fit: cover; }
.video-tour-play .play-icon {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.video-tour-play .play-icon::before {
  content: ''; position: absolute; inset: 0; background: rgba(36,16,51,0.35); transition: background .2s ease;
}
.video-tour-play .play-icon svg { position: relative; z-index: 1; }
.video-tour-play:hover .play-icon::before { background: rgba(36,16,51,0.5); }
.video-tour-play .play-icon > svg {
  background: var(--brass); width: 76px; height: 76px; border-radius: 50%; padding: 22px;
  box-sizing: border-box; transition: transform .2s ease;
}
.video-tour-play:hover .play-icon > svg { transform: scale(1.08); }

:focus-visible { outline: 2.5px solid var(--brass); outline-offset: 2px; }