/*
Theme Name: Matahari Eventos
Theme URI: https://example.com/matahari-eventos
Author: Codex
Description: Tema WordPress simples para anuncio publico de eventos da marca MATAHARI, com cadastro de eventos e galeria pelo painel administrativo.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: matahari-eventos
*/

:root {
  --mh-bg: #090909;
  --mh-panel: #14110f;
  --mh-panel-soft: #1f1714;
  --mh-text: #fff8ed;
  --mh-muted: #c8b8a3;
  --mh-gold: #f2aa25;
  --mh-gold-soft: #ffd36b;
  --mh-red: #d3212c;
  --mh-line: rgba(255, 211, 107, 0.22);
  --mh-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--mh-bg);
  color: var(--mh-text);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 78% 8%, rgba(211, 33, 44, 0.16), transparent 34rem),
    linear-gradient(160deg, #090909 0%, #17100d 52%, #090909 100%);
}

a {
  color: inherit;
}

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

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(242, 170, 37, 0.18);
  background: rgba(9, 9, 9, 0.84);
  backdrop-filter: blur(16px);
  transition: box-shadow 250ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.site-header__inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  transition: padding 250ms ease;
}

.site-header.is-scrolled .site-header__inner {
  padding: 9px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-decoration: none;
}

.brand img {
  width: 178px;
  height: auto;
  transition: width 250ms ease;
}

.site-header.is-scrolled .brand img {
  width: 119px;
}

.brand__fallback {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--mh-gold);
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  color: var(--mh-muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--mh-gold-soft);
}

.nav-sexshop {
  border: 1px solid rgba(242, 170, 37, 0.66);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--mh-gold-soft);
  background: rgba(242, 170, 37, 0.12);
}

.nav-sexshop:hover,
.nav-sexshop:focus-visible {
  color: #ffffff;
  background: rgba(242, 170, 37, 0.2);
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #06170c;
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.35);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: scale(1.07);
  box-shadow: 0 20px 44px rgba(37, 211, 102, 0.45);
}

@media (max-width: 560px) {
  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-float svg {
    width: 25px;
    height: 25px;
  }
}

.hero {
  min-height: 74vh;
  display: grid;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 48px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.74fr);
  align-items: center;
  gap: 48px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--mh-gold-soft);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(1.3rem, 7vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: 0.5;
}

.hero h1 span {
  color: var(--mh-gold);
}

.hero__copy {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--mh-muted);
  font-size: clamp(1.02rem, 2vw, 1.25rem);
}

.hero__actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--mh-gold);
  border-radius: 6px;
  padding: 12px 20px;
  background: var(--mh-gold);
  color: #150d08;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 16px 36px rgba(242, 170, 37, 0.2);
}

.button--ghost {
  background: transparent;
  color: var(--mh-gold-soft);
  box-shadow: none;
}

.button--whatsapp {
  border-color: #25d366;
  background: #25d366;
  color: #06170c;
  box-shadow: 0 16px 36px rgba(37, 211, 102, 0.18);
}

.hero-carousel {
  position: relative;
  border: 1px solid var(--mh-line);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(31, 23, 20, 0.96), rgba(14, 11, 10, 0.96));
  box-shadow: var(--mh-shadow);
}

.hero-carousel__track {
  position: relative;
  aspect-ratio: 2 / 3 ;
}

.hero-carousel__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 600ms ease;
}

.hero-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-carousel__slide img {
  flex: 1;
  width: 600px;
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.hero-carousel__content {
  padding: 24px;
}

.hero-carousel__content h2 {
  margin: 0 0 0px;
  font-size: 1.45rem;
}

.hero-carousel__content p {
  margin: 0;
  color: var(--mh-muted);
}

.hero-carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 248, 237, 0.35);
  cursor: pointer;
}

.hero-carousel__dot.is-active {
  background: var(--mh-gold);
}

.section {
  padding: 72px 0;
}

.section--soft {
  background: rgba(255, 248, 237, 0.035);
  border-block: 1px solid rgba(242, 170, 37, 0.12);
}

.section__inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-width: 0;
}

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section__head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.15rem);
  line-height: 1;
  letter-spacing: 0;
}

.section__head p {
  max-width: 460px;
  margin: 0;
  color: var(--mh-muted);
}

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

.event-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--mh-line);
  border-radius: 8px;
  background: rgba(20, 17, 15, 0.9);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.event-card__media {
  background: #211511;
}

.event-card__media img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.event-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.event-card__date {
  width: fit-content;
  margin-bottom: 14px;
  border: 1px solid rgba(242, 170, 37, 0.34);
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--mh-gold-soft);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.event-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.event-card p {
  margin: 0 0 18px;
  color: var(--mh-muted);
  overflow-wrap: anywhere;
}

.event-card__prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}

.event-card__prices div {
  border: 1px solid rgba(242, 170, 37, 0.18);
  border-radius: 6px;
  padding: 9px 10px;
  background: rgba(255, 248, 237, 0.04);
}

.event-card__prices dt {
  margin: 0 0 2px;
  color: var(--mh-gold);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.event-card__prices dd {
  margin: 0;
  color: var(--mh-text);
  font-size: 0.96rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.event-card__meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 248, 237, 0.08);
  color: #ead8bd;
  font-size: 0.92rem;
  font-weight: 700;
}

.gallery-grid {
  column-count: 3;
  column-gap: 10px;
  border: 1px solid var(--mh-line);
  border-radius: 8px;
  padding: 10px;
}

.gallery-item {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 10px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--mh-panel);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 220ms ease;
}

.gallery-item figcaption {
  min-height: 54px;
  padding: 12px 14px;
  color: var(--mh-muted);
  font-size: 0.9rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.empty-state {
  border: 1px dashed rgba(242, 170, 37, 0.32);
  border-radius: 8px;
  padding: 24px;
  color: var(--mh-muted);
  background: rgba(20, 17, 15, 0.7);
}

.site-footer {
  border-top: 1px solid rgba(242, 170, 37, 0.16);
  padding: 32px 0;
  color: var(--mh-muted);
  background: #070707;
}

.site-footer__inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.site-footer strong {
  color: var(--mh-gold-soft);
}

.site-footer__brand,
.site-footer__copy {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.site-footer__copy {
  justify-content: flex-end;
}

.site-footer__address {
  text-align: center;
  color: var(--mh-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.footer-social {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a,
.footer-social span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(242, 170, 37, 0.24);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--mh-gold-soft);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-social__icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  border-color: var(--mh-gold);
  color: #ffffff;
}

@media (max-width: 860px) {
  .site-header__inner,
  .section__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

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

  .site-footer__inner {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .site-footer__address {
    text-align: left;
  }

  .site-footer__copy {
    justify-content: flex-start;
  }

  .gallery-grid {
    column-count: 2;
  }
}

@media (max-width: 560px) {
  .brand img {
    width: 150px;
  }

  .site-header.is-scrolled .brand img {
    width: 100px;
  }

  .site-nav {
    font-size: 0.86rem;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .gallery-grid {
    column-count: 1;
  }

  .event-card__prices {
    grid-template-columns: 1fr;
  }
}
