/* ============================================================
   MAIN.CSS — Design System: Silvia Sousa Corretora
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
  /* Paleta */
  --color-verde:        #3D4630;
  --color-verde-light:  #4D5840;
  --color-verde-dark:   #2C331F;
  --color-bege:         #F2ECE2;
  --color-bege-dark:    #E8E0D0;
  --color-offwhite:     #FAF7F2;
  --color-terracota:    #A0644A;
  --color-terracota-light: #C07860;
  --color-text-dark:    #1C1F16;
  --color-text-mid:     #4A4E3A;
  --color-text-light:   #FAF7F2;
  --color-text-muted:   #8A8878;
  --color-border:       rgba(61, 70, 48, 0.15);
  --color-overlay:      rgba(28, 31, 22, 0.62);

  /* Tipografia */
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Montserrat', 'Helvetica Neue', sans-serif;

  /* Escalas de fonte */
  --fs-xs:    0.6875rem;   /* 11px */
  --fs-sm:    0.8125rem;   /* 13px */
  --fs-base:  1rem;        /* 16px */
  --fs-md:    1.125rem;    /* 18px */
  --fs-lg:    1.375rem;    /* 22px */
  --fs-xl:    1.75rem;     /* 28px */
  --fs-2xl:   2.25rem;     /* 36px */
  --fs-3xl:   3rem;        /* 48px */
  --fs-4xl:   3.75rem;     /* 60px */
  --fs-5xl:   5rem;        /* 80px */

  /* Espaçamentos */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-32:  8rem;

  /* Layout */
  --container-max: 1200px;
  --container-wide: 1400px;
  --section-padding: var(--space-24) var(--space-8);
  --navbar-height: 76px;

  /* Transições */
  --transition-fast:   all 0.2s ease;
  --transition-base:   all 0.35s ease;
  --transition-slow:   all 0.55s cubic-bezier(0.16, 1, 0.3, 1);

  /* Sombras */
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.14);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.18);
}

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

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

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-text-dark);
  background-color: var(--color-offwhite);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

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

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

/* ============================================================
   TIPOGRAFIA
   ============================================================ */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.3;
}

p {
  line-height: 1.75;
}

/* ============================================================
   UTILITÁRIOS DE LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-8);
  padding-right: var(--space-8);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding: var(--space-24) 0;
}

.section--lg {
  padding: var(--space-32) 0;
}

/* Fundos alternados */
.bg-verde   { background-color: var(--color-verde); color: var(--color-offwhite); }
.bg-bege    { background-color: var(--color-bege); color: var(--color-text-dark); }
.bg-offwhite{ background-color: var(--color-offwhite); color: var(--color-text-dark); }

/* ============================================================
   LINHA DECORATIVA
   ============================================================ */
.decorative-line {
  display: block;
  width: 48px;
  height: 1px;
  background-color: currentColor;
  opacity: 0.4;
  margin: var(--space-4) 0;
}

.decorative-line--center {
  margin-left: auto;
  margin-right: auto;
}

.decorative-line--long {
  width: 80px;
}

/* ============================================================
   LABEL / BADGE
   ============================================================ */
.label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-terracota);
}

.label--light {
  color: var(--color-terracota-light);
}

.label--muted {
  color: var(--color-text-muted);
}

/* ============================================================
   UTILITÁRIOS DE TEXTO
   ============================================================ */
.text-serif     { font-family: var(--font-serif); }
.text-center    { text-align: center; }
.text-left      { text-align: left; }
.text-right     { text-align: right; }
.text-muted     { color: var(--color-text-muted); }
.text-terracota { color: var(--color-terracota); }
.text-offwhite  { color: var(--color-offwhite); }
.text-verde     { color: var(--color-verde); }

/* ============================================================
   SCROLLBAR customizada
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bege); }
::-webkit-scrollbar-thumb { background: var(--color-verde-light); border-radius: 3px; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

.animate-fade-up {
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease both;
}

/* Intersection Observer classes */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVIDADE — BREAKPOINTS
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --space-24: 4rem;
    --space-32: 5rem;
    --fs-3xl:   2.25rem;
    --fs-4xl:   2.75rem;
    --fs-5xl:   3.25rem;
  }

  .container {
    padding-left: var(--space-5);
    padding-right: var(--space-5);
  }
}

@media (max-width: 480px) {
  :root {
    --fs-3xl:   2rem;
    --fs-4xl:   2.5rem;
    --fs-5xl:   2.75rem;
  }
}
