/*
Theme Name: WebEmpire Satélites
Theme URI: https://webempire.local
Author: WebEmpire
Author URI: https://webempire.local
Description: Tema base dos sites satélites do ecossistema WebEmpire.
Version: 0.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: webempire-satelites
*/

:root {
  --bg: #100917;
  --bg-soft: #140d1d;
  --surface: #1a1325;
  --surface-2: #241837;
  --surface-3: #2c1d42;
  --ink: #fff7ff;
  --muted: #d8c7e2;
  --line: rgba(205, 177, 226, 0.14);
  --accent: #ff375f;
  --accent-2: #d62976;
  --accent-3: #f77737;
  --radius-pill: 14px;
  --radius-card: 18px;
  --shadow: 0 24px 52px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 18px 34px rgba(0, 0, 0, 0.22);
  --max: 1280px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #100917 0%, #140d1d 100%);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

h1,
h2,
h3,
.we-serif {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

.we-shell {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.we-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(15, 9, 22, 0.88);
  border-bottom: 1px solid rgba(205, 177, 226, 0.10);
}

.we-site-header__row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 20px;
  min-height: 78px;
}

.we-site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.we-site-logo__image {
  width: auto;
  height: 40px;
  object-fit: contain;
}

.we-main-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.we-main-nav a,
.we-menu-toggle,
.we-button,
.we-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.we-main-nav a,
.we-menu-toggle,
.we-ghost {
  color: var(--ink);
  background: transparent;
}

.we-main-nav a:hover,
.we-main-nav a:focus-visible,
.we-menu-toggle:hover,
.we-menu-toggle:focus-visible,
.we-ghost:hover,
.we-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.we-button {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  box-shadow: 0 16px 30px rgba(214, 41, 118, 0.28);
}

.we-button:hover,
.we-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 20px 36px rgba(214, 41, 118, 0.34);
}

.we-site-header__cta {
  min-width: 0;
  text-align: center;
}

.we-menu-toggle {
  display: none;
  cursor: pointer;
}

.we-mobile-menu {
  display: none;
  margin-top: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.we-mobile-menu.is-open {
  display: grid;
  gap: 10px;
}

.we-mobile-menu a {
  width: fit-content;
}

.we-mobile-menu__cta {
  width: fit-content;
}

.we-home-hero {
  position: relative;
  aspect-ratio: 16 / 5;
  overflow: hidden;
  border-bottom: 1px solid rgba(205, 177, 226, 0.10);
}

.we-home-hero__image,
.we-home-hero__overlay {
  position: absolute;
  inset: 0;
}

.we-home-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.we-home-hero__overlay,
.we-full-cta-banner__overlay {
  background:
    linear-gradient(135deg, rgba(255, 55, 95, 0.74), rgba(214, 41, 118, 0.70) 52%, rgba(247, 119, 55, 0.66)),
    linear-gradient(115deg, rgba(255, 255, 255, 0.08), transparent 42%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.10), transparent 34%);
}

.we-home-hero__content {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.we-home-hero__description {
  max-width: 1180px;
  margin: 0;
  color: #fff;
  text-align: center;
  font-size: clamp(30px, 4.2vw, 72px);
  font-weight: 800;
  line-height: 0.98;
  text-wrap: balance;
  text-shadow: 0 10px 24px rgba(15, 9, 22, 0.44);
}

.we-section {
  padding: 28px 0 48px;
}

.we-home-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.we-home-card {
  min-width: 0;
}

.we-home-card__link,
.we-product-card__link {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.we-home-card__link:hover,
.we-home-card__link:focus-visible,
.we-product-card__link:hover,
.we-product-card__link:focus-visible,
.we-thumb-tile:hover,
.we-thumb-tile:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.we-home-card__link.is-placeholder,
.we-product-card__link.is-placeholder {
  cursor: default;
}

.we-home-card__image,
.we-product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 4;
}

.we-home-products__title {
  margin-bottom: 22px;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
}

.we-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.we-product-grid--inside {
  margin-bottom: 28px;
}

.we-product-card {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.we-price-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  box-shadow: 0 12px 22px rgba(214, 41, 118, 0.18);
}

.we-post-shell {
  display: grid;
  gap: 22px;
}

.we-post-body {
  display: grid;
  gap: 24px;
}

.we-post-hero {
  display: grid;
  gap: 12px;
}

.we-post-title {
  font-size: clamp(44px, 5vw, 78px);
  line-height: 0.96;
}

.we-thumb-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.we-thumb-tile {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.we-thumb-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.we-thumb-label {
  position: absolute;
  left: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 12px;
  background: rgba(18, 10, 24, 0.84);
  font-size: 13px;
  font-weight: 800;
}

.we-video-stage {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-soft);
}

.we-video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
}

.we-video-shell iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.we-post-content {
  display: grid;
  gap: 28px;
}

.we-post-section {
  display: grid;
  gap: 14px;
}

.we-post-section h2 {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
}

.we-full-cta-banner {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 24px;
  box-shadow: var(--shadow);
  min-height: 280px;
  background:
    url('./assets/herohomedesk_2.jpg') center/cover no-repeat;
}

.we-full-cta-banner__overlay,
.we-full-cta-banner__content {
  position: absolute;
  inset: 0;
}

.we-full-cta-banner__content {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 32px;
  text-align: center;
}

.we-full-cta-banner__content h2 {
  max-width: 980px;
  font-size: clamp(36px, 4.2vw, 68px);
  line-height: 0.96;
  text-shadow: 0 10px 24px rgba(15, 9, 22, 0.40);
}

.we-seo-copy__content {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.we-seo-copy__content > *:first-child {
  margin-top: 0;
}

.we-seo-copy__content > *:last-child {
  margin-bottom: 0;
}

.we-profile-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.we-profile-field {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.we-profile-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.we-profile-value {
  font-size: 18px;
  font-weight: 700;
}

.we-profile-value a:hover,
.we-profile-value a:focus-visible {
  text-decoration: underline;
}

.we-template-footer {
  margin-top: 28px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
}

.we-template-footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.we-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  padding: 24px;
  background: rgba(7, 4, 11, 0.86);
}

.we-lightbox.is-open {
  display: grid;
  place-items: center;
}

.we-lightbox__dialog {
  width: min(980px, 100%);
  display: grid;
  gap: 16px;
}

.we-lightbox__image {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.we-lightbox__image img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}

.we-lightbox__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.we-lightbox__meta p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .we-home-grid,
  .we-product-grid,
  .we-thumb-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .we-site-header__row {
    grid-template-columns: auto 1fr auto;
  }
}

@media (max-width: 860px) {
  .we-profile-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .we-shell,
  .we-home-hero__content {
    width: min(var(--max), calc(100% - 24px));
  }

  .we-main-nav,
  .we-site-header__cta {
    display: none;
  }

  .we-menu-toggle {
    display: inline-flex;
  }

  .we-site-header__row {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .we-home-grid,
  .we-product-grid,
  .we-thumb-gallery {
    grid-template-columns: 1fr;
  }

  .we-home-hero__description {
    font-size: 24px;
    line-height: 1.04;
  }

  .we-post-title {
    font-size: 42px;
  }

  .we-full-cta-banner__content {
    padding: 24px;
  }

  .we-full-cta-banner__content h2 {
    font-size: 36px;
  }

  .we-lightbox {
    padding: 12px;
  }

  .we-lightbox__meta {
    flex-direction: column;
    align-items: flex-start;
  }
}
