/* ============================================================
   SLOWPULSE GEAR RENT — Global Stylesheet
   ============================================================
   Struktur:
   1. Reset & Variables
   2. Typography
   3. Navigation (Desktop)
   4. Mobile Menu & Hamburger
   5. Buttons
   6. Sections & Layout
   7. Components (Cards, Badge, Divider)
   8. Footer
   9. Animations & Reveal
   10. Responsive
   ============================================================ */


/* ── 1. RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0d1a1f;
  --sea-deep: #0a2a35;
  --sea-mid: #0e4a5c;
  --sea-light: #1a7a8a;
  --foam: #d4ede8;
  --gold: #c8a96e;
  --white: #f8f6f0;
  --glass: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--ink);
  color: var(--white);
  overflow-x: hidden;
}


/* ── 2. TYPOGRAPHY ── */
.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  text-align: center;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  text-align: center;
  color: var(--foam);
  margin-bottom: 4rem;
  line-height: 1.2;
}

.page-label {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
  text-align: center;
}

.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  color: var(--foam);
  line-height: 1.1;
  text-align: center;
}


/* ── 3. NAVIGATION (DESKTOP) ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2.5rem;
  background: rgba(10,26,31,0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
  animation: fadeDown 0.8s ease both;
}

.nav-logo img {
  height: 38px; /* Ukuran ideal untuk logo horizontal */
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: opacity 0.2s;
  cursor: pointer;
}
.nav-logo img:hover { opacity: 1; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: rgba(212,237,232,0.7);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s;
  cursor: pointer;
}
.nav-links a:hover,
.nav-links a.nav-active { color: var(--gold); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  border: 1px solid var(--glass-border);
  overflow: hidden;
  border-radius: 2px;
}
.lang-btn {
  background: none;
  border: none;
  color: rgba(212,237,232,0.45);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 0.38rem 0.8rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-transform: uppercase;
}
.lang-btn.active { background: var(--gold); color: var(--ink); }
.lang-btn:not(.active):hover { color: var(--foam); background: rgba(255,255,255,0.07); }

/* Book CTA */
.nav-cta {
  background: var(--gold);
  color: var(--ink);
  border: none;
  padding: 0.55rem 1.4rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }


/* ── 4. MOBILE MENU & HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: rgba(212,237,232,0.8);
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 65px; left: 0; right: 0;
  z-index: 99;
  background: rgba(10,26,31,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}
.mobile-menu.open { max-height: 400px; }
.mobile-menu ul { list-style: none; padding: 0.5rem 0; }
.mobile-menu ul li a {
  display: block;
  padding: 0.95rem 1.8rem;
  color: rgba(212,237,232,0.75);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}
.mobile-menu ul li a:hover { color: var(--gold); background: rgba(255,255,255,0.03); }
.mobile-menu-footer {
  padding: 1rem 1.8rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-top: 1px solid var(--glass-border);
}
.mobile-menu-footer .lang-toggle { flex: 1; }
.mobile-menu-footer .nav-cta { flex: 2; text-align: center; display: block; font-size: 0.75rem; padding: 0.6rem 1rem; }


/* ── 5. BUTTONS ── */
.btn-primary {
  background: var(--gold);
  color: var(--ink);
  padding: 0.85rem 2.2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
  display: inline-block;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(200,169,110,0.35);
}

.btn-ghost {
  border: 1px solid var(--glass-border);
  color: var(--foam);
  padding: 0.85rem 2.2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: background 0.25s, border-color 0.25s;
  display: inline-block;
  cursor: pointer;
  background: none;
}
.btn-ghost:hover { background: var(--glass); border-color: var(--sea-light); }

/* Back button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(212,237,232,0.5);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  background: none;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 2.5rem;
  padding: 0;
  transition: color 0.25s;
  text-decoration: none;
}
.back-btn:hover { color: var(--gold); }
.back-btn::before { content: '←'; font-size: 1rem; }


/* ── 6. SECTIONS & LAYOUT ── */
section { padding: 7rem 2rem; }

.why { background: linear-gradient(180deg, var(--ink) 0%, var(--sea-deep) 100%); }

