/* =========================================
   CV. SUKSES MAKMUR — Supplier Daging Frozen
   Gaya: Terang Minimalis
   ========================================= */

/* ---------- Reset & Variabel ---------- */
:root {
  --primary: #c0392b;        /* merah daging / brand */
  --primary-dark: #96281b;
  --primary-light: #fdf0ee;
  --primary-rgb: 192, 57, 43;
  --dark: #1f2430;
  --gray: #4b5563;           /* Dipergelap untuk kontras 4.5:1 */
  --gray-light: #f4f5f7;
  --white: #ffffff;
  --border: #d1d5db;         /* Dipergelap sedikit */
  --radius: 14px;
  --shadow: 0 4px 16px rgba(31, 36, 48, 0.08);
  --shadow-lg: 0 8px 30px rgba(31, 36, 48, 0.12);
  --radius-card: 8px;
  --radius-field: 6px;
  
  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
}

* {
  box-sizing: border-box;
}
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

/* Prevent horizontal scroll globally */
body {
  min-width: 1280px;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
}

/* ---------- Icon Sprite ---------- */
.icon {
  width: 24px;
  height: 24px;
  display: block;
}


/* ---------- Animasi & Reveal ---------- */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transition: none; opacity: 1; transform: none; }
  .card, .hero-card, .gallery-item, .wa-btn { transition: none; }
  .btn::before { transition: none; }
}

/* Only hide when JS is active (prevents blank page if JS fails or on file://) */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.counter {
  font-variant-numeric: tabular-nums;
}

/* ---------- Button glow ---------- */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: 0.6s;
  z-index: 1;
}

.btn:hover::before {
  left: 100%;
}

/* ---------- Kartu hover lift ---------- */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* ---------- Base ---------- */
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1280px, 92%);
  margin: 0 auto;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.section {
  padding: var(--space-4xl) 0;
}

.section-alt {
  background: var(--gray-light);
}

.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  text-align: center;
  margin-bottom: var(--space-sm);
}

.section-title.left {
  text-align: left;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto var(--space-3xl);
  font-size: 1rem;
}

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
  text-align: center;
}

.btn-secondary {
  background: var(--white);
  border-color: var(--border);
  color: var(--dark);
}

.btn-secondary:hover {
  background: var(--gray-light);
  border-color: var(--primary);
  color: var(--primary);
}

/* ---------- Site Header ---------- */
html {
  scroll-padding-top: 80px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.site-header__inner {
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
  min-width: 0;
}

.site-header__brand img {
  height: 40px;
  width: auto;
  display: block;
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.site-nav__list {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__list a {
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
  font-weight: 500;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.btn-cta--menu {
  display: none;
}

.nav-toggle {
  display: none;
}

@media (max-width: 900px) {
  .site-header__inner {
    height: 64px;
    padding: 0 16px;
    gap: 12px;
  }
  .site-header__brand {
    flex: 1;
  }
  .btn-cta--desktop {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #111827;
    cursor: pointer;
    flex: 0 0 auto;
  }
  .nav-toggle[aria-expanded="false"] .icon-close {
    display: none;
  }
  .nav-toggle[aria-expanded="true"] .icon-bars {
    display: none;
  }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    flex: none;
    background: #fff;
    box-shadow: 0 12px 24px rgba(0,0,0,.12);
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    padding: 8px 0 16px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
  }
  .site-nav.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity .2s ease, transform .2s ease;
  }
  .site-nav__list {
    flex-direction: column;
    gap: 0;
    padding: 0 16px 8px;
  }
  .site-nav__list a {
    display: block;
    padding: 14px 8px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 1rem;
  }
  .site-nav__list li:last-child a {
    border-bottom: none;
  }
  .btn-cta--menu {
    display: inline-flex;
    width: calc(100% - 32px);
    margin: 8px 16px 0;
    height: 48px;
  }
  body.menu-open {
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .site-header__inner {
    height: 56px;
  }
  .site-nav {
    top: 56px;
    max-height: calc(100dvh - 56px);
  }
}

@media (max-width: 340px) {
  .site-header__brand strong {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--space-3xl) 0 var(--space-2xl);
  background: linear-gradient(180deg, var(--primary-light) 0%, var(--white) 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 50%, transparent 100%);
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-3xl);
  align-items: center;
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-dark);
  box-shadow: var(--shadow);
  margin-bottom: var(--space-lg);
}

.badge svg {
  color: var(--primary);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: var(--space-md);
  line-height: 1.15;
}

.highlight {
  color: var(--primary);
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
}

.hero p {
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: var(--space-lg);
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}
.hero-facts {

  display: flex;
  gap: var(--space-xl);
  list-style: none;
  flex-wrap: wrap;
}

.hero-facts li {
  color: var(--gray);
  font-size: 0.88rem;
}

.hero-facts strong {
  display: block;
  font-size: 1.25rem;
  color: var(--dark);
}

/* ---------- Hero Cards ---------- */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hero-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-lg);
}

