/* ==========================================================================
   Sin Digital Content — Landing Page Stylesheet
   Color Palette (Dark Theme):
     Background:     Dark Warm Brown  #1C1410
     Text/Light:     Warm Cream       #EDE8D4
     Primary Accent: Bright Green     #4DB251
     Card Surface:   Elevated Dark    #2C2018
   Typography:
     Headings: Playfair Display (Serif)
     Body:     Inter (Sans-Serif)
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors — Dark Theme */
  --clr-cream: #1C1410;       /* main page background */
  --clr-cream-light: #261A13; /* alternate section background */
  --clr-brown: #EDE8D4;       /* primary text — warm off-white */
  --clr-brown-light: #A89878; /* secondary / muted text */
  --clr-green: #4DB251;       /* primary accent — brighter on dark */
  --clr-green-dark: #3A9140;  /* hover / pressed green */
  --clr-green-light: #66C46A; /* decorative / icon green */
  --clr-white: #2C2018;       /* elevated card / surface */
  --clr-overlay: rgba(5, 2, 1, 0.84);

  /* Typography */
  --ff-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --ff-sans: 'Inter', 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Spacing */
  --section-py: 6rem;
  --container-max: 1200px;
  --header-h: 100px;

  /* Transitions */
  --transition-fast: 0.25s ease;
  --transition-base: 0.4s ease;

  /* Shadows */
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.55);
  --shadow-btn: 0 4px 14px rgba(77, 178, 81, 0.4);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--ff-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--clr-brown);
  background-color: var(--clr-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---------- Utility ---------- */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* Scroll-triggered animation classes */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background-color: var(--clr-green);
  color: #F0EBD8;
  border-color: var(--clr-green);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--clr-green-dark);
  border-color: var(--clr-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(77, 178, 81, 0.5);
}

.btn-outline {
  background-color: transparent;
  color: var(--clr-brown);
  border-color: var(--clr-brown);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background-color: rgba(237, 232, 212, 0.12);
  color: var(--clr-brown);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.6rem;
  font-size: 1.05rem;
}

/* ========================================================================
   HEADER & NAVIGATION
   ======================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  min-height: var(--header-h);
  padding: 0.8rem 0;
  background-color: rgba(28, 20, 16, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(237, 232, 212, 0.08);
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.site-header.scrolled {
  background-color: rgba(28, 20, 16, 0.98);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

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

/* Logo */
.logo {
  display: block;
  height: 100px;
  width: auto;
  object-fit: contain;
}

/* Nav Links */
.nav-list {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--clr-brown);
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
}

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

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

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--clr-green);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1010;
}

.hamburger-line {
  display: block;
  width: 26px;
  height: 2.5px;
  background-color: var(--clr-brown);
  border-radius: 2px;
  transition: all var(--transition-fast);
  transform-origin: center;
}

/* Hamburger active state */
.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ========================================================================
   HERO SECTION
   ======================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('IMG-20240607-WA0048%20-%20Satria%20Andika%20Al%20Rasyid.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0 1rem;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--clr-overlay);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 780px;
  padding-top: var(--header-h);
}

.hero-title {
  font-family: var(--ff-serif);
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  color: var(--clr-brown);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(237, 232, 212, 0.85);
  line-height: 1.8;
  margin-bottom: 2.4rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================================================
   SECTION SHARED STYLES
   ======================================================================== */
.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.6rem;
  color: var(--clr-brown);
}

.section-subtitle {
  text-align: center;
  color: var(--clr-brown-light);
  max-width: 620px;
  margin: 0 auto 3.5rem;
  font-size: 1.05rem;
}

/* ========================================================================
   SERVICES (Layanan Kami)
   ======================================================================== */
.services {
  padding: var(--section-py) 0;
}

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

.service-card {
  background-color: var(--clr-white);
  border-radius: 12px;
  padding: 2.2rem 1.8rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  border: 2px solid transparent;
}

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

/* Highlighted card */
.service-card--highlight {
  border-color: var(--clr-green);
  position: relative;
}

.service-card--highlight::before {
  content: '★ Unggulan';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--clr-green);
  color: #F0EBD8;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 1rem;
  border-radius: 20px;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-bottom: 1.2rem;
  color: var(--clr-green);
}

.service-icon svg {
  width: 48px;
  height: 48px;
}

.service-title {
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--clr-brown);
}

.service-desc {
  font-size: 0.92rem;
  color: var(--clr-brown-light);
  line-height: 1.7;
}

/* ========================================================================
   GALLERY (Dokumentasi Training)
   ======================================================================== */
