/* ================================================
   BAIDHOWI MASSAGE — Responsive / Mobile Full
   ================================================ */

/* ---- Tablet ---- */
@media (max-width: 1024px) {
  :root {
    --text-5xl: 2.75rem;
    --text-4xl: 2.25rem;
    --text-3xl: 1.75rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero-visual {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero-card {
    flex: 1;
    min-width: 200px;
  }

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

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

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

  .price-card-featured {
    transform: none;
  }

  .price-card-featured:hover {
    transform: translateY(-4px);
  }

  .steps-grid {
    flex-wrap: wrap;
    gap: var(--space-xl);
  }

  .step-connector { display: none; }

  .step {
    flex: 0 0 calc(50% - var(--space-lg));
    max-width: none;
  }

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

  .area-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- Mobile Phone ---- */
@media (max-width: 768px) {
  :root {
    --header-h: 60px;
    --text-5xl: 2rem;
    --text-4xl: 1.875rem;
    --text-3xl: 1.5rem;
    --text-2xl: 1.25rem;
    --space-4xl: 3.5rem;
    --space-3xl: 2.5rem;
    --mobile-bar-h: 64px;
  }

  html {
    scroll-padding-top: calc(var(--header-h) + 8px);
  }

  body {
    padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom, 0px));
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
  }

  .container {
    padding: 0 1.125rem;
  }

  /* Header */
  .nav { display: none; }

  .header-actions .btn-whatsapp {
    display: none;
  }

  .menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
  }

  .logo-img {
    height: 34px;
  }

  /* Mobile Nav — Bottom Sheet */
  .mobile-nav-header,
  .mobile-nav-links,
  .mobile-nav-footer {
    display: flex;
  }

  .mobile-nav-links {
    flex-direction: column;
  }

  .mobile-nav-footer {
    flex-direction: column;
  }

  .mobile-nav {
    top: auto;
    bottom: -100%;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 88vh;
    padding: 0;
    border-radius: 20px 20px 0 0;
    transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .mobile-nav.active {
    right: 0;
    bottom: 0;
  }

  .mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
  }

  .mobile-nav-logo {
    height: 36px;
    width: auto;
  }

  .mobile-nav-close {
    position: static;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--color-bg-alt);
    color: var(--color-text);
    font-size: 1.125rem;
  }

  .mobile-nav-links {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0;
  }

  .mobile-nav-links a {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border-light);
    min-height: 56px;
    transition: background var(--transition);
  }

  .mobile-nav-links a:active {
    background: var(--color-primary-soft);
  }

  .mobile-nav-links a > i:first-child {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-glow);
    color: var(--color-primary);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  .mobile-nav-links a > span {
    flex: 1;
  }

  .mobile-nav-links a > i:last-child {
    color: var(--color-text-light);
    font-size: 0.75rem;
  }

  .mobile-nav-footer {
    padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
    background: var(--color-bg-alt);
  }

  .mobile-nav-footer .btn {
    min-height: 48px;
    font-size: 0.9375rem;
  }

  /* Mobile Bottom Bar */
  .mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: rgba(255, 251, 247, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--color-border);
    padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 20px rgba(68, 55, 45, 0.06);
  }

  .mbb-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 0.375rem 0.25rem;
    min-height: 52px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    transition: all var(--transition);
    border: none;
    background: none;
    cursor: pointer;
  }

  .mbb-item i {
    font-size: 1.25rem;
    line-height: 1;
  }

  .mbb-wa {
    color: var(--color-whatsapp);
  }

  .mbb-wa:active {
    background: rgba(37, 211, 102, 0.1);
  }

  .mbb-call {
    color: var(--color-primary);
  }

  .mbb-call:active {
    background: var(--color-primary-soft);
  }

  .mbb-menu:active {
    background: var(--color-bg-muted);
  }

  /* Hide floating WA on mobile — bottom bar replaces it */
  .fab-whatsapp {
    display: none;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: calc(var(--header-h) + 1.5rem) 0 2rem;
  }

  .hero-badge {
    font-size: 0.625rem;
    padding: 0.35rem 0.75rem;
    margin-bottom: 1rem;
  }

  .hero h1 {
    font-size: var(--text-5xl);
    margin-bottom: 1rem;
  }

  .hero-brand {
    display: block;
    font-size: 2.25rem;
    line-height: 1.1;
    margin-bottom: 0.125rem;
  }

  .hero-desc {
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
    max-width: 100%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.25rem;
  }

  .stat {
    min-width: 0;
    padding: 0.75rem 0.5rem;
    text-align: center;
  }

  .stat strong {
    font-size: 1.125rem;
  }

  .stat span {
    font-size: 0.5625rem;
    line-height: 1.3;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-buttons .btn {
    width: 100%;
    min-height: 48px;
    font-size: 0.9375rem;
  }

  .hero-visual {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-card {
    padding: 1rem 1.125rem;
  }

  .hero-card:hover {
    transform: none;
  }

  .hero-scroll { display: none; }

  /* Sections */
  .section {
    padding: var(--space-3xl) 0;
  }

  .section-header {
    margin-bottom: var(--space-2xl);
    text-align: left;
  }

  .section-header p {
    font-size: 0.9375rem;
  }

  /* Features — horizontal scroll cards */
  .features {
    padding: 1.5rem 0;
    overflow: hidden;
  }

  .features .container {
    padding-right: 0;
  }

  .features-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.75rem;
    padding: 0 1.125rem 0.5rem 0;
    scrollbar-width: none;
  }

  .features-grid::-webkit-scrollbar {
    display: none;
  }

  .feature-item {
    flex: 0 0 72%;
    scroll-snap-align: start;
    text-align: left;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.125rem;
    box-shadow: var(--shadow-sm);
  }

  .feature-icon {
    margin: 0 0 0.75rem;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-card {
    padding: 1.25rem;
  }

  .service-card:hover {
    transform: none;
  }

  /* Pricing */
  .pricing-grid {
    max-width: 100%;
    gap: 1rem;
  }

  .price-card {
    padding: 1.5rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  .price-card:hover,
  .price-card-featured:hover {
    transform: none;
  }

  .price-card .btn {
    min-height: 48px;
  }

  /* Steps */
  .steps-grid {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .step {
    flex: none;
    max-width: 100%;
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    gap: 0.125rem 1rem;
    align-items: start;
    text-align: left;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border-light);
  }

  .step:last-child {
    border-bottom: none;
  }

  .step-number {
    display: none;
  }

  .step-icon {
    grid-row: 1 / 3;
    margin: 0;
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }

  .step h4 {
    margin-bottom: 0;
    align-self: end;
  }

  .step p {
    margin: 0;
    align-self: start;
  }

  /* Testimonials — swipeable */
  .testimonials .container {
    padding-right: 0;
  }

  .testimonials-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.75rem;
    max-width: none;
    padding: 0 1.125rem 0.5rem 0;
    scrollbar-width: none;
  }

  .testimonials-grid::-webkit-scrollbar {
    display: none;
  }

  .testimonial {
    flex: 0 0 85%;
    scroll-snap-align: start;
    padding: 1.25rem;
  }

  /* Area */
  .area-grid {
    gap: var(--space-2xl);
  }

  .map-placeholder {
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
  }

  .map-placeholder > i {
    font-size: 2.25rem;
  }

  /* FAQ */
  .faq-item summary {
    padding: 1rem 1.125rem;
    font-size: 0.9375rem;
    min-height: 52px;
  }

  .faq-item p {
    padding: 0 1.125rem 1rem;
    font-size: 0.875rem;
  }

  /* CTA */
  .cta {
    padding: var(--space-2xl) 0;
  }

  .cta-box {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  .cta-box h2 {
    font-size: var(--text-2xl);
  }

  .cta-box p {
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
  }

  .cta-box .btn {
    width: 100%;
    min-height: 48px;
  }

  /* Contact */
  .contact-grid {
    gap: var(--space-2xl);
  }

  .social-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .social-ig-latest img {
    max-height: 280px;
  }

  .contact-form {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
  }

  .form-group input,
  .form-group select {
    font-size: 16px;
    min-height: 48px;
    padding: 0.875rem 1rem;
  }

  .contact-form .btn {
    min-height: 52px;
    font-size: 1rem;
  }

  .contact-list li {
    padding: 0.25rem 0;
  }

  /* Footer */
  .footer {
    padding-top: var(--space-2xl);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom, 0px));
  }

  /* Buttons global touch */
  .btn {
    min-height: 44px;
  }
}

/* ---- Small phones ---- */
@media (max-width: 380px) {
  :root {
    --text-5xl: 1.75rem;
  }

  .hero-brand {
    font-size: 2rem;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stats .stat:last-child {
    grid-column: 1 / -1;
  }

  .feature-item {
    flex: 0 0 85%;
  }

  .logo-img {
    height: 30px;
  }
}

/* ---- Landscape phone ---- */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding-top: calc(var(--header-h) + 1rem);
  }

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

  .mobile-nav {
    max-height: 95vh;
  }
}

/* ---- Desktop only — hide mobile components ---- */
@media (min-width: 769px) {
  .mobile-bottom-bar {
    display: none !important;
  }
}