/* ==========================================================================
   UNS DIAS FORA — style.css
   Site institucional de página única.
   Editorial, minimalista, cinematográfico. Mobile-first.
   ========================================================================== */

/* ---------------------------------------------------------------------- */
/* 1. VARIÁVEIS — cores, tipografia, espaçamentos                          */
/* ---------------------------------------------------------------------- */
:root {
  /* Paleta de marca */
  --color-navy: #25344F;      /* Space Cadet — fundo escuro principal */
  --color-slate: #617891;     /* Slate Gray — apoio / texto secundário sobre escuro */
  --color-tan: #D5B893;       /* Tan — destaque, botões, fundo "sobre nós" */
  --color-coffee: #6F4D38;    /* Coffee — texto sobre bege, acentos */
  --color-cream: #F4F0E8;     /* fundo neutro claro */
  --color-white: #FFFFFF;

  /* Tons derivados de texto */
  --text-on-light: var(--color-navy);
  --text-on-light-soft: #4A5A72;
  --text-on-dark: #F4F0E8;
  --text-on-dark-soft: #C3CCD8;
  --text-on-tan: var(--color-coffee);

  --border-soft: rgba(37, 52, 79, 0.12);
  --border-soft-dark: rgba(244, 240, 232, 0.18);

  /* Tipografia */
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Espaçamentos de seção */
  --section-padding-y: 5.5rem;
  --container-width: 1240px;
  --gutter: 22px;

  /* Transições */
  --ease-editorial: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 320ms var(--ease-editorial);
  --transition-slow: 560ms var(--ease-editorial);
}

@media (min-width: 768px) {
  :root {
    --section-padding-y: 8rem;
    --gutter: 40px;
  }
}

@media (min-width: 1200px) {
  :root {
    --section-padding-y: 9.5rem;
  }
}

/* ---------------------------------------------------------------------- */
/* 2. RESET                                                                 */
/* ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-on-light);
  background: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ---------------------------------------------------------------------- */
/* 3. TIPOGRAFIA COMPARTILHADA                                             */
/* ---------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-coffee);
  margin-bottom: 1rem;
}
.eyebrow-light { color: var(--color-tan); }

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  line-height: 1.18;
  color: var(--text-on-light);
  letter-spacing: -0.01em;
}
.section-title-light { color: var(--text-on-dark); }

.body-text {
  font-size: 1.03rem;
  line-height: 1.8;
  color: var(--text-on-light-soft);
  margin-top: 1.15rem;
  max-width: 46ch;
}
.body-text-light { color: var(--text-on-dark-soft); }

.text-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-navy);
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 2px;
  transition: color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}
.text-link:hover { color: var(--color-coffee); border-color: currentColor; transform: translateX(2px); }
.text-link-light { color: var(--text-on-dark); border-color: var(--border-soft-dark); }
.text-link-light:hover { color: var(--color-tan); }

/* ---------------------------------------------------------------------- */
/* 4. BOTÕES                                                                */
/* ---------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.btn-primary {
  background-color: var(--color-tan);
  color: var(--color-navy);
  border: 1px solid var(--color-tan);
}
.btn-primary:hover { background-color: #e3cba9; transform: translateY(-1px); }

.btn-outline {
  background-color: transparent;
  color: var(--text-on-dark);
  border: 1px solid rgba(244, 240, 232, 0.55);
}
.btn-outline:hover { background-color: rgba(244, 240, 232, 0.1); border-color: var(--text-on-dark); }

.btn-large { padding: 1.1rem 2.3rem; font-size: 0.98rem; }
.btn-icon { flex-shrink: 0; }

/* ---------------------------------------------------------------------- */
/* 5. HEADER / NAV                                                         */
/* ---------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(20, 28, 42, 0.55), rgba(20, 28, 42, 0));
  transition: background-color var(--transition-fast), backdrop-filter var(--transition-fast);
}
.site-header.is-scrolled {
  background: rgba(23, 33, 51, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(244, 240, 232, 0.08);
}

.header-inner {
  max-width: var(--container-width);
  margin-inline: auto;
  padding: 1.35rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.35;
  color: var(--text-on-dark);
}

.header-cta { display: none; }

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  z-index: 110;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text-on-dark);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--color-navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 2rem;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--transition-slow), opacity var(--transition-slow), visibility 0s linear var(--transition-slow);
  z-index: 105;
}
.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform var(--transition-slow), opacity var(--transition-slow), visibility 0s;
}
.mobile-menu ul { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 3rem; }
.mobile-menu-link {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--text-on-dark);
}
.mobile-menu-cta { align-self: flex-start; }

/* ---------------------------------------------------------------------- */
/* 6. HERO                                                                  */
/* ---------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 25, 38, 0.86) 0%, rgba(18, 25, 38, 0.38) 46%, rgba(18, 25, 38, 0.28) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 var(--gutter) 4.5rem;
  width: 100%;
  max-width: 760px;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 10vw, 4.6rem);
  line-height: 1.06;
  color: var(--text-on-dark);
  letter-spacing: -0.01em;
  margin-top: 0.85rem;
}

.hero-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-on-dark-soft);
  max-width: 42ch;
  margin-top: 1.25rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 2.25rem;
}
.hero-buttons .btn { width: 100%; }

.hero-scroll-hint {
  position: absolute;
  left: var(--gutter);
  bottom: 1.75rem;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-on-dark-soft);
  text-transform: lowercase;
}
.hero-scroll-hint svg { animation: bob 2.2s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(5px); opacity: 1; }
}

/* ---------------------------------------------------------------------- */
/* 7. SEÇÕES — fundos                                                       */
/* ---------------------------------------------------------------------- */
.section {
  padding-block: var(--section-padding-y);
  /* Evita que o título fique escondido atrás do cabeçalho fixo ao clicar em links do menu */
  scroll-margin-top: 104px;
}
.section-light { background: var(--color-cream); color: var(--text-on-light); }
.section-beige { background: #ECE4D6; color: var(--text-on-light); }
.section-dark  { background: var(--color-navy); color: var(--text-on-dark); }
.section-tan   { background: var(--color-tan); color: var(--text-on-tan); }
.section-tan .eyebrow { color: var(--color-coffee); }
.section-tan .section-title { color: var(--color-navy); }
.section-tan .body-text { color: rgba(58, 42, 27, 0.78); }

/* Grid editorial de 2 colunas */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
  align-items: center;
}
.grid-2-video { align-items: start; }

