/* =========================================================
   cmg305.com — responsive layer
   Desktop (1440px+) looks exactly like the original design.
   Below that, the page flexes; below 900px it switches to
   a phone layout. !important is needed because the page's
   original styles are written inline.
   ========================================================= */

html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
img { max-width: 100%; }

/* Page wrapper: fluid instead of a fixed 1440px canvas */
.page { width: 100% !important; max-width: 1440px; min-height: 0 !important; }

/* Hero background + wave stretch to whatever width the screen is */
.hero-bg, .hero-overlay { width: 100% !important; }
.hero-wave { width: 100% !important; }

/* Menu button: hidden on desktop */
.menu-btn { display: none; }

/* ---------------------------------------------------------
   Laptop / tablet (≤1200px)
   --------------------------------------------------------- */
@media (max-width: 1200px) {
  .site-header { padding: 0 40px !important; }
  .site-nav { gap: 24px !important; }
  :where(.page > section),
  .site-footer { padding-left: 40px !important; padding-right: 40px !important; }
  .brunch, .luna-hero { margin-left: 40px !important; margin-right: 40px !important; padding-left: 40px !important; padding-right: 40px !important; }
  .page { min-height: 0 !important; }

  .hero-copy { width: auto !important; flex: 1 1 0; min-width: 0; }
  .hero-luna { flex: 0 0 auto !important; }
  .reels-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; row-gap: 32px !important; }
  .cats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .great-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

/* ---------------------------------------------------------
   Tap-to-open menu (≤1100px, before the nav runs out of room)
   --------------------------------------------------------- */
