/* =============================================
   LDS Refrigeração — Landing Page Stylesheet
   ============================================= */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:      #059bd0;
  --blue-hover:#00bbff;
  --green:     #008138;
  --green-hover:#00a046;
  --title:     #222222;
  --text:      #444444;
  --light-bg:  #f4f8fb;
  --dark-bg:   #1a2a35;
  --border:    #d8eaf4;
  --white:     #ffffff;
  --radius:    8px;
  --shadow:    0 2px 16px rgba(5,155,208,.10);
  --transition: .22s ease;
  --topbar-h:  40px;
  --header-h:  72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-hover); }

/* ---- Typography ---- */
h1, h2, h3, h4 { color: var(--title); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.15rem; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 680px;
  margin: .75rem auto 0;
}

/* ---- Layout ---- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 80px 0; }

/* Corrige offset dos links âncora com header fixo */
section[id], [id].cta-banner { scroll-margin-top: var(--header-h); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.8rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 18px rgba(0,0,0,.15); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-hover); color: var(--white); }

.btn-whatsapp {
  background: var(--green);
  color: var(--white);
}
.btn-whatsapp:hover { background: var(--green-hover); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--blue); }

/* ---- Topbar ---- */
.topbar {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 0 1.5rem;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 101;
  overflow: hidden;
  transition: height .3s ease, opacity .3s ease, padding .3s ease;
}

body.scrolled .topbar {
  height: 0;
  opacity: 0;
  pointer-events: none;
}

body.scrolled #header {
  top: 0;
}

/* ---- Header / Nav ---- */
#header {
  position: sticky;
  top: var(--topbar-h);
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.5rem;
  max-width: 1140px;
  margin: 0 auto;
}

.logo img { height: 90px; width: auto; }

nav { display: flex; align-items: center; gap: 1.4rem; }
nav a { font-size: .9rem; font-weight: 500; color: var(--title); }
nav a:hover { color: var(--blue); }

.header-cta { margin-left: .5rem; padding: .65rem 1.3rem; font-size: .85rem; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--title); display: block; border-radius: 2px; transition: var(--transition); }

/* ---- Hero ---- */
#hero {
  background-image: url('../images/conserto-de-geladeira-e-freezer-bkg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  padding: 70px 0 110px;
  position: relative;
}

/* Overlay azul semi-transparente — deixa a foto aparecer */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,45,66,.78) 0%, rgba(26,74,101,.70) 60%, rgba(14,106,149,.65) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: block;
  max-width: 680px;
}

.hero-text .eyebrow { color: var(--blue-hover); }

.hero-text h1 { color: var(--white); margin-bottom: 1.1rem; }

.hero-text p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Imagem placeholder no hero */
.hero-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,.08);
  border: 2px dashed rgba(255,255,255,.25);
}

/* Diferenciais cards — faixa horizontal, invadindo a seção abaixo */
.hero-diferenciais {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin-top: 3rem;
  margin-bottom: -3.5rem;
  position: relative;
  z-index: 10;
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  border: 1px solid var(--border);
}

.hero-card .icon { font-size: 1.5rem; flex-shrink: 0; margin-top: .1rem; }
.hero-card strong { color: var(--title); display: block; margin-bottom: .2rem; font-size: .95rem; }
.hero-card p { color: var(--text); font-size: .88rem; margin: 0; }

/* ---- Serviços (agora vem primeiro, recebe padding-top compensado pelos cards hero) ---- */
#servicos {
  background: var(--white);
  padding-top: calc(80px + 3.5rem);
}

/* Serviços — títulos e textos centralizados */
.servicos-header { text-align: center; margin-bottom: 3rem; }

.servico-categoria { margin-bottom: 3.5rem; }

.servico-categoria h3 {
  font-size: 1.3rem;
  color: var(--blue);
  border-bottom: 2px solid var(--border);
  padding-bottom: .6rem;
  margin-bottom: .7rem;
  text-align: center;
}

.categoria-intro {
  font-size: .95rem;
  margin-bottom: 1.5rem;
  color: var(--text);
  text-align: center;
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.1rem;
}

.servico-card {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.servico-card:hover {
  box-shadow: 0 6px 24px rgba(5,155,208,.14);
  transform: translateY(-3px);
  border-color: var(--blue);
}

/* Grid centralizado para categorias com poucos cards */
.servicos-grid--centered {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem;
}

.servicos-grid--centered .servico-card {
  flex: 0 0 220px;
  max-width: 280px;
  width: 100%;
}

.servico-card .icon { font-size: 2rem; margin-bottom: .7rem; }
.servico-card strong { display: block; color: var(--title); margin-bottom: .4rem; font-size: .98rem; }
.servico-card p { font-size: .87rem; margin: 0; line-height: 1.55; }

.servicos-cta { text-align: center; margin-top: 2.5rem; }

/* ---- Quem Somos (agora vem após Serviços — padding normal) ---- */
#quem-somos {
  background: var(--light-bg);
}