.section-heading { max-width: 640px; margin-bottom: 3rem; }

/* ---------------------------------------------------------------------- */
/* 8. MÍDIA / IMAGENS                                                       */
/* ---------------------------------------------------------------------- */
.media-frame {
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 5;
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-editorial);
}
@media (hover: hover) {
  .media-frame:hover img { transform: scale(1.045); }
}

/* Vídeo do YouTube */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
  /* EDITAR AQUI: a thumbnail final vem do próprio YouTube (ver script.js); esta imagem local é o fallback */
  background: var(--color-navy) url('images/video-thumbnail.jpg') center/cover no-repeat;
  cursor: pointer;
}
.video-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-embed::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(18, 25, 38, 0.28);
  transition: background var(--transition-fast);
}
.video-embed:hover::after { background: rgba(18, 25, 38, 0.12); }
.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  border-radius: 50%;
  background: rgba(244, 240, 232, 0.92);
  color: var(--color-navy);
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.video-play-btn svg { margin-left: 3px; }
.video-embed:hover .video-play-btn { transform: translate(-50%, -50%) scale(1.06); background: var(--color-white); }

/* ---------------------------------------------------------------------- */
/* 9. DESTAQUE / QUOTE                                                     */
/* ---------------------------------------------------------------------- */
.highlight-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--color-tan);
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-soft-dark);
  line-height: 1.4;
}

/* ---------------------------------------------------------------------- */
/* 10. SERVIÇOS                                                            */
/* ---------------------------------------------------------------------- */
.services-list {
  display: flex;
  flex-direction: column;
}
.service-item {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.25rem;
  row-gap: 0.6rem;
  padding-block: 2rem;
  border-top: 1px solid var(--border-soft);
}
.service-item:last-child { border-bottom: 1px solid var(--border-soft); }

.service-number {
  grid-row: 1 / 3;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-tan);
}
.service-icon {
  display: none;
}
.service-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--text-on-light);
}
.service-text {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-on-light-soft);
  max-width: 42ch;
}

/* ---------------------------------------------------------------------- */
/* 11. NOSSO EBOOK                                                          */
/* ---------------------------------------------------------------------- */
.ebook-price {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--color-coffee);
  margin-top: 1.5rem;
}
.ebook-cta { margin-top: 1.25rem; }
.ebook-visual {
  display: flex;
  justify-content: center;
}
.ebook-mockup-img {
  width: min(520px, 100%);
}

/* ---------------------------------------------------------------------- */
/* 12. INSTAGRAM — feed simulado                                           */
/* ---------------------------------------------------------------------- */
.instagram-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.instagram-text { max-width: 640px; }

.instagram-feed {
  background: rgba(244, 240, 232, 0.04);
  border: 1px solid var(--border-soft-dark);
  border-radius: 10px;
  padding: 1.25rem;
}
.instagram-feed-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-bottom: 1.1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--border-soft-dark);
}
.instagram-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-tan);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.instagram-feed-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}
.instagram-handle { font-size: 0.92rem; font-weight: 600; color: var(--text-on-dark); }
.instagram-sub { font-size: 0.78rem; color: var(--text-on-dark-soft); }
.instagram-follow {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-navy);
  background: var(--color-tan);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background var(--transition-fast);
}
.instagram-follow:hover { background: #e3cba9; }

.instagram-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}
.instagram-photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 3px;
  position: relative;
}
.instagram-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-editorial);
}
@media (hover: hover) {
  .instagram-photo:hover img { transform: scale(1.06); }
}
.instagram-feed-more {
  display: block;
  margin-top: 1.1rem;
  text-align: center;
}

