/* Achadinhos de Costura — estilos complementares ao Tailwind */

:root {
  --navy: #253452;
  --soft: #f5f5f5;
  --muted: #666666;
  --cream: #f5f1e8;
  --green: #52c41a;
  --green-hover: #3da312;
  --white: #ffffff;
  --shadow: 0 8px 24px rgba(37, 52, 82, 0.1);
  --shadow-hover: 0 16px 40px rgba(37, 52, 82, 0.18);
  --radius: 18px;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

/* ---- Header ---- */
.profile-img {
  width: 160px;
  height: auto;
  object-fit: contain;
}

@media (min-width: 640px) {
  .profile-img {
    width: 200px;
  }
}

.header-subtitle {
  font-size: clamp(0.75rem, 3.4vw, 1rem);
  line-height: 1.45;
  max-width: 100%;
  padding-inline: 0.25rem;
}

.header-subtitle__br {
  display: block;
}

@media (min-width: 640px) {
  .header-subtitle {
    white-space: nowrap;
  }

  .header-subtitle__br {
    display: none;
  }
}

.page-title {
  font-size: 2.25rem;
  line-height: 1.15;
}

.page-title__br {
  display: block;
}

.page-title__space {
  display: none;
}

@media (min-width: 640px) {
  .page-title__br {
    display: none;
  }

  .page-title__space {
    display: inline;
  }
}

@media (min-width: 768px) {
  .page-title {
    font-size: 2.75rem;
  }
}

/* ---- Banners ---- */
.banner-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--soft);
  box-shadow: var(--shadow);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.banner-card:hover,
.banner-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.banner-card:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.banner-card:hover .banner-img,
.banner-card:focus-visible .banner-img {
  transform: scale(1.05);
}

.banner-hero {
  aspect-ratio: 16 / 6;
}

#banner-grid .banner-card {
  aspect-ratio: 1 / 1;
}

@media (max-width: 767px) {
  .banner-hero {
    aspect-ratio: auto;
  }

  .banner-hero .banner-img {
    height: auto;
    object-fit: contain;
  }
}

/* ---- WhatsApp ---- */
.btn-whatsapp {
  background-color: var(--green);
  box-shadow: 0 6px 18px rgba(82, 196, 26, 0.35);
  transition:
    background-color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.btn-whatsapp:hover {
  background-color: var(--green-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(61, 163, 18, 0.4);
}

.btn-whatsapp:active {
  transform: translateY(0);
}

.whatsapp-section {
  width: 100%;
  background-color: var(--cream);
}

.whatsapp-privacy {
  font-size: 0.6rem;
  line-height: 1.45;
}

@media (min-width: 640px) {
  .whatsapp-privacy {
    font-size: 0.68rem;
  }
}

/* ---- Fade Up ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .banner-card,
  .banner-img,
  .btn-whatsapp {
    transition: none;
  }

  .banner-card:hover,
  .banner-card:focus-visible {
    transform: none;
  }

  .banner-card:hover .banner-img,
  .banner-card:focus-visible .banner-img {
    transform: none;
  }
}

/* ---- Cookies ---- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  padding: 12px;
  pointer-events: none;
}

.cookie-banner[hidden],
.cookie-config[hidden] {
  display: none !important;
}

.cookie-banner__inner {
  pointer-events: auto;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: 18px 48px 18px 20px;
  background: var(--white);
  border: 1px solid rgba(37, 52, 82, 0.08);
  border-radius: 16px;
  box-shadow: 0 -4px 32px rgba(37, 52, 82, 0.14);
}

.cookie-banner__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.cookie-banner__close:hover {
  background: var(--soft);
  color: var(--navy);
}

.cookie-banner__content {
  flex: 1 1 240px;
  min-width: 0;
  padding-right: 8px;
}

.cookie-banner__title {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--muted);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-btn--primary {
  background: var(--navy);
  color: var(--white);
}

.cookie-btn--primary:hover {
  background: #1a2538;
}

.cookie-btn--secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid rgba(37, 52, 82, 0.25);
}

.cookie-btn--secondary:hover {
  background: var(--soft);
  border-color: var(--navy);
}

.cookie-config {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(37, 52, 82, 0.45);
}

.cookie-config__box {
  width: 100%;
  max-width: 420px;
  padding: 24px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-hover);
}

@media (max-width: 480px) {
  .cookie-banner__inner {
    padding: 16px 44px 16px 16px;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}
