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

:root {
  /* Colors */
  --primary-color: #661619; /* Professional, Trust */
  --primary-color-hover: #4a0f12;
  --secondary-color: #C5A059; /* Growth, Prosperity */
  --secondary-color-hover: #a38243;
  --bg-light: #F7F9FB;
  --bg-white: #FFFFFF;
  --text-dark: #2D3436;
  --text-muted: #636E72;
  --border-light: #DFE6E9;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 120px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 24px rgba(0,0,0,0.12);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  background-color: var(--bg-white);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 100px;
  width: auto;
}

.logo-text {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary-color);
  line-height: 1.2;
}

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

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

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

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

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

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-white);
  min-width: 200px;
  box-shadow: var(--shadow-md);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-normal);
  padding: 10px 0;
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 500;
}

.dropdown-item:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
}

/* Burger Menu */
.burger-menu {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.burger-line {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  background-color: var(--primary-color-hover);
  color: var(--bg-white);
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 30px;
  color: #e0e0e0;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--bg-white);
  border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color-hover);
  border-color: var(--secondary-color-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(32, 191, 107, 0.3);
}

/* Content Sections */
.section {
  padding: 80px 0;
}

.section-bg-white {
  background-color: var(--bg-white);
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 40px;
  font-weight: 700;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--secondary-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Image Slider */
.slider-section {
  padding: 40px 0 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.slider-container {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  margin: 0 20px;
  position: relative;
}

.slider-wrapper {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.slider-wrapper::-webkit-scrollbar {
  display: none;
}

.slider-slide {
  width: 100%;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 21 / 9;
}

.slider-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.indicator.active {
  background-color: rgba(255, 255, 255, 1);
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-2-centered {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}
.grid-2-centered > *:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - 20px);
}

a.card {
  display: block;
}

.card {
  background-color: var(--bg-white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border: 1px solid var(--border-light);
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.card-small {
  padding: 25px 20px;
  text-align: center;
}
.card-small .card-icon {
  font-size: 2rem;
  margin-bottom: 15px;
}
.card-small .card-title {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.card-small p {
  font-size: 0.9rem;
}

.card-title {
  font-size: 1.25rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

/* Image styling */
.img-rounded {
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  width: 100%;
}

/* Typography elements */
.lead-text {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.list-styled {
  list-style: none;
  margin-bottom: 20px;
}

.list-styled li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
}

.list-styled li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

/* Footer */
.site-footer {
  background-color: var(--primary-color-hover);
  color: var(--bg-white);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.footer-text, .footer-link {
  color: #dfcfcf;
  margin-bottom: 10px;
  display: block;
}

.footer-link:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.supporter-logos {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 15px;
  flex-wrap: wrap;
}

.supporter-logos img {
  height: 40px;
  background: white;
  padding: 5px;
  border-radius: 4px;
}

.supporter-logos img[alt="PLN Peduli"] {
  height: 100px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #8fa1b3;
  font-size: 0.9rem;
}

/* Specific to Kantin */
.kantin-img-container {
  position: relative;
}
.kantin-img-container img {
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}

/* Partner Logos display */
.partner-logo-container {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.partner-logo {
  height: 60px;
  object-fit: contain;
}

/* Map container */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: 30px;
}

/* WhatsApp Floating CTA */
.wa-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50px;
  text-align: center;
  font-size: 35px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.wa-float:hover {
  transform: scale(1.1);
  color: white;
}

.wa-icon {
  width: 35px;
  height: 35px;
  fill: currentColor;
}

/* Responsive */
@media (max-width: 991px) {
  .hero h1 { font-size: 2.5rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .burger-menu {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--bg-white);
    flex-direction: column;
    padding: 40px 20px;
    gap: 20px;
    transition: left 0.3s ease;
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    transform: none;
    background-color: var(--bg-light);
    margin-top: 10px;
    display: none;
  }
  
  .dropdown.active .dropdown-menu {
    display: block;
  }
  
  /* Burger Animation */
  .burger-menu.active .burger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
  }
  .burger-menu.active .burger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .grid-2, .grid-2-centered { grid-template-columns: 1fr; }
  .grid-2-centered > *:last-child:nth-child(odd) { width: 100%; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  
  .hero h1 { font-size: 2rem; }
  .section {
  contain-intrinsic-size: 500px; padding: 50px 0; }
  
  .slider-slide img {
    aspect-ratio: 16 / 9;
  }
}

/* Bisnis Unit Grid */
.bisnis-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
}
.bisnis-grid > * {
  grid-column: span 2;
}
.bisnis-grid > *:nth-child(4) {
  grid-column: 2 / span 2;
}
.bisnis-grid > *:nth-child(5) {
  grid-column: 4 / span 2;
}
@media (max-width: 991px) {
  .bisnis-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .bisnis-grid > *,
  .bisnis-grid > *:nth-child(4) {
    grid-column: span 2 !important;
  }
  .bisnis-grid > *:nth-child(5) {
    grid-column: 2 / span 2 !important;
  }
}
@media (max-width: 768px) {
  .bisnis-grid {
    grid-template-columns: 1fr;
  }
  .bisnis-grid > *,
  .bisnis-grid > *:nth-child(4),
  .bisnis-grid > *:nth-child(5) {
    grid-column: 1 / -1 !important;
  }
}
