/* ============================================================
   NAVROOP HOMES — RESPONSIVE STYLESHEET
   Breakpoints: 1024px (tablet), 768px (mobile-lg), 480px (mobile-sm)
   ============================================================ */

/* ── TABLET (≤1024px) ────────────────────────────────────── */
@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  .section-pad { padding: 70px 0; }

  /* Header — hamburger opens left slide-in sidebar */
  #site-header { z-index: 1002; }
  body.nav-sidebar-open { overflow: hidden; }
  body.nav-sidebar-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(26, 46, 90, 0.48);
    z-index: 1000;
    pointer-events: auto;
  }
  .hamburger { display: flex; position: relative; z-index: 1003; }
  .header-phone { display: none; }
  .main-nav {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 86vw);
    max-width: 320px;
    margin: 0;
    padding: 88px 20px 28px;
    background: var(--white);
    border: none;
    border-right: 1px solid var(--border);
    box-shadow: 8px 0 32px rgba(26, 46, 90, 0.18);
    z-index: 1001;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1), visibility 0.32s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: none;
  }
  .main-nav.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }
  .main-nav ul li a {
    display: block;
    padding: 14px 16px;
    font-size: 0.96rem;
    color: var(--dark);
    border-radius: 8px;
  }
  .main-nav ul li a:hover,
  .main-nav ul li a.active { color: var(--gold); background: rgba(201, 162, 39, 0.08); }
  .main-nav .has-dropdown .dropdown {
    display: block;
    position: static;
    box-shadow: none;
    border: none;
    background: var(--cream);
    border-radius: 6px;
    margin-top: 4px;
    padding: 4px 0;
  }

  /* Hero — stack: headline → collage (centered) → CTA → house image (centered below) */
  .hero-wrap { grid-template-columns: 1fr; justify-items: center; }
  .hero-left {
    padding: 32px 24px 32px 24px; min-height: unset;
    width: 100%; max-width: 560px; margin: 0 auto;
  }
  .hl-center-img {
    display: block;
    position: static;
    width: 100%;
    max-width: 440px;
    margin: 20px auto 0;
    right: auto;
    top: auto;
  }
  .hl-center-img img { border-radius: 20px; }
  .hero-right {
    min-height: unset; border-radius: 0;
    display: flex; flex-direction: column; align-items: center;
    width: 100%; max-width: 560px; margin: 16px auto 0;
    overflow: visible;
  }
  .hero-right-img {
    width: 100%; max-width: 440px; height: 320px; min-height: unset;
    margin: 0 auto; margin-top: 0;
    border-radius: 24px 24px 0 0;
    display: block;
  }
  .hero-right-card { position: relative; width: calc(100% - 48px); max-width: 400px; margin: -50px auto 0; left: auto; }
  .hl-hdg { font-size: clamp(1.8rem, 5vw, 2.8rem); }
  .hl-hdg-sub { font-size: clamp(1.8rem, 5vw, 2.8rem); margin-left: 8%; }
  .hl-cta { margin-top: 24px; margin-left: 0; width: 100%; gap: 18px; padding-right: 0; }
  .hl-worker-lg { flex: 0 0 38%; height: 190px; border-radius: 16px; }
  .hl-desc { font-size: 0.85rem; }
  .hl-cta-right { gap: 14px; }
  .hero-stats-bar .hstat { padding: 16px 10px; }
  .hero-stats-bar .hstat .num { font-size: 1.3rem; }

  /* Plans + Stats */
  .plst-cards { grid-template-columns: 1fr; max-width: 480px; }
  .plst-bottom { flex-direction: column; gap: 16px; min-height: auto; }
  .plst-exp-block { flex: none; padding: 36px 32px; }
  .plst-stats-block { grid-template-columns: 1fr auto 1fr auto 1fr; padding: 36px 28px; }
  .plst-stat-num { font-size: 2rem; }
  .plst-divider { width: 1px; height: 70px; margin: 0 20px; }

  /* Fan Slider */
  .psc-stage { height: 560px; }
  .psc-fan { width: 860px; }
  .psc-card { width: 290px; }
  .psc-ccard { height: 500px; }
  .psc-lcard, .psc-rcard { height: 450px; }
  .psc-deco { width: 180px; }

  /* Process Timeline */
  .pt-grid { grid-template-columns: 1fr; gap: 48px; }
  .pt-content h3 { margin-bottom: 16px; }
  .pt-line { height: 40px; }

  /* Expert Intro */
  .ei-grid { grid-template-columns: 1fr; gap: 40px; margin-bottom: 48px; }
  .ei-cards { grid-template-columns: 1fr 1fr; gap: 16px; }
  .ei-title { font-size: 1.9rem; }

  /* Services Showcase */
  .svc-showcase-panel.active { grid-template-columns: 1fr; gap: 32px; }
  .svc-img-ph { height: 300px; }
  .svc-showcase-title { font-size: 1.8rem; }

  /* Services */
  .tab-panel.active { grid-template-columns: 1fr; gap: 32px; }
  .tab-img-placeholder { height: 280px; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img-wrap { order: 1; }
  .about-content { order: 2; }
  .about-experience-badge { right: 0; bottom: 20px; }
  .about-img-main, .about-img-placeholder { height: 320px; }

  /* Process */
  .process-steps-grid { grid-template-columns: 1fr; gap: 0; }
  .ps-title { font-size: 1.25rem; }
  .ps-icon-circle { width: 72px; height: 72px; }
  .ps-icon-circle i { font-size: 1.3rem; }

  /* Portfolio */
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-item:nth-child(1) { grid-column: span 2; }

  /* Promise */
  .promise-cards { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }

  /* Stats */
  .stats-inner { grid-template-columns: repeat(3,1fr); }

  /* Testimonials */
  .testimonial-card { min-width: calc(50% - 10px); }

  /* Why Choose */
  .why-grid { grid-template-columns: 1fr 1fr; }

  /* Vision Mission */
  .vm-grid { grid-template-columns: 1fr; }
  .joint-venture-banner { flex-direction: column; padding: 40px 32px; text-align: center; }
  .jv-contact { min-width: unset; width: 100%; }

  /* CTA Banner */
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-buttons { justify-content: center; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  /* Footer */
  .footer-main { grid-template-columns: 1fr 1fr; gap: 40px; padding: 56px 0 40px; }
  .footer-brand { grid-column: span 2; }
}

/* ── MOBILE LARGE (≤768px) ───────────────────────────────── */
@media (max-width: 768px) {
  .section-pad { padding: 56px 0; }
  .section-title { font-size: 1.6rem; }

  /* Header */
  .header-inner { height: 62px; padding: 0 14px; }
  .site-logo img { height: 40px; width: auto; }
  .btn-header-cta { padding: 9px 16px; font-size: 0.8rem; }

  /* Hero */
  .hero-left { padding: 24px 16px 28px 16px; min-height: unset; max-width: 100%; }
  .hl-hdg { font-size: 1.55rem; }
  .hl-hdg-sub { font-size: 1.55rem; margin-left: 4%; }
  .hl-diamonds i { width: 15px; height: 15px; }
  .hl-center-img { max-width: 100%; margin: 16px auto 0; }
  .hl-cta { margin-top: 20px; gap: 12px; padding-right: 0; margin-left: 0; width: 100%; }
  .hl-worker-lg { flex: 0 0 38%; height: 150px; border-radius: 14px; }
  .hl-cta-right { gap: 10px; }
  .hl-desc { font-size: 0.8rem; }
  .btn-hero-pill { padding: 10px 20px; font-size: 0.82rem; }
  .hero-stats-bar { flex-wrap: wrap; }
  .hero-stats-bar .hstat { min-width: 33%; border-bottom: 1px solid var(--border); }
  .hero-right { min-height: unset; max-width: 100%; }
  .hero-right-img { height: 260px; border-radius: 20px 20px 0 0; }
  .hero-right-card { width: calc(100% - 32px); max-width: 380px; margin: -40px auto 0; }

  /* Plans + Stats mobile */
  .plst-cards { max-width: 100%; }
  .plst-bottom { grid-template-columns: 1fr; }
  .plst-stats-block { grid-template-columns: 1fr; gap: 20px; padding: 28px 20px; }
  .plst-divider { width: 100%; height: 1px; margin: 4px 0; }
  .plst-exp-block { padding: 28px 24px; }
  .plst-stat-num { font-size: 2.2rem; }

  /* Fan Slider mobile */
  .psc-stage { height: 460px; }
  .psc-fan { width: 100%; left: 0; transform: none; }
  .psc-card { width: 260px; }
  .psc-lcard, .psc-rcard { display: none; }
  .psc-ccard { height: 430px; left: 50%; transform: translateX(-50%); }
  .psc-deco { display: none; }
  .psc-title { font-size: 1.5rem; }

  /* Expert Intro */
  .ei-title { font-size: 1.5rem; }
  .ei-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ei-card { padding: 24px 18px 20px; }

  /* Services Showcase */
  .svc-showcase-title { font-size: 1.5rem; }
  .svc-tab-btn { padding: 10px 20px; font-size: 0.82rem; }
  .svc-img-ph { height: 260px; }
  .svc-showcase-heading { font-size: 1.3rem; }

  /* Services tabs */
  .services-tabs-nav { gap: 6px; }
  .tab-btn { padding: 10px 18px; font-size: 0.82rem; }
  .tab-content-left h3 { font-size: 1.4rem; }

  /* About */
  .about-mini-cards { grid-template-columns: 1fr; }
  .about-img-main, .about-img-placeholder { height: 260px; }
  .about-experience-badge { position: static; display: inline-flex; gap: 12px; align-items: center; margin-top: 16px; border-radius: var(--radius); }

  /* Process */
  .process-section { padding: 48px 0; }
  .ps-step { grid-template-columns: 72px 1fr; }
  .ps-num-circle { width: 36px; height: 36px; font-size: 0.78rem; }
  .ps-title { font-size: 1.05rem; padding-left: 14px; }
  .ps-icon-circle { width: 60px; height: 60px; }
  .ps-icon-circle i { font-size: 1.1rem; }
  .ps-desc { font-size: 0.85rem; padding-left: 14px; }
  .ps-line-top { height: 36px; }
  .ps-line-mid { height: 36px; }
  .ps-line-btm { height: 36px; }

  /* Portfolio */
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item:nth-child(1) { grid-column: span 1; }

  /* Stats */
  .stats-inner { grid-template-columns: 1fr; }
  .stat-block { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 40px 20px; }
  .stat-block:last-child { border-bottom: none; }

  /* Testimonials */
  .testimonial-card { min-width: 100%; margin-right: 0; }
  .testimonials-track { gap: 0; }

  /* Why Choose */
  .why-grid { grid-template-columns: 1fr; }

  /* Vision Mission */
  .vm-card-inner { padding: 32px 24px; }
  .joint-venture-banner { padding: 32px 20px; }
  .jv-text h3 { font-size: 1.3rem; }

  /* CTA */
  .cta-inner { padding: 48px 16px; }
  .cta-text h2 { font-size: 1.5rem; }
  .cta-buttons { flex-direction: column; }
  .cta-buttons .btn { width: 100%; justify-content: center; }

  /* Contact — landing #contact: grid/select must not overflow viewport */
  #contact .contact-grid,
  #contact .contact-form-wrap,
  #contact .contact-form,
  #contact .contact-form .form-row,
  #contact .contact-form .form-group {
    min-width: 0;
    max-width: 100%;
  }
  #contact .contact-form select,
  #contact .contact-form input,
  #contact .contact-form textarea {
    max-width: 100%;
  }
  #contact {
    overflow-x: hidden;
  }
  .contact-form .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-main { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* WhatsApp float */
  .whatsapp-float { bottom: 20px; right: 16px; width: 52px; height: 52px; }
}

