/* ============================================================
   MOBILE.CSS — LucasNutri
   Camada responsiva dedicada ao mobile
   Carregado APÓS style.css — sobrescreve e complementa

   Breakpoints:
     768px  → smartphones e tablets pequenos
     480px  → celulares pequenos
     360px  → celulares muito pequenos / Android antigo
     320px  → iPhone SE 1ª gen / telas mínimas

   Extras:
     landscape (≤768px + ≤600px altura)
     (hover: none) → dispositivos touch
     safe-area   → iPhones com notch / Dynamic Island
     prefers-reduced-motion
   ============================================================ */


/* ============================================================
   0. VARIÁVEIS EXTRAS E TOKENS GLOBAIS MOBILE
   ============================================================ */
:root {
  --safe-top:    env(safe-area-inset-top,    0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left:   env(safe-area-inset-left,   0px);
  --safe-right:  env(safe-area-inset-right,  0px);

  /* touch-target mínimo */
  --touch-target: 44px;
}


/* ============================================================
   1. BASE GLOBAL — aplicado a todos os tamanhos de tela
   ============================================================ */

/* Remove highlight azul ao tocar em elementos no iOS/Android */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Previne scroll horizontal no body */
html,
body {
  overscroll-behavior-x: none;
}

/* Font rendering otimizado para mobile */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Quebra de palavras longas em títulos */
h1, h2, h3, h4 {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Remove appearance nativo de inputs no iOS */
button,
input,
select,
textarea {
  -webkit-appearance: none;
  appearance: none;
}


/* ============================================================
   2. BREAKPOINT 768px — smartphones e tablets pequenos
   ============================================================ */
@media (max-width: 768px) {

  /* ------ HEADER ------ */
  .header-minimal.header-scrolled {
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
  }

  /* Touch target mínimo nos links do menu */
  .nav-minimal .nav-link {
    min-height: var(--touch-target);
    display: flex;
    align-items: center;
  }

  /* ------ HERO ------ */
  .hero {
    /* Garante altura mínima usando svh (sem a barra do browser) */
    min-height: calc(100svh - 72px);
    place-content: start;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-eyebrow {
    font-size: clamp(0.75rem, 3.2vw, 0.9rem);
    letter-spacing: 0.15em;
  }

  .hero-content h2 {
    font-size: clamp(1.65rem, 6.5vw, 2.2rem);
    line-height: 1.2;
  }

  .hero-content > p {
    font-size: clamp(0.88rem, 3.5vw, 1rem);
    line-height: 1.7;
  }

  /* Tags hero */
  .hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.5rem;
    margin: 0.65rem 0 0.9rem;
  }

  .hero-tags span {
    font-size: 0.8rem;
    padding: 0.28rem 0.7rem;
  }

  /* Botões CTA do hero */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 52px;
    font-size: 1rem;
  }

  /* Highlights (estatísticas) — 3 colunas compactas */
  .hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    background: rgba(255, 165, 0, 0.04);
    border: 1px solid rgba(255, 165, 0, 0.12);
    border-radius: var(--radius-md);
    padding: 0.85rem 0.65rem;
  }

  .hero-highlights > div {
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    border-radius: 0;
  }

  /* Separadores verticais entre os stats */
  .hero-highlights > div + div {
    border-left: 1px solid rgba(255, 255, 255, 0.07);
  }

  .hero-highlights strong {
    font-size: clamp(1.05rem, 5vw, 1.35rem);
    color: var(--primary);
    display: block;
  }

  .hero-highlights span {
    font-size: clamp(0.6rem, 2.2vw, 0.75rem);
    color: var(--text-muted);
    text-align: center;
    line-height: 1.3;
  }

  /* Card de foto */
  .hero-card {
    max-width: 440px;
    margin: 0 auto;
    padding: 1.25rem;
  }

  .hero-card img {
    height: clamp(240px, 45vw, 320px);
    object-position: top center;
    border-radius: var(--radius-md);
  }

  .hero-card-info .hero-instagram {
    font-size: 1.15rem;
  }

  .hero-card-info p {
    font-size: 0.84rem;
    line-height: 1.55;
  }

  /* ------ SEÇÕES ------ */
  .section-minimal {
    padding: 56px 1rem;
  }

  .section-title {
    font-size: clamp(1.35rem, 5.5vw, 1.7rem);
    margin-bottom: 1.75rem;
  }

  .section-subtitle {
    font-size: clamp(0.88rem, 3.5vw, 1rem);
    margin: -0.5rem auto 2rem;
    line-height: 1.7;
  }

  /* ------ SOBRE ------ */
  .about-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-intro h3 {
    font-size: clamp(1.2rem, 4.5vw, 1.5rem);
    text-align: left;
  }

  .about-profile {
    justify-items: start;
  }

  .about-profile-card {
    padding: 1.5rem;
  }

  .about-profile-tags {
    justify-content: flex-start;
  }

  .about-profile-card .btn {
    width: 100%;
    min-height: var(--touch-target);
  }

  .about-value-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .about-value-card {
    padding: 1.2rem;
  }

  /* ------ CONSULTORIA ------ */
  .consultoria-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .consultoria-info {
    padding: 1.5rem 1.25rem;
  }

  .consultoria-info .btn {
    width: 100%;
    min-height: var(--touch-target);
  }

  .consultoria-steps {
    margin-top: 0;
    text-align: left;
  }

  .steps-list {
    max-width: 100%;
  }

  .steps-list li {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    text-align: left;
  }

  /* ------ ESPECIALIDADES ------ */
  .skills-list {
    gap: 0.45rem 0.55rem;
  }

  .skills-list li {
    font-size: 0.87rem;
    padding: 0.45rem 0.9rem;
  }

  /* ------ PLANOS ------ */
  .plans-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Remove elevação do card destaque no mobile para evitar clip */
  .plan-card.featured {
    transform: none;
  }

  .plan-card h3 {
    font-size: clamp(1.1rem, 4.5vw, 1.35rem);
  }

  .plan-card p {
    font-size: 0.9rem;
    max-width: 100%;
  }

  .plan-card ul li {
    font-size: 0.9rem;
  }

  .plan-card .btn {
    width: 100%;
    align-self: stretch;
    min-height: 52px;
    text-align: center;
  }

  /* ------ DEPOIMENTOS ------ */
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .testimonial-card {
    padding: 1.4rem;
  }

  .testimonial-card p {
    font-size: 0.9rem;
    line-height: 1.65;
  }

  /* ------ FAQ ------ */
  .faq-grid {
    max-width: 100%;
  }

  .faq-item {
    padding: 0.85rem 1rem;
  }

  .faq-item summary {
    min-height: var(--touch-target);
    padding: 0.35rem 0;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .faq-item p {
    font-size: 0.88rem;
    margin-top: 0.65rem;
    line-height: 1.65;
  }

  /* ------ SECTION CTA BLOCK ------ */
  .section-cta-block {
    padding: 1.4rem 1.1rem;
    margin-top: 2rem;
    gap: 1rem;
    border-radius: var(--radius-md);
  }

  .section-cta-block p {
    font-size: 0.93rem;
  }

  .section-cta-block .btn {
    width: 100%;
    min-height: 52px;
  }

  /* ------ CONTATO ------ */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-highlight {
    padding: 1.2rem;
    text-align: left;
  }

  .contact-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: 2rem;
  }

  .contact-cta .btn {
    width: 100%;
    justify-content: center;
    min-height: 52px;
  }

  /* ------ FOOTER ------ */
  .footer-minimal {
    padding: 40px 1rem 24px;
    /* Espaço extra para o botão flutuante do WhatsApp */
    padding-bottom: calc(24px + 52px + 1.25rem);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-brand-description {
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
  }

  .footer-cta-link {
    align-self: center;
    width: 100%;
    max-width: 320px;
  }

  .footer-links-group {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    text-align: left;
  }

  .footer-links-column {
    text-align: left;
  }

  .footer-links-column a:hover {
    transform: none; /* Sem translateX no touch */
  }

  .footer-contact-card {
    justify-content: center;
  }

  .footer-contact-panel {
    text-align: center;
  }

  .footer-contact-panel p {
    margin: 0 auto 1rem;
  }

  /* ------ BOTÃO FLUTUANTE WHATSAPP ------ */
  .whatsapp-float {
    bottom: calc(1.25rem + var(--safe-bottom));
    right: calc(1.25rem + var(--safe-right));
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }

  /* ------ COOKIE BANNER ------ */
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding: 0.9rem 1rem;
    padding-bottom: calc(0.9rem + var(--safe-bottom));
    text-align: center;
    font-size: 0.82rem;
  }

  .cookie-banner p {
    max-width: 100%;
    font-size: 0.82rem;
    text-align: center;
  }

  .cookie-btn {
    width: 100%;
    min-height: var(--touch-target);
    align-self: stretch;
  }

} /* fim @media 768px */


