/* ==========================================================================
   VALCERA INTERIORS - RESPONSIVE STYLES & MOBILE OPTIMIZATIONS
   Refined margins, paddings, and typography for mobile screens
   ========================================================================== */

/* --- Tablet / Medium screens (<= 1024px) --- */
@media screen and (max-width: 1024px) {
  :root {
    --nav-height: 80px;
  }

  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .craft-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

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

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

/* --- Mobile & Tablet screens (<= 991px) --- */
@media screen and (max-width: 991px) {
  :root {
    --nav-height: 72px;
  }

  /* Body & Container Adjustments */
  .container {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  /* Section Spacing on Mobile (Balanced, not overcrowded) */
  .section-pillars,
  .section-craft,
  .section-videos,
  .section-gallery-preview,
  .services-pillar-section {
    padding: 4rem 0;
  }

  .section-coverage {
    padding: 3.5rem 0;
  }

  .section-cta-banner {
    padding: 4rem 0;
  }

  .section-header {
    margin-bottom: 2.2rem;
  }

  .section-header h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0.8rem;
  }

  .section-header p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .eyebrow {
    font-size: 0.72rem;
    padding: 5px 12px;
    letter-spacing: 0.15em;
    margin-bottom: 0.8rem;
  }

  /* Navigation Bar & Header on Mobile / Tablet */
  .site-header {
    height: 72px;
    padding: 0;
  }

  .site-header.scrolled {
    height: 68px;
  }

  .brand-logo {
    height: 42px;
  }

  .brand-logo svg,
  .brand-logo img {
    height: 42px;
    max-width: 180px;
  }

  .header-actions {
    gap: 10px;
  }

  .btn-nav-call {
    display: none !important; /* Replaced by in-menu drawer button & mobile floating actions */
  }

  .lang-switcher {
    padding: 2px;
  }

  .lang-btn {
    font-size: 0.72rem;
    padding: 4px 8px;
  }

  .mobile-toggle {
    display: block !important;
    padding: 6px;
  }

  /* Mobile Navigation Drawer */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 86%;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    background: rgba(8, 16, 30, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5.5rem 2rem 2.5rem 2rem;
    gap: 1.4rem;
    box-shadow: -10px 0 35px rgba(0, 0, 0, 0.7);
    transition: right 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1005;
    border-left: 1px solid rgba(212, 175, 55, 0.25);
    overflow-y: auto;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-link {
    font-size: 1.12rem;
    letter-spacing: 0.08em;
    width: 100%;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 0;
  }

  /* Mobile Drawer Call Action Button */
  .mobile-menu-call-wrap {
    display: block !important;
    margin-top: 1.5rem;
    width: 100%;
  }

  .mobile-menu-call-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    font-size: 0.9rem;
  }

  /* Services Detail Page on Mobile & Tablet */
  .services-subgrid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .service-feature-card {
    padding: 1.6rem 1.25rem !important;
  }

  .service-icon-wrap {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 1rem !important;
    flex-shrink: 0 !important;
  }

  .service-icon-wrap svg {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    display: block !important;
    flex-shrink: 0 !important;
  }

  /* ==========================================================================
     HERO SECTION ON MOBILE (PERFECT TEXT FIT & MARGINS)
     ========================================================================== */
  .hero-cinematic {
    min-height: 100vh;
    min-height: 100svh;
    height: auto;
    padding: 95px 16px 45px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-content {
    margin-top: 10px;
    padding: 0 4px;
    width: 100%;
  }

  .hero-title {
    font-size: clamp(2rem, 7.8vw, 2.7rem);
    line-height: 1.16;
    margin-bottom: 1rem;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .hero-subtitle {
    font-size: 0.98rem;
    line-height: 1.55;
    margin: 0 auto 1.8rem auto;
    padding: 0 4px;
    max-width: 95%;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 330px;
    margin: 0 auto 2.2rem auto;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 14px 22px;
    font-size: 0.88rem;
  }

  .hero-trust-bar {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .trust-item {
    font-size: 0.82rem;
  }

  /* Hide scroll indicator on mobile to avoid UI overlap */
  .scroll-indicator {
    display: none;
  }

  /* Inner Hero Banner on Secondary Pages */
  .inner-hero {
    padding: 110px 16px 45px 16px;
  }

  .inner-hero h1 {
    font-size: 2.1rem;
    line-height: 1.2;
    margin-bottom: 0.8rem;
  }

  .inner-hero p {
    font-size: 1rem;
    line-height: 1.55;
  }

  /* ==========================================================================
     PILLARS SECTION CARDS ON MOBILE
     ========================================================================== */
  .pillar-media {
    height: 240px;
  }

  .pillar-body {
    padding: 1.6rem 1.25rem;
  }

  .pillar-body h3 {
    font-size: 1.45rem;
    line-height: 1.25;
    margin-bottom: 0.8rem;
  }

  .pillar-body p {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .pillar-features {
    margin: 1.2rem 0 1.6rem 0;
    gap: 10px;
  }

  .pillar-features li {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .pillar-body .btn {
    width: 100%;
    text-align: center;
  }

  /* ==========================================================================
     CRAFTSMANSHIP & SECRET DOOR REVEAL BOX ON MOBILE
     ========================================================================== */
  .craft-layout {
    gap: 2.5rem;
  }

  .reveal-box {
    aspect-ratio: auto;
    min-height: 380px;
    max-height: 480px;
  }

  .reveal-overlay-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 12px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .reveal-overlay-badge h5 {
    font-size: 1rem;
    line-height: 1.2;
  }

  .reveal-overlay-badge span {
    font-size: 0.78rem;
    display: block;
    margin-bottom: 2px;
  }

  .reveal-overlay-badge button {
    width: 100%;
    padding: 9px 14px !important;
    font-size: 0.82rem !important;
    text-align: center;
  }

  .craft-details h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .craft-details p {
    font-size: 0.96rem;
    line-height: 1.6;
    margin-bottom: 1rem;
  }

  .craft-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 1.8rem;
    padding-top: 1.4rem;
  }

  .stat-box h4 {
    font-size: 1.8rem;
  }

  .stat-box p {
    font-size: 0.75rem;
  }

  /* ==========================================================================
     VIDEOS & GALLERY ON MOBILE
     ========================================================================== */
  .videos-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .video-player-wrapper {
    aspect-ratio: 9 / 16;
    max-height: 420px;
  }

  .video-info {
    padding: 1.2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .gallery-filter-nav {
    gap: 8px;
    margin: 1.5rem 0 2.2rem 0;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }

  /* ==========================================================================
     COVERAGE PILLS ON MOBILE
     ========================================================================== */
  .coverage-pill-list {
    gap: 8px;
    margin-top: 1.4rem;
  }

  .coverage-pill {
    font-size: 0.82rem;
    padding: 7px 14px;
  }

  /* ==========================================================================
     CTA BANNER ON MOBILE
     ========================================================================== */
  .cta-banner-content h2 {
    font-size: 1.85rem;
    line-height: 1.2;
    margin-bottom: 0.8rem;
  }

  .cta-banner-content p {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 1.8rem;
  }

  .cta-banner-btns {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    gap: 12px;
  }

  .cta-banner-btns .btn {
    width: 100%;
  }

  /* ==========================================================================
     CONTACT PAGE & FORMS ON MOBILE
     ========================================================================== */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
  }

  .contact-card-box {
    padding: 1.6rem 1.25rem;
  }

  .form-group {
    margin-bottom: 1.2rem;
  }

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

  .form-control {
    padding: 12px 14px;
    font-size: 0.95rem;
  }

  /* ==========================================================================
     FOOTER ON MOBILE
     ========================================================================== */
  .site-footer {
    padding: 3.5rem 0 2rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
  }

  .footer-brand img {
    height: 44px;
  }

  .footer-heading {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .contact-line {
    font-size: 0.88rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.8rem;
    font-size: 0.8rem;
  }

  /* Floating WhatsApp Button on Mobile */
  .floating-actions {
    bottom: 18px;
    right: 18px;
  }

  .fab-btn {
    width: 52px;
    height: 52px;
  }

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

  .fab-tooltip {
    display: none;
  }
}

/* Extra small mobile screens (<= 380px) */
@media screen and (max-width: 380px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .craft-stats {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 12px;
  }
}