/* ── MOBILE SMALL (≤480px) ───────────────────────────────── */
@media (max-width: 480px) {
  .section-pad { padding: 44px 0; }
  .container { padding: 0 14px; }
  .ei-cards { grid-template-columns: 1fr; }
  .ei-title { font-size: 1.35rem; }

  /* Header — small mobile */
  .header-inner { height: 58px; padding: 0 12px; }
  .site-logo img { height: 36px; }
  .btn-header-cta { display: none; }

  /* Hero — small mobile */
  .hero-left { padding: 20px 14px 24px 14px; }
  .hl-hdg { font-size: 1.2rem; }
  .hl-hdg-sub { font-size: 1.2rem; margin-left: 0; }
  .hl-center-img { margin: 12px auto 0; }
  .hl-cta { margin-top: 18px; gap: 10px; padding-right: 0; }
  .hl-worker-lg { flex: 0 0 36%; height: 130px; border-radius: 12px; }
  .hl-desc { font-size: 0.76rem; line-height: 1.6; }
  .hero-right-img { height: 200px; border-radius: 16px 16px 0 0; }
  .hero-right-card { padding: 16px 14px; max-width: calc(100% - 28px); }
  .hero-badge { font-size: 0.75rem; padding: 6px 14px; }

  .tab-btn { padding: 9px 14px; font-size: 0.78rem; }

  .promise-cards { max-width: 100%; }
  .promise-card { padding: 28px 20px; }

  .founder-card { flex-direction: column; text-align: center; }
  .founder-avatar { margin: 0 auto; }

  .why-card { flex-direction: column; }

  .section-label { font-size: 0.68rem; }
  .section-title { font-size: 1.4rem; }

  .btn { padding: 12px 24px; font-size: 0.85rem; }

  .footer-social a { width: 34px; height: 34px; font-size: 0.85rem; }
}

