/* ===============================
   PROJECT PAGE - KOTO STYLE
   Menu fixo à esquerda + Scroll de imagens
================================ */

body {
  background: #000;
  color: #fff;
}

body .header-top {
  background: #000;
}

/* MOBILE: 1 coluna, sem sticky */
.project-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: 100px 6vw 100px;
  align-items: flex-start;
}

.project-sidebar {
  position: relative;
  top: 0;
  max-width: 100%;
  height: fit-content;
}

.project-eyebrow {
  font-size: 12px;
  opacity: 0.6;
  margin-bottom: 20px;
}

.project-sidebar h1 {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  margin: 24px 0;
}

.project-subtitle {
  font-size: 15px;
  opacity: 0.65;
  line-height: 1.6;
  margin-bottom: 32px;
}

.sections-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 40px;
}

.section-item {
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 2px solid rgba(255,255,255,0.1);
  padding-left: 20px;
  padding-top: 4px;
  padding-bottom: 4px;
}

.section-item.active {
  border-left-color: #fff;
  padding-top: 12px;
  padding-bottom: 12px;
}

.section-number {
  font-size: 10px;
  opacity: 0.4;
  display: block;
  margin-bottom: 4px;
}

.section-name {
  font-size: 14px;
  font-weight: 500;
  display: block;
  margin-bottom: 0;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.section-item.active .section-name {
  font-size: 18px;
  opacity: 1;
  margin-bottom: 10px;
}

.section-text {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  color: rgba(255,255,255,0.65);
  margin-top: 0;
}

.section-item.active .section-text {
  opacity: 1;
  max-height: 350px;
  margin-top: 10px;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meta-label {
  font-size: 11px;
  opacity: 0.4;
  text-transform: uppercase;
}

.meta-value {
  font-size: 14px;
  opacity: 0.8;
}

.project-content {
  display: flex;
  flex-direction: column;
}

.content-section {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 48px 0;
}

.image-full {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.image-tall {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.image-square {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

/* MOBILE: 1 coluna */
.image-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.image-grid-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.image-placeholder {
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
  font-size: 14px;
}

.image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===============================
   FOOTER – MOBILE
================================ */

.site-footer {
  position: relative;
  padding: 80px 6vw 60px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 80px;
}

.footer-title {
  font-size: 14px;
  margin-bottom: 16px;
}

.footer-text {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.6;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: #fff;
  opacity: 0.6;
  text-decoration: none;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-cta {
  display: inline-block;
  margin-top: 24px;
  font-size: 14px;
  text-decoration: none;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 4px;
}

.footer-loop {
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 32px;
}

.loop-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: loopWords 30s linear infinite;
}

.loop-track span {
  font-size: 40px;
  font-weight: 500;
  opacity: 0.1;
}

@keyframes loopWords {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* MOBILE: watermark dentro do footer */
.footer-logo-watermark {
  position: absolute;
  right: 6vw;
  bottom: 40px;
  width: 160px;
  opacity: 0.5;
  pointer-events: none;
}

/* ===============================
   TABLET: 768px+
================================ */
@media (min-width: 768px) {
  .project-container {
    padding: 120px 6vw 120px;
    gap: 64px;
  }

  .project-sidebar h1 {
    font-size: 32px;
    margin: 28px 0;
  }

  .content-section {
    min-height: 80vh;
    gap: 28px;
    padding: 64px 0;
  }

  .image-grid {
    grid-template-columns: 2fr 1fr;
  }

  .site-footer {
    padding: 100px 6vw 80px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin-bottom: 100px;
  }

  .loop-track span {
    font-size: 52px;
  }

  .footer-logo-watermark {
    width: 240px;
    margin-top: 0;
  }
}

/* ===============================
   DESKTOP: 1100px+
================================ */
@media (min-width: 1100px) {
  .project-container {
    grid-template-columns: minmax(380px, 460px) 1fr;
    gap: 80px;
    padding: 180px 6vw 160px;
  }

  .project-sidebar {
    position: sticky;
    top: 160px;
    max-width: 420px;
  }

  .project-sidebar h1 {
    font-size: 36px;
    margin: 32px 0;
  }

  .content-section {
    min-height: 100vh;
    gap: 32px;
    padding: 80px 0;
  }

  .site-footer {
    padding: 120px 6vw 80px;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 120px;
  }

  .loop-track span {
    font-size: 64px;
  }

  .footer-logo-watermark {
    width: 320px;
  }
}

/* ===============================
   A11Y.CSS — ACESSIBILIDADE
   Inclua APÓS todos os outros CSS
   Não sobrescreve nenhum estilo visual
================================ */

/* ===============================
   1. SKIP LINK
   Link invisível que aparece ao
   pressionar Tab — pula direto
   para o conteúdo principal
================================ */
.skip-link {
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 12px 24px;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid #000;
  transition: top 0.2s ease;
  white-space: nowrap;
}

.skip-link:focus {
  top: 16px;
  outline: 3px solid #dc512e;
  outline-offset: 2px;
}

/* ===============================
   2. FOCUS VISÍVEL
   Reaplica outline em todos os
   elementos focáveis — respeita
   o estilo do site (cor laranja)
================================ */
:focus-visible {
  outline: 2px solid #dc512e;
  outline-offset: 3px;
  border-radius: 2px;
}

/* Remove outline padrão somente
   quando :focus-visible está ativo */
:focus:not(:focus-visible) {
  outline: none;
}

/* ===============================
   3. REDUCED MOTION
   Desativa animações para quem
   configurou o sistema assim
================================ */
@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;
  }

  /* Mantém o gradiente mas remove a animação */
  .about-hero,
  .contact-hero,
  .services-hero,
  body[class*="agendamento"] {
    background-position: 0% 50% !important;
    animation: none !important;
  }
}

/* ===============================
   4. CONTRASTE DE TEXTO
   Garante legibilidade mínima
   nos elementos com opacity baixa
================================ */
@media (forced-colors: active) {
  /* Modo de alto contraste do Windows */
  * {
    forced-color-adjust: auto;
  }

  .work-hover,
  .section-text,
  .manifesto-text p,
  .about-hero p,
  .contact-hero p,
  .services-hero p {
    opacity: 1 !important;
  }
}

/* ===============================
   5. TEXTOS OCULTOS (SR ONLY)
   Visível apenas para leitores
   de tela — use a classe
   .sr-only nos seus HTMLs
================================ */
.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;
}

/* Versão focável (para skip links internos) */
.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* ===============================
   6. INDICADORES DE ESTADO
   Torna estados ARIA visíveis
================================ */

/* Botões e links desativados */
[aria-disabled="true"],
[disabled] {
  cursor: not-allowed;
  opacity: 0.45;
  pointer-events: none;
}


/* Links de navegação ativos */
[aria-current="page"] {
  opacity: 1 !important;
  font-weight: 600;
}

/* ===============================
   7. FORMULÁRIOS ACESSÍVEIS
   Melhora legibilidade de erros
   e estados no contact/agendamento
================================ */

/* Campo com erro */
.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: #e53e3e !important;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15);
}

/* Mensagem de erro */
.field-error {
  display: block;
  font-size: 13px;
  color: #e53e3e;
  margin-top: 6px;
  font-weight: 500;
}

/* Campo obrigatório */
.form-group label[data-required]::after,
.form-field label[data-required]::after {
  content: " *";
  color: #dc512e;
  font-weight: 600;
}

/* ===============================
   8. IMAGENS E MÍDIA
   Evita que imagens decorativas
   recebam foco desnecessário
================================ */
img[aria-hidden="true"],
svg[aria-hidden="true"] {
  pointer-events: none;
}

/* Garante que imagens sem alt
   não quebrem o layout */
img:not([alt]) {
  outline: 3px dashed rgba(229, 62, 62, 0.5);
}

/* ===============================
   9. CALENDÁRIO (agendamento)
   Melhora navegação por teclado
================================ */
.calendar-day:focus-visible {
  outline: 2px solid #0069ff;
  outline-offset: 2px;
  border-radius: 50%;
}

.time-button:focus-visible {
  outline: 2px solid #0069ff;
  outline-offset: 2px;
}

/* ===============================
   10. DARK MODE
   Respeita preferência do sistema
   sem quebrar o design atual
================================ */
@media (prefers-color-scheme: dark) {
  /* O site já é dark — apenas
     ajusta elementos brancos */
  .booking-card {
    background: #1a1a1a;
    color: #f5f5f5;
  }

  .booking-card input,
  .booking-card textarea {
    background: #2a2a2a;
    color: #f5f5f5;
    border-color: #444;
  }

  .booking-card .left-section,
  .booking-card .right-section {
    background: #1a1a1a;
    color: #f5f5f5;
  }

  .booking-card .booking-subtitle,
  .booking-card .calendar-month,
  .booking-card .section-title,
  .booking-card .confirmation-title {
    color: #f5f5f5;
  }

  .booking-card .booking-title,
  .booking-card .meta-item,
  .booking-card .booking-description,
  .booking-card .calendar-day,
  .booking-card .author-role,
  .booking-card .confirmation-subtitle {
    color: #aaa;
  }

  .booking-card .calendar-day.disabled {
    color: #555;
  }

  .booking-card .left-section {
    border-color: #333;
  }

  .booking-card .timezone-info {
    background: #2a2a2a;
  }

  .booking-card .confirmation-details {
    background: #2a2a2a;
    color: #f5f5f5;
  }
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Seletor de Idioma */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 20px;
  font-size: 13px;
  font-weight: 600;
}

.lang-link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s ease;
}

.lang-link:hover {
  color: #dc512e;
}

.lang-link.lang-active {
  color: #fff;
}

.lang-divider {
  color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .lang-switch {
    margin-right: 8px;
    font-size: 11px;
  }
}
