/* ===== Origem: <style> #14 ===== */
/* === Mobile-only: stronger Hero background shift (explicit, no CSS vars) === */
@media (max-width: 900px){
  .hero{
    background-position: center 10% !important;
    background-attachment: scroll !important;
  }
}
@media (max-width: 900px) and (max-height: 720px){
  .hero{ background-position: center 10% !important; }
}
@media (max-width: 900px) and (min-height: 900px){
  .hero{ background-position: center 10% !important; }
}

@media (max-width:900px){ .hero{ background-position: center 10% !important; } }


/* ===== Origem: <style> #15 ===== */
/* === Mobile-only: Hero align-to-top (medium lift) === */
@media (max-width: 900px){
  /* bring content up; stop vertical centering */
  .hero .inner{
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important;
    min-height: min(72vh, 680px);
  }
  .hero{
    /* header (~56-64px) + safe-area + extra space */
    padding-top: calc(64px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: 28px !important;
  }
  .hero h1{
    line-height: 1.15;
    margin-bottom: 12px;
  }
  .hero p{
    margin-bottom: 14px;
  }
  .hero .quick{
    margin-top: 8px;
    row-gap: 10px;
  }
}


/* ===== Origem: <style> #16 ===== */
/* === Mobile-only: Hero lift (definitive) — reduce inner padding and section padding === */
@media (max-width: 900px){
  .hero{
    padding-top: calc(48px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: 16px !important;
  }
  .hero .inner{
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    padding: 8px 0 !important; /* override previous 40-72px */
    min-height: auto !important;
  }
  .hero h1{ margin-top: 0 !important; }
}


/* ===== Origem: <style> #17 ===== */
/* === Mobile-only: Hero lift +8px (tighter) === */
@media (max-width: 900px){
  .hero{
    padding-top: calc(40px + env(safe-area-inset-top, 0px)) !important;
  }
  .hero .inner{
    padding: 4px 0 !important;
  }
}


/* ===== Origem: <style> #18 ===== */
/* === Mobile-only: Hero lift ~32px (recreated) === */
@media (max-width: 900px){
  .hero{ padding-top: calc(32px + env(safe-area-inset-top, 0px)) !important; }
  .hero .inner{ padding: 2px 0 !important; }
  .hero h1{ margin-top: 0 !important; }
}


/* ===== Origem: <style> #19 ===== */
/* === Mobile-only hero image v5 (clean top/bottom) === */
@media (max-width: 900px){
  .hero{
    background: url("/img/hero-mobile5-1080x1920.webp") center 12% / cover no-repeat !important;
    background-image: image-set(
      url("/img/hero-mobile5-720x1280.webp") 1x,
      url("/img/hero-mobile5-1080x1920.webp") 2x,
      url("/img/hero-mobile5-1440x2560.webp") 3x
    ) !important;
    background-attachment: scroll !important;
  }
}


/* ===== Origem: <style> #20 ===== */
/* === Mobile-only hero image v6 (datacenter, clean top/bottom) === */
@media (max-width: 900px){
  .hero{
    background: url("/img/hero-mobile6-1080x1920.webp") center 10% / cover no-repeat !important;
    background-image: image-set(
      url("/img/hero-mobile6-720x1280.webp") 1x,
      url("/img/hero-mobile6-1080x1920.webp") 2x,
      url("/img/hero-mobile6-1440x2560.webp") 3x
    ) !important;
    background-attachment: scroll !important;
  }
}


/* ===== Origem: <style> #21 ===== */
@media (max-width:580px){
  #sobre .see-more{ color:rgba(229,57,53,.82) !important; }
}


/* ===== Origem: <style> #22 ===== */
/* Mobile-only: tighten 'O que fazemos' */
@media (max-width:580px){
  /* Hide non-top3 cards entirely */
  #servicos .mHideCard{ display:none !important; }
  #servicos .mHideCard.mShow{ display:block !important; }

  /* Inside top3 show only selected details */
  #servicos details.mExtra{ display:none !important; }
  #servicos details.mExtra.mShow{ display:block !important; }

  /* Toggles */
  #servicos .mToggleWrap, #servicos .mToggleAllWrap{ margin:10px 0 18px; }
  #servicos .mToggle, #servicos .mToggleAll{
    display:inline-block; padding:10px 14px; border-radius:12px;
    font-weight:600; text-decoration:none;
    color:rgba(229,57,53,.92); background:rgba(229,57,53,.08);
    border:1px solid rgba(229,57,53,.28);
  }
  #servicos .mToggle[aria-expanded="true"],
  #servicos .mToggleAll[aria-expanded="true"]{
    color:rgba(229,57,53,.95); background:rgba(229,57,53,.12);
  }
}
@media (min-width:581px){
  #servicos .mToggleWrap, #servicos .mToggleAllWrap{ display:none !important; }
}