/* ============================================================
   3. BREAKPOINT 480px — celulares pequenos
   ============================================================ */
@media (max-width: 480px) {

  /* Container: padding fluido */
  .container {
    padding-inline: clamp(0.875rem, 4vw, 1.125rem);
  }

  /* Header mais compacto */
  .logo-img {
    height: 36px;
  }

  .logo {
    font-size: 1rem;
  }

  .tagline {
    font-size: 0.58rem;
    letter-spacing: 0.03em;
  }

  /* Hero */
  .hero {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .hero-badge {
    font-size: 0.7rem;
    padding: 0.28rem 0.7rem;
  }

  .hero-content h2 {
    font-size: clamp(1.45rem, 7vw, 1.75rem);
    line-height: 1.2;
  }

  .hero-content > p {
    font-size: 0.88rem;
  }

  .hero-actions .btn {
    font-size: 0.95rem;
    padding: 0.85rem 1.4rem;
  }

  .hero-highlights {
    padding: 0.7rem 0.5rem;
  }

  .hero-highlights strong {
    font-size: clamp(1rem, 5.5vw, 1.2rem);
  }

  .hero-highlights span {
    font-size: 0.6rem;
  }

  .hero-card {
    padding: 1rem;
  }

  .hero-card img {
    height: clamp(220px, 50vw, 290px);
  }

  /* Seções */
  .section-minimal {
    padding: 48px 0;
  }

  .section-title {
    font-size: clamp(1.2rem, 6vw, 1.5rem);
    margin-bottom: 1.5rem;
  }

  .section-subtitle {
    font-size: 0.88rem;
    line-height: 1.72;
  }

  /* Sobre */
  .about-profile-card {
    padding: 1.25rem;
  }

  .about-profile-card h3 {
    font-size: 1.35rem;
  }

  .about-credential {
    font-size: 0.76rem;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .about-value-card {
    padding: 1.1rem;
  }

  /* Especialidades: pills menores */
  .skills-list {
    gap: 0.38rem 0.45rem;
  }

  .skills-list li {
    font-size: 0.82rem;
    padding: 0.38rem 0.75rem;
  }

  /* Planos */
  .plan-card {
    padding: 1.5rem;
  }

  .plan-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    top: 14px;
    right: 14px;
  }

  .plan-card.featured h3 {
    padding-right: 5.5rem;
  }

  /* FAQ */
  .faq-item {
    padding: 0.75rem 0.9rem;
  }

  .faq-item summary {
    font-size: 0.88rem;
  }

  .faq-item p {
    font-size: 0.86rem;
  }

  /* Social icons */
  .socialContainer {
    width: 50px;
    height: 50px;
  }

  .socialSvg {
    font-size: 18px;
  }

  /* Footer: links em 2 colunas centralizadas no 480 */
  .footer-links-group {
    grid-template-columns: repeat(2, 1fr);
    text-align: center;
  }

  .footer-links-column {
    text-align: center;
  }

  .footer-links-column a {
    text-align: center;
    display: inline-block;
  }

  /* Footer: créditos */
  .footer-copyright {
    font-size: 0.78rem;
  }

} /* fim @media 480px */


/* ============================================================
   4. BREAKPOINT 360px — muito pequenos / Android antigo
   ============================================================ */
@media (max-width: 360px) {

  .container {
    padding-inline: 0.875rem;
  }

  /* Header: esconde tagline para ganhar espaço */
  .tagline {
    display: none;
  }

  .logo {
    font-size: 0.95rem;
  }

  /* Hero: texto menor */
  .hero-content h2 {
    font-size: 1.35rem;
    line-height: 1.2;
  }

  .hero-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  /* Hero highlights: 1 coluna empilhada em telas muito pequenas */
  .hero-highlights {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    background: transparent;
    border: none;
  }

  .hero-highlights > div {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
  }

  .hero-highlights > div:last-child {
    border-bottom: none;
  }

  .hero-highlights > div + div {
    border-left: none;
  }

  .hero-highlights strong {
    font-size: 1.1rem;
    text-align: right;
    order: 2;
  }

  .hero-highlights span {
    font-size: 0.75rem;
    text-align: left;
    order: 1;
    color: var(--text-body);
  }

  /* Hero tags: empilhadas */
  .hero-tags {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .hero-tags span {
    width: 100%;
    text-align: center;
    font-size: 0.78rem;
  }

  /* Botões: texto menor */
  .btn {
    font-size: 0.88rem;
    padding: 0.75rem 1.15rem;
  }

  /* Seção */
  .section-title {
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
  }

  /* Sobre */
  .about-profile-card {
    padding: 1.1rem;
  }

  /* Especialidades: grid 2 colunas no 360 */
  .skills-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem;
  }

  .skills-list li {
    border-radius: var(--radius-sm);
    justify-content: center;
    text-align: center;
    font-size: 0.76rem;
    padding: 0.4rem 0.5rem;
  }

  /* Planos */
  .plan-card {
    padding: 1.25rem;
  }

  .plan-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    top: 12px;
    right: 12px;
  }

  .plan-card.featured h3 {
    padding-right: 4.5rem;
  }

  /* Depoimentos */
  .testimonial-card {
    padding: 1.2rem;
  }

  /* FAQ */
  .faq-item summary {
    font-size: 0.85rem;
  }

  /* Footer: links empilhados em 1 coluna */
  .footer-links-group {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .footer-links-column {
    text-align: center;
  }

  /* Social */
  .socialContainer {
    width: 46px;
    height: 46px;
  }

  .socialSvg {
    font-size: 16px;
  }

} /* fim @media 360px */


/* ============================================================
   5. BREAKPOINT 320px — iPhone SE 1ª gen / mínimo absoluto
   ============================================================ */
@media (max-width: 320px) {

  .container {
    padding-inline: 0.75rem;
  }

  .hero-content h2 {
    font-size: 1.25rem;
  }

  .btn {
    font-size: 0.84rem;
    padding: 0.7rem 1rem;
  }

  .section-title {
    font-size: 1.1rem;
  }

  .about-profile-card h3 {
    font-size: 1.15rem;
  }

  .plan-card {
    padding: 1.1rem;
  }

  .plan-badge {
    position: static;
    display: inline-block;
    margin-bottom: 0.4rem;
  }

  .plan-card.featured h3 {
    padding-right: 0;
  }

  .faq-item summary {
    font-size: 0.82rem;
  }

} /* fim @media 320px */


/* ============================================================
   6. LANDSCAPE MOBILE — smartphones na horizontal
   ============================================================ */
@media (max-width: 768px) and (orientation: landscape) and (max-height: 600px) {

  .hero {
    min-height: auto;
    padding: 1.25rem 0;
    place-content: center;
  }

  /* Retoma grid 2 colunas em landscape para aproveitar a largura */
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: center;
  }

  .hero-card {
    display: block;
    max-width: 100%;
    padding: 1rem;
    margin: 0;
  }

  .hero-card img {
    height: clamp(160px, 28vh, 220px);
  }

  .hero-content h2 {
    font-size: clamp(1.2rem, 3.5vw, 1.5rem);
    margin-bottom: 0.5rem;
  }

  .hero-eyebrow {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
  }

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

  .hero-actions .btn {
    width: auto;
    flex: 1;
    min-width: 140px;
  }

  .hero-highlights {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 0.75rem;
  }

  .hero-highlights strong {
    font-size: 1rem;
  }

  .hero-highlights span {
    font-size: 0.58rem;
  }

  /* Seções em landscape: padding reduzido */
  .section-minimal {
    padding: 40px 1rem;
  }

  .section-title {
    margin-bottom: 1.25rem;
  }

} /* fim landscape */


