/* ==========================================================================
   Maite Media PT (pt-BR) — Design System
   Mobile-first. Brand tokens extracted from maitemedia.com.
   ========================================================================== */

:root {
  /* Brand */
  --color-red: #cc1010;
  --color-red-dark: #a50d0d;
  --color-dark: #1d1f23;
  --color-graphite: #303030;
  --color-slate: #32373c;
  --color-white: #ffffff;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f7f9;
  --color-muted: #5d646e;
  --color-border: #e4e7eb;
  --color-whatsapp: #25d366;

  /* Typography */
  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing & layout */
  --container: 1180px;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 8px 30px rgba(20, 22, 26, 0.08);
  --shadow-hover: 0 14px 40px rgba(20, 22, 26, 0.14);
  --transition: 0.25s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--color-slate);
  background: var(--color-bg);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--color-dark);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Layout helpers */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: 3.5rem; }
.section--alt { background: var(--color-bg-alt); }
.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-red);
  margin-bottom: 0.6rem;
}
.section__head { max-width: 720px; margin-bottom: 2.25rem; }
.section__head h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
.section__head p { color: var(--color-muted); margin-top: 0.6rem; font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  padding: 0.85rem 1.6rem; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: var(--transition);
  text-transform: uppercase; letter-spacing: 0.03em;
}
.btn--primary { background: var(--color-red); color: var(--color-white); }
.btn--primary:hover { background: var(--color-red-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--color-white); border-color: rgba(255,255,255,0.6); }
.btn--ghost:hover { background: var(--color-white); color: var(--color-dark); }
.btn--dark { background: var(--color-dark); color: var(--color-white); }
.btn--dark:hover { background: #000; transform: translateY(-2px); }
.btn--wa { background: var(--color-whatsapp); color: #08311b; }
.btn--wa:hover { transform: translateY(-2px); }

/* ============================ Header / Nav ============================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; }
.nav__logo { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--color-dark); }
.nav__logo img { height: 42px; width: auto; }
.nav__menu { display: none; }
.nav__toggle {
  display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 8px;
}
.nav__toggle span { width: 26px; height: 3px; background: var(--color-dark); border-radius: 2px; transition: var(--transition); }
.nav__actions { display: none; }

/* Mobile menu open */
.nav__menu.is-open {
  display: flex; flex-direction: column;
  position: absolute; left: 0; right: 0; top: 72px;
  background: var(--color-white); border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.25rem 1.5rem; gap: 0.25rem; box-shadow: var(--shadow);
}
.nav__menu.is-open a {
  font-family: var(--font-head); font-weight: 600; padding: 0.75rem 0.25rem;
  border-bottom: 1px solid var(--color-border);
}
.nav__menu.is-open .nav__cta { margin-top: 0.75rem; border-bottom: 0; }

/* ============================ Hero ============================ */
.hero {
  position: relative; color: var(--color-white);
  background:
    linear-gradient(115deg, rgba(20,22,26,0.93) 0%, rgba(20,22,26,0.74) 55%, rgba(204,16,16,0.58) 100%),
    var(--hero-img, none) center / cover no-repeat,
    var(--color-dark);
  padding-block: 4rem 4.5rem;
  overflow: hidden;
}
.hero__inner { max-width: 740px; }
.hero__eyebrow { color: #ff8a8a; }
.hero h1 { color: var(--color-white); font-size: clamp(2.1rem, 8vw, 3.6rem); }
.hero__lead { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.1rem, 3.5vw, 1.5rem); margin-top: 0.75rem; color: #f1f1f1; }
.hero p.hero__text { margin-top: 1.1rem; font-size: 1.08rem; color: #d7d9dd; max-width: 600px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* Hero dinâmico (home): Ken Burns + entrada do texto */
.hero--dynamic { background: var(--color-dark); isolation: isolate; }
.hero--dynamic::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--hero-img) center / cover no-repeat;
  animation: kenburns 28s ease-in-out infinite alternate; will-change: transform;
}
.hero--dynamic::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, rgba(20,22,26,0.92) 0%, rgba(20,22,26,0.72) 55%, rgba(204,16,16,0.55) 100%);
}
.hero--dynamic .hero__inner > * { animation: heroFade 0.8s ease both; }
.hero--dynamic .hero__eyebrow { animation-delay: 0.05s; }
.hero--dynamic h1 { animation-delay: 0.15s; }
.hero--dynamic .hero__lead { animation-delay: 0.30s; }
.hero--dynamic .hero__text { animation-delay: 0.45s; }
.hero--dynamic .hero__cta { animation-delay: 0.60s; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1.2) translate(-2%, -1.5%); } }
@keyframes heroFade { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ============================ Stat strip ============================ */
.stat {
  background: var(--color-red); color: var(--color-white); text-align: center;
  padding-block: 2.25rem;
}
.stat h2 { color: var(--color-white); font-size: clamp(1.4rem, 5vw, 2rem); }
.stat p { margin-top: 0.4rem; color: #ffe3e3; max-width: 640px; margin-inline: auto; }

/* ============================ Service cards ============================ */
.cards { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.card {
  background: var(--color-white); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 1.6rem; transition: var(--transition);
  display: flex; flex-direction: column; gap: 0.6rem;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: transparent; }
.card__icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(204,16,16,0.10); color: var(--color-red);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--color-muted); font-size: 0.98rem; }
.card__link { margin-top: auto; font-family: var(--font-head); font-weight: 700; color: var(--color-red); font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.35rem; }
.card__link::after { content: "→"; transition: var(--transition); }
.card:hover .card__link::after { transform: translateX(4px); }

/* ============================ Industries ============================ */
.industries { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.industry {
  display: flex; align-items: center; gap: 0.7rem; padding: 1rem 1.1rem;
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; color: var(--color-slate);
}
.industry::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--color-red); flex: none; }

