/* ==========================================================
   base.css — Reset, Tokens e Componentes Globais
   Isa Criativa | isacriativa.com.br

   Carregado em TODAS as páginas. Não colocar aqui nada
   que seja exclusivo de uma única página.
   ========================================================== */

/* FONTES */
/* Nunito */
@font-face {
  font-family: "Nunito";
  src:
    url("../assets/fonts/Nunito-Light.woff2") format("woff2"),
    url("../assets/fonts/Nunito-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src:
    url("../assets/fonts/Nunito-Regular.woff2") format("woff2"),
    url("../assets/fonts/Nunito-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src:
    url("../assets/fonts/Nunito-Medium.woff2") format("woff2"),
    url("../assets/fonts/Nunito-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src:
    url("../assets/fonts/Nunito-SemiBold.woff2") format("woff2"),
    url("../assets/fonts/Nunito-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src:
    url("../assets/fonts/Nunito-Bold.woff2") format("woff2"),
    url("../assets/fonts/Nunito-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src:
    url("../assets/fonts/Nunito-ExtraBold.woff2") format("woff2"),
    url("../assets/fonts/Nunito-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Pacifico */
@font-face {
  font-family: "Pacifico";
  src:
    url("../assets/fonts/Pacifico-Regular.woff2") format("woff2"),
    url("../assets/fonts/Pacifico-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* 1. RESET (Meyer Reset v2.0)
   ========================================================== */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 2. DESIGN TOKENS (Variáveis Globais)
   ========================================================== */
:root {
  /* Paleta principal */
  --primary-color: #f8bbd0;
  --primary-dark: #c2185b;
  --primary-deeper: #ad1457;
  --primary-vivid: #e91e8c;
  --primary-deep-alt: #d81b60;
  --accent-color: #7b1fa2;

  /* Cores utilitárias */
  --color-white: #ffffff;
  --color-off-white: #f1f1f1;
  --color-white-50: rgba(255, 255, 255, 0.5);
  --color-white-85: rgba(255, 255, 255, 0.85);
  --color-instagram-pink: #c2185b;
  --color-instagram-btn-hover: #fce4ec;
  --color-whatsapp: #25d366;

  /* Fundos */
  --bg-light: #fffcfd;
  --bg-gray: #fdfbfb;
  --color-bg-hero-start: #fff0f5;
  --color-bg-hero-mid: #fce4ec;
  --color-bg-hero-end: #e0f7fa;

  /* Texto */
  --text-dark: #4a4a4a;
  --text-light: #6b6b6b;
  --text-muted-on-dark: #e0e0e0;

  /* Sombras — primária */
  --shadow-primary-sm: rgba(240, 98, 146, 0.3);
  --shadow-primary-md: rgba(240, 98, 146, 0.4);
  --color-primary-overlay: rgba(240, 98, 146, 0.6);

  /* Sombras — neutras */
  --shadow-dark-xs: rgba(0, 0, 0, 0.03);
  --shadow-dark-sm: rgba(0, 0, 0, 0.05);
  --shadow-dark-md: rgba(0, 0, 0, 0.1);
  --shadow-dark-lg: rgba(0, 0, 0, 0.15);
  --shadow-dark-xl: rgba(0, 0, 0, 0.2);
  --shadow-dark-2xl: rgba(0, 0, 0, 0.3);
  --shadow-dark-overlay: rgba(0, 0, 0, 0.8);

  /* Tipografia — famílias */
  --font-main: "Nunito", sans-serif;
  --font-logo: "Pacifico", cursive;

  /* Tipografia — tamanhos */
  --fs-xs: 1.05rem;
  --fs-sm: 1.1rem;
  --fs-md: 1.15rem;
  --fs-base: 1.2rem;
  --fs-lg: 1.5rem;
  --fs-xl: 1.6rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.2rem;
  --fs-icon-sm: 2.5rem;
  --fs-icon-lg: 3.5rem;
  --fs-close: 40px;

  /* Espaçamentos */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 10px;
  --space-4: 12px;
  --space-5: 15px;
  --space-6: 16px;
  --space-7: 18px;
  --space-8: 20px;
  --space-9: 24px;
  --space-10: 28px;
  --space-11: 30px;
  --space-12: 40px;
  --space-13: 50px;
  --space-14: 60px;
  --space-15: 70px;
  --space-16: 80px;
  --space-17: 100px;

  /* Border-radius */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 15px;
  --radius-xl: 30px;
  --radius-full: 50%;

  /* Transições */
  --transition-speed: 0.3s; /* alias legado — preferir os abaixo */
  --transition-fast: 0.2s;
  --transition-normal: 0.3s;
  --transition-slow: 0.5s;
  --transition-xslow: 0.8s;

  /* Z-index */
  --z-base: 0;
  --z-above: 1;
  --z-raised: 2;
  --z-nav: 100;
  --z-modal: 2000;

  /* Dimensões de componentes */
  --bar-width: 25px;
  --bar-height: 3px;
  --dot-size: 12px;
  --step-icon-size: 60px;
  --bullet-size: 8px;

  /* Hero */
  --blob-opacity-outer: 0.28;
  --blob-opacity-inner: 0.45;

  /* Galeria */
  --overlay-translate-y: 20px;

  /* Misc */
  --gradient-brand: linear-gradient(
    135deg,
    #c2185b 0%,
    #ad1457 50%,
    #7b1fa2 100%
  );
  --header-height: 70px;
}

/* 3. ESTILOS BASE
   ========================================================== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* 4. TIPOGRAFIA / LOGO
   ========================================================== */
.logo,
a.logo {
  font-family: var(--font-logo);
  font-size: 1.8rem;
  color: var(--primary-dark);
  text-decoration: none;
}

.logo:focus-visible,
a.logo:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 5. UTILITÁRIOS
   ========================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Focus global — páginas podem sobrescrever com especificidade maior */
a:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 2px;
  border-radius: 2px;
}

/* 6. HEADER GLOBAL
   ========================================================== */
header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

/* 7. NAVEGAÇÃO — LINK "VOLTAR"
   ========================================================== */
/* Compartilhado entre index, post e política de privacidade */
.back-link,
.post-back-link {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--text-dark);
  transition: color var(--transition-speed);
}

.back-link:hover,
.post-back-link:hover {
  color: var(--primary-dark);
}

/* 8. WHATSAPP FLUTUANTE
   ========================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--color-whatsapp);
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: transform var(--transition-speed);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}
.whatsapp-float:focus-visible {
  outline: 3px solid white;
  outline-offset: 3px;
}

/* 9. FOOTER GLOBAL
   ========================================================== */
footer {
  background-color: var(--text-dark);
  color: var(--text-muted-on-dark);
  padding: 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px 0;
}

.footer-brand .logo {
  color: var(--primary-color);
  margin-bottom: 5px;
}
.footer-brand p {
  font-size: 0.95rem;
  color: var(--text-muted-on-dark);
  margin-top: 8px;
}

.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a {
  color: var(--text-muted-on-dark);
  font-size: 1.4rem;
  text-decoration: none;
  transition: color var(--transition-speed);
}
.footer-social a:hover {
  color: var(--primary-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted-on-dark);
}

.footer-privacy-link {
  color: var(--text-muted-on-dark);
  text-decoration: underline;
}
.footer-privacy-link:hover {
  color: white;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* 10. ACESSIBILIDADE GLOBAL
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .whatsapp-float {
    transition: none;
    animation: none;
  }
}
