/* =========================================================
   RaffsBali.com — Complete Stylesheet (Replace Entire File)
   ========================================================= */

/* =========================
   RESET / BASE
   ========================= */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
img,video{max-width:100%;height:auto}
a{color:inherit;text-decoration:none}

:root{
  --bg:#0b0b0d;
  --panel:rgba(255,255,255,.03);
  --panel2:rgba(255,255,255,.04);
  --border:rgba(255,255,255,.10);
  --border2:rgba(255,255,255,.14);
  --text:#f6f6fb;
  --muted:#cfcfd9;
  --muted2:#b9b9c6;
  --accent:#e35a3b;
  --accent2:rgba(227,90,59,.18);
  --gold:rgba(242,193,78,.95);
}

body{
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}

/* =========================
   GLOBAL LAYOUT / TYPOGRAPHY
   ========================= */
.wrap{max-width:1200px;margin:auto;padding:0 18px}

.section{padding:48px 0}
.section.alt{background:rgba(255,255,255,.03)}

h1,h2{margin:0 0 16px}
p{margin:0 0 14px;line-height:1.6;color:var(--muted)}
.muted{color:var(--muted2)}

/* =========================
   BUTTONS
   ========================= */
.btn{
  display:inline-block;
  padding:12px 18px;
  border-radius:999px;
  background:var(--accent);
  color:#fff;
  font-weight:800;
  letter-spacing:.01em;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn.ghost{
  background:transparent;
  border:1px solid rgba(255,255,255,.28);
  color:#fff;
}
.btn.ghost:hover{
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(255,255,255,.06);
}

/* =========================
   SKIP LINK (ACCESSIBILITY)
   ========================= */
.skip{position:absolute;left:-999px;top:auto;width:1px;height:1px;overflow:hidden}
.skip:focus{
  left:18px;top:18px;width:auto;height:auto;
  padding:10px 12px;background:#000;
  border:1px solid rgba(255,255,255,.2);
  border-radius:12px;z-index:9999;
}

/* =========================
   TOP LOGO (FLOATING)
   ========================= */
.top-logo{position:absolute;top:12px;left:16px;z-index:1200;pointer-events:none}
.top-logo img{height:72px;width:auto;display:block}

/* ✅ Mobile fix: stop floating logo clashing with header text */
@media (max-width:768px){
  .top-logo{display:none}
}

/* =========================
   HEADER
   ========================= */
.header{
  position:sticky;
  top:0;
  z-index:1100;
  background:rgba(10,10,13,.85);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.header-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 0;
  gap:16px;
  overflow:visible; /* critical for dropdown */
}

.brand-text{display:flex;flex-direction:column;line-height:1.1}
.brand-text strong{font-size:16px}
.brand-text span{font-size:13px;color:var(--muted2)}

.header-cta{display:flex;gap:10px;flex-wrap:wrap}

/* small mobile brand tweak */
@media (max-width:768px){
  .brand-text{line-height:1.1}
  .brand-text span{
    display:block;
    font-size:.8em;
    opacity:.85;
  }
}

/* =========================
   FRAMES (IMAGES / VIDEO)
   ========================= */
.frame{
  width:100%;
  overflow:hidden;
  border-radius:18px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
}
.frame img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
.frame-link{
  display:block;
}

.frame-link .frame{
  transition: transform .2s ease, box-shadow .2s ease;
}

.frame-link:hover .frame{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}

/* =========================
   HERO VIDEO (FIXED FOR YOUR HTML)
   HTML:
   <div class="hero-image frame">
     <video class="hero-video" ...></video>
   </div>
   ========================= */
.hero-image.frame{
  aspect-ratio:16/9;
  min-height:260px;
}

/* apply fit/position to the VIDEO (not a wrapper) */
.hero-image.frame > video.hero-video{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
}

/* Mobile/iPhone: reduce cropping by showing full video */
@media (max-width:768px){
  .hero-image.frame{
    min-height:240px;
  }
  .hero-image.frame > video.hero-video{
    object-fit:contain;
    background:#000;
  }
}

/* =========================
   HERO
   ========================= */
.hero{padding:64px 0 40px}
.hero-grid{display:grid;gap:28px}
.kicker{
  font-size:14px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--gold);
}
.hero-buttons{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.hero-image{aspect-ratio:16/9;min-height:260px}

/* =========================
   CARDS
   ========================= */
.card-grid{display:grid;gap:16px}
.card h3{margin:12px 0 0;font-size:16px}
.card .frame{aspect-ratio:4/3;min-height:160px}
.section-cta{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}

/* =========================
   GALLERY
   ========================= */
.gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.gallery .frame{aspect-ratio:1/1;min-height:150px}

/* =========================
   PROMOS & VIP
   ========================= */
.promos,.vip{display:grid;gap:22px;align-items:center}

.wrap.promos{
  display:flex;
  align-items:flex-start;
  gap:24px;
}
.wrap.promos > div{
  flex:1;        /* both columns take equal share */
  min-width:0;   /* prevents long text forcing the other column off */
}

.promo-image{
  aspect-ratio:16/10;
  min-height:220px;
  position:relative;
  overflow:hidden;
}
.promo-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition: opacity 600ms ease-in-out;
}

