/* ============================================================
   PHOTO.PT — main.css
   Variáveis · Reset · Tipografia · Grid
   ============================================================ */

/* ------------------------------------------------------------
   1. GOOGLE FONTS
   ------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Outfit:wght@300;400;500;600&display=swap');


/* ------------------------------------------------------------
   2. CUSTOM PROPERTIES
   ------------------------------------------------------------ */
:root {

  /* Cores — Esquema 1: Black Kite · Toxic Orange · Morning Snow */
  --color-black:       #0E0807;   /* mais fundo que Black Kite */
  --color-dark:        #1C1110;   /* transição entre preto e superfície */
  --color-surface:     #351E1C;   /* Black Kite — superfície principal */
  --color-surface-alt: #4A2826;   /* Black Kite clareado — hover/cards */
  --color-border:      rgba(245, 244, 237, 0.08);

  --color-accent:      #FF6037;   /* Toxic Orange — único acento */
  --color-accent-dim:  rgba(255, 96, 55, 0.12);

  --color-text:        #F5F4ED;   /* Morning Snow — texto principal */
  --color-text-muted:  rgba(245, 244, 237, 0.55);
  --color-text-faint:  rgba(245, 244, 237, 0.25);

  /* Tipografia — famílias */
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  /* Tipografia — escala (fluid onde relevante) */
  --text-xs:    0.75rem;    /* 12px */
  --text-sm:    0.875rem;   /* 14px */
  --text-base:  1rem;       /* 16px */
  --text-md:    1.125rem;   /* 18px */
  --text-lg:    1.25rem;    /* 20px */
  --text-xl:    1.5rem;     /* 24px */
  --text-2xl:   2rem;       /* 32px */
  --text-3xl:   2.75rem;    /* 44px */
  --text-4xl:   3.75rem;    /* 60px */
  --text-5xl:   5rem;       /* 80px */
  --text-hero:  clamp(2.8rem, 6vw, 5.5rem);   /* título hero fluido */
  --text-title: clamp(2.25rem, 5vw, 4.5rem);  /* títulos de secção */

  /* Tipografia — pesos */
  --weight-light:   300;
  --weight-regular: 400;
  --weight-medium:  500;
  --weight-semi:    600;

  /* Tipografia — line-heights */
  --leading-tight:  1.1;
  --leading-snug:   1.25;
  --leading-normal: 1.5;
  --leading-loose:  1.75;

  /* Tipografia — letter-spacing */
  --tracking-tight:  -0.02em;
  --tracking-normal:  0em;
  --tracking-wide:    0.08em;
  --tracking-wider:   0.15em;
  --tracking-widest:  0.25em;

  /* Espaçamento — escala */
  --space-1:   0.25rem;   /* 4px */
  --space-2:   0.5rem;    /* 8px */
  --space-3:   0.75rem;   /* 12px */
  --space-4:   1rem;      /* 16px */
  --space-5:   1.25rem;   /* 20px */
  --space-6:   1.5rem;    /* 24px */
  --space-8:   2rem;      /* 32px */
  --space-10:  2.5rem;    /* 40px */
  --space-12:  3rem;      /* 48px */
  --space-16:  4rem;      /* 64px */
  --space-20:  5rem;      /* 80px */
  --space-24:  6rem;      /* 96px */
  --space-32:  8rem;      /* 128px */

  /* Layout */
  --container-max:  1400px;
  --container-wide: 1600px;
  --gutter:         clamp(1.25rem, 4vw, 3rem);
  --nav-height:     80px;

  /* Transições */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast:   150ms;
  --duration-base:   300ms;
  --duration-slow:   600ms;
  --duration-slower: 900ms;

  /* Raios */
  --radius-sm:  2px;
  --radius-md:  4px;
  --radius-lg:  8px;

  /* Z-index */
  --z-base:    0;
  --z-raised:  10;
  --z-overlay: 100;
  --z-nav:     200;
  --z-modal:   300;
}


/* ------------------------------------------------------------
   3. RESET MODERNO
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Fallback e gutter da scrollbar */
  background-color: var(--color-black);
}

body {
  /* Transparente: o vídeo fixo (.page-video-bg) aparece por baixo */
  background-color: transparent;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.page-home {
  background-color: transparent;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: inherit;
  line-height: var(--leading-tight);
}

p, li, blockquote {
  max-width: 70ch;
}

/* Remove animações para quem prefere */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ------------------------------------------------------------
   4. TIPOGRAFIA BASE
   ------------------------------------------------------------ */

/* Display — Syne, para títulos e headlines */
.display,
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
}

/* Tamanhos de título */
.text-hero  { font-size: var(--text-hero);  }
.text-title { font-size: var(--text-title); }
.text-5xl   { font-size: var(--text-5xl);   }
.text-4xl   { font-size: var(--text-4xl);   }
.text-3xl   { font-size: var(--text-3xl);   }
.text-2xl   { font-size: var(--text-2xl);   }
.text-xl    { font-size: var(--text-xl);    }
.text-lg    { font-size: var(--text-lg);    }
.text-md    { font-size: var(--text-md);    }
.text-sm    { font-size: var(--text-sm);    }
.text-xs    { font-size: var(--text-xs);    }

/* Label / eyebrow — texto pequeno com tracking largo */
.label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-accent);
}

/* Corpo de texto */
.body-lg {
  font-size: var(--text-md);
  line-height: var(--leading-loose);
  color: var(--color-text-muted);
}

.body-base {
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

/* Acento de cor */
.accent { color: var(--color-accent); }

/* Destaque editorial — peso extra para momentos de impacto */
.editorial {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: var(--tracking-tight);
}


/* ------------------------------------------------------------
   5. LAYOUT — CONTAINER E GRID
   ------------------------------------------------------------ */

/* Container principal */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide {
  max-width: var(--container-wide);
  padding-inline: var(--gutter);
  margin-inline: auto;
}

/* Grid base — 12 colunas */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-6);
}

/* Atalhos de colunas */
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* Secção — semitransparente para o vídeo fixo aparecer por baixo */
.section {
  padding-block: var(--space-32);
  background-color: rgba(53, 30, 28, 0.72);
}

.section--lg {
  padding-block: calc(var(--space-32) + var(--space-16));
}

/* Linha separadora subtil */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin-block: var(--space-16);
}


/* ------------------------------------------------------------
   6. 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;
}

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

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

/* Reveal — estado inicial para animações */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 350ms; }
.reveal-delay-4 { transition-delay: 500ms; }


/* ------------------------------------------------------------
   7. RESPONSIVIDADE — BREAKPOINTS PRINCIPAIS
   ------------------------------------------------------------ */

/* Tablet */
@media (max-width: 1024px) {
  .col-4 { grid-column: span 6; }
  .col-5 { grid-column: span 6; }
  .col-7 { grid-column: span 12; }
  .col-8 { grid-column: span 12; }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
    --space-24: 4rem;
    --space-32: 5rem;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .col-4,
  .col-5,
  .col-6,
  .col-7,
  .col-8,
  .col-12 {
    grid-column: span 1;
  }

  .section     { padding-block: var(--space-16); }
  .section--lg { padding-block: var(--space-20); }
}