.gallery {
  padding: var(--section-py) 0;
  background-color: var(--clr-cream-light);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 1rem;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* Masonry-style spanning items */
.gallery-item--tall {
  grid-row: span 2;
}

.gallery-item--wide {
  grid-column: span 2;
}

/* ========================================================================
   TESTIMONIALS
   ======================================================================== */
.testimonials {
  padding: var(--section-py) 0;
}

.testimonials-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.testimonial-card {
  background-color: var(--clr-white);
  border-radius: 12px;
  padding: 2rem 1.8rem 1.6rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.testimonial-quote {
  margin-bottom: 1.4rem;
}

.quote-icon {
  color: var(--clr-green);
  opacity: 0.35;
  margin-bottom: 0.6rem;
}

.testimonial-quote p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--clr-brown);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(237, 232, 212, 0.1);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--clr-green);
  color: #F0EBD8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.author-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--clr-brown);
}

.author-info span {
  font-size: 0.78rem;
  color: var(--clr-brown-light);
}

/* Carousel indicators (visible on mobile when carousel is active) */
.testimonial-indicators {
  display: none;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.6rem;
}

.testimonial-indicators.active {
  display: flex;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background-color: rgba(237, 232, 212, 0.2);
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  padding: 0;
}

.testimonial-dot.active {
  background-color: var(--clr-green);
  transform: scale(1.3);
}

/* ========================================================================
   FOOTER
   ======================================================================== */
.site-footer {
  background-color: #100C08;
  color: var(--clr-brown);
  padding: var(--section-py) 0 0;
}

.footer-cta {
  text-align: center;
  margin-bottom: 3.5rem;
}

.footer-cta h2 {
  font-family: var(--ff-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--clr-brown);
  margin-bottom: 0.8rem;
  line-height: 1.35;
}

.footer-cta p {
  color: rgba(237, 232, 212, 0.65);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(237, 232, 212, 0.12);
  margin-bottom: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  gap: 2rem;
}

.footer-heading {
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--clr-brown);
}

.footer-col p {
  font-size: 0.9rem;
  color: rgba(237, 232, 212, 0.65);
  line-height: 1.7;
}

.footer-links li {
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links li svg {
  flex-shrink: 0;
  color: var(--clr-green-light);
}

.footer-links a {
  color: rgba(237, 232, 212, 0.65);
  transition: color var(--transition-fast);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--clr-green-light);
}

.social-links {
  display: flex;
  gap: 0.8rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(237, 232, 212, 0.08);
  color: var(--clr-brown);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.social-link:hover,
.social-link:focus-visible {
  background-color: var(--clr-green);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid rgba(237, 232, 212, 0.08);
  font-size: 0.85rem;
  color: rgba(237, 232, 212, 0.45);
}

/* ========================================================================
   FLOATING WHATSAPP BUTTON
   ======================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

/* Pulse animation */
.whatsapp-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #25D366;
  animation: wa-pulse 2s infinite;
  z-index: -1;
}

@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* ========================================================================
   RESPONSIVE — Tablet (≤ 992px)
   ======================================================================== */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }

  .gallery-item--tall {
    grid-row: span 2;
  }

  .gallery-item--wide {
    grid-column: span 2;
  }
}

/* ========================================================================
   RESPONSIVE — Mobile (≤ 768px)
   ======================================================================== */
@media (max-width: 768px) {
  :root {
    --section-py: 4rem;
    --header-h: 140px;
  }

  /* Mobile navigation */
  .hamburger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--clr-cream);
    flex-direction: column;
    padding: 100px 2rem 2rem;
    transition: right var(--transition-base);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.55);
    z-index: 1005;
  }

  .main-nav.open {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    display: block;
    padding: 1rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(237, 232, 212, 0.1);
  }

  /* Mobile nav overlay */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 1004;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
  }

  .nav-overlay.active {
    opacity: 1;
    pointer-events: all;
  }

  /* Testimonials: horizontal scroll carousel on mobile */
  .testimonials-track {
    grid-template-columns: none;
    display: flex;
    gap: 1.2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scrollbar-width: none; /* Firefox */
  }

  .testimonials-track::-webkit-scrollbar {
    display: none; /* Chrome / Safari */
  }

  .testimonial-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }

  .gallery-item--tall {
    grid-row: span 1;
  }

  .gallery-item--wide {
    grid-column: span 1;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* WhatsApp button */
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 20px;
    right: 20px;
  }
}

/* ========================================================================
   RESPONSIVE — Small Mobile (≤ 480px)
   ======================================================================== */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .gallery-item--wide {
    grid-column: span 1;
  }

  .testimonial-card {
    flex: 0 0 92%;
  }
}