/* ============================ CTA band ============================ */
.cta-band {
  background: var(--color-dark); color: var(--color-white); text-align: center;
  border-radius: var(--radius-lg); padding: 3rem 1.5rem; margin-block: 0;
}
.cta-band h2 { color: var(--color-white); font-size: clamp(1.6rem, 5vw, 2.3rem); }
.cta-band p { color: #c9ccd2; margin-top: 0.6rem; max-width: 560px; margin-inline: auto; }
.cta-band .hero__cta { justify-content: center; }

/* Client logos band */
.clients { background: var(--color-dark); color: var(--color-white); text-align: center; }
.clients h2 { color: var(--color-white); font-size: clamp(1.4rem, 4vw, 2rem); }
.clients p { color: #c9ccd2; margin-top: 0.5rem; }
.clients__logos { max-width: 600px; width: 100%; margin: 2rem auto 0; height: auto; }

/* Content media blocks */
.media { display: grid; grid-template-columns: 1fr; gap: 1.75rem; align-items: center; }
.media__img { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); display: block; }
.media__img--portrait { max-width: 380px; aspect-ratio: 4 / 5; object-fit: cover; object-position: top center; }
.media__body h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 0.8rem; }
.media__body p { color: var(--color-muted); margin-bottom: 1rem; }

.figure { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); margin: 0; }
.figure img { width: 100%; height: auto; display: block; }
.figure--portrait { max-width: 320px; }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.gallery img { width: 100%; height: 210px; object-fit: cover; border-radius: var(--radius); display: block; }

/* Bastidores collage: foto vertical completa + horizontales apiladas (sem cortar) */
.bts { display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: start; }
.bts figure { margin: 0; }
.bts img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top; display: block; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.bts__stack { display: grid; gap: 1rem; align-content: start; }

.badge-asepy { display: inline-block; max-width: 220px; margin-top: 1rem; }
.badge-asepy img { width: 100%; height: auto; display: block; }

/* Fila de logos de membresía (ASEPY, AHK, etc.) */
.badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.25rem 2.5rem; margin-top: 1.5rem; }
.badge img { height: 52px; width: auto; display: block; }

/* Grade de equipamento (transmissão ao vivo) */
.gear-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.gear { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.4rem 1rem; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gear img { height: 84px; width: auto; max-width: 100%; margin: 0 auto 0.8rem; object-fit: contain; display: block; }
.gear span { font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--color-slate); }
.platforms-strip { text-align: center; }
.platforms-strip img { max-width: 720px; width: 100%; height: auto; margin: 1.25rem auto 0; display: block; border-radius: var(--radius); }
@media (min-width: 720px) { .gear-grid { grid-template-columns: repeat(3, 1fr); } }

/* Video embeds (YouTube) */
.video-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 860px) { .video-grid { grid-template-columns: 1fr 1fr; } }

@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } .bts { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px) {
  .media { grid-template-columns: 1fr 1fr; }
  .media--reverse .media__img { order: 2; }
}

