/* =============================================================
   MOBILE & TABLET RESPONSIVE FIX — Pixel Picture Solutions
   v2.0 — Comprehensive fix for all 73 pages
   
   ❌ ZERO desktop changes — every rule scoped in @media queries
   ✅ Covers: 960px / 768px / 600px / 400px / landscape / safe-area
   ============================================================= */


/* ═══════════════════════════════════════════════════════════════
   TABLET — max-width: 960px
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {

  /* ── Overflow prevention ── */
  html {
    overflow-x: hidden;
  }
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* ── Global media containment ── */
  img, video, iframe, embed, object, svg {
    max-width: 100%;
    height: auto;
  }
  iframe {
    height: auto;
    min-height: 280px;
  }
  .yt-playing iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
  }

  /* ── Page hero adjustments ── */
  .page-hero {
    padding: 130px 0 60px;
    min-height: auto;
  }
  .page-hero h1 {
    font-size: clamp(1.7rem, 5vw, 2.6rem);
  }

  /* ── Founder section (about.html) ── */
  .founder-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 640px;
  }
  .founder-img-col {
    position: relative;
    top: auto;
    max-width: 380px;
    margin: 0 auto;
  }

  /* ── CTA banner ── */
  .cta-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .cta-text {
    text-align: center;
  }
  .cta-text h3 {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
  }
}


