/* ============================================================
   RESPONSIVE.CSS — ABI's Beauty Care & Academy
   Breakpoints: 1200px, 1024px, 768px, 480px
   ============================================================ */

/* ================================================================
   BREAKPOINT: 1200px — Large Desktops → Standard Desktops
   ================================================================ */

@media (max-width: 1200px) {
  .container {
    padding: 0 var(--space-md);
  }

  .hero__content {
    gap: var(--space-xl);
  }

  .bridal__content {
    gap: var(--space-xl);
  }

  .contact-grid {
    gap: var(--space-xl);
  }

  .footer__grid {
    gap: var(--space-lg);
  }

  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .academy-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}


/* ================================================================
   BREAKPOINT: 1024px — Tablets Landscape
   ================================================================ */

@media (max-width: 1024px) {
  /* Hero → single column, image on top */
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__image {
    order: -1;
    max-width: 600px;
    margin: 0 auto;
  }

  .hero__text {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__buttons {
    justify-content: center;
  }

  /* Bridal → single column */
  .bridal__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .bridal__text {
    order: 2;
    padding: var(--space-lg) 0;
  }

  .bridal__image {
    order: 1;
    max-width: 500px;
    margin: 0 auto;
  }

  .bridal__image::after {
    display: none;
  }

  /* Contact → single column */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Footer → 2 columns */
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl) var(--space-lg);
  }

  /* Gallery → 2 columns */
  .gallery-grid {
    columns: 2;
  }

  /* Stats → 2 columns */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
  }

  /* Stat separator adjustments */
  .stat-item:nth-child(2n)::after {
    display: none;
  }

  /* Section padding reduction */
  .section {
    padding: var(--space-2xl) 0;
  }

  /* Social grid */
  .social-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}


/* ================================================================
   BREAKPOINT: 768px — Tablets Portrait & Large Phones
   ================================================================ */

@media (max-width: 768px) {
  /* Mobile Navigation */
  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding-top: 100px;
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
    gap: var(--space-lg);
    transition: right 0.4s ease;
    border-left: 1px solid var(--glass-border);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    z-index: 10000;
  }

  body.menu-open .nav__links {
    right: 0;
  }

  /* Mobile menu overlay */
  body.menu-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.4s ease;
  }

  .nav__link {
    font-size: 1rem;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  }

  .nav__hamburger {
    display: flex;
  }

  /* Services → 2 columns on tablet */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Features → single column */
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Academy → single column */
  .academy-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Hero adjustments */
  .hero {
    padding-top: calc(var(--nav-height) + var(--space-lg));
    min-height: auto;
    padding-bottom: var(--space-2xl);
  }

  .hero__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero__subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
  }

  .hero__buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
    padding: 14px 28px;
  }

  /* Section headers */
  .section__title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .section {
    padding: var(--space-xl) 0;
  }

  .section__header {
    margin-bottom: var(--space-xl);
  }

  /* Contact card */
  .contact-card {
    padding: var(--space-xl);
  }

  /* Social section header */
  .social-section__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

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

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }

  /* Reduce blob sizes */
  .blob {
    filter: blur(60px);
    opacity: 0.04;
  }

  .blob:nth-child(1) { width: 250px; height: 250px; }
  .blob:nth-child(2) { width: 200px; height: 200px; }
  .blob:nth-child(3) { width: 220px; height: 220px; }

  /* Floating leaves — reduce visibility */
  .floating-leaf {
    opacity: 0.08;
    font-size: 1.2rem;
  }
}


/* ================================================================
   BREAKPOINT: 480px — Small Phones
   ================================================================ */

@media (max-width: 480px) {
  /* Gallery → single column */
  .gallery-grid {
    columns: 1;
  }

  /* Services → single column */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Stats → single column */
  .stats-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
  }

  /* Remove stat separators on mobile */
  .stat-item::after {
    display: none;
  }

  /* Footer → single column */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__col {
    text-align: center;
  }

  .footer__title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer__social {
    justify-content: center;
  }

  .footer__link:hover {
    padding-left: 0;
  }

  /* Social grid → single column */
  .social-grid {
    grid-template-columns: 1fr;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Section padding minimised */
  .section {
    padding: var(--space-lg) 0;
  }

  .section__header {
    margin-bottom: var(--space-lg);
  }

  /* Hero */
  .hero {
    padding-bottom: var(--space-xl);
  }

  .hero__badge {
    font-size: 0.65rem;
    letter-spacing: 2px;
    padding: 5px 16px;
  }

  .hero__title {
    font-size: clamp(1.8rem, 9vw, 2.5rem);
  }

  .hero__image .placeholder-img {
    aspect-ratio: 16 / 9;
    min-height: 180px;
  }

  /* Container tighter padding */
  .container {
    padding: 0 var(--space-sm);
  }

  /* Cards — reduce padding */
  .feature-card {
    padding: var(--space-lg);
  }

  .contact-card {
    padding: var(--space-lg);
  }

  .academy-card {
    padding: var(--space-lg) var(--space-md);
  }

  /* Button full width */
  .btn {
    width: 100%;
    padding: 12px 24px;
    font-size: 0.85rem;
  }

  /* Nav */
  .nav__links {
    width: 100%;
    right: -100%;
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
    padding-top: 80px;
    text-align: center;
  }

  .nav__logo img {
    height: 40px;
  }

  .nav.scrolled .nav__logo img {
    height: 35px;
  }

  /* Loading screen logo */
  .loading-screen__logo {
    width: 150px;
  }

  .loading-screen__text {
    font-size: 1rem;
  }

  /* Stat numbers */
  .stat-number {
    font-size: clamp(2rem, 10vw, 2.5rem);
  }

  /* Map placeholder */
  .map-placeholder {
    aspect-ratio: 4 / 3;
  }

  /* Bridal */
  .bridal__text h3 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .bridal__image .placeholder-img {
    aspect-ratio: 3 / 4;
  }

  /* Butterfly smaller */
  .butterfly__body {
    height: 14px;
    width: 2px;
  }

  .butterfly__wing--left,
  .butterfly__wing--right {
    width: 12px;
    height: 16px;
  }

  .butterfly__wing--left {
    left: -12px;
  }

  .butterfly__wing--right {
    right: -12px;
  }
}


/* ================================================================
   TOUCH DEVICES — Hide Custom Cursor
   ================================================================ */

@media (hover: none) and (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}


/* ================================================================
   TALL MOBILE DEVICES — Extra Hero Height
   ================================================================ */

@media (max-width: 768px) and (min-height: 700px) {
  .hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
  }
}


/* ================================================================
   LANDSCAPE PHONES
   ================================================================ */

@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--space-md));
    padding-bottom: var(--space-lg);
  }

  .loading-screen__logo {
    width: 120px;
  }

  .section {
    padding: var(--space-lg) 0;
  }
}


/* ================================================================
   HIGH RESOLUTION (4K+) — Scale up for large displays
   ================================================================ */

@media (min-width: 2000px) {
  .container {
    max-width: 1400px;
  }

  .hero__title {
    font-size: 5rem;
  }

  .section__title {
    font-size: 4rem;
  }

  .btn {
    padding: 18px 48px;
    font-size: 1.05rem;
  }

  .nav__link {
    font-size: 1rem;
  }
}