/* ============================ Footer ============================ */
.site-footer { background: var(--color-graphite); color: #cfd2d7; padding-block: 2.75rem 5rem; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
.footer__brand img { height: 48px; margin-bottom: 0.75rem; }
.footer h4 { color: var(--color-white); font-size: 1rem; margin-bottom: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer a { color: #cfd2d7; transition: var(--transition); }
.footer a:hover { color: var(--color-white); }
.footer__links li { margin-bottom: 0.55rem; }
.footer__social { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.footer__social a { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.08); display: grid; place-items: center; }
.footer__social a:hover { background: var(--color-red); }
.footer__social svg { width: 18px; height: 18px; fill: currentColor; }
.footer__legal {
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem; color: #9aa0a8; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; justify-content: space-between;
}

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; background: var(--color-whatsapp);
  display: grid; place-items: center; box-shadow: var(--shadow); transition: var(--transition);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ============================ Responsive ============================ */
@media (min-width: 720px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .industries { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
  .site-footer { padding-bottom: 2.5rem; }
}
@media (min-width: 992px) {
  .section { padding-block: 5rem; }
  .nav__toggle { display: none; }
  .nav__menu { display: flex; align-items: center; gap: 1.75rem; }
  .nav__menu a { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; color: var(--color-slate); transition: var(--transition); position: relative; }
  .nav__menu a:hover { color: var(--color-red); }
  .nav__menu .nav__cta { display: none; } /* botão de orçamento só no menu mobile */
  .nav__actions { display: flex; align-items: center; gap: 1rem; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .hero { padding-block: 6rem 6.5rem; }
}

/* ============================ Interior pages ============================ */
.hero--compact { padding-block: 3.25rem 3.5rem; }
.hero--compact h1 { font-size: clamp(1.8rem, 6vw, 2.9rem); }

.breadcrumb { background: var(--color-bg-alt); border-bottom: 1px solid var(--color-border); }
.breadcrumb ol { list-style: none; padding-left: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; padding-block: 0.85rem; font-size: 0.85rem; color: var(--color-muted); font-family: var(--font-head); }
.breadcrumb li::after { content: "/"; margin-left: 0.4rem; color: var(--color-border); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a:hover { color: var(--color-red); }
.breadcrumb [aria-current="page"] { color: var(--color-dark); font-weight: 600; }

.prose { max-width: 780px; }
.prose p { margin-bottom: 1.1rem; color: var(--color-slate); font-size: 1.06rem; }
.prose h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 0.9rem; }

.pillars { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.pillar { text-align: center; padding: 1.5rem; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.pillar__icon { width: 56px; height: 56px; margin: 0 auto 0.8rem; border-radius: 14px; display: grid; place-items: center; background: rgba(204,16,16,0.1); color: var(--color-red); }
.pillar__icon svg { width: 28px; height: 28px; }
.pillar h3 { font-size: 1.15rem; }
.pillar p { color: var(--color-muted); margin-top: 0.35rem; font-size: 0.97rem; }

.specs { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.spec { display: flex; gap: 0.85rem; padding: 1.15rem 1.3rem; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius); }
.spec__mark { color: var(--color-red); flex: none; font-weight: 800; }
.spec p { color: var(--color-slate); font-size: 1rem; }

@media (min-width: 720px) {
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .specs { grid-template-columns: 1fr 1fr; }
}

/* ============================ Contact / Forms ============================ */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.form { display: flex; flex-direction: column; gap: 1rem; }
.form__row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--color-dark); }
.field input, .field textarea {
  width: 100%; padding: 0.8rem 0.95rem; font-family: var(--font-body); font-size: 1rem;
  color: var(--color-slate); background: var(--color-white);
  border: 1px solid var(--color-border); border-radius: var(--radius); transition: var(--transition);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--color-red); box-shadow: 0 0 0 3px rgba(204,16,16,0.12); }
.field textarea { resize: vertical; min-height: 130px; }
.form__status { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; padding: 0.75rem 1rem; border-radius: var(--radius); display: none; }
.form__status.is-ok { display: block; background: #e7f7ec; color: #147a3c; }
.form__status.is-error { display: block; background: #fbe6e6; color: var(--color-red-dark); }

.info-card { background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.6rem; }
.info-list { display: flex; flex-direction: column; gap: 1.1rem; }
.info-item { display: flex; gap: 0.8rem; align-items: flex-start; }
.info-item__icon { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(204,16,16,0.1); color: var(--color-red); }
.info-item__icon svg { width: 20px; height: 20px; }
.info-item h4 { font-size: 0.95rem; margin-bottom: 0.15rem; }
.info-item p, .info-item a { color: var(--color-muted); font-size: 0.97rem; }
.info-item a:hover { color: var(--color-red); }

/* Process steps */
.steps { display: grid; grid-template-columns: 1fr; gap: 1.25rem; counter-reset: step; }
.step { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.6rem; position: relative; }
.step__num { width: 44px; height: 44px; border-radius: 50%; background: var(--color-red); color: #fff; font-family: var(--font-head); font-weight: 800; display: grid; place-items: center; margin-bottom: 0.8rem; }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--color-muted); margin-top: 0.4rem; font-size: 0.97rem; }

@media (min-width: 720px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.15fr 0.85fr; align-items: start; } .form__row--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* Accessibility */
:focus-visible { outline: 3px solid var(--color-red); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto; } }