.hero-card-img {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--gray-light);
}

.hero-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-xs);
}

.hero-card p {
  font-size: 0.9rem;
  color: var(--gray);
  margin: 0;
}

/* Hero Mobile */
@media (max-width: 900px) {
  .hero {
    padding: var(--space-xl) 0 var(--space-md);
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .hero-visual {
    order: 1;
  }
  
  .hero h1 {
    font-size: clamp(1.75rem, 7.5vw, 2.25rem);
    line-height: 1.2;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    margin-bottom: var(--space-md);
  }
  
  .hero-buttons .btn {
    width: 100%;
    text-align: center;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .hero-visual {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
  }
  
  .hero-card {
    flex-direction: row;
    align-items: flex-start;
    padding: 16px;
    gap: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-height: auto;
    height: auto;
  }
  
  .hero-card-img {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--gray-light);
  }
  
  .hero-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  
  .hero-card h3 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    line-height: 1.3;
  }
  
  .hero-card p {
    font-size: 0.8rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.4;
  }
  
  .stat-bar-container {
    margin-top: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .hero {
    padding: var(--space-lg) 0 var(--space-sm);
  }
  
  .hero-card {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
    padding: 14px;
  }
  
  .hero-card-img {
    width: 64px;
    height: 64px;
  }
  
  .hero-card h3 {
    font-size: 0.9rem;
  }
  
  .hero-card p {
    font-size: 0.78rem;
  }
}

/* ---------- Stat bar (angka kepercayaan) ---------- */
.stat-bar-container {
  position: relative;
  z-index: 2;
}

.stat-bar {
  margin-top: var(--space-3xl);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg) var(--space-xl);
  box-shadow: var(--shadow);
}

.stat-item {
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  color: var(--primary);
  letter-spacing: -0.02em;
  font-weight: 700;
}

.stat-item span {
  display: block;
  color: var(--gray);
  font-size: 0.94rem;
  font-weight: 500;
  margin-top: var(--space-xs);
}

/* Stat bar Mobile */
@media (max-width: 640px) {
  .stat-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: var(--space-md) var(--space-lg);
  }
  
  .stat-item strong {
    font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  }
  
  .stat-item span {
    font-size: 0.85rem;
    line-height: 1.3;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 480px) {
  .stat-bar {
    gap: var(--space-sm);
    padding: var(--space-md);
  }
  
  .stat-item strong {
    font-size: 1.1rem;
  }
  
  .stat-item span {
    font-size: 0.8rem;
  }
}

/* ---------- Legal Section ---------- */
.legal-section {
  margin-top: var(--space-4xl);
  padding: var(--space-3xl) 0;
  background: var(--white);
}

.legal-section .container {
  max-width: 1200px;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin-top: var(--space-2xl);
  align-items: stretch;
}

.legal-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
}

.legal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.legal-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  margin: 0 auto;
  flex-shrink: 0;
}

.legal-card-icon svg {
  width: 24px;
  height: 24px;
}

.legal-card h3 {
  font-size: 1rem;
  color: var(--dark);
  line-height: 1.3;
  max-height: 2.6em;
  overflow: hidden;
  min-height: calc(2 * 1.3em);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.legal-card p {
  color: var(--gray);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-top: 8px;
}

/* Responsive breakpoints for legal-grid */
@media (max-width: 1099px) {
  .legal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .legal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Video gudang ---------- */
.video-title {
  margin-top: var(--space-3xl);
  font-size: 1.35rem;
  text-align: center;
}

.video-subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: var(--space-xl);
}

@media (max-width: 768px) {
  .legal-section {
    padding: 24px 0 !important;
  }
  
  .video-title {
    margin-top: var(--space-lg) !important;
    font-size: 1.1rem !important;
  }
  
  .video-subtitle {
    margin-bottom: var(--space-md) !important;
    font-size: 0.85rem !important;
  }
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  max-width: 1100px;
  margin: 0 auto;
}

.video-item {
  margin-bottom: 0;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.video-play-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.video-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
}

.video-error {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background: rgba(192, 57, 43, 0.95);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  text-align: center;
  z-index: 11;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile video grid: 4 columns in 1 row for mobile */
@media (max-width: 768px) {
  .video-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
    padding: 0 12px !important;
    max-width: none !important;
    overflow: hidden !important;
  }
  
  .video-wrapper {
    aspect-ratio: 9 / 16 !important;
    max-height: 36vh !important;
    border-radius: 6px !important;
  }
  
  .video-wrapper video {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 9 / 16 !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    min-width: 0 !important;
  }
  
  .video-play-btn {
    display: none !important;
  }
  
  .video-loading {
    display: none !important;
  }
}

@media (max-width: 319px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    padding: 0 8px !important;
  }
  
  .video-wrapper {
    aspect-ratio: 9 / 16 !important;
    max-height: 30vh !important;
    border-radius: 6px !important;
  }
  
  .video-wrapper video {
    aspect-ratio: 9 / 16 !important;
    border-radius: 6px !important;
  }
}