/* ============================================================
   7. TOUCH DEVICES — remove hover persistente em touch
   ============================================================ */
@media (hover: none) and (pointer: coarse) {

  /* Planos: sem elevação persistente por hover */
  .plan-card:hover {
    transform: none;
  }

  .plan-card.featured:hover {
    transform: none;
  }

  /* Sobre: sem translate por hover */
  .about-value-card:hover {
    transform: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  }

  /* Consultoria */
  .consultoria-info:hover {
    transform: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  }

  /* Skills pills: sem escala por hover */
  .skills-list li:hover {
    transform: none;
    background: linear-gradient(145deg, #1f1f1f, #292929);
    color: var(--primary);
    border-color: #ff5c57;
  }

  /* Footer links: sem translate por hover */
  .footer-links-column a:hover {
    transform: none;
  }

  /* WhatsApp float: sem escala por hover */
  .whatsapp-float:hover {
    transform: translateY(0) scale(1);
    box-shadow: 0 8px 24px rgba(31, 226, 122, 0.4);
  }

  /* Feedback visual ao pressionar (active) */
  .plan-card:active,
  .about-value-card:active,
  .testimonial-card:active {
    transform: scale(0.99);
    transition: transform 0.1s ease;
  }

  .btn:active {
    transform: scale(0.97) translateY(1px);
    transition: transform 0.1s ease;
  }

  .socialContainer:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
  }

  .skills-list li:active {
    transform: scale(0.97);
    background: linear-gradient(to right, #ff5c57, #ffa500);
    color: #fff;
    border-color: transparent;
    transition: transform 0.1s ease;
  }

} /* fim hover: none */


/* ============================================================
   8. SAFE AREA — iPhones com notch / Dynamic Island / borda
   ============================================================ */
@supports (padding: max(0px)) {

  /* Header: respeita área da câmera/notch */
  .header-minimal {
    padding-top: max(0.5rem, env(safe-area-inset-top));
  }

  /* Footer: respeita indicator de home */
  .footer-minimal {
    padding-bottom: max(calc(52px + 1.5rem), calc(env(safe-area-inset-bottom) + 52px + 0.75rem));
  }

  /* Cookie banner: fica acima da borda de home */
  .cookie-banner {
    padding-bottom: max(0.9rem, calc(env(safe-area-inset-bottom) + 0.6rem));
  }

  /* Botão flutuante WhatsApp */
  .whatsapp-float {
    bottom: max(1.25rem, calc(env(safe-area-inset-bottom) + 0.9rem));
    right:  max(1.25rem, calc(env(safe-area-inset-right)  + 1rem));
  }

} /* fim @supports */


/* ============================================================
   9. PREFERS-REDUCED-MOTION — acessibilidade
   ============================================================ */
@media (prefers-reduced-motion: reduce) {

  /* Menu: sem animação */
  .nav-minimal.open {
    animation: none;
  }

  /* Stagger: aparece imediatamente */
  .stagger-item {
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* Scroll reveal: aparece imediatamente */
  .animation-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* Pulso do WhatsApp */
  .whatsapp-float::before {
    animation: none;
  }

  /* Badge piscando */
  .hero-badge::before {
    animation: none;
  }

  /* Cursor digitando */
  #ig-typing.typing::after,
  #ig-typing.done::after {
    animation: none;
  }

  /* Active states: sem transform */
  .btn:active,
  .plan-card:active,
  .about-value-card:active,
  .testimonial-card:active,
  .skills-list li:active,
  .socialContainer:active {
    transform: none;
    transition: none;
  }

} /* fim reduced-motion */