.quem-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.quem-text h2 { margin-bottom: 1.2rem; }
.quem-text p { margin-bottom: 1rem; }

.quem-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.quem-img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #c8dde8;
  border: 2px dashed var(--blue);
  min-height: 280px;
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--blue) 0%, #0d2d42 100%);
  color: var(--white);
  text-align: center;
  padding: 70px 0;
}

.cta-banner h2 { color: var(--white); margin-bottom: .8rem; }

.cta-banner p { color: rgba(255,255,255,.85); font-size: 1.05rem; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }

.cta-banner .btn { margin: 0 .4rem; }

/* ---- Portfólio ---- */
#portfolio { background: var(--light-bg); }

.portfolio-header { text-align: center; margin-bottom: 2.5rem; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #c8dde8;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.portfolio-item:hover img { transform: scale(1.07); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,45,66,.85) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity .3s;
}

.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-overlay span {
  color: var(--white);
  font-size: .88rem;
  font-weight: 500;
  line-height: 1.35;
}

.portfolio-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: linear-gradient(145deg, #d8eaf4, #bfd5e4);
  color: #5a8ba8;
  padding: 1rem;
  text-align: center;
}
.portfolio-placeholder .ph-icon { font-size: 2.5rem; }
.portfolio-placeholder span { font-size: .82rem; font-weight: 500; }

/* ---- FAQ ---- */
#faq { background: var(--white); }

.faq-header { text-align: center; margin-bottom: 2.5rem; }

.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: .7rem; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.faq-item.open { box-shadow: 0 4px 18px rgba(5,155,208,.12); border-color: var(--blue); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.1rem 1.4rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 1rem;
  font-size: .97rem;
  font-weight: 600;
  color: var(--title);
  transition: background var(--transition), color var(--transition);
}
.faq-item.open .faq-question { background: #eaf6fc; color: var(--blue); }

.faq-icon { font-size: 1.1rem; flex-shrink: 0; transition: transform .3s; color: var(--blue); }
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s;
  padding: 0 1.4rem;
  font-size: .94rem;
  color: var(--text);
  line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 300px; padding: .8rem 1.4rem 1.2rem; }

/* ---- Contato ---- */
#contato { background: var(--light-bg); }

.contato-header { text-align: center; margin-bottom: 3rem; }

.contato-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: stretch;
}

/* Bloco info */
.contato-info {
  display: flex;
  flex-direction: column;
}

.contato-info h3 { margin-bottom: 1.5rem; color: var(--title); }

.contact-block {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow);
}

.contact-block .icon { font-size: 1.6rem; margin-bottom: .5rem; }
.contact-block strong { display: block; color: var(--title); margin-bottom: .3rem; }
.contact-block p { font-size: .9rem; margin-bottom: .8rem; }

/* Botão WhatsApp do bloco de contato — largura total */
.contact-wa-btn {
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: auto;
  flex: 1;
  min-height: 200px;
}

.map-embed iframe { display: block; width: 100%; height: 100%; min-height: 200px; }

/* Formulário — ocupa a altura total da coluna */
.contato-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.contato-form h3 { margin-bottom: 1.5rem; color: var(--title); }

.contato-form form {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.form-group { margin-bottom: 1.1rem; }

.form-group label { display: block; font-size: .88rem; font-weight: 600; color: var(--title); margin-bottom: .4rem; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .93rem;
  color: var(--title);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(5,155,208,.15);
}

.form-group textarea { resize: vertical; min-height: 110px; flex: 1; }

.form-group select { cursor: pointer; }

.form-submit { width: 100%; justify-content: center; padding: .95rem; font-size: 1rem; margin-top: auto; }

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  color: var(--green);
}
.form-success .icon { font-size: 3rem; margin-bottom: .8rem; }

/* ---- Footer ---- */
#footer {
  background: var(--dark-bg);
  color: rgba(255,255,255,.75);
  padding: 60px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo img {
  height: 52px;
  width: auto;
  margin-bottom: 1rem;
}
.footer-brand p { font-size: .9rem; line-height: 1.6; }
.footer-brand .footer-whatsapp { margin-top: 1.1rem; }

.footer-col h4 { color: var(--white); font-size: .95rem; margin-bottom: 1rem; }