/* Video section margin to prevent WA float overlap */
.video-grid {
  margin-bottom: var(--space-3xl);
}



/* ---------- Testimoni ---------- */
.testimonial {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.testimonial-stars {
  color: #f5a623;
  font-size: 1.1rem;
  letter-spacing: 3px;
}

.testimonial-link {
  text-align: center;
  margin-top: 40px;
}

.testimonial-text {
  color: var(--dark);
  font-size: 0.96rem;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.92rem;
}

.testimonial-author small {
  color: var(--gray);
  font-size: 0.8rem;
}

.testimonial-author em {
  color: #b45309;
  font-style: italic;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-lg);
}

.hero-card-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.hero-card h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.hero-card p {
  font-size: 0.88rem;
  color: var(--gray);
  margin: 0;
}

.hero-text {
  max-width: 540px;
}

.hero-grid {
  align-items: center;
}

/* ---------- Tentang ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: flex-start;
  margin-top: 12px;
}

.about-right {
  display: grid;
  gap: 20px;
}

.about-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-photo img {
  width: 100%;
  max-height: 360px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}


.about-box p {
  color: var(--gray);
  margin-bottom: 16px;
}


/* ---------- Kartu (layanan & produk) ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--primary-light);
  font-size: 1.6rem;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--gray);
  font-size: 0.94rem;
}

/* ---------- Visi Misi ---------- */
.visi-card,
.misi-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 32px;
  gap: 16px;
}

.visi-card .card-icon,
.misi-card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.visi-card .card-icon svg,
.misi-card .card-icon svg {
  width: 24px;
  height: 24px;
}

.visi-card h3,
.misi-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}

.visi-card p {
  color: var(--gray);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

/* Values row for Visi card */
.visi-card .values-row {
  margin-top: auto;
  padding-top: 20px;
}

.visi-card .values-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray);
  margin: 0 0 10px;
  text-align: left;
}

.visi-card .values-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.visi-card .value-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
}

.visi-card .value-check {
  display: inline-flex;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

@media (max-width: 767px) {
  .visi-card .values-row {
    padding-top: 16px;
  }
  .visi-card .value-tag {
    padding: 5px 12px;
    font-size: 0.8125rem;
  }
}

.misi-card .mission-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.misi-card .mission-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gray);
}

.misi-card .mission-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--primary);
  margin-top: 2px;
}

@media (max-width: 767px) {
  .visi-card,
  .misi-card {
    padding: 24px;
  }
}

#visi-misi .cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 1150px;
  margin: 0 auto;
  align-items: stretch;
}

@media (max-width: 768px) {
  #visi-misi .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Layanan Kami (Service Cards) ---------- */
.service-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 28px;
  gap: 16px;
}

.service-card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  font-size: inherit;
  margin-bottom: 14px;
  transition: background 0.25s ease, color 0.25s ease;
}

.service-card .card-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.service-card p {
  color: var(--gray);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card:hover .card-icon {
  background: var(--primary);
  color: var(--white);
}

@media (prefers-reduced-motion: reduce) {
  .service-card .card-icon {
    transition: none;
  }
  .service-card:hover {
    transform: translateY(-4px);
  }
  .service-card:hover .card-icon {
    background: var(--primary);
    color: var(--white);
  }
}

@media (max-width: 1099px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

.product ul {
  list-style: none;
  margin: 12px 0 16px;
}

.product li {
  padding: 6px 0 6px 24px;
  position: relative;
  color: var(--gray);
  font-size: 0.94rem;
  border-bottom: 1px dashed var(--border);
}

.product li:last-child {
  border-bottom: none;
}

.product li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.card-link {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  margin-top: auto;
}

.card-link:hover {
  text-decoration: underline;
}

/* ---------- Galeri produk ---------- */
.gallery-title {
  margin-top: 56px;
  font-size: 1.35rem;
  text-align: center;
}

.gallery-subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 28px;
}

.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-btn {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--dark);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.gallery-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--white);
  display: block;
}

