/* ============================================
   DESA TALAGAWANGI — Responsive Breakpoints
   ============================================ */

/* ============ TABLET LANDSCAPE (max 1024px) ============ */
@media (max-width: 1024px) {
  :root {
    --section-padding: 60px;
    --container-padding: 20px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .hero__title { font-size: 2.5rem; }

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

  .sambutan { grid-template-columns: 240px 1fr; gap: 32px; }

  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }

  .timeline__item { width: 100%; left: 0 !important; padding-left: 60px !important; padding-right: 0 !important; text-align: left !important; }
  .timeline::before { left: 16px; transform: none; }
  .timeline__dot { left: 8px !important; right: auto !important; }
}

/* ============ TABLET PORTRAIT (max 768px) ============ */
@media (max-width: 768px) {
  :root {
    --section-padding: 48px;
    --navbar-height: 64px;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  /* Navbar Mobile */
  .navbar__hamburger {
    display: flex;
  }

  .navbar__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 80px 24px 40px;
    background: var(--white);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right var(--transition-base);
    overflow-y: auto;
    z-index: 1000;
  }

  .navbar__menu.active {
    right: 0;
  }

  .navbar__overlay {
    display: block;
  }

  .navbar__link {
    padding: 14px 16px;
    font-size: 1rem;
    border-bottom: 1px solid var(--neutral-100);
    border-radius: 0;
  }

  .navbar__link.active::after {
    display: none;
  }

  .navbar__dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
  }

  .navbar__dropdown.active .navbar__dropdown-menu {
    max-height: 500px;
  }

  /* Hero */
  .hero { min-height: 85vh; padding: 100px 20px 60px; }
  .hero__title { font-size: 2rem; }
  .hero__subtitle { font-size: 1rem; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__scroll-indicator { display: none; }

  /* Page Header */
  .page-header { padding: 110px 0 40px; }
  .page-header__title { font-size: 1.75rem; }

  /* Grid */
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .budget-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* Sambutan */
  .sambutan { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .sambutan__photo { max-width: 250px; margin: 0 auto; }
  .sambutan__photo-wrapper::after { display: none; }
  .sambutan__text blockquote { text-align: left; }

  /* Tabs */
  .tabs { top: 64px; }
  .tabs__item { padding: 14px 18px; font-size: 0.85rem; }

  /* Org Chart */
  .org-chart__level { flex-direction: column; align-items: center; }
  .org-chart__person { min-width: 100%; max-width: 100%; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }

  /* Visi Card */
  .visi-card { padding: 32px 24px; }
  .visi-card p { font-size: 1.1rem; }
}

/* ============ MOBILE (max 480px) ============ */
@media (max-width: 480px) {
  :root {
    --section-padding: 40px;
    --container-padding: 16px;
  }

  body { font-size: 0.95rem; }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }

  .hero { min-height: 80vh; }
  .hero__title { font-size: 1.65rem; }
  .hero__badge { font-size: 0.75rem; padding: 4px 12px; }

  .stat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-item { padding: 20px 12px; }
  .stat-item__number { font-size: 1.8rem; }

  .budget-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .budget-card { padding: 20px 16px; }
  .budget-card__value { font-size: 1.3rem; }

  .card { padding: 24px 20px; }
  .card__icon { width: 48px; height: 48px; font-size: 1.3rem; }

  .section-header { margin-bottom: 32px; }

  .accordion__header { padding: 16px 18px; }
  .accordion__body-inner { padding: 18px; }
  .accordion__header-icon { width: 36px; height: 36px; font-size: 1.2rem; }

  .data-table th, .data-table td { padding: 10px 14px; font-size: 0.85rem; }

  /* Mobile menu wider */
  .navbar__menu { width: 85%; }

  /* Service info stacked */
  .service-info { flex-direction: column; gap: 12px; }

  /* Timeline adjustments */
  .timeline__item { padding-left: 44px !important; }
  .timeline__content { padding: 16px; }
}

/* ============ LARGE DESKTOP (min 1280px) ============ */
@media (min-width: 1280px) {
  :root {
    --container-max: 1280px;
  }

  .hero__title { font-size: 3.5rem; }
}

/* ============ PRINT STYLES ============ */
@media print {
  .navbar, .footer, .hero__scroll-indicator, .tabs,
  .btn, .navbar__hamburger, .navbar__overlay {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 12pt;
  }

  .hero {
    min-height: auto;
    padding: 20px;
    background: none;
  }

  .hero::before, .hero::after { display: none; }

  .hero__title, .hero__subtitle {
    color: #000;
    -webkit-text-fill-color: #000;
  }

  .page-header {
    background: none;
    padding: 20px 0;
  }

  .page-header__title { color: #000; }

  .section { padding: 20px 0; }

  .card, .accordion__item, .data-table-wrapper {
    break-inside: avoid;
  }

  .checklist__item {
    page-break-inside: avoid;
  }

  .checklist__checkbox {
    border-color: #000;
  }

  .checklist__item.checked .checklist__checkbox {
    background: #000;
  }
}
