/* RODAH JAYA PERSADA - Pure JavaScript SPA Styles */
/* Exact same design as original Next.js version */

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

/* CSS Variables - RODAH Brand Colors */
:root {
  --rodah-primary: #2563eb;
  --rodah-primary-dark: #1d4ed8;
  --rodah-dark: #1e3a5f;
  --rodah-accent: #fbbf24;
  --rodah-blue-50: #eff6ff;
  --rodah-blue-100: #dbeafe;
  --rodah-blue-200: #bfdbfe;
  --rodah-blue-300: #93c5fd;
  --rodah-blue-400: #60a5fa;
  --rodah-blue-500: #3b82f6;
  --rodah-blue-600: #2563eb;
  --rodah-blue-700: #1d4ed8;
  --rodah-blue-800: #1e40af;
  --rodah-blue-900: #1e3a8a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: #ffffff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--rodah-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--rodah-primary-dark);
}

/* ================= NAVBAR ================= */
.navbar {
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 50;
}

.navbar-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .navbar-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .navbar-container {
    padding: 0 2rem;
  }
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo-icon {
  background: var(--rodah-primary);
  padding: 0.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.logo-icon img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  border-radius: 50%;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rodah-dark);
}

.navbar-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .navbar-links {
    display: flex;
  }
}

.nav-link {
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cart {
  position: relative;
  padding: 0.5rem;
  color: #374151;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-cart:hover {
  color: var(--rodah-primary);
}

.nav-cart svg {
  width: 1.5rem;
  height: 1.5rem;
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--rodah-accent);
  color: var(--rodah-dark);
  font-size: 0.625rem;
  font-weight: 700;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Logout Button */
.nav-logout {
  background: transparent;
  border: 2px solid #2563eb;
  color: #2563eb;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-left: 0.5rem;
}

.nav-logout:hover {
  background: #2563eb;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.nav-logout svg {
  width: 18px;
  height: 18px;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #374151;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

.mobile-menu {
  display: none;
  padding: 1rem 0;
  border-top: 1px solid #e5e7eb;
}

.mobile-menu.open {
  display: block;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem 0.5rem;
  color: #374151;
  text-decoration: none;
  font-weight: 500;
}

.mobile-nav-link:hover {
  color: var(--rodah-primary);
}

/* ================= HERO SECTION ================= */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--rodah-primary) 0%, #3b82f6 50%, #1e40af 100%);
  color: white;
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  max-width: 80rem;
  margin: 0 auto;
  padding: 6rem 1rem;
}

@media (min-width: 768px) {
  .hero-content {
    padding: 8rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    padding: 8rem 2rem;
  }
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.hero-badge svg {
  width: 1.25rem;
  height: 1.25rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-title-accent {
  color: var(--rodah-accent);
}

.hero-description {
  font-size: 1.125rem;
  color: #dbeafe;
  max-width: 32rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.25rem;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.hero-stat-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}

.hero-stat-number {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--rodah-accent);
  margin-bottom: 0.5rem;
}

.hero-stat-label {
  color: #dbeafe;
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--rodah-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--rodah-primary-dark);
}

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

.btn-secondary:hover {
  background: var(--rodah-primary);
  color: white;
}

.btn-white {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  color: white;
}

.btn-white:hover {
  background: rgba(255,255,255,0.3);
}

.btn-ghost {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  color: white;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.3);
}

/* ================= SECTIONS ================= */
.section {
  padding: 4rem 1rem;
}

@media (min-width: 768px) {
  .section {
    padding: 4rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 4rem 2rem;
  }
}

.section-container {
  max-width: 80rem;
  margin: 0 auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--rodah-dark);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: #6b7280;
}