@media (max-width: 1100px) {
  /* ---- Header + tap-to-open menu ---- */
  .site-header {
    height: 64px !important;
    padding: 0 16px !important;
    position: sticky; top: 0; z-index: 50;
    justify-content: space-between !important;
  }
  .brand { gap: 10px !important; min-width: 0; }
  .logo { font-size: 26px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .socials { display: none !important; }

  .menu-btn {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 44px; height: 44px; margin-left: auto; padding: 0;
    border: 0; border-radius: 999px; background: #FDEEE6; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #0E2A3A; transition: transform .2s, opacity .2s; }
  .site-header.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.open .menu-btn span:nth-child(2) { opacity: 0; }
  .site-header.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    display: none !important;
    position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column !important; align-items: stretch !important; gap: 0 !important;
    padding: 8px 16px 20px; background: #FFFFFF;
    border-bottom: 1px solid #F3D3C2; box-shadow: 0 12px 24px rgba(14,42,58,.08);
    font-size: 18px !important;
  }
  .site-header.open .site-nav { display: flex !important; }
  .site-nav a { white-space: nowrap; padding: 14px 4px; border-bottom: 1px solid #FDEEE6; }
  .site-nav a:last-child {
    margin-top: 12px; border-bottom: 0; justify-content: center;
    height: 52px !important; padding: 0 24px !important;
  }

}

/* ---------------------------------------------------------
   Phone (≤900px)
   --------------------------------------------------------- */
@media (max-width: 900px) {

  /* ---- Global spacing + type scale ---- */
  :where(.page > section),
  .site-footer { padding-left: 16px !important; padding-right: 16px !important; }
  :where(.page > section) { padding-top: 56px !important; padding-bottom: 56px !important; gap: 24px !important; }

  .page [style*="font-size: 96px"],
  .page [style*="font-size: 88px"] { font-size: 50px !important; line-height: 1.02 !important; }
  .page [style*="font-size: 72px"] { font-size: 42px !important; line-height: 1.05 !important; }
  .page [style*="font-size: 64px"] { font-size: 40px !important; line-height: 1.05 !important; }
  .page [style*="font-size: 60px"],
  .page [style*="font-size: 56px"] { font-size: 38px !important; line-height: 1.05 !important; }
  .page [style*="font-size: 52px"],
  .page [style*="font-size: 44px"] { font-size: 30px !important; line-height: 1.15 !important; }
  .page [style*="font-size: 40px"],
  .page [style*="font-size: 36px"] { font-size: 30px !important; }
  .page p[style*="font-size: 18px"],
  .page p[style*="font-size: 19px"],
  .page p[style*="font-size: 20px"] { font-size: 17px !important; line-height: 1.65 !important; }

  /* Buttons: comfy tap size, wrap if needed */
  .page a[style*="height: 56px"],
  .page a[style*="height: 60px"] { height: 52px !important; padding: 0 26px !important; font-size: 16px !important; }

  /* ---- Home: hero ---- */
  .hero {
    min-height: 0 !important;
    flex-direction: column !important;
    padding: 28px 16px 96px !important;
    gap: 28px !important;
  }
  .hero-overlay { background: linear-gradient(180deg, rgba(14,42,58,.55) 0%, rgba(14,42,58,.72) 55%, rgba(14,42,58,.6) 100%) !important; }
  .hero-copy { width: 100% !important; gap: 18px !important; padding-top: 0 !important; }
  .hero-photo { width: 168px !important; height: 168px !important; border-width: 4px !important; }
  .hero-title { font-size: 18px !important; letter-spacing: .1em !important; }
  .hero-text { font-size: 16px !important; line-height: 1.65 !important; color: #FFFFFF !important; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
  .hero-ctas { flex-wrap: wrap; gap: 12px !important; }
  .hero-ctas a { flex: 1 1 auto; justify-content: center; }

  .hero-luna { flex-direction: column !important; align-items: center !important; justify-content: flex-start !important; }
  .hero-luna-img { width: 190px !important; height: 280px !important; border-width: 5px !important; }
  .hero-badges { position: static !important; width: auto !important; margin-top: -26px; }
  .hero-wave { height: 56px !important; }

  /* ---- Home: stats 2×2 ---- */
  .stats { padding-top: 24px !important; padding-bottom: 8px !important; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px 16px !important; }
  .stats-grid [style*="font-size: 56px"] { font-size: 42px !important; }

  /* ---- Home: reels 2-up ---- */
  .reels-head { flex-direction: column !important; align-items: flex-start !important; gap: 14px; }
  .reels-head [style*="Great Vibes"] { font-size: 30px !important; }
  .reels-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px 12px !important; }
  .reels-grid > a { gap: 10px !important; }
  .reel-title { font-size: 19px !important; line-height: 1.15 !important; }
  .reel-views { left: 8px !important; bottom: 8px !important; padding: 6px 10px !important; font-size: 13px !important; }
  .reel-tag { left: 8px !important; top: 8px !important; font-size: 10px !important; padding: 4px 8px !important; }

  /* ---- Home: move story ---- */
  .move { grid-template-columns: 1fr !important; gap: 28px !important; }
  .move-img { height: 440px !important; border-radius: 22px !important; }

  /* ---- Home: brunch card ---- */
  .brunch {
    margin: 0 16px 56px !important;
    padding: 28px 20px !important;
    border-radius: 24px !important;
    grid-template-columns: 1fr !important; gap: 28px !important;
  }
  .brunch-imgs { gap: 12px !important; }
  .brunch-imgs img:first-child { height: 300px !important; }
  .brunch-imgs img:last-child  { height: 260px !important; }

  /* ---- Home: categories ---- */
  .cats { padding-top: 0 !important; }
  .cats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  .cats-grid > div { padding: 22px 18px !important; gap: 10px !important; }
  .cats-grid [style*="font-size: 20px"] { font-size: 17px !important; }
  .cats [style*="padding: 10px 20px"] { padding: 8px 14px !important; font-size: 14px !important; }

  /* ---- CTA band (home + Luna) ---- */
  .cta { flex-direction: column !important; align-items: flex-start !important; gap: 28px; }

  /* ---- Footer ---- */
  .site-footer { flex-direction: column !important; align-items: flex-start !important; gap: 16px; padding-top: 32px !important; padding-bottom: 32px !important; }
  .site-footer > div:nth-child(2) { flex-wrap: wrap; gap: 14px 22px !important; font-size: 15px; }

  /* ---- Rates ---- */
  .intro { padding-top: 40px !important; padding-bottom: 32px !important; }
  .pkg { padding-top: 0 !important; padding-bottom: 48px !important; }
  .pkg-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .pkg-grid > div { padding: 26px 22px !important; gap: 12px !important; }
  .pkg-grid [style*="font-size: 64px"],
  .pkg-grid [style*="font-size: 56px"] { font-size: 48px !important; }
  .addons { grid-template-columns: 1fr !important; gap: 32px !important; padding-top: 0 !important; }
  .includes { padding: 26px 22px !important; }
  .contact { grid-template-columns: 1fr !important; gap: 36px !important; }
  .form-row { grid-template-columns: 1fr !important; }
  .contact button { align-self: stretch !important; }

  /* ---- Luna ---- */
  .luna-hero {
    margin: 16px 16px 0 !important;
    padding: 28px 20px !important;
    border-radius: 24px !important;
    grid-template-columns: 1fr !important; gap: 28px !important;
  }
  .luna-hero > div > div:last-child { flex-wrap: wrap; }
  .luna-hero-img { height: 380px !important; }
  .luna-reels-grid {
    display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 14px !important; margin: 0 -16px; padding: 0 16px 6px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .luna-reels-grid::-webkit-scrollbar { display: none; }
  .luna-reels-grid > a { flex: 0 0 68%; scroll-snap-align: start; }
  .luna-reels-grid [style*="font-size: 28px"] { font-size: 22px !important; }
  .great { padding-top: 0 !important; }
  .great-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  .great-grid > div { padding: 20px 18px !important; }
}

/* Very small phones */
@media (max-width: 380px) {
  .cats-grid, .great-grid { grid-template-columns: 1fr !important; }
  .page [style*="font-size: 96px"],
  .page [style*="font-size: 88px"] { font-size: 44px !important; }
}

/* Contact card (rates page) */
@media (max-width: 900px) {
  .contact-card { padding: 28px 22px !important; border-radius: 22px !important; gap: 16px !important; }
  .contact-card a[href^="mailto:Christine.MiamiUGC@gmail.com?"] { align-self: stretch; height: 54px !important; }
  .contact-card > a:nth-child(2) { font-size: 21px !important; word-break: normal !important; overflow-wrap: anywhere; }
}
