/* ═══════════════════════════════════════════════════════
   iCANDY EVENTS — RESPONSIVE STYLES
   ═══════════════════════════════════════════════════════ */

/* ─── Tablet (max 1024px) ───────────────────────────── */
@media (max-width: 1024px) {
  .services {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .transform-stage {
    grid-template-columns: auto 1fr;
    gap: 24px;
  }

  .transform-stage__visual {
    grid-column: 1 / -1;
    order: 2 !important;
  }

  .transform-stage__content {
    order: 1 !important;
  }

  .reasons {
    grid-template-columns: repeat(2, 1fr);
  }

  .reasons-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .testimonial-carousel {
    grid-template-columns: 1fr 1fr;
  }

  .testimonial:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
  }

  .process-step__card {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .process-step--reverse .process-step__card {
    grid-template-columns: 1fr 1fr;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
  }

  .polaroid--2 {
    display: none;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .pricing-card--featured {
    transform: none;
  }

  .pricing-card--featured:hover {
    transform: translateY(-8px);
  }

  .event-card__content {
    padding: 28px 22px;
  }

  .event-card__media {
    min-height: 210px;
  }

  .book-gallery__book {
    height: 340px;
  }
}

/* ─── Mobile landscape / small tablet (max 768px) ───── */
@media (max-width: 768px) {
  :root {
    --section-padding: clamp(60px, 10vh, 100px);
  }

  /* Nav */
  .nav__burger {
    display: flex;
  }

  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
  }

  .nav__link--cta {
    margin-top: 16px;
  }

  /* Hero */
  .hero__polaroids {
    display: none;
  }

  .hero__title {
    font-size: clamp(28px, 7vw, 48px);
  }

  .hero__title-script {
    font-size: clamp(26px, 6.5vw, 44px);
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  /* Timeline */
  .timeline__line {
    left: 20px;
  }

  .timeline__dot {
    left: 20px;
  }

  .timeline__card {
    width: 100%;
    padding-left: 52px !important;
    padding-right: 0 !important;
  }

  .timeline__card--left,
  .timeline__card--right {
    margin-left: 0;
    margin-right: 0;
  }

  .timeline__card-images {
    grid-template-columns: 1fr;
  }

  .timeline__card-img {
    height: 200px;
  }

  .timeline__card-stats {
    flex-wrap: nowrap;
    gap: 12px;
    justify-content: space-between;
  }

  .timeline__card-stats .stat {
    flex: 1;
    min-width: 0;
    gap: 0;
  }

  .timeline__card-stats .stat__num {
    font-size: 18px;
  }

  .timeline__card-stats .stat__label {
    font-size: 9px;
    white-space: nowrap;
  }

  /* Services */
  .services {
    grid-template-columns: 1fr;
  }

  /* Transform */
  .transform-stage {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .transform-stage__number {
    position: absolute;
    top: -10px;
    right: 0;
    font-size: 80px;
  }

  .transform-stage__img {
    height: 280px;
  }

  /* Reasons */
  .reasons {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .reasons-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Testimonials */
  .testimonial-carousel {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .testimonial:nth-child(3) {
    max-width: none;
  }

  .testimonial-mini {
    width: 280px;
    padding: 20px;
  }

  /* Process */
  .process-step {
    gap: 20px;
    margin-bottom: 40px;
  }

  .process-step__connector {
    width: 44px;
  }

  .process-step__number {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }

  .process-step__card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }

  .process-step--reverse .process-step__card {
    grid-template-columns: 1fr;
  }

  .process-step--reverse .process-step__img-wrap {
    order: 0;
  }

  .process-step__img {
    height: 200px;
  }

  /* Film strip */
  .film-strip__thumb {
    width: 70px;
    height: 48px;
  }

  /* Metrics */
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }

  .gallery-item--wide {
    grid-column: span 2;
  }

  .gallery-item--tall {
    grid-row: span 2;
  }

  /* Before/After */
  .before-after__container {
    height: 300px;
  }

  .before-after__before .before-after__img {
    width: 100vw;
  }

  /* CTA Form */
  .cta-form__row {
    grid-template-columns: 1fr;
  }

  .cta-form {
    padding: 24px;
  }

  /* Pricing */
  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
    padding: 0 20px;
  }

  /* Events */
  .event-card--horizontal {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .event-card__content {
    padding: 24px 18px;
    order: 2;
    overflow: visible;
  }

  .event-card__body p {
    display: block;
  }

  .event-card__title {
    font-size: clamp(20px, 5vw, 28px);
  }

  .countdown__unit {
    min-width: 54px;
    padding: 10px 6px;
  }

  .countdown__num {
    font-size: 22px;
  }

  .event-card__media {
    min-height: 200px;
    order: 1;
  }

  .event-card__countdown {
    justify-content: center;
  }

  .countdown__sep {
    font-size: 18px;
    padding-bottom: 12px;
  }

  .event-card__meta {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  /* Hero event button */
  .btn--event-cta {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    background: linear-gradient(135deg, #e07020, #f59e0b, #f7c948) !important;
  }

  /* Scroll to top — always visible on mobile */
  .scroll-top {
    bottom: 80px;
    right: 16px;
    width: 44px;
    height: 44px;
    z-index: 9999;
  }

  /* Book Gallery */
  .book-gallery__book {
    height: 300px;
  }

  /* WhatsApp */
  .whatsapp-float {
    bottom: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
  }

  .whatsapp-float__icon {
    width: 24px;
    height: 24px;
  }

  /* Discount banner */
  .discount-banner {
    font-size: 11px;
    padding: 10px 0;
  }

  /* Nav actions */
  .nav__actions {
    gap: 8px;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
  }

  .theme-toggle svg {
    width: 16px;
    height: 16px;
  }
}

/* ─── Mobile portrait (max 480px) ───────────────────── */
@media (max-width: 480px) {
  .hero__badge {
    font-size: 10px;
    padding: 6px 14px;
  }

  .hero__subtitle {
    font-size: 15px;
  }

  .section-header__title {
    font-size: clamp(26px, 6vw, 36px);
  }

  .section-header__desc {
    font-size: 14px;
  }

  .timeline__card-inner {
    padding: 20px;
  }

  .service-card__inner {
    padding: 28px;
  }

  .reason-card {
    padding: 24px;
  }

  .testimonial {
    padding: 24px;
  }

  .metric {
    padding: 24px;
  }

  .metric__number {
    font-size: 32px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

  .gallery-item--wide {
    grid-column: span 1;
  }

  .gallery-item--tall {
    grid-row: span 1;
  }

  .before-after__container {
    height: 250px;
  }

  .cta-section__title {
    font-size: clamp(28px, 7vw, 40px);
  }

  .footer__links {
    flex-direction: column;
    gap: 16px;
  }

  .book-gallery__book {
    height: 240px;
  }

  .countdown__unit {
    min-width: 52px;
    padding: 10px 6px;
  }

  .countdown__num {
    font-size: 22px;
  }

  .book-gallery__caption h4 {
    font-size: 16px;
  }

  .pricing-card__amount {
    font-size: 36px;
  }

  .pricing-card__header {
    padding: 28px 24px 24px;
  }

  .pricing-card__features {
    padding: 24px 24px 12px;
  }

  .pricing-card__btn {
    margin: 12px 24px 24px;
  }
}

/* ─── Ultra-wide (min 1600px) ───────────────────────── */
@media (min-width: 1600px) {
  :root {
    --container-max: 1400px;
  }

  .gallery-grid {
    grid-auto-rows: 300px;
  }
}

/* ─── Reduced Motion ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }

  .cursor-glow {
    display: none;
  }

  #particlesCanvas {
    display: none;
  }
}

/* ─── High contrast ─────────────────────────────────── */
@media (prefers-contrast: high) {
  :root {
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-muted: #888;
  }

  .glass-card {
    border-width: 2px;
  }
}

/* ─── Touch device optimizations ────────────────────── */
@media (hover: none) {
  .cursor-glow {
    display: none;
  }

  .gallery-item__overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.6) 0%, transparent 50%);
  }

  .service-card__glow {
    display: none;
  }
}