/* ── UTILITY: ANIMATE ON SCROLL ──────────────────────────── */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Services (#services-showcase): scroll classes stay visible without relying on JS IO
   (live/CDN/minifiers can delay main.js — opacity:0 looked like “broken CSS”). */
#services-showcase .svc-showcase-tabs.fade-up,
#services-showcase .svc-showcase-header.fade-up,
#services-showcase .svc-showcase-panel .fade-in,
#services-showcase .svc-showcase-panel .fade-up {
  opacity: 1;
  transform: none;
}

/* ── WHY CHOOSE US RESPONSIVE ──────────────────────────── */
@media (max-width: 960px) {
  .wcu-inner { grid-template-columns: 1fr; padding: 60px 40px; gap: 40px; }
  .wcu-left { padding-right: 0; }
  .wcu-desc { max-width: 100%; }
  .wcu-cards { grid-template-columns: repeat(3, 1fr); }
  /* Reset nth-child pattern for 3-col layout */
  .wcu-card:nth-child(1),
  .wcu-card:nth-child(4),
  .wcu-card:nth-child(5) { background: #ffffff; }
}
@media (max-width: 600px) {
  .wcu-inner { padding: 52px 24px; gap: 32px; }
  .wcu-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .wcu-card { padding: 22px 14px 18px; }
  .wcu-icon svg { width: 34px; height: 34px; }
}

/* ── BLOG SECTION RESPONSIVE ──────────────────────────── */
@media (max-width: 900px) {
  .blg-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .blg-section { padding: 60px 0 68px; }
  .blg-grid { grid-template-columns: 1fr; gap: 20px; }
  .blg-title { font-size: 1.5rem; margin-bottom: 36px; }
  .blg-img { height: 200px; }
}

/* ── TESTIMONIALS RESPONSIVE ──────────────────────────── */
@media (max-width: 900px) {
  .tns-grid { grid-template-columns: 1fr; }
  .tns-img-wrap { height: 300px; }
}
@media (max-width: 600px) {
  .tns-section { padding: 60px 0 56px; }
  .tns-title { font-size: 1.5rem; margin-bottom: 36px; }
  .tns-img-wrap { height: 240px; border-radius: 10px; }
  .tns-card { padding: 18px 18px 16px; }
  .tns-cta { margin-top: 36px; }
  .btn-tns-pill { padding: 13px 38px; font-size: 0.88rem; }
}

/* ── SERVICES PAGE hero ─────────────────────────────────── */
@media (max-width: 768px) {
  .service-hero { padding: calc(66px + 20px) 0 36px; }
  .service-hero-title { font-size: 1.75rem; }
  .service-hero-desc { font-size: 0.92rem; }
}

/* ── Blog grid ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nh-blog-grid { grid-template-columns: 1fr; }
  .nh-single-content { padding: 24px 20px; }
}

/* ── About page — team grid ─────────────────────────────── */
@media (max-width: 1024px) {
  .abt-team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .abt-team-grid { grid-template-columns: 1fr; }
  .abt-team-title { margin-bottom: 32px; }
  .abt-faq-title { font-size: 1.35rem; margin-bottom: 8px; }
  .abt-faq-list { margin-top: 28px; gap: 12px; }
  .abt-faq-trigger { padding: 14px 18px; font-size: 0.88rem; }
}

/* About — Professional Team slider: taller image area on tablet/phone (desktop ≥1024px uses main.css 300px) */
@media (max-width: 1023px) {
  #team-members.abt-team .abt-team-slider .abt-team-card .abt-team-img {
    height: 500px !important;
    min-height: 500px !important;
  }
  #team-members.abt-team .abt-team-slider .abt-team-card .abt-team-img img {
    object-fit: cover !important;
    object-position: center center !important;
  }
}
@media (max-width: 599px) {
  #team-members.abt-team .abt-team-slider .abt-team-card .abt-team-img {
    height: 560px !important;
    min-height: 560px !important;
  }
}

