/* ==========================================================================
   SARVORAA INDONESIAN RESTAURANT - RESPONSIVE STYLESHEET
   Breakpoints: 1200px, 992px, 768px, 576px, 400px
   ========================================================================== */

/* --- LARGE SCREENS (<= 1200px) --- */
@media (max-width: 1200px) {
  .hero-container {
    grid-template-columns: minmax(380px, 450px) 1fr;
    padding-left: clamp(32px, 4vw, 64px);
  }

  .hero-content {
    max-width: 420px;
    padding-right: 1.5rem;
  }

  .hero-title {
    font-size: clamp(2.4rem, 3.5vw, 3.5rem);
  }

  .orbit-stage {
    transform: scale(0.84);
    transform-origin: center center;
  }

  .hero-interior-card {
    height: 165px;
    max-width: 380px;
  }

  .about-grid,
  .why-top-grid {
    gap: 3rem;
  }

  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
  }
}

/* --- TABLETS & MEDIUM SCREENS (<= 992px) --- */
@media (max-width: 992px) {
  /* Navigation Header: Fixed luxury bar on mobile */
  .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    padding: 0.85rem 0 !important;
    background: rgba(246, 241, 232, 0.96) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    border-bottom: 1px solid rgba(23, 42, 31, 0.08) !important;
    z-index: 1000 !important;
  }

  .site-header.scrolled {
    padding: 0.75rem 0 !important;
  }

  body.nav-open {
    overflow: hidden !important;
  }

  .navbar {
    padding: 0 1.25rem !important;
    position: relative !important;
  }

  .brand-logo {
    position: relative !important;
    z-index: 1002 !important;
  }

  .menu-toggle {
    display: flex !important;
    z-index: 1002 !important;
  }

  /* Full Screen Luxury Mobile Navigation Overlay */
  .nav-links {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #f7f2ea !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 5.5rem 1.75rem 3rem !important;
    box-shadow: none !important;
    border: none !important;
    z-index: 1001 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-8px) !important;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease !important;
    overflow-y: auto !important;
    margin: 0 !important;
  }

  .nav-links.open {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
  }

  .nav-link {
    font-family: var(--font-serif) !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    color: var(--color-forest) !important;
    padding: 0.8rem 1rem !important;
    text-align: center !important;
    border-bottom: 1px solid rgba(23, 42, 31, 0.08) !important;
    width: 100% !important;
    max-width: 290px !important;
    transition: color var(--transition-fast) !important;
  }

  .nav-link::after {
    display: none !important;
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--color-terracotta) !important;
  }

  .header-cta .btn-reserve {
    display: none !important;
  }

  .nav-links .mobile-reserve-btn {
    display: inline-flex !important;
    margin-top: 2rem !important;
    width: 100% !important;
    max-width: 290px !important;
    justify-content: center !important;
    padding: 0.9rem 1.6rem !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    background: var(--color-terracotta) !important;
    color: #ffffff !important;
    border-radius: var(--radius-full) !important;
    box-shadow: 0 8px 24px rgba(179, 101, 52, 0.35) !important;
  }

  /* Hero Section: Single column with edge-to-edge full width orbit stage */
  .hero-section {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    padding: 0 !important;
    overflow: visible !important;
    display: block !important;
    background-color: var(--color-cream);
  }

  .hero-svg-bg-wrap {
    display: none !important;
  }

  .hero-edge-foliage {
    width: 38px;
    top: 90px;
    opacity: 0.6;
  }

  .hero-scroll-indicator {
    display: none !important;
  }

  .hero-container,
  .hero-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    padding: 85px 0 0 !important; /* Zero side padding so orbit section spans full width */
    gap: 0 !important;
    align-items: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  .hero-content {
    max-width: 520px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 20px !important;
    margin-top: 0 !important;
    box-sizing: border-box !important;
  }

  .hero-tag-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
  }

  .hero-mini-pill {
    font-size: 0.65rem;
    padding: 3px 10px;
    white-space: nowrap;
  }

  .hero-tag {
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    white-space: nowrap;
  }

  .hero-title {
    font-size: clamp(2.1rem, 6.8vw, 2.7rem);
    line-height: 1.12;
    margin-bottom: 0.75rem;
    text-align: center;
  }

  .hero-description {
    font-size: 0.9rem;
    line-height: 1.55;
    text-align: center;
    max-width: 400px;
    margin: 0 auto 1.25rem;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    width: 100%;
  }

  .btn-hero-cta {
    width: auto;
    min-width: 210px;
    justify-content: center;
  }

  .hero-rating-badge {
    align-items: center;
    text-align: center;
  }

  .hero-stats-card {
    max-width: 440px;
    width: 100%;
    margin: 0 auto 1.25rem;
    padding: 10px 18px;
    justify-content: space-around;
  }

  .stat-col {
    gap: 0.45rem;
  }

  .stat-icon-wrap {
    width: 30px;
    height: 30px;
  }

  .stat-icon {
    width: 15px;
    height: 15px;
  }

  .stat-number {
    font-size: 1.05rem;
  }

  .stat-label {
    font-size: 0.68rem;
  }

  .stat-divider {
    height: 24px;
  }

  .hero-interior-card {
    display: block !important;
    width: 100%;
    max-width: 420px;
    height: 145px;
    margin: 0 auto;
    border-radius: 16px;
  }

  /* Full-Width Seamless Emerald Orbit Showcase */
  .hero-orbit-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    background: radial-gradient(circle at 50% 30%, #20442f 0%, #15291c 65%, #0d1a12 100%) !important;
    border-radius: 40px 40px 0 0 !important;
    box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.25) !important;
    border-top: 2px solid rgba(212, 163, 89, 0.4) !important;
    padding: 2.25rem 0 2.5rem !important;
    margin-top: 1.75rem !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .orbit-script-note {
    position: relative;
    top: auto;
    right: auto;
    margin-bottom: 1.2rem;
    align-items: center;
    text-align: center;
  }

  .orbit-script-note p {
    font-size: 1.45rem;
    line-height: 1.15;
  }

  /* Centered Orbit Stage - Enlarged for maximum culinary impact */
  .orbit-stage {
    position: relative !important;
    width: 660px !important;
    height: 660px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transform: scale(0.72) !important;
    transform-origin: 330px 330px !important;
    margin: -85px 0 -85px 0 !important;
  }

  .hero-docked-interior,
  .hero-bottom-foliage,
  .corner-parchment,
  .floating-garnish {
    display: none !important;
  }

  /* About Section */
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3.5rem;
  }

  .about-text {
    max-width: 100%;
  }

  .about-visuals {
    max-width: 500px;
    margin: 0 auto;
  }

  .about-values-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .about-value-item {
    border-right: none;
    border-bottom: 1px solid rgba(246, 241, 232, 0.15);
    padding-bottom: 1.5rem;
    padding-right: 0;
  }

  .about-value-item:nth-child(3),
  .about-value-item:nth-child(4) {
    border-bottom: none;
    padding-bottom: 0;
  }

  /* Signature Menu */
  .signature-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .sig-card.side {
    display: none;
  }

  .sig-card.active {
    width: 100%;
    max-width: 390px;
  }

  /* Why Choose Us */
  .why-top-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3.5rem;
  }

  .why-content {
    max-width: 100%;
  }

  .why-visual-collage {
    max-width: 500px;
    margin: 0 auto;
  }

  .why-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .why-bottom-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .banner-quote-content .quote-mark {
    display: none;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 240px;
    grid-auto-flow: dense;
  }

  .gallery-item.large {
    grid-column: span 1;
  }

  /* Testimonials */
  .testi-grid {
    grid-template-columns: 1fr;
    max-width: 550px;
    margin: 0 auto;
  }

  /* Visit Us */
  .visit-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

