/* ==========================================================
   Mart Refrigeração — landing page
   Paleta: azul (frio) + vermelho (quente)
   ========================================================== */

:root {
  --cold-900: #071b45;
  --cold-700: #0a3a9e;
  --cold-500: #1e6bff;
  --cold-100: #e6efff;
  --hot-600: #c9231f;
  --hot-500: #e5322d;
  --hot-100: #ffe9e7;

  --ink: #0f1a2e;
  --muted: #52607a;
  --line: #dde4f0;
  --bg: #ffffff;
  --bg-tint: #f4f7fc;

  --grad: linear-gradient(120deg, var(--cold-500), var(--hot-500));
  --radius: 18px;
  --shadow: 0 10px 30px rgba(10, 42, 102, .12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--cold-500); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-hot { background: var(--hot-500); color: #fff; box-shadow: 0 8px 20px rgba(229, 50, 45, .35); }
.btn-hot:hover { background: var(--hot-600); }
.btn-ghost { border-color: var(--cold-700); color: var(--cold-700); background: transparent; }
.btn-ghost:hover { background: var(--cold-100); }
.btn-light { background: #fff; color: var(--cold-900); }
.btn-small { padding: .55rem 1.1rem; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; }
.brand-name { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--cold-900); }
.brand-name b { color: var(--hot-500); }

.nav ul { display: flex; align-items: center; gap: 1.75rem; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; color: var(--muted); }
.nav a:not(.btn):hover { color: var(--cold-700); }

.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; margin: 5px 0; background: var(--cold-900); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
  background:
    radial-gradient(60% 70% at 0% 0%, var(--cold-100), transparent 70%),
    radial-gradient(50% 60% at 100% 100%, var(--hot-100), transparent 70%),
    var(--bg);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }

.eyebrow {
  display: inline-block; margin-bottom: .9rem;
  font-size: .85rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow--light { background: none; color: #ffd3d0; -webkit-background-clip: initial; }

h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 1.08; letter-spacing: -.03em; color: var(--cold-900); }
.t-cold { color: var(--cold-500); }
.t-hot { color: var(--hot-500); }
.lead { margin-top: 1.25rem; font-size: 1.15rem; color: var(--muted); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.hero-stats li { padding-left: .9rem; border-left: 3px solid var(--cold-500); }
.hero-stats li:nth-child(2) { border-color: var(--hot-500); }
.hero-stats li:nth-child(3) { border-color: var(--cold-700); }
.hero-stats strong { display: block; font-size: .98rem; line-height: 1.25; }
.hero-stats span { font-size: .85rem; color: var(--muted); }

.hero-visual { position: relative; min-height: 460px; }
.hero-photo { position: absolute; margin: 0; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: var(--cold-100); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo--a { inset: 0 28% 12% 0; border: 4px solid var(--cold-500); }
.hero-photo--a img { object-position: 50% 15%; }
.hero-photo--b { inset: 22% 0 0 38%; border: 4px solid var(--hot-500); }
.chip {
  position: absolute; padding: .45rem .9rem; border-radius: 999px; font-weight: 800; font-size: .9rem; color: #fff; box-shadow: var(--shadow);
}
.chip-cold { left: 4%; bottom: 4%; background: var(--cold-500); }
.chip-hot { right: 4%; top: 6%; background: var(--hot-500); }

/* ---------- Seções ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--tint { background: var(--bg-tint); }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); line-height: 1.15; letter-spacing: -.02em; color: var(--cold-900); }
.section-sub { margin-top: .9rem; color: var(--muted); font-size: 1.05rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.card {
  position: relative; padding: 1.75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; border-radius: var(--radius) var(--radius) 0 0; }
.card--cold::before { background: var(--cold-500); }
.card--hot::before { background: var(--hot-500); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 1.1rem; }
.card--cold .card-icon { background: var(--cold-100); color: var(--cold-500); }
.card--hot .card-icon { background: var(--hot-100); color: var(--hot-500); }
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.15rem; margin-bottom: .5rem; color: var(--cold-900); }
.card p { color: var(--muted); font-size: .98rem; }

/* ---------- Filtros e galeria ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.75rem; }
.filter {
  padding: .55rem 1.2rem; border-radius: 999px; border: 2px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; color: var(--muted);
  transition: all .15s ease;
}
.filter:hover { border-color: var(--cold-500); color: var(--cold-700); }
.filter.is-active { background: var(--cold-900); border-color: var(--cold-900); color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; }
.shot[hidden] { display: none; }
.shot-btn {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; overflow: hidden;
  border-radius: var(--radius); background: var(--cold-100); aspect-ratio: 4 / 5;
  box-shadow: 0 2px 10px rgba(10, 42, 102, .08); transition: transform .2s ease, box-shadow .2s ease;
}
.shot-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.shot-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.shot-btn:hover img { transform: scale(1.05); }
.pos-top { object-position: 50% 18%; }
.shot-cap {
  position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem .9rem; text-align: left; color: #fff; font-weight: 700; line-height: 1.3;
  background: linear-gradient(to top, rgba(7, 27, 69, .92), transparent);
}
.shot-cap em {
  display: block; font-style: normal; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .2rem; color: #9fc0ff;
}
.shot[data-cat="eletrica"] .shot-cap em { color: #ffb4ae; }

/* ---------- Diferenciais ---------- */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: start; }
.section-sub.left { max-width: 46ch; }
.steps { display: grid; gap: 1rem; counter-reset: step; }
.steps li {
  position: relative; padding: 1.25rem 1.25rem 1.25rem 4.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  counter-increment: step;
}
.steps li::before {
  content: counter(step); position: absolute; left: 1.1rem; top: 1.1rem; width: 2.4rem; height: 2.4rem; display: grid; place-items: center;
  border-radius: 50%; color: #fff; font-weight: 800; background: var(--grad);
}
.steps h3 { font-size: 1.05rem; color: var(--cold-900); }
.steps p { color: var(--muted); font-size: .97rem; margin-top: .2rem; }

/* ---------- Contato ---------- */
.contact { color: #fff; background: linear-gradient(115deg, var(--cold-900) 0%, var(--cold-700) 55%, var(--hot-600) 140%); }
.contact h2 { color: #fff; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.contact-copy p { margin: 1rem 0 1.75rem; color: #d6e2ff; font-size: 1.1rem; }

.form { background: #fff; color: var(--ink); padding: 1.75rem; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; border: 2px solid var(--line); border-radius: 12px; background: #fff;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cold-500); outline: none; box-shadow: 0 0 0 4px var(--cold-100); }
.field [aria-invalid="true"] { border-color: var(--hot-500); }
.error { min-height: 1.1em; margin-top: .25rem; font-size: .85rem; color: var(--hot-600); font-weight: 600; }
.form-note { margin-top: .9rem; font-size: .82rem; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--cold-900); color: #b8c6e6; padding: 2.5rem 0; text-align: center; }
.footer-inner { display: grid; gap: .4rem; justify-items: center; }
.site-footer .brand-name { color: #fff; }
.copy { font-size: .85rem; opacity: .8; }
.developer-credit { display: inline-flex; align-items: center; gap: .7rem; margin-top: 1rem; color: #fff; font-size: .85rem; font-weight: 600; }
.developer-credit img { width: 120px; height: 65px; object-fit: contain; border-radius: .35rem; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60; width: 58px; height: 58px; display: grid; place-items: center;
  border-radius: 50%; background: #25d366; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 720px); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(4, 12, 30, .85); backdrop-filter: blur(4px); }
.lightbox figure { margin: 0; }
.lightbox img { max-height: 80vh; width: auto; margin-inline: auto; border-radius: 14px; }
.lightbox figcaption { margin-top: .8rem; text-align: center; color: #fff; font-weight: 600; }
.lightbox-close {
  position: absolute; top: -14px; right: -14px; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--hot-500); color: #fff; font-size: 1.6rem; line-height: 1;
}

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .hero-inner, .split, .contact-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 380px; order: -1; max-width: 460px; width: 100%; margin-inline: auto; }
  .hero-stats { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: var(--header-h) 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    display: none; padding: 1rem 1.25rem 1.5rem;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 1rem; }
  .nav .btn { width: 100%; }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .shot-cap { font-size: .8rem; padding-inline: .7rem; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
