/* ==========================================================================
   DAPUR HARMONI RASA - CATERING & HORECA EDUKASI
   Palet Warna: Warm Terracotta & Deep Spice Orange (Unik, Hangat, Menggugah Selera)
   WCAG AA/AAA Compliant (High Contrast, Readable, Modern)
   ========================================================================== */

:root {
  /* Brand Accent Palette - Warm Terracotta / Cinnamon Roasted Spice */
  --primary: #c2410c;         /* Deep Terracotta / Russet / Spice */
  --primary-hover: #9a3412;   /* Darker Terracotta */
  --primary-light: #fff7ed;   /* Warm Cream / Peach Tint */
  --primary-tint: #ffedd5;    /* Soft Biscuit Accent */
  --primary-border: #fed7aa;  /* Light Terracotta Border */
  --primary-dark: #7c2d12;    /* Deep Cinnamon Cocoa */

  /* Secondary / Supporting Colors */
  --accent: #b45309;          /* Golden Ochre / Turmeric */
  --accent-light: #fef3c7;    /* Gentle Warm Amber */
  --surface-alt: #fbf9f6;     /* Culinary Ivory Soft Surface */
  
  /* Text and Neutral Colors (Strict High Contrast WCAG AAA) */
  --text-main: #0f172a;       /* Slate 900 for absolute legibility */
  --text-muted: #334155;      /* Slate 700 - high contrast readability */
  --text-light: #64748b;      /* Slate 500 for subtle meta */
  --bg-page: #ffffff;
  --bg-card: #ffffff;
  --border-card: #e2e8f0;
  --border-light: #f1f5f9;

  /* Typography */
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Elevations and Radii */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  /* Layout */
  --container-max: 1200px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-page);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text-main);
  background-color: var(--bg-page);
}

img, svg {
  display: block;
  max-width: 100%;
}

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

a:hover {
  color: var(--primary-hover);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); letter-spacing: -0.015em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

ul, ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background-color: var(--surface-alt);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  background-color: var(--primary-tint);
  color: var(--primary-dark);
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  border: 1px solid var(--primary-border);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.65rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.28);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(194, 65, 12, 0.35);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary-light);
  color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* Header & Navigation */
.top-bar {
  background-color: var(--primary-dark);
  color: #ffedd5;
  font-size: 0.825rem;
  padding: 0.5rem 0;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.4rem;
  box-shadow: 0 4px 10px rgba(194, 65, 12, 0.25);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.logo-tagline {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.nav-link {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.925rem;
  position: relative;
  padding: 0.35rem 0;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
}

.nav-cta {
  display: flex;
  align-items: center;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-main);
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: radial-gradient(circle at 80% 20%, rgba(254, 215, 170, 0.3) 0%, rgba(255, 255, 255, 1) 70%), linear-gradient(180deg, var(--primary-light) 0%, #ffffff 100%);
  padding: 5rem 0 4rem 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-title {
  margin-bottom: 1.25rem;
  font-weight: 800;
  line-height: 1.15;
}

.hero-title .highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--primary-border);
}

.hero-feat-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.hero-feat-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--primary-tint);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.hero-feat-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.hero-visual {
  position: relative;
}

.hero-card-preview {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  position: relative;
}

.preview-badge {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  border: 1px solid var(--primary-border);
}

.preview-menu-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.preview-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed var(--border-card);
}

.preview-menu-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.preview-menu-meta {
  font-size: 0.8rem;
  color: var(--text-light);
}

.preview-menu-tag {
  background-color: #f1f5f9;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* Feature Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background-color: var(--bg-card);
  padding: 2.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--primary-border);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Menu Package Cards */
.menu-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}

.menu-card-header {
  padding: 1.75rem;
  background-color: var(--surface-alt);
  border-bottom: 1px solid var(--border-light);
}

.menu-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-dark);
  background-color: var(--primary-tint);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
  border: 1px solid var(--primary-border);
}

.menu-card-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.menu-items-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem 0;
  flex: 1;
}

.menu-items-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  font-size: 0.925rem;
  color: var(--text-muted);
}

.menu-items-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}

.menu-price-box {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.menu-price span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-light);
}

/* Interactive Calculator Box */
.calc-wrapper {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.925rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-select, .form-input, .form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  background-color: #ffffff;
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.form-select:focus, .form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.15);
}

.calc-result-box {
  background-color: var(--primary-light);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
}

.calc-result-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.calc-result-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
}

.calc-breakdown {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  text-align: left;
  border-top: 1px dashed var(--primary-border);
  padding-top: 1rem;
}

.calc-breakdown li {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

/* FAQ Accordion */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--primary-border);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-arrow {
  color: var(--primary);
  font-size: 1.25rem;
  transition: transform 0.25s ease;
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 0 1.5rem 1.25rem 1.5rem;
}

/* Info Box & Compliance Alert */
.info-box {
  background-color: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}

.info-box p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background-color: #0f172a;
  color: #cbd5e1;
  padding: 4.5rem 0 2rem 0;
  margin-top: auto;
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

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

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.legal-clause {
  font-size: 0.825rem;
  color: #94a3b8;
  border-top: 1px solid #1e293b;
  padding-top: 0.75rem;
  line-height: 1.5;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.footer-address strong {
  color: #ffffff;
}

.contact-line {
  display: block;
  margin-top: 0.35rem;
  color: #94a3b8;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 2rem;
  font-size: 0.85rem;
  color: #64748b;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Legal Page Content Styles */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  background: #ffffff;
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
}

.legal-content h2 {
  font-size: 1.45rem;
  margin-top: 2rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-light);
}

.legal-content h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.legal-table th, .legal-table td {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-card);
  text-align: left;
}

.legal-table th {
  background-color: var(--surface-alt);
  font-weight: 700;
  color: var(--text-main);
  width: 32%;
}

.legal-table td {
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid, .calc-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  .nav-menu {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-card);
    display: none;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-cta {
    display: none;
  }
  .hero-features {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .legal-content {
    padding: 1.5rem;
  }
}