/* --- SMARTPHONES & SMALL TABLETS (<= 768px) --- */
@media (max-width: 768px) {
  :root {
    --container-padding: 18px;
  }

  .section-title {
    font-size: 2.1rem;
    line-height: 1.18;
  }

  .section-desc {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .hero-container,
  .hero-grid {
    padding: 82px 0 0 !important;
  }

  .hero-title {
    font-size: clamp(2rem, 7.2vw, 2.5rem);
    margin-bottom: 0.75rem;
  }

  .hero-description {
    font-size: 0.88rem;
    max-width: 360px;
    margin-bottom: 1.2rem;
  }

  .hero-stats-card {
    max-width: 380px;
    padding: 8px 12px;
    margin-bottom: 1.15rem;
  }

  .stat-number {
    font-size: 0.95rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .hero-interior-card {
    max-width: 380px;
    height: 135px;
  }

  .orbit-stage {
    transform: scale(0.68) !important;
    transform-origin: 330px 330px !important;
    margin: -95px 0 -95px 0 !important;
  }

  .orbit-script-note,
  .orbit-script-bottom {
    display: none;
  }

  /* About Values */
  .about-wave-banner {
    padding: 2.5rem 1.5rem;
    border-radius: 28px 60px 28px 60px;
  }

  .about-values-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .about-value-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(246, 241, 232, 0.15);
    padding-bottom: 1.4rem;
    padding-right: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .about-value-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .about-chef-frame {
    height: 290px;
  }

  .about-interior-frame {
    width: 170px;
    height: 130px;
    bottom: -20px;
    right: -10px;
  }

  .about-quote-box {
    max-width: 190px;
    padding: 0.85rem 1rem;
  }

  /* Signature Menu */
  .signature-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .sig-card.side {
    display: none;
  }

  .sig-card.active {
    width: 100%;
    max-width: 390px;
  }

  .signature-badges-strip {
    flex-direction: column;
    gap: 1.5rem;
  }

  /* Menu Section (Explore Menu) */
  .menu-header-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }

  .menu-stamp-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 0.65rem 1.6rem;
    background: var(--color-cream-dark);
    border: 1.5px dashed rgba(179, 101, 52, 0.45);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 14px rgba(179, 101, 52, 0.08);
    width: auto;
    max-width: 95%;
  }

  .menu-stamp-badge .stamp-br,
  .menu-stamp-badge br {
    display: none;
  }

  .menu-stamp-badge svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .menu-stamp-badge p {
    font-size: clamp(0.72rem, 2.6vw, 0.8rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--color-forest);
  }

  .cat-group-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.85rem;
  }

  .cat-group-title {
    font-size: 1.45rem;
    line-height: 1.25;
  }

  .cat-group-title .cat-group-heading {
    display: inline-block;
    font-size: inherit;
    font-weight: inherit;
  }

  .cat-group-title span.cat-group-sub,
  .cat-group-title > span:not(.cat-group-heading) {
    display: block;
    font-size: 0.86rem;
    line-height: 1.45;
    margin-top: 0.25rem;
    font-weight: 400;
  }

  .view-all-link {
    align-self: flex-start;
    font-size: 0.86rem;
    margin-top: 0.2rem;
  }

  .menu-tabs {
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0.25rem 0.6rem;
    margin-bottom: 0.75rem;
  }

  .menu-tabs-scroll-track {
    display: block;
    margin: 0 auto 2.2rem;
  }

  .tab-btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.88rem;
  }

  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .menu-card {
    padding: 0.85rem;
    border-radius: 18px;
  }

  .menu-card-img-wrap {
    height: 135px;
    border-radius: 14px 14px 20px 14px;
    margin-bottom: 0.75rem;
  }

  .btn-wishlist {
    width: 30px;
    height: 30px;
    top: 8px;
    right: 8px;
  }

  .btn-wishlist svg {
    width: 14px;
    height: 14px;
  }

  .menu-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    margin-bottom: 0.35rem;
  }

  .menu-card-title {
    font-size: 0.98rem;
    line-height: 1.25;
  }

  .menu-card-price {
    font-size: 0.92rem;
    color: var(--color-terracotta);
    font-weight: 700;
  }

  .menu-card-desc {
    font-size: 0.78rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .menu-card-footer {
    margin-top: 0.6rem;
    padding-top: 0.6rem;
  }

  /* Why Choose Us */
  .why-top-grid {
    gap: 2.5rem;
  }

  .why-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
    margin-bottom: 3.5rem;
  }

  .why-circle-wrap {
    width: 105px;
    height: 105px;
    margin-bottom: 1rem;
  }

  .why-icon-badge {
    width: 36px;
    height: 36px;
    bottom: -2px;
    right: -2px;
  }

  .why-icon-badge svg {
    width: 16px;
    height: 16px;
  }

  .why-feature-title {
    font-size: 1.05rem;
    line-height: 1.3;
    margin-bottom: 0.35rem;
  }

  .why-feature-desc {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .why-bottom-banner {
    padding: 2.5rem 1.5rem;
    border-radius: 24px;
  }

  /* Testimonials */
  .testi-grid {
    grid-template-columns: 1fr;
    max-width: 550px;
    margin: 0 auto;
    gap: 1.5rem;
  }

  .testi-card {
    padding: 1.75rem 1.5rem;
    border-radius: 20px;
  }

  /* Visit Us */
  .visit-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .visit-info-card {
    padding: 2rem 1.5rem;
    border-radius: 24px;
  }

  .visit-map-card iframe {
    height: 280px;
    border-radius: 20px;
  }

  /* Big CTA */
  .big-cta-section {
    padding: 75px 0;
  }

  .big-cta-title {
    font-size: 2.3rem;
  }

  .big-cta-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .big-cta-actions .btn {
    width: 100%;
    max-width: 320px;
  }

  /* Modals: Accessible and fully scrollable on all mobile heights */
  .modal-backdrop {
    align-items: flex-start;
    padding: 2rem 1rem 3.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .reservation-modal {
    margin: auto;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    padding: 2rem 1.25rem;
    border-radius: 20px;
  }

  .form-row {
    grid-template-columns: 1fr !important;
    gap: 0;
  }

  .lightbox-modal {
    padding: 1rem;
  }

  .lightbox-img {
    max-width: 95vw;
    max-height: 75vh;
  }

  .lightbox-caption {
    font-size: 1rem;
    text-align: center;
  }

  /* Footer: Add bottom padding so floating buttons don't overlap links/copyright */
  .site-footer {
    padding: 70px 0 110px !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .footer-desc {
    margin: 1rem auto 1.5rem;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    padding-top: 1.75rem;
  }

  /* Floating Action Buttons */
  .floating-actions {
    bottom: 18px;
    right: 16px;
    gap: 0.6rem;
  }

  .float-btn {
    width: 44px;
    height: 44px;
  }
}

/* --- SMARTPHONES & COMPACT MOBILE (<= 576px) --- */
@media (max-width: 576px) {
  .why-features-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
    max-width: 320px;
    margin: 0 auto 3rem;
  }

  .why-circle-wrap {
    width: 120px;
    height: 120px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 170px;
    gap: 0.75rem;
  }

  .gallery-item.large {
    grid-column: span 2;
  }
}

/* --- ULTRA SMALL MOBILES (<= 440px) --- */
@media (max-width: 440px) {
  .brand-logo .logo-leaf {
    width: 28px;
    height: 28px;
  }

  .brand-name {
    font-size: 1.4rem;
  }

  .brand-tagline {
    font-size: 0.54rem;
  }

  .hero-container,
  .hero-grid {
    padding: 78px 0 0 !important;
  }

  .hero-title {
    font-size: 2.05rem;
  }

  .hero-description {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .btn-hero-cta {
    min-width: 190px;
    padding: 0.7rem 1.35rem;
    font-size: 0.88rem;
  }

  .hero-stats-card {
    max-width: 335px;
    padding: 7px 8px;
    margin-bottom: 1rem;
  }

  .stat-icon-wrap {
    width: 24px;
    height: 24px;
  }

  .stat-icon {
    width: 12px;
    height: 12px;
  }

  .stat-number {
    font-size: 0.85rem;
  }

  .stat-label {
    font-size: 0.58rem;
  }

  .hero-interior-card {
    max-width: 335px;
    height: 125px;
  }

  .hero-interior-neon {
    font-size: 1.25rem;
  }

  .orbit-stage {
    transform: scale(0.58) !important;
    transform-origin: 330px 330px !important;
    margin: -125px 0 -125px 0 !important;
  }

  .menu-stamp-badge {
    padding: 0.55rem 1.15rem;
    gap: 0.65rem;
    max-width: 100%;
  }

  .menu-stamp-badge svg {
    width: 17px;
    height: 17px;
  }

  .menu-stamp-badge p {
    font-size: 0.68rem;
    letter-spacing: 0.09em;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin: 0 auto;
  }

  .menu-card-img-wrap {
    height: 165px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 210px;
  }

  .gallery-item.large {
    grid-column: span 1;
  }

  .gallery-item.tall {
    grid-row: span 1;
  }
}

/* --- EXTRA SMALL MOBILES (<= 360px) --- */
@media (max-width: 360px) {
  .orbit-stage {
    transform: scale(0.52) !important;
    transform-origin: 330px 330px !important;
    margin: -145px 0 -145px 0 !important;
  }
}

/* --- LAPTOP SCREENS WITH COMPACT HEIGHT (<= 820px height) --- */
@media (max-height: 820px) and (min-width: 993px) {
  .hero-section {
    height: 100vh;
    min-height: 580px;
    padding: 0;
  }

  .hero-container {
    padding-top: 30px;
    padding-bottom: 10px;
  }

  .hero-content {
    /* margin-top: -110px; */
  }

  .hero-title {
    font-size: clamp(2rem, 3.2vw, 2.7rem);
    margin-bottom: 0.5rem;
  }

  .hero-description {
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 0.75rem;
  }

  .hero-actions {
    margin-bottom: 0.85rem;
  }

  .orbit-stage {
    transform: scale(0.78) translateY(-20px);
    transform-origin: center center;
  }

  .hero-docked-interior {
    width: clamp(320px, 30vw, 420px);
    height: clamp(150px, 20vh, 180px);
    left: 0;
    bottom: 0;
    border-radius: 0 36px 0 0;
  }

  .docked-neon-script {
    font-size: 1.45rem;
  }

  .hero-bottom-foliage {
    bottom: 0;
    left: 0;
    transform: scale(0.85);
    transform-origin: bottom left;
  }

  .hero-scroll-indicator {
    bottom: 8px;
  }
}