/* ═══════════════════════════════════════════════════════════════
   SMALL TABLET — max-width: 768px
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Container ── */
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* ── Sections ── */
  section,
  .features,
  .services,
  .about,
  .gallery,
  .contact,
  .ba-section,
  .process-section,
  .faq-section,
  .content-sec,
  .founder-sec {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  /* ── Section headers ── */
  .section-header,
  .sec-header {
    margin-bottom: 40px;
  }
  .section-title,
  .sec-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }
  .section-subtitle,
  .sec-sub {
    font-size: 0.95rem;
  }

  /* ── INDEX: Hero ── */
  .hero {
    height: auto;
    min-height: 500px;
  }
  .hero-content {
    padding-left: 20px;
    padding-right: 20px;
    max-width: 100%;
  }
  .hero-content h1,
  .hero-title {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
  }
  .hero-desc {
    font-size: 0.95rem;
    max-width: 100%;
  }
  .hero-nav {
    left: 20px;
    bottom: 24px;
  }
  .hero-nav-btn {
    width: 44px;
    height: 44px;
  }

  /* ── Page hero (inner pages) ── */
  .page-hero {
    padding: 120px 0 50px;
    min-height: auto;
  }
  .page-hero h1 {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }
  .hero-badges {
    gap: 8px;
  }
  .hero-badge {
    font-size: 0.75rem;
    padding: 5px 12px;
  }
  .hero-actions {
    gap: 10px;
  }
  .hero-actions .btn {
    padding: 10px 22px;
    font-size: 0.88rem;
  }

  /* ── INDEX: About section ── */
  .about-img-main img {
    height: auto;
    max-height: 340px;
  }
  .about-floating-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 16px;
    display: inline-flex;
  }
  .about-visual {
    text-align: center;
  }
  .about-text .section-title {
    text-align: center;
  }
  .about-text .section-label {
    justify-content: center;
  }
  .about-stats .stat-number {
    font-size: 1.5rem;
  }

  /* ── INDEX: Gallery slider ── */
  .gallery-slider .swiper-slide {
    width: 260px;
    height: 220px;
  }
  .gallery-overlay {
    opacity: 1;
  }

  /* ── INDEX: Map ── */
  .map-section iframe {
    height: 300px;
  }

  /* ── Service pages: stats bar ── */
  .stats-bar {
    padding: 16px 0;
  }
  .stat-num {
    font-size: 1.3rem;
  }
  .stat-label {
    font-size: 0.68rem;
    letter-spacing: 1px;
  }

  /* ── Service pages: sidebar ── */
  .sidebar {
    position: static;
  }
  .sb-card-header {
    padding: 14px 18px;
    font-size: 0.88rem;
  }
  .sb-cta-body {
    padding: 20px 16px;
  }

  /* ── Service pages: BA slider ── */
  .ba-handle-circle {
    width: 38px;
    height: 38px;
  }
  .content-ba-header {
    padding: 14px 18px;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* ── Service pages: FAQ ── */
  .faq-q {
    padding: 16px 18px;
    font-size: 0.88rem;
  }
  .faq-a {
    font-size: 0.88rem;
  }
  .faq-item.active .faq-a {
    padding-left: 18px;
    padding-right: 18px;
  }

  /* ── Service pages: process ── */
  .process-card {
    padding: 28px 18px;
  }
  .process-num {
    font-size: 2.4rem;
  }
  .process-icon {
    width: 50px;
    height: 50px;
  }

  /* ── Contact page: form ── */
  .contact-form {
    padding: 28px 22px;
  }
  .contact-form-wrap {
    padding: 28px 22px;
  }
  .contact-info-card {
    padding: 20px;
  }

  /* ── Pricing page ── */
  .price-header {
    padding: 24px 20px 16px;
  }
  .price-body {
    padding: 20px;
  }
  .price-footer {
    padding: 14px 20px 22px;
  }
  .price-amount .amount {
    font-size: 2.2rem;
  }
  .cat-pricing {
    margin-top: 48px;
  }
  .cat-pricing h3 {
    font-size: 1.05rem;
  }

  /* ── CTA banner ── */
  .cta-banner {
    padding: 56px 0;
  }

  /* ── Footer ── */
  .footer {
    padding: 48px 0 0;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  /* ── Buttons ── */
  .btn {
    padding: 12px 26px;
    font-size: 0.9rem;
  }
  .btn-sm,
  .btn.btn-sm {
    padding: 8px 18px;
    font-size: 0.82rem;
  }

  /* ── Fixed elements ── */
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    left: 20px;
    font-size: 1.4rem;
  }
  .back-to-top {
    width: 42px;
    height: 42px;
    bottom: 20px;
    right: 20px;
  }

  /* ── Inline grid overrides ── */
  [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  [style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr 1fr !important;
  }
  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* ── reCAPTCHA ── */
  .recaptcha-box {
    transform: scale(0.9);
    transform-origin: left top;
  }
  .recaptcha-themed {
    overflow: hidden;
  }
}


/* ═══════════════════════════════════════════════════════════════
   PHONE — max-width: 600px
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {

  /* ── Global overflow ── */
  html, body {
    overflow-x: hidden;
  }

  /* ── Container ── */
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* ── Sections ── */
  section,
  .features,
  .services,
  .about,
  .gallery,
  .contact,
  .ba-section,
  .process-section,
  .faq-section,
  .content-sec,
  .founder-sec {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  /* ── Section headers ── */
  .section-header,
  .sec-header {
    margin-bottom: 32px;
  }
  .section-title,
  .sec-title {
    font-size: clamp(1.3rem, 5vw, 1.7rem);
  }
  .section-label,
  .sec-label {
    font-size: 0.72rem;
    letter-spacing: 1.5px;
  }
  .section-subtitle,
  .sec-sub {
    font-size: 0.9rem;
  }

  /* ── INDEX: Hero ── */
  .hero {
    min-height: 440px;
  }
  .hero-content {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 110px;
    padding-bottom: 70px;
  }
  .hero-content h1,
  .hero-title {
    font-size: 1.55rem;
    line-height: 1.2;
  }
  .hero-desc {
    font-size: 0.9rem;
    margin-bottom: 24px;
  }
  .hero-badge {
    font-size: 0.72rem;
    padding: 4px 12px;
  }
  .hero-badge i {
    font-size: 0.4rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 12px 20px;
  }
  .hero-nav {
    left: 16px;
    bottom: 14px;
    gap: 10px;
  }
  .hero-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }
  .hero-counter {
    font-size: 0.78rem;
  }
  .hero-counter .current {
    font-size: 1.1rem;
  }

  /* ── Page hero (inner pages) ── */
  .page-hero {
    padding: 100px 0 36px;
    min-height: auto;
  }
  .page-hero h1 {
    font-size: 1.4rem;
    line-height: 1.25;
  }
  .page-hero .hero-desc {
    font-size: 0.88rem;
  }
  .breadcrumb {
    font-size: 0.78rem;
    margin-bottom: 10px;
  }
  .hero-badges {
    gap: 6px;
    margin-bottom: 20px;
  }
  .hero-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 11px 20px;
    font-size: 0.85rem;
  }

  /* ── INDEX: Features ── */
  .feature-card {
    padding: 20px 14px;
  }
  .feature-icon {
    width: 50px;
    height: 50px;
    font-size: 1.1rem;
    margin-bottom: 14px;
  }
  .feature-card h4 {
    font-size: 0.88rem;
  }
  .feature-card p {
    font-size: 0.78rem;
    line-height: 1.55;
  }

  /* ── INDEX: Services ── */
  .service-img {
    height: 180px;
  }
  .service-body {
    padding: 20px;
  }
  .service-body h3 {
    font-size: 1.05rem;
  }
  .service-body p {
    font-size: 0.85rem;
  }
  .service-number {
    font-size: 1.8rem;
  }

  /* ── INDEX: About ── */
  .about-img-main img {
    height: auto;
    max-height: 280px;
  }
  .about-floating-card .number {
    font-size: 2rem;
  }
  .about-stats {
    gap: 8px;
  }
  .stat-item {
    padding: 14px 8px;
  }
  .about-stats .stat-number,
  .stat-number {
    font-size: 1.25rem;
  }
  .about-stats .stat-label,
  .stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.5px;
  }
  .about-desc {
    font-size: 0.92rem;
  }

  /* ── INDEX: Gallery slider ── */
  .gallery-slider .swiper-slide {
    width: 220px;
    height: 180px;
  }

  /* ── INDEX: Contact section ── */
  .contact-info h3 {
    font-size: 1.3rem;
  }
  .contact-detail {
    gap: 12px;
    margin-bottom: 18px;
  }
  .contact-detail-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
  }
  .contact-form-wrap {
    padding: 24px 16px;
    border-radius: 16px;
  }

  /* ── INDEX: CTA ── */
  .cta-banner {
    padding: 44px 0;
  }
  .cta-text h3 {
    font-size: 1.15rem;
  }
  .cta-text p {
    font-size: 0.88rem;
  }

  /* ── INDEX: Map ── */
  .map-section iframe {
    height: 260px;
  }

  /* ── Service pages: stats bar ── */
  .stats-bar {
    padding: 14px 0;
  }
  .stat-item {
    padding: 12px 6px;
  }
  .stat-num {
    font-size: 1.15rem;
  }
  .stat-label {
    font-size: 0.6rem;
    letter-spacing: 0.8px;
  }

  /* ── Service pages: main content ── */
  .page-body {
    padding: 48px 0;
  }
  .mc h2 {
    font-size: 1.25rem;
  }
  .mc h3 {
    font-size: 1.1rem;
  }
  .mc p,
  .mc li {
    font-size: 0.9rem;
  }
  .lead {
    font-size: 0.95rem;
  }

  /* ── Service pages: check items ── */
  .check-item {
    padding: 10px 12px;
    font-size: 0.84rem;
    gap: 8px;
  }
  .check-item i {
    min-width: 12px;
    font-size: 0.75rem;
  }

  /* ── Service pages: BA slider ── */
  .content-ba {
    margin: 24px 0;
  }
  .content-ba-header {
    padding: 12px 16px;
  }
  .content-ba-header h4 {
    font-size: 0.9rem;
  }
  .ba-handle-circle {
    width: 34px;
    height: 34px;
    font-size: 0.7rem;
  }
  .ba-tag {
    font-size: 0.6rem;
    padding: 3px 10px;
    top: 10px;
  }
  .ba-tag.before { left: 10px; }
  .ba-tag.after  { right: 10px; }
  .ba-card-info {
    padding: 14px 16px;
  }
  .ba-card-info h4 {
    font-size: 0.92rem;
  }
  .ba-card-info p {
    font-size: 0.82rem;
  }

  /* ── Service pages: process ── */
  .process-card {
    padding: 24px 16px;
  }
  .process-num {
    font-size: 2rem;
    margin-bottom: 12px;
  }
  .process-icon {
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }
  .process-card h4 {
    font-size: 0.88rem;
  }
  .process-card p {
    font-size: 0.8rem;
  }

  /* ── Service pages: FAQ ── */
  .faq-q {
    padding: 14px 16px;
    font-size: 0.85rem;
    gap: 10px;
  }
  .faq-q i {
    font-size: 0.65rem;
  }
  .faq-a {
    font-size: 0.85rem;
    line-height: 1.75;
  }
  .faq-item.active .faq-a {
    padding: 0 16px 16px;
  }

  /* ── Service pages: sidebar ── */
  .sb-card-header {
    padding: 12px 16px;
    font-size: 0.85rem;
  }
  .sb-cta-body {
    padding: 18px 14px;
  }
  .sb-cta-body h5 {
    font-size: 0.92rem;
  }
  .sb-cta-body p {
    font-size: 0.82rem;
  }
  .sb-form-body {
    padding: 16px;
  }
  .sb-nav a {
    padding: 10px 16px;
    font-size: 0.85rem;
  }

  /* ── Service pages: content images ── */
  .content-img {
    margin: 20px 0;
    border-radius: 12px;
  }
  .img-cap {
    font-size: 0.78rem;
    padding: 8px 12px;
  }

  /* ── Contact page ── */
  .contact-form {
    padding: 24px 16px;
  }
  .contact-info-card {
    padding: 18px;
  }
  .contact-info-card h4 {
    font-size: 0.88rem;
  }
  .contact-info-card p {
    font-size: 0.82rem;
  }
  .fg input,
  .fg textarea,
  .fg select {
    padding: 11px 14px;
    font-size: 0.88rem;
  }
  .fg label {
    font-size: 0.78rem;
  }
  .fg textarea {
    min-height: 100px;
  }

  /* ── Pricing page ── */
  .pricing-grid {
    gap: 18px;
  }
  .price-header {
    padding: 22px 18px 14px;
  }
  .price-header h3 {
    font-size: 1rem;
  }
  .price-icon {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }
  .price-amount .amount {
    font-size: 2rem;
  }
  .price-body {
    padding: 18px;
  }
  .price-feature {
    font-size: 0.82rem;
    padding: 7px 0;
  }
  .price-footer {
    padding: 12px 18px 20px;
  }
  .price-table th,
  .price-table td {
    padding: 10px 12px;
    font-size: 0.78rem;
  }
  .cat-pricing {
    margin-top: 40px;
  }
  .cat-pricing h3 {
    font-size: 0.95rem;
  }
  .vol-card {
    padding: 16px;
  }
  .vol-discount {
    font-size: 1.5rem;
  }
  .vol-range {
    font-size: 0.78rem;
  }

  /* ── Table scroll ── */
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .price-table {
    min-width: 480px;
  }

  /* ── Gallery grid (utility pages) ── */
  .gallery-item {
    aspect-ratio: 4/3;
  }

  /* ── Footer ── */
  .footer {
    padding: 40px 0 0;
  }
  .footer-grid {
    gap: 24px;
    padding-bottom: 28px;
  }
  .footer-brand,
  .footer-col {
    text-align: center;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-col ul li {
    margin-bottom: 8px;
  }
  .footer-bottom {
    padding: 18px 0;
    gap: 4px;
  }
  .footer-bottom small {
    font-size: 0.75rem;
  }

  /* ── Buttons ── */
  .btn {
    padding: 11px 22px;
    font-size: 0.88rem;
  }
  .btn-sm,
  .btn.btn-sm {
    padding: 7px 16px;
    font-size: 0.8rem;
  }

  /* ── Fixed elements ── */
  .whatsapp-float {
    width: 46px;
    height: 46px;
    bottom: 16px;
    left: 16px;
    font-size: 1.3rem;
  }
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 16px;
    right: 16px;
    font-size: 0.85rem;
  }

  /* ── Inline grid overrides ── */
  [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
  }
  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr 1fr !important;
  }
  [style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:repeat(2"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns: repeat(2"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns:1fr 1fr;"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns: 1fr 1fr;"] {
    grid-template-columns: 1fr !important;
  }

  /* ── reCAPTCHA ── */
  .recaptcha-box {
    transform: scale(0.85);
    transform-origin: left top;
  }
  .recaptcha-themed {
    overflow: hidden;
  }

  /* ── Word break safety ── */
  h1, h2, h3, h4, h5, h6,
  p, a, li, td, th, label, span {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  a[href*="mailto"],
  a[href*="tel"] {
    word-break: break-all;
  }

  /* ── Tables: scrollable ── */
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  /* ── About page: founder section ── */
  .founder-heading {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }
  .founder-subheading {
    font-size: 0.95rem;
  }
  .founder-quote {
    padding: 18px 20px;
    font-size: 0.88rem;
  }
  .founder-signature {
    font-size: 0.82rem;
    margin-left: 20px;
  }
  .founder-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .founder-cta-row .btn {
    width: 100%;
    justify-content: center;
  }
  .founder-tl-item {
    gap: 12px;
  }
  .founder-role-card {
    padding: 12px 14px;
    gap: 12px;
  }
  .founder-role-icon {
    width: 36px;
    height: 36px;
  }
  .founder-role-title {
    font-size: 0.82rem;
  }
  .founder-role-desc {
    font-size: 0.7rem;
  }
  .founder-exp-badge {
    width: 72px;
    height: 72px;
    top: -10px;
    right: -10px;
  }
  .founder-exp-num {
    font-size: 1.2rem;
  }

  /* ── Portfolio page: content ── */
  .content-hero-img {
    border-radius: 12px;
  }
  .page-hero-desc {
    font-size: 0.9rem;
  }
  .main-content h2 {
    font-size: 1.2rem;
  }
  .main-content h3 {
    font-size: 1.05rem;
  }
  .main-content p {
    font-size: 0.9rem;
  }
}


/* ═══════════════════════════════════════════════════════════════
   SMALL PHONE — max-width: 400px
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 400px) {

  /* ── Container ── */
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  /* ── Hero ── */
  .hero-content h1,
  .hero-title {
    font-size: 1.3rem;
  }
  .hero-desc {
    font-size: 0.85rem;
  }

  /* ── Inner page hero ── */
  .page-hero {
    padding: 90px 0 30px;
  }
  .page-hero h1 {
    font-size: 1.2rem;
  }
  .page-hero .hero-desc {
    font-size: 0.82rem;
  }
  .hero-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
  }

  /* ── Stats ── */
  .stat-num,
  .stat-number,
  .about-stats .stat-number {
    font-size: 1.05rem;
  }
  .stat-label,
  .about-stats .stat-label {
    font-size: 0.58rem;
  }
  .stat-item {
    padding: 10px 4px;
  }

  /* ── Gallery slider ── */
  .gallery-slider .swiper-slide {
    width: 190px;
    height: 150px;
  }

  /* ── Nav full width ── */
  .nav-links {
    width: 100% !important;
    padding: 28px 20px !important;
  }

  /* ── Forms ── */
  .contact-form-wrap,
  .contact-form {
    padding: 20px 12px;
  }
  .fg input,
  .fg textarea,
  .fg select {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  /* ── reCAPTCHA ── */
  .recaptcha-box {
    transform: scale(0.77);
    transform-origin: left top;
  }

  /* ── Pricing ── */
  .price-amount .amount {
    font-size: 1.8rem;
  }
  .price-header h3 {
    font-size: 0.92rem;
  }
  .price-feature {
    font-size: 0.78rem;
  }
  .vol-discount {
    font-size: 1.3rem;
  }

  /* ── BA slider ── */
  .ba-handle-circle {
    width: 30px;
    height: 30px;
    font-size: 0.6rem;
  }
  .ba-tag {
    font-size: 0.55rem;
    padding: 2px 7px;
  }

  /* ── Process ── */
  .process-num {
    font-size: 1.8rem;
  }
  .process-icon {
    width: 42px;
    height: 42px;
    font-size: 0.9rem;
  }

  /* ── Section titles ── */
  .section-title,
  .sec-title {
    font-size: 1.2rem;
  }
  .cta-text h3 {
    font-size: 1.05rem;
  }
  .contact-info h3 {
    font-size: 1.15rem;
  }

  /* ── Footer ── */
  .footer-col h5 {
    font-size: 0.92rem;
    margin-bottom: 14px;
  }
  .footer-col ul li a {
    font-size: 0.82rem;
  }
  .footer-brand p {
    font-size: 0.84rem;
  }

  /* ── Founder section ── */
  .founder-roles {
    grid-template-columns: 1fr;
  }
  .founder-img-col {
    max-width: 300px;
  }
  .founder-heading {
    font-size: 1.2rem;
  }
}


