/* Forever Frames India — mobile optimizations */
/* Brand font is loaded via <link> in page HTML (avoid @import — blocks mobile CSS). */
@media (max-width: 767px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    overflow-x: hidden;
    padding-bottom: env(safe-area-inset-bottom);
  }

  /* Navigation */
  .ff-nav > div {
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .ff-nav .font-display-lg {
    font-size: 1rem !important;
    max-width: 42vw;
    text-align: center;
  }

  .ff-nav .font-display-lg span {
    font-size: 7px !important;
    letter-spacing: 0.3em !important;
    margin-bottom: 0.25rem !important;
  }

  .ff-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    margin: -0.5rem -0.25rem -0.5rem 0;
    padding: 0.5rem;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  /* Mobile drawer */
  .ff-mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 200;
    pointer-events: none;
    visibility: hidden;
  }

  .ff-mobile-drawer.open {
    pointer-events: auto;
    visibility: visible;
  }

  .ff-mobile-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .ff-mobile-drawer.open .ff-mobile-drawer-backdrop {
    opacity: 1;
  }

  .ff-mobile-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(88vw, 320px);
    height: 100%;
    background: rgba(13, 13, 13, 0.98);
    border-left: 1px solid rgba(197, 160, 89, 0.25);
    padding: 5.5rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
  }

  .ff-mobile-drawer.open .ff-mobile-drawer-panel {
    transform: translateX(0);
  }

  .ff-mobile-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(197, 160, 89, 0.35);
    border-radius: 50%;
    background: transparent;
    color: #c5a059;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
  }

  .ff-mobile-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .ff-mobile-links a {
    display: block;
    padding: 1rem 0.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245, 242, 240, 0.75);
    text-decoration: none;
    border-bottom: 1px solid rgba(197, 160, 89, 0.12);
    min-height: 44px;
  }

  .ff-mobile-links a.active,
  .ff-mobile-links a:hover {
    color: #c5a059;
  }

  /* Hero */
  section.relative.h-screen,
  section.min-h-screen {
    min-height: 100dvh;
    min-height: -webkit-fill-available;
  }

  .ff-hero-content {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    padding-top: 5rem;
    padding-bottom: 6rem;
  }

  .ff-hero-content h1,
  .text-\[56px\] {
    font-size: clamp(2rem, 9vw, 2.75rem) !important;
    line-height: 1.15 !important;
    margin-bottom: 1.5rem !important;
  }

  .ff-hero-content > span {
    font-size: 0.65rem !important;
    letter-spacing: 0.25em !important;
    margin-bottom: 1rem !important;
  }

  .ff-hero-ctas {
    width: 100%;
    max-width: 20rem;
    gap: 1rem !important;
    margin-top: 0 !important;
  }

  .ff-hero-ctas a {
    width: 100%;
    padding: 1rem 1.25rem !important;
    font-size: 0.7rem !important;
  }

  .ff-dots {
    bottom: 6.5rem;
  }

  /* Page headers & display type */
  .text-display-lg,
  .font-display-lg.text-display-lg,
  h1.font-display-lg {
    font-size: clamp(2rem, 8vw, 2.75rem) !important;
    line-height: 1.15 !important;
  }

  .text-\[120px\],
  .md\:text-\[120px\] {
    font-size: clamp(2.25rem, 11vw, 3.25rem) !important;
  }

  .text-headline-md,
  .font-headline-md {
    font-size: clamp(1.5rem, 5.5vw, 2rem) !important;
  }

  .md\:text-\[52px\] {
    font-size: clamp(1.75rem, 7vw, 2.25rem) !important;
  }

  .text-\[48px\] {
    font-size: clamp(1.75rem, 7vw, 2.5rem) !important;
  }

  /* Section spacing */
  .py-stack-xl,
  .pb-stack-xl {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }

  .pt-stack-xl {
    padding-top: 5rem !important;
  }

  .pt-\[160px\],
  .pt-\[120px\] {
    padding-top: 6rem !important;
  }

  header.mt-20 {
    margin-top: 4.5rem !important;
  }

  main.px-margin-desktop,
  section.px-margin-desktop,
  .px-margin-desktop:not(.ff-nav *) {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  /* Grids & cards */
  .grid.gap-16 {
    gap: 2rem !important;
  }

  .glass-panel.p-10,
  .glass-panel.p-12,
  .glass-panel.p-16,
  .glass-panel.md\:p-16 {
    padding: 1.25rem !important;
  }

  .portfolio-filter {
    min-height: 44px;
    padding: 0.35rem 0.5rem;
  }

  header .flex.flex-wrap.justify-center.gap-6,
  header .flex.flex-wrap.justify-center.gap-8 {
    gap: 0.75rem !important;
  }

  /* Blog featured overlap */
  .lg\:-ml-20 {
    margin-left: 0 !important;
    margin-top: -1.5rem;
  }

  /* Inquiry layout */
  main.flex-col.md\:flex-row {
    gap: 1.5rem !important;
  }

  .absolute.bottom-10.left-10 {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    padding: 1rem !important;
  }

  /* Service tier cards */
  .grid.md\:grid-cols-2.lg\:grid-cols-3 {
    gap: 1.5rem !important;
  }

  /* Footer */
  footer {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  footer .font-display-lg {
    font-size: clamp(1.5rem, 6.5vw, 2.25rem) !important;
  }

  footer .grid.gap-10 {
    gap: 1.5rem !important;
  }

  /* Testimonials */
  #testimonial-carousel {
    min-height: 260px !important;
  }

  /* FAQ accordion */
  .accordion-item.p-6,
  .accordion-item.md\:p-8 {
    padding: 1.25rem !important;
  }

  .accordion-item h3 {
    font-size: 1.125rem !important;
    padding-right: 2rem;
  }

  /* CTA buttons site-wide */
  button.px-12,
  a.px-12,
  .px-14 {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  /* Prevent wide blur elements causing scroll */
  .blur-gradient {
    width: 100% !important;
    max-width: 100vw;
  }

  /* Hide decorative scroll label if cramped */
  section.relative.h-screen .absolute.bottom-12 {
    bottom: 1.5rem;
    transform: translateX(-50%) scale(0.85);
  }
}

.ff-brand {
  font-family: "Cormorant Garamond", "EB Garamond", serif !important;
  font-weight: 500;
  letter-spacing: 0.14em;
  font-style: italic;
}