/* ===== Origem: <style> #23 ===== */
/* === Mobile visual tweaks: Option A (mToggle) & Option B (mToggleAll) === */
@media (max-width:580px){
  /* Wraps with tighter spacing */
  #servicos .mToggleWrap{ margin:6px 0 8px !important; }
  #servicos .mToggleAllWrap{ margin:8px 0 12px !important; text-align:center; }

  /* A) Link minimalista para 'Saiba Mais' dentro de cada card */
  #servicos .mToggle{
    display:inline-flex; align-items:center; gap:6px;
    padding:8px 4px; border:0; background:transparent;
    border-radius:8px; font-size:14px; font-weight:600;
    color:rgba(229,57,53,.85); text-decoration:none;
  }
  #servicos .mToggle::after{
    content:'▾'; font-size:12px; line-height:1;
    transform:translateY(-1px); transition:transform .2s ease;
  }
  #servicos .mToggle[aria-expanded="true"]::after{
    content:'▴'; transform:translateY(0);
  }

  /* B) Pílula ghost micro para 'Ver mais serviços' da seção */
  #servicos .mToggleAll{
    display:inline-flex; align-items:center; gap:8px;
    padding:6px 10px; border-radius:9999px;
    font-size:13.5px; font-weight:600;
    color:rgba(229,57,53,.9); text-decoration:none;
    border:1px solid rgba(229,57,53,.28);
    background:rgba(229,57,53,.08);
  }
  #servicos .mToggleAll::before{
    content:'+'; font-size:16px; line-height:1;
  }
  #servicos .mToggleAll[aria-expanded="true"]{
    background:rgba(229,57,53,.12);
  }
  #servicos .mToggleAll[aria-expanded="true"]::before{
    content:'–';
  }
}


/* ===== Origem: <style> #24 ===== */
/* === Mobile-only: hero CTA text refinements (no layout/visibility changes) === */
@media (max-width:580px){
  #home.hero .btn,
  #home .btn{
    color: rgba(255,255,255,.96) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    letter-spacing: .2px !important;
    line-height: 1.2 !important;
    text-shadow:
      0 0 1px rgba(0,0,0,.28),
      0 1px 1px rgba(0,0,0,.24);
  }
  /* Keep hover/active subtle without altering backgrounds */
  #home.hero .btn:active,
  #home .btn:active{
    text-shadow:
      0 0 0 rgba(0,0,0,0),
      0 1px 0 rgba(0,0,0,.18);
  }
}


/* ===== Origem: <style> #25 ===== */
/* === Mobile-only: Depoimentos no hero — vidro escuro === */
@media (max-width:580px){
  #home .hero-side, .hero .hero-side{
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(10,16,25,.55); /* scrim escuro */
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 8px 28px rgba(0,0,0,.28);
    border-radius: 18px;
    padding: 14px 14px 12px 14px;
    width: 92%;
    margin: 10px auto 0 auto;
  }

  #home .hero-side strong{
    color: rgba(255,255,255,.92) !important;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .2px;
    display:block;
    margin-bottom: 6px !important;
  }

  #home .hero-side .t-quote{
    color: rgba(255,255,255,.88) !important;
    font-size: 16px;
    font-style: italic;
    line-height: 1.35;
    margin: 2px 0 8px 0 !important;
  }

  #home .hero-side .muted{
    color: rgba(255,255,255,.72) !important;
    font-size: 13px;
    font-weight: 500;
  }

  #home .hero-side .t-dots{
    display:flex; gap:8px; margin-top:10px;
  }
  #home .hero-side .t-dots button{
    width:8px; height:8px; border-radius:50%;
    background: rgba(255,255,255,.35);
    border:0;
  }
  #home .hero-side .t-dots button[aria-current="true"]{
    background: rgba(229,57,53,.9);
  }
}


/* ===== Origem: <style> #26 ===== */
/* === Mobile-only: Depoimentos no hero — vidro escuro (tuned) === */
@media (max-width:580px){
  #home .hero-side, .hero .hero-side{
    position: relative;
    /* base scrim mais translúcido + leves gradientes para "vidro" */
    background:
      linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,0) 45%),
      rgba(12,16,24,.42) !important;
    backdrop-filter: blur(14px) saturate(1.12);
    -webkit-backdrop-filter: blur(14px) saturate(1.12);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow:
      0 8px 28px rgba(0,0,0,.28),
      inset 0 1px 0 rgba(255,255,255,.08),
      inset 0 -1px 0 rgba(0,0,0,.18);
  }
  /* brilho sutil no canto superior esquerdo para dar "profundidade de vidro" */
  #home .hero-side::before{
    content:""; pointer-events:none; position:absolute; inset:0; border-radius:inherit;
    background:
      radial-gradient(120px 60px at 18% 10%, rgba(255,255,255,.14), rgba(255,255,255,0) 60%);
    opacity:.85;
  }
}


/* ===== Origem: <style> #27 ===== */
/* === Mobile-only: Depoimentos no hero — vidro escuro (v3: transparência mais evidente) === */
@media (max-width:580px){
  #home .hero-side, .hero .hero-side{
    position: relative;
    background:
      linear-gradient(140deg, rgba(255,255,255,.10), rgba(255,255,255,0) 45%),
      rgba(12,16,24,.30) !important; /* base mais translúcida */
    backdrop-filter: blur(16px) saturate(1.08) brightness(1.02);
    -webkit-backdrop-filter: blur(16px) saturate(1.08) brightness(1.02);
    border: 1px solid rgba(255,255,255,.16);
    box-shadow:
      0 6px 18px rgba(0,0,0,.20),
      inset 0 1px 0 rgba(255,255,255,.10);
  }
  #home .hero-side::before{
    content:""; pointer-events:none; position:absolute; inset:0; border-radius:inherit;
    background:
      radial-gradient(140px 70px at 18% 10%, rgba(255,255,255,.16), rgba(255,255,255,0) 62%);
    opacity:.95;
  }
}