/* Page header (catalog, terms, contact) */
.page-header {
  padding: 8.5rem 2rem 3.5rem;
  text-align: center;
  background: linear-gradient(180deg, #060e12 0%, var(--sea-deep) 100%);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  position: absolute;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(5rem, 18vw, 15rem);
  font-weight: 300;
  color: rgba(255,255,255,0.025);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.12em;
}

/* Page body wrapper */
.page-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem 7rem;
}


/* ── 7. COMPONENTS ── */

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5px;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--glass-border);
}
.feature-card {
  background: var(--sea-deep);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.4s;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sea-light), transparent);
  transform: scaleX(0);
  transition: transform 0.4s;
}
.feature-card:hover { background: rgba(14,74,92,0.8); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon { font-size: 1.8rem; margin-bottom: 1.2rem; display: block; }
.feature-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foam);
  margin-bottom: 0.7rem;
}
.feature-desc { font-size: 0.85rem; line-height: 1.7; color: rgba(212,237,232,0.6); }

/* About */
.about { background: var(--sea-deep); position: relative; overflow: hidden; }
.about::before {
  content: 'SLOWPULSE';
  position: absolute;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(5rem, 15vw, 14rem);
  font-weight: 300;
  color: rgba(255,255,255,0.025);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.1em;
}
.about-inner { max-width: 700px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.about-logo { width: 80px; height: auto; margin: 0 auto 1.5rem; display: block; filter: brightness(0) invert(1); opacity: 0.8; }
.about-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  line-height: 1.75;
  color: rgba(212,237,232,0.8);
  font-style: italic;
}

/* Quick Nav */
.quick-nav { background: linear-gradient(180deg, var(--sea-deep), var(--ink)); }
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  max-width: 900px;
  margin: 0 auto;
  background: var(--glass-border);
}
.quick-item {
  background: var(--ink);
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--foam);
  transition: background 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
}
.quick-item:hover { background: rgba(14,74,92,0.6); }
.quick-item-icon { font-size: 1.5rem; }
.quick-item-label {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(212,237,232,0.7);
}

/* Contact */
.contact { background: var(--ink); border-top: 1px solid var(--glass-border); }
.contact-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.contact-items { display: flex; flex-direction: column; gap: 1.2rem; margin: 2.5rem 0; }
.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: rgba(212,237,232,0.75);
}
.contact-item a { color: var(--gold); text-decoration: none; transition: opacity 0.2s; }
.contact-item a:hover { opacity: 0.75; }

/* Divider & Badge */
.divider { width: 60px; height: 1px; background: var(--gold); margin: 2.5rem auto; }
.badge {
  display: inline-block;
  border: 1px solid rgba(200,169,110,0.4);
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  margin-top: 1rem;
}