.gallery-item figcaption {
  padding: 10px 12px;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
  color: var(--dark);
  border-top: 1px solid var(--border);
}


/* ---------- Kontak ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: start;
}

.contact-info > p {
  color: var(--gray);
  margin-bottom: 28px;
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.contact-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  flex-shrink: 0;
  transition: background 0.25s ease, color 0.25s ease;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-list li:hover .contact-icon {
  background: var(--primary);
  color: var(--white);
}

.contact-list > li > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-list h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  color: var(--dark);
}

.contact-list p {
  margin: 0;
  color: var(--gray);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.contact-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.contact-link:visited {
  color: var(--primary);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
}

.btn-wa {
  background: #25d366;
  color: var(--white);
  border: none;
  width: fit-content;
  margin-top: 4px;
}

.btn-wa:hover {
  background: #1ea851;
  color: var(--white);
  text-decoration: none;
  transform: translateY(-2px);
}

/* Map Container */
.map-container {
  margin-top: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 240px;
  border: 0;
}

/* ---------- Form ---------- */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  margin-bottom: 22px;
  font-size: 1.3rem;
}

.order-form {
  border: 2px solid var(--primary);
  border-radius: var(--radius-card);
}

.order-form h3 {
  color: var(--primary);
  font-size: 1.4rem;
  text-align: center;
}

.order-form button.btn-primary {
  border-radius: var(--radius-field);
  padding: 0 24px;
  height: 48px;
  font-size: 1rem;
  font-weight: 700;
  width: 100%;
}

.order-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}

.required {
  color: var(--primary);
  font-size: 0.8rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-field);
  font: inherit;
  font-size: 0.95rem;
  background: var(--gray-light);
  transition: border-color 0.2s, background 0.2s;
  appearance: none;
  color: var(--dark);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #6b7280;
  opacity: 1;
}

.form-row input::-webkit-calendar-picker-indicator,
.form-row select::-ms-expand {
  display: none;
}

.form-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236b7280'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}

.form-row input[type="date"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236b7280'%3E%3Cpath d='M19 4h-1V2h-2v2H8V2H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11zM7 11h5v5H7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}

.form-row textarea {
  resize: vertical;
  min-height: 88px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.form-notice {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--gray);
  text-align: center;
  transition: color 0.2s ease;
}

/* Responsive Contact */
@media (max-width: 899px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .map-container iframe {
    height: 220px;
  }
}

.footer {
  background: var(--dark);
  color: #cbd2dd;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}

.footer-logo {
  color: var(--white);
  margin-bottom: 14px;
}

.footer-logo .logo-text strong {
  color: #ff8a75;
}

.footer-desc {
  font-size: 0.9rem;
  color: #9aa3b2;
  max-width: 320px;
}

.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: #9aa3b2;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #9aa3b2;
}

/* ---------- WhatsApp mengambang ---------- */
.wa-float {
  position: fixed;
  right: var(--space-lg);
  bottom: var(--space-3xl);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-md);
}

.wa-btn {
  width: 60px;
  height: 60px;
  border: none;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.55);
}

.wa-btn svg {
  transition: transform 0.25s ease;
}

.wa-float.open .wa-btn svg {
  transform: rotate(180deg);
}

.wa-popup {
  width: 290px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
}

.wa-float.open .wa-popup {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Mobile WA float adjustments */
@media (max-width: 900px) {
  .wa-float {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 98; /* Below header (100) and menu (99) */
  }
  
  .wa-btn {
    width: 52px;
    height: 52px;
  }
  
  body.menu-open .wa-float {
    display: none; /* Hide WA float when mobile menu is open */
  }
  
  /* Add padding to last section to prevent content being covered */
  body:has(.wa-float) {
    padding-bottom: 72px;
  }
  
  /* Add padding to hero cards to prevent text under WA button */
  .hero-card {
    padding-right: 8px;
  }
}

.wa-popup-header {
  background: #075e54;
  color: var(--white);
  padding: 16px 18px;
}

.wa-popup-header p {
  font-size: 0.85rem;
  color: #d9f2ee;
  margin-top: 4px;
}

.wa-popup-list {
  padding: 10px;
  display: grid;
  gap: 6px;
}

.wa-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--dark);
  transition: background 0.18s ease;
}