/* Background colors */
.bg-gray-50 { background: #f9fafb; }
.bg-gray-100 { background: #f3f4f6; }
.bg-white { background: white; }
.bg-rodah-dark { background: var(--rodah-dark); }
.bg-rodah-primary { background: var(--rodah-primary); }

/* Text colors */
.text-white { color: white; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-rodah-primary { color: var(--rodah-primary); }
.text-rodah-dark { color: var(--rodah-dark); }
.text-rodah-accent { color: var(--rodah-accent); }
.text-blue-100 { color: #dbeafe; }

/* ================= CARDS ================= */
.card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.card-body {
  padding: 1.5rem;
}

.card-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rodah-primary);
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--rodah-dark);
  margin-bottom: 0.5rem;
}

.card-title:hover {
  color: var(--rodah-primary);
}

.card-description {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  line-clamp: 2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-features {
  margin-bottom: 1rem;
}

.card-feature {
  font-size: 0.75rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.card-feature::before {
  content: '';
  width: 0.375rem;
  height: 0.375rem;
  background: var(--rodah-primary);
  border-radius: 9999px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
}

.card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rodah-primary);
}

.card-stock {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* ================= GRIDS ================= */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Responsive Grid Classes */
@media (min-width: 640px) {
  .sm\\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .sm:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .md\\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md\\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .md:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .md:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .lg\\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .lg\\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .lg:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ================= FOOTER ================= */
.footer {
  background: var(--rodah-dark);
  color: white;
  padding: 3rem 1rem;
}

@media (min-width: 768px) {
  .footer {
    padding: 3rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .footer {
    padding: 3rem 2rem;
  }
}

.footer-grid {
  display: grid;
  gap: 2rem;
  max-width: 80rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 700;
}

.footer-description {
  color: #9ca3af;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social-link {
  color: #9ca3af;
  transition: color 0.2s;
}

.footer-social-link:hover {
  color: white;
}

.footer-heading {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff;
}

.footer-links {
  list-style: none;
}

.footer-link {
  display: block;
  color: #9ca3af;
  text-decoration: none;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-link:hover {
  color: white;
}

.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: #9ca3af;
  font-size: 0.875rem;
}

.footer-contact svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--rodah-primary);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.footer-bottom {
  border-top: 1px solid #374151;
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.875rem;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

/* ================= PAGE TRANSITIONS ================= */
.page-container {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= LOADING ================= */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--rodah-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ================= UTILITY ================= */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-8 { margin-top: 2rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-lg { max-width: 32rem; }

/* Flex utilities */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

/* Icon sizes */
.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.25rem; height: 1.25rem; }
.icon-lg { width: 1.5rem; height: 1.5rem; }

/* ================= RESPONSIVE TEAM GRID ================= */
@media (max-width: 1024px) {
  .section-container > div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
}

@media (max-width: 640px) {
  .section-container > div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

/* ================= COMPREHENSIVE MOBILE RESPONSIVE ================= */

/* Mobile Typography Scale */
@media (max-width: 640px) {
  .section-title {
    font-size: 1.5rem;
  }
  
  .hero-title {
    font-size: 1.875rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-stat-number {
    font-size: 1.5rem;
  }
  
  .card-title {
    font-size: 1rem;
  }
}

/* Mobile Hero Stats - Stack vertically on small screens */
@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .hero-stat-card {
    padding: 1rem;
  }
}

/* Mobile Section Header - Stack on small screens */
@media (max-width: 640px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* Mobile Buttons - Full width on small screens */
@media (max-width: 480px) {
  .hero-buttons {
    width: 100%;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

/* Mobile Cards - Better touch targets */
@media (max-width: 640px) {
  .card {
    margin-bottom: 0.5rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .card-category {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
  }
  
  .card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .card-description {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }
  
  .card-features {
    margin-bottom: 0.75rem;
  }
  
  .card-feature {
    font-size: 0.75rem;
  }
  
  .card-footer {
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
  }
  
  .card-price {
    font-size: 1rem;
    font-weight: 700;
  }
  
  .card-footer .btn {
    min-width: 44px;
    min-height: 44px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .card-stock {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
  }
}

/* Mobile Product/Service Cards Grid */
@media (max-width: 480px) {
  .grid {
    gap: 1rem;
  }
}

/* Mobile Menu Improvements */
@media (max-width: 768px) {
  .navbar {
    padding: 0.75rem 1rem;
  }
  
  .logo-icon img {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .logo-text {
    font-size: 1rem;
  }
  
  .mobile-menu-btn {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: rgba(243, 244, 246, 0.5);
    border-radius: 0.5rem;
  }
  
  .mobile-menu {
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    border-radius: 0 0 0.75rem 0.75rem;
    margin: 0 -1rem;
    padding: 0.5rem 0;
  }
  
  .mobile-nav-link {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  
  .mobile-nav-link:last-child {
    border-bottom: none;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e3a5f;
    margin: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    justify-content: center;
  }
  
  .mobile-nav-link:last-child:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  }
  
  /* Mobile Logout Button */
  .mobile-logout {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: white !important;
    border: none;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }
  
  .mobile-logout:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    color: white !important;
  }
  
  .nav-cart {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(243, 244, 246, 0.5);
    border-radius: 0.5rem;
  }
}

/* Mobile Footer - Single Column Layout */
@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer {
    padding: 2rem 1rem 1rem;
  }
  
  .footer-logo {
    justify-content: center;
    margin-bottom: 0.75rem;
  }
  
  .footer-title {
    font-size: 1rem;
  }
  
  .footer-description {
    font-size: 0.8rem;
    text-align: center;
    margin-bottom: 0.75rem;
  }
  
  .footer-social {
    justify-content: center;
    margin-bottom: 1rem;
  }
  
  .footer-heading {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: #ffffff;
  }
  
  .footer-links {
    font-size: 0.85rem;
  }
  
  .footer-link {
    padding: 0.5rem 0;
    display: block;
  }
  
  .footer-contact {
    font-size: 0.8rem;
  }
  
  .footer-contact svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
  }
  
  .footer-bottom {
    font-size: 0.75rem;
    padding-top: 1rem;
    margin-top: 1.5rem;
  }
  
  /* Mobile Footer Layout - Menu Cepat & Layanan side by side */
  .footer-grid > div:nth-child(2),
  .footer-grid > div:nth-child(3) {
    display: inline-block;
    width: 48%;
    vertical-align: top;
  }
  
  .footer-grid > div:nth-child(2) {
    margin-right: 4%;
  }
}

/* Mobile Contact Page */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Cart Page */
@media (max-width: 640px) {
  .cart-item {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .cart-item-image {
    width: 100%;
    height: 150px;
  }
  
  .cart-item-details {
    width: 100%;
  }
  
  .cart-item-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* Mobile Form Inputs */
@media (max-width: 640px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea,
  select {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.875rem 1rem;
  }
}

/* Mobile Testimonials */
@media (max-width: 640px) {
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .testimonial-text {
    font-size: 1rem;
  }
}

/* Mobile Service Cards */
@media (max-width: 640px) {
  .service-card {
    padding: 1.5rem;
  }
  
  .service-icon {
    width: 3rem;
    height: 3rem;
  }
  
  .service-title {
    font-size: 1.125rem;
  }
}

/* Ensure images don't overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Mobile-safe horizontal scrolling for product lists */
@media (max-width: 640px) {
  .product-scroll-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .product-scroll-container::-webkit-scrollbar {
    display: none;
  }
}

/* ================= UTILITY RESPONSIVE CLASSES ================= */

/* Hidden utilities */
.hidden { display: none; }

@media (min-width: 640px) {
  .sm\\:flex { display: flex; }
  .sm\\:hidden { display: none; }
  .sm:flex { display: flex; }
  .sm:hidden { display: none; }
}

@media (min-width: 768px) {
  .md\\:flex { display: flex; }
  .md\\:hidden { display: none; }
  .md:flex { display: flex; }
  .md:hidden { display: none; }
}

/* Text alignment utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

@media (max-width: 640px) {
  .text-center-mobile { text-align: center; }
}

/* Flex direction utilities */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }

@media (max-width: 640px) {
  .flex-col-mobile { flex-direction: column; }
}

/* Width utilities */
.w-full { width: 100%; }
.max-w-full { max-width: 100%; }

/* Touch-friendly tap targets for mobile */
@media (max-width: 768px) {
  a, button {
    min-height: 44px;
    min-width: 44px;
  }
  
  .nav-link, .mobile-nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* Prevent horizontal overflow on mobile */
@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }
  
  .section-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Google Maps Styles */
#map-rodah {
  width: 100%;
  height: 450px;
  border-radius: 1rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.map-wrapper {
  position: relative;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

.map-info-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  margin-top: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-left: 4px solid var(--rodah-primary);
}

.map-info-card h3 {
  margin: 0 0 0.5rem;
  color: var(--rodah-dark);
  font-size: 1.125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.map-info-card p {
  margin: 0;
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.5;
}

.map-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn-map {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-primary-map {
  background: var(--rodah-primary);
  color: white;
}

.btn-primary-map:hover {
  background: var(--rodah-primary-dark);
  transform: translateY(-1px);
}

.btn-secondary-map {
  background: #f3f4f6;
  color: #374151;
}

.btn-secondary-map:hover {
  background: #e5e7eb;
}

/* Google Maps InfoWindow Custom */
.gm-style-iw {
  padding: 0 !important;
}

.gm-style-iw button {
  top: 4px !important;
  right: 4px !important;
}

/* Responsive Map */
@media (max-width: 768px) {
  #map-rodah {
    height: 350px;
  }
}