.vip-image{aspect-ratio:4/3;min-height:200px}

/* =========================
   NICOTINE (2-COLUMN)
   ========================= */
.wrap.nicotine{
  display:flex;
  gap:24px;
  align-items:flex-start;
}
.wrap.nicotine > div{
  flex:1;
  min-width:0;
}
.nicotine-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.nicotine-image a:hover img {
  transform: scale(1.02);
  transition: transform 0.25s ease;
}

/* =========================
   LOCATION (QR left, Map + Actions right)
   ========================= */

.location-grid{
  display:grid;
  gap:16px;
  align-items:start;
}

/* Left card */
.location-card{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  border-radius:18px;
  padding:16px;
}

.location-card h3{
  margin:0 0 10px;
  font-size:16px;
}

/* Right side */
.location-right{
  display:grid;
  gap:12px;
}

/* Map */
.map-frame{
  width:100%;
  aspect-ratio:16/9;
  border-radius:18px;
  overflow:hidden;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
}

.map-frame iframe{
  width:100%;
  height:100%;
  border:0;
  display:block;
}

/* Actions under map */
.location-actions{
  grid-column: 1 / -1;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  border-radius:18px;
  padding:16px;
}

@media (max-width: 768px){
  .location-actions{ grid-template-columns: 1fr; }
}

.location-actions h3{
  margin:0 0 10px;
  font-size:16px;
}

.location-buttons{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* Desktop layout */
@media (min-width: 992px){
  .location-grid{
    grid-template-columns: 420px 1fr;
    align-items:start;
  }

  .location-right{
    max-width: 900px;
    justify-self: center;
  }
}


/* =========================
   REVIEW QR
   ========================= */
.review-cta{
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid rgba(255,255,255,.08);
  text-align:center;
}
.review-cta img{
  width:150px;
  height:auto;
  margin:10px auto 0;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:#fff;
  display:block;
}
.review-link{
  font-weight:800;
  border-bottom:1px solid rgba(227,90,59,.6);
}

/* =========================
   SOCIAL LINKS
   ========================= */
.social-links{
  display:flex;
  justify-content:center;
  gap:18px;
  margin-bottom:14px;
  flex-wrap:wrap;
}
.social-links a{
  font-size:13px;
  font-weight:700;
  color:var(--muted);
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.15);
  transition:all .2s ease;
}
.social-links a:hover{
  color:#fff;
  border-color:var(--accent);
}

/* =========================
   FOOTER
   ========================= */
.footer{
  padding:24px 0;
  text-align:center;
  color:#aaa;
  font-size:13px;
  border-top:1px solid rgba(255,255,255,.08);
}

/* =========================
   FACILITIES
   ========================= */
.facilities{
  display:grid;
  gap:18px;
  align-items:center;
}
.facility-badge{
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 18px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  font-weight:800;
  font-size:15px;
  width:fit-content;
}
.facility-badge span{font-size:20px}

/* =========================
   EMPLOYMENT
   ========================= */