.footer-nav { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-nav a { font-size: .9rem; color: rgba(255,255,255,.65); transition: color var(--transition); }
.footer-nav a:hover { color: var(--blue-hover); }

/* Coluna de informações de contato */
.footer-company-name {
  font-weight: 700;
  color: var(--white) !important;
  font-size: 1rem !important;
}

.footer-contact-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .88rem;
  color: rgba(255,255,255,.7);
  line-height: 1.5;
}

.footer-info-icon { flex-shrink: 0; font-size: 1rem; }

.footer-contact-info a {
  color: rgba(255,255,255,.7);
  transition: color var(--transition);
  word-break: break-word;
}
.footer-contact-info a:hover { color: var(--blue-hover); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.2rem;
  text-align: center;
}

.footer-bottom p {
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  margin-bottom: .3rem;
}

.footer-credit {
  font-size: .8rem !important;
  color: rgba(255,255,255,.35) !important;
}

.footer-credit a {
  color: var(--blue-hover);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
}
.footer-credit a:hover { color: var(--white); }

/* ---- Floating WhatsApp ---- */
.whatsapp-float {
  position: fixed;
  bottom: calc(1.8rem + 56px + .7rem);
  right: 1.8rem;
  z-index: 999;
  background: var(--green);
  color: var(--white);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(0,129,56,.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover { transform: scale(1.12); box-shadow: 0 6px 28px rgba(0,129,56,.55); color: var(--white); }

/* ---- Back to top ---- */
.back-to-top {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 5px;
  background: var(--blue);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(5,155,208,.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s, background var(--transition), box-shadow var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--blue-hover);
  box-shadow: 0 6px 24px rgba(0,187,255,.45);
}

/* ---- Mobile Nav ---- */
@media (max-width: 900px) {
  .hamburger { display: flex; }

  nav { display: none; }
  nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    gap: 1.1rem;
    z-index: 99;
  }
  nav.open .header-cta { width: 100%; justify-content: center; }

  .header-inner { position: relative; }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .quem-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }

  /* Topbar — texto menor no mobile */
  .topbar { font-size: .75rem; }

  /* Hero — parallax fixo desabilitado no mobile (bug Safari) */
  #hero {
    background-attachment: scroll;
    padding: 48px 0 80px;
  }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-text { text-align: center; }
  .hero-text .eyebrow { font-size: .72rem; letter-spacing: .08em; }
  .hero-text h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .hero-text p { font-size: .95rem; margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-image-wrap { display: none; }

  .hero-diferenciais {
    grid-template-columns: 1fr;
    margin-bottom: -2rem;
    margin-top: 2rem;
  }

  /* Serviços — padding compensado menor no mobile */
  #servicos { padding-top: calc(60px + 2rem); }

  /* Quem somos */
  .quem-inner { grid-template-columns: 1fr; }

  /* Portfolio */
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }

  /* Contato — coluna única */
  .contato-inner { grid-template-columns: 1fr; align-items: start; }
  .map-embed { flex: none; }
  .map-embed iframe { height: 200px; min-height: 200px; }
  .contato-form { padding: 1.4rem; }
  .contato-form h3 { font-size: 1.1rem; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand { grid-column: auto; }
}

@media (max-width: 540px) {
  .portfolio-grid { grid-template-columns: 1fr; }

  .servicos-grid { grid-template-columns: 1fr; }

  .servicos-grid--centered {
    flex-direction: column;
    align-items: stretch;
  }
  .servicos-grid--centered .servico-card {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .servicos-cta .btn { width: 100%; justify-content: center; }

  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; justify-content: center; }

  .cta-banner .btn { width: 100%; justify-content: center; margin: .3rem 0; }

  .form-group input,
  .form-group select,
  .form-group textarea { font-size: .9rem; }
}

/* ---- Telas muito pequenas (< 375px) ---- */
@media (max-width: 374px) {
  .container { padding: 0 1rem; }

  .btn { white-space: normal; text-align: center; }
  .hero-btns .btn,
  .servicos-cta .btn,
  .cta-banner .btn,
  .contact-wa-btn,
  .form-submit { width: 100%; justify-content: center; }

  #hero { padding: 36px 0 50px; }
  .hero-text h1 { font-size: clamp(1.5rem, 8vw, 1.9rem); }
  .hero-text p { font-size: .88rem; max-width: 100%; }
  .hero-text .eyebrow { font-size: .68rem; }

  section { padding: 48px 0; }

  .hero-card { padding: 1rem 1rem; }
  .hero-card .icon { font-size: 1.2rem; }

  .footer-brand .btn { width: 100%; justify-content: center; }
}