/* ═══════════════════════════════════════════════════════════════
   LANDSCAPE PHONE — short viewport
   ═══════════════════════════════════════════════════════════════ */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    height: auto;
  }
  .hero-content {
    padding-top: 80px;
    padding-bottom: 40px;
  }
  .page-hero {
    padding: 80px 0 30px;
    min-height: auto;
  }
  .nav-links {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    justify-content: flex-start !important;
    overflow-y: auto !important;
  }
  .nav-links a {
    padding: 8px 16px !important;
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   SAFE AREA INSETS — iPhone notch / home bar
   ═══════════════════════════════════════════════════════════════ */
@supports (padding: env(safe-area-inset-top)) {
  @media (max-width: 960px) {
    .navbar {
      padding-top: max(10px, env(safe-area-inset-top));
    }
    .footer-bottom {
      padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
    .whatsapp-float {
      left: max(16px, env(safe-area-inset-left));
      bottom: max(16px, env(safe-area-inset-bottom));
    }
    .back-to-top {
      right: max(16px, env(safe-area-inset-right));
      bottom: max(16px, env(safe-area-inset-bottom));
    }
  }
}


/* ═══════════════════════════════════════════════════════════════
   HERO SECTIONS + VOLUME DISCOUNTS — mobile alignment corrections
   Previous mobile version style: centered content + buttons
   ═══════════════════════════════════════════════════════════════ */

/* ── Index Slider Hero: center content + buttons on mobile ── */
@media (max-width: 768px) {
  .hero-slide {
    justify-content: center;
  }
  .hero-content {
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-badge {
    align-self: center;
  }
  .hero-title {
    text-align: center;
  }
  .hero-desc {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  .hero-actions .btn {
    text-align: center;
    justify-content: center;
  }
  .hero-nav {
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hero-content {
    padding-left: 16px;
    padding-right: 16px;
    text-align: center;
    align-items: center;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .hero-content {
    padding-left: 14px;
    padding-right: 14px;
  }
  .hero-actions .btn {
    max-width: 100%;
  }
}

/* ── Page Hero (all inner pages): center content + buttons on mobile ── */
@media (max-width: 768px) {
  .page-hero-content {
    text-align: center;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .page-hero h1 {
    text-align: center;
  }
  .page-hero .hero-desc {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .breadcrumb {
    justify-content: center;
  }
  .hero-badges {
    justify-content: center;
  }
  .hero-actions {
    justify-content: center;
    align-items: center;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .page-hero-content {
    text-align: center;
    align-items: center;
  }
  .page-hero .hero-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .page-hero .hero-actions .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .page-hero .hero-actions .btn {
    max-width: 100%;
  }
}

/* ── Pricing: Volume Discounts — centered mobile layout ── */
@media (max-width: 600px) {
  .vol-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .vol-card {
    padding: 18px 14px;
    text-align: center;
  }
  .vol-card .vol-discount {
    font-size: 1.4rem;
  }
  .vol-card .vol-range {
    font-size: 0.78rem;
  }
  .vol-card .vol-label {
    font-size: 0.7rem;
  }
}

@media (max-width: 400px) {
  .vol-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .vol-card {
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .vol-card .vol-discount {
    font-size: 1.3rem;
  }
}


/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION — accessibility
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
