/* ══════════════════════════════════════════════════════════
   ARCAMBE — Responsive CSS (Mobile-First Overrides)
   Ensures ALL content visible on ALL screen sizes
   ══════════════════════════════════════════════════════════ */

/* === GLOBAL FIX: prevent horizontal scroll === */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* === Method steps section === */
.method-steps {
  max-width: 680px;
  margin: 0 auto;
}
.method-steps .check-list {
  text-align: left;
}

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

  /* Header: show hamburger, hide desktop nav */
  .desktop-nav, .nav-cta { display: none !important; }
  .menu-toggle { display: block !important; }
  /* Landing pages: keep CTA visible alongside hamburger */
  .landing-header .nav-cta {
    display: inline-flex !important;
    margin-left: auto;
    font-size: .85rem;
    padding: 10px 14px;
  }

  /* Mobile menu overlay */
  .mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 16px 20px 24px;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    box-shadow: 0 14px 28px rgba(7,22,33,.1);
    z-index: 99;
  }
  .mobile-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
    font-size: 1rem;
  }
  .mobile-nav .btn {
    margin-top: 16px;
    text-align: center;
    width: 100%;
  }

  /* Hero: stack text + image */
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .hero-media img {
    height: 320px !important;
    object-fit: cover;
  }

  /* Split sections: stack vertically */
  .split, .split.reverse {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .split-image {
    height: 280px !important;
    width: 100% !important;
  }

  /* Grids: 2 columns on tablet */
  .help-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .service-grid { grid-template-columns: 1fr !important; }
  .service-card { grid-template-columns: 180px 1fr !important; }
  .process-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .course-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .insight-grid, .insight-grid.large { grid-template-columns: repeat(2, 1fr) !important; }
  .module-list { grid-template-columns: repeat(2, 1fr) !important; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .evidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .campaign-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .testimonial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .testimonials-section .testimonial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

  /* Footer: 2 columns */
  .footer-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 24px !important; }

  /* Facts grid: 2 columns */
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .facts-grid div:nth-child(2) { border-right: 0; }

  /* Facilitators: 2 columns */
  .facilitator-list { grid-template-columns: 1fr 1fr !important; }

  /* Training video split */
  .training-video-section .split {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Trainings hero */
  .trainings-hero-grid {
    grid-template-columns: 1fr !important;
  }
  .training-proof-panel {
    max-width: 620px;
  }

  /* Page treinamentos overrides */
  .page-treinamentos .trainings-catalog .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .page-treinamentos .training-video-section .split {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .page-treinamentos .testimonials-section .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  /* Gallery: 2 slides */
  .gslide { flex: 0 0 calc(50% - 8px) !important; }
  .gslide img { height: 240px !important; }
  .gslider-outer { padding: 0 52px !important; }
}


/* ══════════════════════════════════════════════
   MOBILE — max-width: 680px
   ══════════════════════════════════════════════ */
@media (max-width: 680px) {

  .fab-container {
    bottom: 80px; /* Above the mobile-sticky-cta */
    right: 14px;
    gap: 10px;
  }
  .fab-btn {
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
  }
  .fab-btn span { display: none; }


  /* Container: smaller side padding */
  .container {
    width: calc(100% - 28px) !important;
    max-width: 100% !important;
  }

  /* Header smaller */
  .nav-wrap {
    height: 64px !important;
    gap: 12px !important;
  }
  .brand {
    min-width: 0 !important;
    gap: 8px !important;
  }
  .brand img {
    width: 38px !important;
    height: 38px !important;
  }
  .brand strong {
    font-size: 1.1rem !important;
  }
  .brand small {
    display: none !important;
  }

  /* Mobile nav: full-width clean list */
  .mobile-nav {
    max-height: calc(100vh - 64px) !important;
    padding: 12px 16px 20px !important;
  }
  .mobile-nav a {
    padding: 13px 0 !important;
    font-size: .95rem !important;
  }

  /* Hero: compact */
  .hero, .landing-hero {
    padding: 36px 0 32px !important;
  }
  .hero-grid {
    gap: 24px !important;
  }
  .hero-copy h1, .page-hero h1 {
    font-size: 1.85rem !important;
    line-height: 1.12 !important;
  }
  .hero-copy p, .page-hero p {
    font-size: .95rem !important;
  }
  .hero-media img {
    height: 220px !important;
    border-radius: 8px;
  }
  .hero-media figcaption {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin-top: -1px;
    border-radius: 0 0 8px 8px !important;
    font-size: .82rem !important;
    padding: 10px 12px !important;
  }
  .hero-actions {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .hero-actions .btn {
    width: 100% !important;
    justify-content: center;
  }

  /* Page hero */
  .page-hero {
    padding: 36px 0 28px !important;
  }
  .breadcrumb {
    font-size: .8rem !important;
  }

  /* Sections: less vertical padding */
  .section {
    padding: 48px 0 !important;
  }
  .section-title h2 {
    font-size: 1.55rem !important;
    line-height: 1.2 !important;
  }
  .section-title {
    margin-bottom: 24px !important;
  }

  /* ALL grids: 1 column on mobile */
  .help-grid,
  .feature-grid,
  .process-grid,
  .course-grid,
  .campaign-grid,
  .insight-grid,
  .insight-grid.large,
  .module-list,
  .footer-grid,
  .form-grid,
  .payment-options,
  .evidence-grid,
  .facilitator-list,
  .course-facts,
  .testimonial-grid,
  .testimonials-section .testimonial-grid,
  .page-treinamentos .trainings-catalog .course-grid,
  .page-treinamentos .testimonials-section .testimonial-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Service cards: stack vertically */
  .service-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .service-card {
    grid-template-columns: 1fr !important;
  }
  .service-card img {
    height: 200px !important;
    min-height: 0 !important;
  }
  .service-card > div {
    padding: 18px !important;
  }

  /* Course cards: full width, clean */
  .course-card {
    width: 100%;
  }
  .course-card img {
    width: 100% !important;
    height: auto !important;
  }
  .course-body {
    padding: 16px !important;
    gap: 10px !important;
  }
  .course-body h3 {
    font-size: 1.05rem !important;
  }
  .course-body p {
    font-size: .88rem !important;
  }
  .course-meta {
    padding-top: 12px !important;
    gap: 8px !important;
  }
  .course-meta .price-badge {
    font-size: .95rem !important;
    padding: 5px 12px !important;
  }
  .course-meta .course-date-line {
    font-size: .78rem !important;
  }

  /* Split sections on mobile */
  .split, .split.reverse {
    gap: 24px !important;
  }
  .split-image {
    height: 220px !important;
    order: -1;
  }
  .split h2 {
    font-size: 1.5rem !important;
  }

  /* Check list */
  .check-list li {
    font-size: .88rem !important;
  }

  /* Insight grid */
  .insight-grid img {
    height: 180px !important;
  }
  .insight-grid article > div {
    padding: 16px !important;
  }

  /* CTA band */
  .cta-band {
    padding: 40px 0 !important;
  }
  .cta-band h2 {
    font-size: 1.5rem !important;
  }
  .cta-band p {
    font-size: .9rem !important;
  }

  /* Buttons: ensure touch-friendly */
  .btn {
    min-height: 48px !important;
    padding: 12px 16px !important;
    font-size: .9rem !important;
  }

  /* Forms */
  .form-panel {
    padding: 18px !important;
  }
  input, select, textarea {
    padding: 12px !important;
    font-size: .95rem !important;
  }
  .payment-options {
    padding: 12px !important;
  }
  .payment-options label span {
    padding: 10px !important;
    font-size: .85rem !important;
  }

  /* Contact layout: stack */
  .contact-layout {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  /* Inline form: stack */
  .inline-form {
    flex-direction: column !important;
  }

  /* Footer: 1 column, clean spacing */
  .footer-grid {
    gap: 20px !important;
  }
  .footer-brand {
    font-size: 1.1rem !important;
  }
  .footer-brand img {
    width: 40px !important;
    height: 40px !important;
  }
  .site-footer h2 {
    margin-top: 8px !important;
  }
  .footer-bottom {
    display: block !important;
    text-align: center;
  }
  .footer-bottom p {
    margin: 6px 0 !important;
    font-size: .82rem !important;
  }
  .newsletter-row input {
    min-width: 0 !important;
  }

  /* Footer wave: smaller */
  .footer-wave {
    height: 48px !important;
  }

  /* Facts grid: stack */
  .facts-grid {
    grid-template-columns: 1fr !important;
  }
  .facts-grid div {
    border-right: 0 !important;
    border-bottom: 1px solid var(--line);
    padding: 14px !important;
  }
  .facts-grid div:last-child {
    border-bottom: 0;
  }

  /* Module accordion */
  .module-accordion details {
    padding: 14px !important;
  }
  .module-accordion summary {
    font-size: .92rem !important;
  }

  /* FAQ */
  .faq details {
    padding: 14px !important;
  }
  .faq summary {
    font-size: .92rem !important;
  }

  /* Tag cloud */
  .tag-cloud span {
    padding: 8px 12px !important;
    font-size: .82rem !important;
  }

  /* Process grid */
  .process-grid article {
    padding: 16px !important;
  }

  /* Trainings hero */
  .trainings-hero {
    padding: 36px 0 !important;
  }
  .training-proof-panel {
    padding: 18px !important;
  }
  .training-proof-panel strong {
    font-size: 1.35rem !important;
  }

  /* Video section */
  .video-embed {
    border-radius: 6px !important;
  }
  .video-actions {
    flex-direction: column !important;
  }
  .video-actions .btn {
    width: 100% !important;
  }

  /* Testimonials */
  .testimonial-card, .testimonials-section .testimonial-card {
    padding: 18px !important;
    min-height: 0 !important;
  }

  /* Course hero (landing pages) */
  .course-hero .hero-media img {
    height: auto !important;
    max-height: 260px !important;
    object-fit: contain !important;
  }

  /* Lead form grid */
  .lead-form-grid {
    grid-template-columns: 1fr !important;
  }

  /* Mobile sticky CTA */
  .mobile-sticky-cta {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 80;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    border-radius: 8px;
    background: var(--green);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(7,22,33,.18);
  }
  .mobile-sticky-cta.is-hidden { display: none; }
  body.has-mobile-course-cta { padding-bottom: 72px; }

  /* Gallery slider */
  .gslide {
    flex: 0 0 85% !important;
  }
  .gslide img {
    height: 200px !important;
  }
  .gslider-outer {
    padding: 0 36px !important;
  }
  .gslider-btn {
    width: 40px !important;
    height: 40px !important;
    font-size: .85rem !important;
  }
  .gallery-section {
    padding: 48px 0 36px !important;
  }

  /* Dropdown panel (if any) */
  .dropdown-panel {
    width: min(330px, calc(100% - 28px)) !important;
  }

  /* Success modal */
  .success-card {
    padding: 24px !important;
    max-width: calc(100% - 32px) !important;
  }

  /* Price note */
  .price-note strong {
    font-size: 1.6rem !important;
  }

  /* Overflow prevention for text */
  .section-title h2,
  .hero-copy h1,
  .page-hero h1,
  h2, h3 {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Page treinamentos: container width */
  .page-treinamentos main .container {
    width: calc(100% - 28px) !important;
    max-width: 100% !important;
  }

  /* Landing header */
  .landing-header .brand small { display: none !important; }
  .landing-nav { display: none !important; }
  .landing-header .nav-cta {
    display: inline-flex !important;
    margin-left: auto;
  }
}


/* ══════════════════════════════════════════════
   SMALL MOBILE — max-width: 400px
   ══════════════════════════════════════════════ */
@media (max-width: 400px) {
  .hero-copy h1, .page-hero h1 {
    font-size: 1.6rem !important;
  }
  .section-title h2 {
    font-size: 1.35rem !important;
  }
  .brand strong {
    font-size: 1rem !important;
  }
  .btn {
    font-size: .85rem !important;
    padding: 11px 14px !important;
  }
  .course-meta .price-badge {
    font-size: .88rem !important;
  }
}