.employment-grid{
  display:grid;
  gap:16px;
  margin-top:16px;
}
.employment-card{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  border-radius:18px;
  padding:16px;
}
.employment-card h2{margin:0 0 10px}
.employment-list{margin:0;padding-left:18px;color:var(--muted);line-height:1.7}
.employment-buttons{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.form-success{
  text-align:center;
  padding:18px 12px;
}
.form-success h3{margin:0 0 10px}

.job-form{display:grid;gap:12px;margin-top:10px}
.job-form label{display:grid;gap:6px;color:var(--muted);font-weight:700;font-size:13px}
.job-form input,.job-form select,.job-form textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.25);
  color:var(--text);
  outline:none;
}
.job-form input::placeholder,.job-form textarea::placeholder{color:rgba(246,246,251,.55)}
.job-form textarea{resize:vertical;min-height:120px}
.job-form .check{display:flex;gap:10px;align-items:flex-start}
.job-form .check input{margin-top:3px}
.job-form input[type="file"]{
  padding:10px 12px;
}

/* =========================================
   NAVIGATION (Desktop + Mobile Dropdown)
   ========================================= */
/* Mobile: nudge brand text right for visual balance */
@media (max-width: 768px){
  .brand-text{margin-left: 12px;}
}

.nav{
  position:relative;
  display:flex;
  align-items:center;
  z-index:5000; /* keep above hero/video */
}

/* Mobile toggle button */
.nav-toggle{
  background:transparent;
  border:1px solid rgba(255,255,255,.25);
  color:#fff;
  font-size:18px;
  padding:8px 12px;
  border-radius:10px;
  cursor:pointer;
}

/* Base list */
.nav-list{
  list-style:none;
  margin:0;
  padding:0;
  display:none;
}

/* Mobile dropdown - animated */
.nav-list.open{
  display:flex;
  flex-direction:column;
  position:absolute;
  top:48px;
  right:0;
  min-width:200px;
  background:rgba(15,15,18,.98);
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  overflow:hidden;
  z-index:5000;
  transform-origin:top right;
  animation:navDrop .18s ease-out;
}

@keyframes navDrop{
  from{opacity:0; transform:translateY(-8px) scale(.98)}
  to{opacity:1; transform:translateY(0) scale(1)}
}

.nav-list li a{
  padding:12px 16px;
  display:block;
  font-size:14px;
  color:#f6f6fb;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.nav-list li:last-child a{border-bottom:none}
.nav-list li a:hover{background:rgba(227,90,59,.15)}

/* Active (scrollspy) — mobile dropdown */
.nav-list a.active{
  color:#fff;
  background:rgba(227,90,59,.18);
}

/* Desktop breakpoint (valid CSS — no nested @media) */
@media (min-width:768px){
  .nav-toggle{display:none}

  .nav-list{
    display:flex;
    gap:14px;
    position:static;
    flex-direction:row;
    background:none;
    border:none;
  }

  .brand-text strong{font-size:18px}
  .brand-text span{font-size:14px}

  .nav-list li a{
    padding:0;
    border:none;
    font-size:14px;
    color:#ddd;
    background:transparent;
  }
  .nav-list li a:hover{color:#fff}

  .nav-list a.active{
    color:#fff;
    background:transparent;
    padding-bottom:6px;
  }
}

/* ✅ FORCE active underline on desktop nav */
@media (min-width:768px){
  .nav-list a.active{
    position:relative;
    color:#fff;
  }
  .nav-list a.active::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:-6px;
    height:2px;
    background:var(--accent);
    border-radius:2px;
  }
}

/* =========================
   RESPONSIVE TWEAKS
   ========================= */
@media (min-width:768px){
  .hero-grid{grid-template-columns:1.1fr .9fr}
  .card-grid{grid-template-columns:repeat(4,1fr)}
  .promos{grid-template-columns:1.1fr .9fr}
  .vip{grid-template-columns:1fr 1fr}
  .location-grid{grid-template-columns:1fr 1.3fr}
  .hero-image{min-height:340px}
  .facilities{grid-template-columns:1.2fr .8fr}
  .employment-grid{grid-template-columns:1fr 1fr}
}

@media (max-width:860px){
  .wrap.nicotine{display:block}
  .nicotine-image{margin-top:16px}

  .wrap.promos{display:block}
}
@media (max-width: 768px){
  .location-actions{
    grid-template-columns: 1fr;
  }
}

@media (max-width:520px){
  .top-logo img{height:30px}
  .hero{padding:56px 0 32px}
  .hero-image{min-height:260px}
}