.wa-option:hover {
  background: #e8fdf1;
}

.wa-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.wa-info strong {
  display: block;
  font-size: 0.92rem;
}

.wa-info small {
  color: var(--gray);
  font-size: 0.78rem;
}



/* ---------- Keunggulan ---------- */
.advantage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(var(--primary-rgb, 192, 57, 43), 0.1);
  color: var(--primary);
  margin-bottom: var(--space-md);
  transition: background 0.25s ease, color 0.25s ease;
}

.advantage-icon svg {
  width: 24px;
  height: 24px;
}

.card.advantage:hover .advantage-icon {
  background: var(--primary);
  color: var(--white);
}

.advantage h3 {
  color: var(--primary);
}

.advantage p {
  color: var(--gray);
}

@media (prefers-reduced-motion: reduce) {
  .advantage-icon {
    transition: none;
  }
  .card.advantage:hover .advantage-icon {
    background: var(--primary);
    color: var(--white);
  }
}

/* =========================================
   MOBILE RESPONSIVE FIXES (≤900px)
   ========================================= */

/* ---------- Tentang (About) ---------- */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .about-photo {
    order: -1;
  }
  
  .about-photo img {
    max-height: 300px;
    aspect-ratio: 4 / 3;
  }
}

/* ---------- Legalitas ---------- */
@media (max-width: 900px) {
  .legal-section {
    margin-top: var(--space-3xl);
    padding: var(--space-2xl) 0;
  }
  
  .legal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }

/* ---------- Keunggulan ---------- */
@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Visi & Misi ---------- */
@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .visi-card,
  .misi-card {
    padding: 24px;
  }
}

/* ---------- Layanan ---------- */
@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
  
  .service-card {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Produk ---------- */
@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .product {
    padding: 24px;
  }
}

/* ---------- Galeri Produk ---------- */
@media (max-width: 900px) {
  .gallery-filter {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: var(--space-sm);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .gallery-filter::-webkit-scrollbar {
    display: none;
  }
  
  .filter-btn {
    flex-shrink: 0;
    white-space: nowrap;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ---------- Testimoni ---------- */
@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .testimonial {
    padding: 24px;
  }
}

/* ---------- Kontak ---------- */
@media (max-width: 899px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-form {
    padding: 24px;
  }
  
  .order-cols {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .form-row input,
  .form-row select,
  .form-row textarea {
    height: 48px;
    font-size: 1rem; /* Prevents zoom on iOS */
  }
  
  .map-container iframe {
    height: 250px;
  }
}

/* ---------- Footer ---------- */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  
  .footer-desc {
    max-width: none;
    margin: 0 auto;
  }
  
  .footer-links {
    text-align: center;
  }
}

/* ---------- WhatsApp Float ---------- */
@media (max-width: 480px) {
  .wa-float {
    bottom: max(var(--space-2xl), env(safe-area-inset-bottom) + var(--space-lg));
    right: var(--space-md);
  }
  
  .wa-btn {
    width: 56px;
    height: 56px;
  }
  
  .wa-popup {
    width: calc(100vw - 2 * var(--space-md));
    max-width: 320px;
    right: var(--space-md);
    bottom: calc(56px + var(--space-md) + env(safe-area-inset-bottom));
  }
}

/* ---------- Global Mobile Fixes ---------- */
@media (max-width: 900px) {
  .section {
    padding: var(--space-3xl) 0;
  }
  
  .section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }
  
  .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: var(--space-2xl);
  }
  
  .container {
    width: min(1140px, 94%);
  }
  
  /* Ensure no horizontal overflow */
  body {
    overflow-x: hidden;
  }
  
  /* Improve touch targets */
  a, button, select, input {
    min-height: 44px;
  }
  
  /* Text size minimum */
  p, li, span, label {
    font-size: max(1rem, 15px);
  }
}

@media (max-width: 480px) {
  .section {
    padding: var(--space-2xl) 0;
  }
  
  .container {
    width: min(1140px, 96%);
  }
  
  .btn {
    padding: 14px 24px;
    font-size: 1rem;
  }
  
  /* Prevent text from being too small */
  .card p,
  .hero-card p,
  .testimonial-text,
  .contact-list p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}