/* ---------------------------------------------------------------------- */
/* 13. TIMELINE — como funciona                                            */
/* ---------------------------------------------------------------------- */
.timeline {
  display: flex;
  flex-direction: column;
  position: relative;
}
.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.5rem;
  padding-bottom: 2.75rem;
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  position: relative;
  display: flex;
  justify-content: center;
}
.timeline-marker::before {
  content: '';
  position: absolute;
  top: 42px;
  bottom: -2.75rem;
  width: 1px;
  background: var(--border-soft);
}
.timeline-item:last-child .timeline-marker::before { display: none; }

.timeline-number {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--color-navy);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-navy);
  flex-shrink: 0;
  background: var(--color-cream);
}

.timeline-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--text-on-light);
  margin-bottom: 0.5rem;
}
.timeline-text {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-on-light-soft);
  max-width: 42ch;
}

/* ---------------------------------------------------------------------- */
/* 14. CTA FINAL                                                            */
/* ---------------------------------------------------------------------- */
.cta-final { text-align: center; }
.cta-content { max-width: 620px; margin-inline: auto; }
.cta-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.2;
  color: var(--text-on-dark);
}
.cta-text {
  font-size: 1.03rem;
  line-height: 1.75;
  color: var(--text-on-dark-soft);
  margin-top: 1.25rem;
  max-width: 46ch;
  margin-inline: auto;
}
.cta-content .btn { margin-top: 2.5rem; }

/* ---------------------------------------------------------------------- */
/* 15. FOOTER                                                               */
/* ---------------------------------------------------------------------- */
.site-footer {
  background: var(--color-navy);
  padding-block: 3.5rem 2.25rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}
.logo-footer { color: var(--text-on-dark); }
.footer-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-on-dark-soft);
}
.footer-links a { transition: color var(--transition-fast); }
.footer-links a:hover { color: var(--color-tan); }
.footer-divider { color: var(--border-soft-dark); }
.footer-copy {
  font-size: 0.78rem;
  color: var(--text-on-dark-soft);
  opacity: 0.65;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft-dark);
  width: 100%;
}

/* ---------------------------------------------------------------------- */
/* 16. ANIMAÇÕES DE ENTRADA NO SCROLL                                       */
/* ---------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1.is-visible { transition-delay: 90ms; }
.reveal-delay-2.is-visible { transition-delay: 180ms; }
.reveal-delay-3.is-visible { transition-delay: 270ms; }

/* ---------------------------------------------------------------------- */
/* 17. TABLET — a partir de 768px                                          */
/* ---------------------------------------------------------------------- */
@media (min-width: 768px) {
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none; }

  .hero-content { padding-bottom: 6rem; }
  .hero-buttons { flex-direction: row; }
  .hero-buttons .btn { width: auto; }

  .grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
  }
  .grid-2-reverse { grid-template-columns: 1fr 1fr; }

  .services-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
  .service-item {
    grid-template-columns: 1fr;
    border-top: 1px solid var(--border-soft);
    border-right: 1px solid var(--border-soft);
    padding: 2.25rem 1.75rem 2.25rem 0;
    margin-left: 1.75rem;
  }
  .service-item:nth-child(3n) { border-right: none; }
  .service-item:last-child { border-bottom: 1px solid var(--border-soft); }
  .service-item:nth-last-child(-n+3) { border-bottom: 1px solid var(--border-soft); }
  .service-number { grid-row: auto; margin-bottom: 1.75rem; }

  .instagram-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3.5rem;
    align-items: center;
  }

  .timeline {
    flex-direction: row;
    gap: 2.5rem;
  }
  .timeline-item {
    grid-template-columns: 1fr;
    padding-bottom: 0;
    flex: 1;
  }
  .timeline-marker { justify-content: flex-start; margin-bottom: 1.75rem; }
  .timeline-marker::before {
    top: auto;
    left: 42px;
    right: -2.5rem;
    bottom: auto;
    width: auto;
    height: 1px;
    background: var(--border-soft);
  }
  .timeline-item:last-child .timeline-marker::before { display: none; }

  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .footer-copy { border-top: none; padding-top: 0; width: auto; }
}

/* ---------------------------------------------------------------------- */
/* 18. DESKTOP — a partir de 1024px                                        */
/* ---------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .hero-title { font-size: clamp(3.4rem, 6vw, 5.4rem); }
  .hero-text { font-size: 1.15rem; }

  .service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    margin-bottom: 1.25rem;
    color: var(--color-slate);
  }
}