/* Catalog Cards */
.catalog-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 2rem auto;
}
.gear-item-card {
  background: var(--sea-deep);
  border: 1px solid var(--glass-border);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.gear-item-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.4s;
}
.gear-item-card:hover { border-color: rgba(200,169,110,0.5); transform: translateY(-5px); }
.gear-item-card:hover::before { transform: scaleX(1); }
.gear-item-price {
  display: block;
  color: var(--gold);
  font-weight: 600;
  margin-top: 1.5rem;
  font-size: 1.15rem;
}
.gear-icon-wrap {
  width: 75px; height: 75px;
  border: 1px solid rgba(200,169,110,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  background: radial-gradient(circle, rgba(200,169,110,0.1) 0%, transparent 70%);
}
.gear-icon-wrap.bundle {
  width: 60px; height: 60px;
  border-style: dashed;
  border-color: rgba(200,169,110,0.5);
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}
.gear-tag {
  font-size: 0.75rem;
  background: var(--ink);
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.gear-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.gear-desc {
  font-size: 0.85rem;
  opacity: 0.7;
  line-height: 1.6;
}

/* Terms */
.terms-body { max-width: 800px; margin: 0 auto; padding: 5rem 2rem 7rem; }
.terms-body h3 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold);
  font-size: 1.6rem;
  margin: 2.5rem 0 0.8rem;
}
.terms-body p {
  line-height: 1.8;
  color: rgba(212,237,232,0.8);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.terms-section-title {
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.5rem;
}
.booking-box {
  background: var(--sea-deep);
  border: 1px solid var(--gold);
  padding: 2.5rem;
  border-radius: 4px;
  margin-top: 3rem;
}
.booking-box pre {
  font-family: 'DM Sans', sans-serif;
  color: var(--foam);
  line-height: 2;
  font-size: 0.95rem;
  white-space: pre-wrap;
}


/* ── 8. FOOTER ── */
footer {
  text-align: center;
  padding: 2.5rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer-logo { height: 34px; filter: brightness(0) invert(1); opacity: 0.3; }
.footer-copy {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(212,237,232,0.28);
  text-transform: uppercase;
}


/* ── 9. ANIMATIONS & REVEAL ── */
@keyframes fadeUp   { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeDown { from { opacity:0; transform:translateY(-16px); } to { opacity:1; transform:translateY(0); } }
@keyframes pulse    { 0%,100%{opacity:0.4} 50%{opacity:1} }
@keyframes oceanShift {
  0%   { filter: hue-rotate(0deg) brightness(1); }
  100% { filter: hue-rotate(8deg) brightness(1.08); }
}
@keyframes rise {
  0%   { transform:translateY(0) translateX(0); opacity:0; }
  10%  { opacity:1; }
  90%  { opacity:0.5; }
  100% { transform:translateY(-110vh) translateX(30px); opacity:0; }
}
@keyframes scan {
  0%   { top:20%; opacity:0; }
  20%  { opacity:1; }
  80%  { opacity:0.3; }
  100% { top:85%; opacity:0; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }


/* ── 10. RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0.85rem 1.2rem; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }
  .nav-right { gap: 0.5rem; }
  /* hide desktop lang on mobile — use mobile menu version */
  .nav-right > .lang-toggle { display: none; }
  section { padding: 5rem 1.5rem; }
  .terms-body { padding: 3rem 1.5rem 5rem; }
  .page-body { padding: 3rem 1.5rem 5rem; }
}


/* ── STICKY WHATSAPP BUTTON ── */
.wa-float {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
  text-decoration: none;
  animation: fadeUp 1s 1.5s ease both;
}

.wa-float-icon {
  width: 52px;
  height: 52px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.25s, box-shadow 0.25s;
  flex-shrink: 0;
}
.wa-float-icon svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}
.wa-float:hover .wa-float-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}

.wa-float-label {
  background: #25d366;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0 1rem 0 0.85rem;
  height: 36px;
  display: flex;
  align-items: center;
  border-radius: 0 20px 20px 0;
  margin-left: -18px;
  white-space: nowrap;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
  padding-left: 0;
}
.wa-float:hover .wa-float-label {
  max-width: 160px;
  opacity: 1;
  padding-left: 1.1rem;
}

/* Pulse ring */
.wa-float-icon::after {
  content: '';
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.5);
  animation: waPulse 2.5s ease-out infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.7); opacity: 0; }
}

@media (max-width: 768px) {
  .wa-float { bottom: 1.2rem; right: 1.2rem; }
  .wa-float-icon { width: 46px; height: 46px; }
  .wa-float-icon::after { width: 46px; height: 46px; }
  .wa-float-icon svg { width: 22px; height: 22px; }
  .wa-float-label { display: none; }
}

/* ── TOMBOL KEMBALI KE ATAS ── */
.back-to-top {
  position: fixed;
  bottom: 5.5rem; /* Posisinya tepat di atas tombol WhatsApp */
  right: 1.8rem;
  z-index: 199;
  width: 42px;
  height: 42px;
  background-color: var(--sea-deep);
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  opacity: 0; /* Disembunyikan secara default */
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--gold);
  color: var(--ink);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 5.8rem; /* Sengaja dinaikkan agar TIDAK tertutup menu Safari/Chrome HP */
    right: 1.2rem;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    z-index: 9999; /* Z-index maksimal agar selalu berada paling depan */
    display: flex; /* Memastikan isinya selalu di tengah */
    align-items: center;
    justify-content: center;
  }
}