/* ── CONTACT PAGE (#page-contact only) ─────────────────── */
@media (max-width: 1024px) {
  #page-contact .pc-why-inner { grid-template-columns: 1fr; gap: 36px; }
  #page-contact .pc-why-grid { grid-template-columns: repeat(2, 1fr); }
  #page-contact .pc-info-row { grid-template-columns: 1fr; gap: 28px; }
  #page-contact .pc-touch-inner { grid-template-columns: 1fr; }
  #page-contact .pc-map-wrap { min-width: 0; max-width: 100%; }
  #page-contact .pc-map-embed { min-height: 320px; }
  #page-contact .pc-map-embed iframe { height: 320px; }
}
@media (max-width: 600px) {
  #page-contact {
    overflow-x: hidden;
  }
  #page-contact .pc-why { padding: 56px 0; }
  #page-contact .pc-why-grid { grid-template-columns: 1fr; }
  #page-contact .pc-submit-btn { max-width: 100%; }
  #page-contact .pc-form select,
  #page-contact .pc-form input,
  #page-contact .pc-form textarea {
    max-width: 100%;
  }
}

/* Service dropdown — landing + contact page: cap width only (native list follows select in most browsers) */
@media (max-width: 768px) {
  #contact .contact-form select#cf-service,
  #page-contact .pc-form select#pc-cf-service {
    width: 100%;
    max-width: min(100%, 19rem);
    min-width: 0;
    box-sizing: border-box;
  }
}
@media (max-width: 480px) {
  #contact .contact-form select#cf-service,
  #page-contact .pc-form select#pc-cf-service {
    max-width: min(100%, 15rem);
  }
}

.fade-in {
  opacity: 0; transition: opacity 0.7s ease;
}
.fade-in.visible { opacity: 1; }

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }
