/* ==============================================
   MITOLOGIA DOS ORIXÁS — MAIN CSS
   Design System: Tokens, Reset, Typography,
   Layout, Buttons, Utilities
   ============================================== */

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  /* — Colors — */
  --void:          #080808;
  --smoke:         #0f0f0f;
  --smoke-mid:     #141414;
  --smoke-light:   #1c1c1c;
  --card-bg:       #181818;
  --earth:         #2A1A0E;
  --earth-light:   #3d2615;

  /* Gold System */
  --gold:             #C9A84C;
  --gold-light:       #e8c87a;
  --gold-bright:      #f4d68a;
  --gold-dark:        #8a6e2c;
  --gold-glow:        rgba(201, 168, 76, 0.25);
  --gold-glow-strong: rgba(201, 168, 76, 0.55);
  --gold-border:      rgba(201, 168, 76, 0.35);

  /* Text */
  --text:           #E8E0D4;
  --text-secondary: #b0a090;
  --text-muted:     #6a5a4a;

  /* Accent */
  --accent-red:  #8B2020;
  --wpp-green:   #25D366;

  /* — Spacing — */
  --sp-2xs: 0.25rem;
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  2rem;
  --sp-lg:  3rem;
  --sp-xl:  5rem;
  --sp-2xl: 8rem;
  --sp-3xl: 12rem;

  /* — Border Radius — */
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 100px;

  /* — Typography — */
  --font-display: 'Cinzel Decorative', serif;
  --font-serif:   'Cinzel', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* — Transitions — */
  --t-fast:   0.15s ease;
  --t-base:   0.3s ease;
  --t-slow:   0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --t-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* — Shadows — */
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.4);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.6);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.7);
  --shadow-gold: 0 4px 24px var(--gold-glow);

  /* — Z-index — */
  --z-base:     1;
  --z-float:    50;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-modal:    300;
  --z-overlay:  400;
}

/* ==============================================
   GLOBAL RESET
   ============================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background-color: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-base);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ==============================================
   TYPOGRAPHY SCALE
   ============================================== */

.display-hero {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--text);
}

.display-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.section-label {
  font-family: var(--font-serif);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--sp-sm);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.85;
  max-width: 580px;
}

h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-family: var(--font-serif);   font-size: clamp(1.1rem, 2vw, 1.6rem); }
h4 { font-family: var(--font-serif);   font-size: 1.15rem; }
h5 { font-family: var(--font-serif);   font-size: 1rem; }

p { margin-bottom: 1.15em; }
p:last-child { margin-bottom: 0; }

/* ==============================================
   LAYOUT SYSTEM
   ============================================== */

.container {
  width: 100%;
  max-width: 1300px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.container--narrow {
  max-width: 900px;
}

.section {
  position: relative;
  padding-block: var(--sp-2xl);
}

.section--sm {
  padding-block: var(--sp-xl);
}

.section--dark   { background: var(--void); }
.section--smoke  { background: var(--smoke-mid); }
.section--earth  { background: var(--earth); }

.section__header {
  margin-bottom: var(--sp-lg);
}

.section__header--center {
  text-align: center;
}

.section__header--center .section-subtitle,
.section__header--center .section-title {
  margin-inline: auto;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-md);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
}

@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
}

/* Flex utilities */
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-col    { display: flex; flex-direction: column; }
.gap-sm      { gap: var(--sp-sm); }
.gap-md      { gap: var(--sp-md); }

/* ==============================================
   BUTTONS
   ============================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  border-radius: var(--r-sm);
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all var(--t-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  border: 1px solid transparent;
  text-decoration: none;
}

/* Shine sweep on hover */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}
.btn:hover::after {
  transform: translateX(100%);
}

/* Primary — Gold CTA */
.btn--primary {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
  color: var(--void);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}
.btn--primary:hover {
  box-shadow: 0 6px 32px var(--gold-glow-strong);
  transform: translateY(-2px);
  color: var(--void);
}
.btn--primary:active { transform: translateY(0); }

/* Outline */
.btn--outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 24px var(--gold-glow);
  transform: translateY(-2px);
}

/* WhatsApp */
.btn--whatsapp {
  background: linear-gradient(135deg, #128C7E, var(--wpp-green));
  color: #fff;
  border-color: var(--wpp-green);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}
.btn--whatsapp:hover {
  box-shadow: 0 6px 32px rgba(37, 211, 102, 0.5);
  transform: translateY(-2px);
  color: #fff;
}

/* Ghost — Gold border */
.btn--ghost {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold-border);
}
.btn--ghost:hover {
  background: var(--gold);
  color: var(--void);
}

/* Size variants */
.btn--lg {
  padding: 1.1rem 2.8rem;
  font-size: 0.9rem;
}

.btn--sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.75rem;
}

/* ==============================================
   DECORATIVE ELEMENTS
   ============================================== */

/* Gold Divider */
.gold-divider {
  width: 56px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin-block: var(--sp-sm);
}
.gold-divider--center { margin-inline: auto; }
.gold-divider--wide   { width: 100px; }

/* Glowing badge */
.award-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--gold-border);
  border-radius: var(--r-full);
  background: rgba(201, 168, 76, 0.08);
  font-family: var(--font-serif);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  backdrop-filter: blur(4px);
}
.award-badge svg,
.award-badge img {
  width: 16px;
  height: 16px;
}

/* Star rating */
.stars {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

/* ==============================================
   CARDS — BASE
   ============================================== */

.card {
  background: var(--card-bg);
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: all var(--t-base);
}

.card:hover {
  border-color: var(--gold-border);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), var(--shadow-gold);
  transform: translateY(-4px);
}

.card__body {
  padding: var(--sp-md);
}

/* ==============================================
   SCROLLBAR
   ============================================== */

::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--gold-dark), var(--gold));
  border-radius: 3px;
}

/* ==============================================
   SELECTION
   ============================================== */

::selection {
  background: var(--gold);
  color: var(--void);
}

/* ==============================================
   ACCESSIBILITY
   ============================================== */

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

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ==============================================
   RESPONSIVE UTILITIES
   ============================================== */

.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: initial; } }
.hide-desktop { display: initial; }
@media (min-width: 768px) { .hide-desktop { display: none; } }

/* Text alignment */
.text-center { text-align: center; }
.text-left   { text-align: left;   }

/* Margin helpers */
.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mb-sm { margin-bottom: var(--sp-sm); }
.mb-md { margin-bottom: var(--sp-md); }
.mb-lg { margin-bottom: var(--sp-lg); }
