/* ==========================================================================
   KAMPOENG KONENG SENTUL - LUXURY REDESIGN DESIGN SYSTEM
   "Resto Alam, Selera Semua"
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  /* Brand Color Palette */
  --color-primary: #173829;          /* Deep Forest Rainforest */
  --color-primary-dark: #0f241a;     /* Midnight Jungle */
  --color-primary-light: #24523d;    /* Rich Botanical Green */
  --color-accent: #d48b17;           /* Warm Turmeric Gold (Koneng) */
  --color-accent-hover: #b87510;     /* Deep Amber Gold */
  --color-accent-light: #faecd8;     /* Soft Amber Tint */
  --color-terracotta: #c2593f;       /* Warm Earth Terracotta */
  --color-sage: #6c8a7b;             /* Sage Gray-Green */
  --color-leaf: #38b000;             /* Fresh Leaf Green */

  /* Neutral Spectrum */
  --color-bg-main: #fbf9f5;          /* Warm Alabaster Rice Paper */
  --color-bg-card: #ffffff;          /* Pure White */
  --color-bg-card-alt: #f4efe6;      /* Sand Warmth */
  --color-bg-dark: #121815;          /* Deep Onyx Green */
  --color-bg-dark-card: #1c2621;     /* Midnight Emerald */
  
  --color-text-main: #1e2621;        /* Crisp Charcoal Green */
  --color-text-muted: #5f6b64;       /* Muted Forest Gray */
  --color-text-light: #9aa8a0;       /* Soft Ash */
  --color-text-inverse: #fbf9f5;     /* Warm White */

  --color-border: #e8e3d8;          /* Organic Sand Border */
  --color-border-dark: #2a3830;     /* Dark Card Border */

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows & Elevations */
  --shadow-sm: 0 2px 8px rgba(20, 40, 30, 0.05);
  --shadow-md: 0 8px 24px rgba(20, 40, 30, 0.08);
  --shadow-lg: 0 16px 40px rgba(20, 40, 30, 0.12);
  --shadow-xl: 0 24px 60px rgba(20, 40, 30, 0.16);
  --shadow-glow: 0 0 30px rgba(212, 139, 23, 0.25);

  /* Borders & Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Layout & Transitions */
  --container-max: 1240px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* ==========================================================================
   Typography Utilities
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-primary);
  line-height: 1.25;
  font-weight: 700;
}

.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }

.tagline-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 139, 23, 0.12);
  border: 1px solid rgba(212, 139, 23, 0.3);
  color: var(--color-accent-hover);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.tagline-badge.dark {
  background: rgba(250, 236, 216, 0.15);
  border-color: rgba(250, 236, 216, 0.25);
  color: var(--color-accent);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px auto;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 90px 0;
}

.section-padding-sm {
  padding: 60px 0;
}

@media (max-width: 768px) {
  .section-padding { padding: 60px 0; }
  .section-padding-sm { padding: 40px 0; }
}

/* ==========================================================================
   Buttons & CTA System
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(212, 139, 23, 0.35);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  box-shadow: 0 8px 25px rgba(212, 139, 23, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(23, 56, 41, 0.25);
}

.btn-secondary:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(23, 56, 41, 0.35);
}

.btn-outline-gold {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}

.btn-outline-gold:hover {
  background: var(--color-accent);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background: #ffffff;
  color: var(--color-primary);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.05rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-smooth);
}

.top-bar {
  background: var(--color-primary-dark);
  color: #d1dcce;
  font-size: 0.8rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-item svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #ffffff;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-leaf);
  box-shadow: 0 0 0 3px rgba(56, 176, 0, 0.3);
  animation: pulse-dot 2s infinite;
}

.status-dot.closed {
  background: #e63946;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.3);
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.navbar {
  background: rgba(251, 249, 245, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(20, 56, 41, 0.08);
  transition: all var(--transition-smooth);
}

.site-header.scrolled .navbar {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
  padding: 4px 0;
}

.site-header.transparent-mode .navbar {
  background: rgba(18, 24, 21, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-header.transparent-mode .nav-link {
  color: #ffffff;
}

.site-header.transparent-mode .nav-link:hover,
.site-header.transparent-mode .nav-link.active {
  color: var(--color-accent);
}

.site-header.transparent-mode.scrolled .navbar {
  background: rgba(23, 56, 41, 0.97);
  box-shadow: var(--shadow-lg);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.brand-name-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.site-header.transparent-mode .brand-title {
  color: #ffffff;
}

.site-header.transparent-mode.scrolled .brand-title {
  color: #ffffff;
}

.brand-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--color-accent);
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(212, 139, 23, 0.1);
  padding: 8px;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition-smooth);
}

.site-header.transparent-mode .mobile-toggle span {
  background-color: #ffffff;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 360px;
  height: 100vh;
  background: #ffffff;
  box-shadow: var(--shadow-xl);
  z-index: 999;
  padding: 90px 30px 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right var(--transition-smooth);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 24, 21, 0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.mobile-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-link {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-serif);
  color: var(--color-primary);
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
  color: var(--color-accent);
}

@media (max-width: 992px) {
  .top-bar { display: none; }
  .nav-menu { display: none; }
  .nav-cta-group .btn-desktop-only { display: none; }
  .mobile-toggle { display: flex; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-bg-dark);
  color: #c9d6cf;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-border-dark);
}

.footer-top-pattern {
  height: 6px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-primary-light) 50%, var(--color-terracotta) 100%);
}

.footer-content {
  padding: 80px 0 50px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
  align-self: flex-start;
  filter: brightness(1.1);
}

.footer-about {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #a4b5ac;
}

.footer-social-links {
  display: flex;
  gap: 12px;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.social-icon-btn svg {
  width: 18px;
  height: 18px;
}

.social-icon-btn:hover {
  background: var(--color-accent);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(212, 139, 23, 0.4);
}

.footer-heading {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--color-accent);
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list a {
  color: #a4b5ac;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links-list a:hover {
  color: var(--color-accent);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.92rem;
  color: #a4b5ac;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  font-size: 0.85rem;
  color: #7b8e84;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ==========================================================================
   Floating Action Buttons
   ========================================================================== */
.floating-actions {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 990;
}

.fab-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-bounce);
  position: relative;
}

.fab-btn svg {
  width: 28px;
  height: 28px;
}

.fab-whatsapp {
  background-color: #25d366;
  color: #ffffff;
}

.fab-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

.fab-tooltip {
  position: absolute;
  right: 68px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-bg-dark);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  pointer-events: none;
  box-shadow: var(--shadow-md);
}

.fab-btn:hover .fab-tooltip {
  opacity: 1;
  visibility: visible;
  right: 74px;
}

.back-to-top {
  background: var(--color-primary);
  color: #ffffff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

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

.back-to-top:hover {
  background: var(--color-accent);
  transform: translateY(-4px);
}
