/* ODISSEU Portfolio — Thiago Lucas Studio */

/* ---- RESET & BASE ---- */
.tl-portfolio * { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #ffffff;
  --text:        #0d0d0d;
  --text-muted:  #6b6b6b;
  --text-light:  #a3a3a3;
  --border:      #e8e8e8;
  --accent:      #0d0d0d;
  --tag-bg:      #f2f2f2;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w:       1200px;
  --hero-h:      72vh;
}

/* ---- NAV COMPARTILHADA (archive + single) ---- */
.tl-site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font);
}

.tl-site-nav__logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.tl-site-nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.tl-site-nav__links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.tl-site-nav__links a:hover { color: var(--text); }

.tl-site-nav__cta {
  padding: 9px 20px;
  border-radius: 100px;
  background: var(--text);
  color: #fff !important;
  transition: opacity 0.2s;
}

.tl-site-nav__cta:hover { opacity: 0.78; }

/* ---- ARCHIVE — PORTFOLIO GRID ---- */
.tl-archive {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.tl-archive__header {
  padding: 120px 48px 64px;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.tl-archive__title {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.tl-archive__count {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 8px;
}

/* Filtros de categoria */
.tl-archive__filters {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tl-filter-btn {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  background: transparent;
  color: var(--text-muted);
  transition: all 0.2s ease;
  text-decoration: none;
}

.tl-filter-btn:hover,
.tl-filter-btn.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

/* Grid de cases */
.tl-archive__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px 120px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 32px;
}

/* Card: imagem + titulo abaixo (estilo Porto Rocha / Pande / Collins) */
.tl-case-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.tl-case-card:nth-child(5n+1) {
  grid-column: span 2;
}

.tl-case-card:nth-child(5n+1) .tl-case-card__image-wrap {
  aspect-ratio: 16/7;
}

.tl-case-card__image-wrap {
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #f0f0f0;
  position: relative;
}

.tl-case-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tl-case-card:hover .tl-case-card__img {
  transform: scale(1.04);
}

.tl-case-card__info {
  padding: 16px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tl-case-card__meta {
  flex: 1;
}

.tl-case-card__cat {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: block;
}

.tl-case-card__title {
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  transition: opacity 0.2s;
}

.tl-case-card:hover .tl-case-card__title {
  opacity: 0.6;
}

.tl-case-card__arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 14px;
  margin-top: 4px;
  transition: all 0.2s;
  opacity: 0;
}

.tl-case-card:hover .tl-case-card__arrow {
  opacity: 1;
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

/* ---- SINGLE CASE ---- */
.tl-single {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}

.tl-single__hero {
  width: 100%;
  height: var(--hero-h);
  overflow: hidden;
  position: relative;
}

.tl-single__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tl-single__body {
  max-width: 800px;
  margin: 0 auto;
  padding: 72px 32px 0;
}

.tl-single__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  margin-bottom: 48px;
  transition: color 0.2s;
}

.tl-single__back:hover { color: var(--text); }

.tl-single__cat {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.tl-single__title {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 40px;
}

.tl-single__meta-row {
  display: flex;
  gap: 48px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.tl-single__meta-item label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.tl-single__meta-item span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.tl-single__description {
  font-size: 17px;
  line-height: 1.75;
  color: #2a2a2a;
  margin-bottom: 64px;
}

.tl-single__description p + p { margin-top: 20px; }

/* Galeria */
.tl-single__gallery {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin-bottom: 80px;
}

.tl-single__gallery img {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
  transition: opacity 0.3s;
}

.tl-single__gallery img:first-child {
  grid-column: span 2;
  aspect-ratio: 16/7;
}

.tl-single__gallery img:hover { opacity: 0.92; }

/* Tags */
.tl-single__tags {
  max-width: 800px;
  margin: 0 auto 64px;
  padding: 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tl-single__tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--tag-bg);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
}

/* Behance CTA */
.tl-single__behance {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px 48px;
}

.tl-single__behance a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 14px 24px;
  border: 1.5px solid var(--text);
  border-radius: 100px;
  transition: all 0.2s;
}

.tl-single__behance a:hover {
  background: var(--text);
  color: #fff;
}

/* Nav entre cases */
.tl-single__nav {
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.tl-single__nav a {
  padding: 40px 48px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s;
  display: block;
}

.tl-single__nav a:hover { background: var(--tag-bg); }

.tl-single__nav a:last-child {
  text-align: right;
  border-left: 1px solid var(--border);
}

.tl-single__nav-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.tl-single__nav-title {
  font-size: 16px;
  font-weight: 600;
}

/* ---- HOMEPAGE — /portfolio-home ---- */
.tl-home {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}

.tl-home__hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 80px 48px;
  position: relative;
  overflow: hidden;
  background: #080808;
}

.tl-home__hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.tl-home__hero-content { position: relative; z-index: 1; max-width: var(--max-w); margin: 0 auto; width: 100%; }

.tl-home__eyebrow {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
}

.tl-home__headline {
  font-size: clamp(48px, 8vw, 112px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 0.95;
  max-width: 10ch;
}

.tl-home__headline em {
  font-style: normal;
  color: rgba(255,255,255,0.45);
}

.tl-home__hero-cta {
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.tl-home__hero-cta a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 100px;
  transition: all 0.25s;
}

.tl-cta-primary {
  background: #fff;
  color: #000;
}

.tl-cta-primary:hover {
  background: rgba(255,255,255,0.88);
}

.tl-cta-secondary {
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.25);
}

.tl-cta-secondary:hover {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}

/* Selected work section */
.tl-home__work {
  padding: 120px 48px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.tl-home__section-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.tl-home__section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 64px;
}

.tl-home__work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
}

.tl-home__work-grid .tl-case-card:first-child {
  grid-column: span 2;
  aspect-ratio: 16/7;
}

/* About strip */
.tl-home__about {
  background: #080808;
  color: #fff;
  padding: 120px 48px;
}

.tl-home__about-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.tl-home__about-title {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.tl-home__about-body {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
}

.tl-home__about-body strong {
  color: #fff;
  font-weight: 600;
}

.tl-home__about-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.tl-home__about-link:hover { border-color: #fff; }

/* Services row */
.tl-home__services {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 120px 48px;
  border-bottom: 1px solid var(--border);
}

.tl-home__services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 64px;
}

.tl-service {
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.tl-service__num {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.tl-service__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.tl-service__body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* Final CTA */
.tl-home__cta-strip {
  padding: 160px 48px;
  text-align: center;
  background: #fff;
}

.tl-home__cta-title {
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.9;
  margin-bottom: 48px;
  max-width: 12ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---- RESPONSIVE: 768px (tablet / mobile grande) ---- */
@media (max-width: 768px) {
  /* Nav compartilhada */
  .tl-site-nav { padding: 0 24px; }
  .tl-site-nav__links li:nth-child(1) { display: none; } /* esconde "Portfolio" no mobile — logo já leva pra home */

  /* Archive */
  .tl-archive__header { padding: 48px 24px 32px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .tl-archive__filters { padding: 20px 24px; }
  .tl-archive__grid { grid-template-columns: 1fr; padding: 0 24px 80px; gap: 40px; }
  .tl-archive__grid .tl-case-card:nth-child(5n+1) { grid-column: span 1; }
  .tl-archive__grid .tl-case-card:nth-child(5n+1) .tl-case-card__image-wrap { aspect-ratio: 4/3; }

  /* Single */
  .tl-single__body { padding: 40px 24px 0; }
  .tl-single__gallery { padding: 0 24px; grid-template-columns: 1fr; }
  .tl-single__gallery img:first-child { grid-column: span 1; aspect-ratio: 4/3; }
  .tl-single__meta-row { flex-wrap: wrap; gap: 20px; }
  .tl-single__tags { padding: 0 24px; }
  .tl-single__behance { padding: 0 24px 40px; }
  .tl-single__nav { grid-template-columns: 1fr; }
  .tl-single__nav a { padding: 28px 24px; }
  .tl-single__nav a:last-child { border-left: none; border-top: 1px solid var(--border); text-align: left; }
}

/* ---- RESPONSIVE: 390px (iPhone e phones pequenos) ---- */
@media (max-width: 390px) {
  /* Nav compartilhada */
  .tl-site-nav { padding: 0 20px; height: 56px; }
  .tl-site-nav__cta { padding: 7px 14px; font-size: 12px; }

  /* Archive */
  .tl-archive__header { padding: 40px 20px 28px; }
  .tl-archive__filters { padding: 16px 20px; gap: 6px; }
  .tl-filter-btn { font-size: 12px; padding: 6px 14px; }
  .tl-archive__grid { padding: 0 20px 64px; gap: 32px; }

  /* Single */
  .tl-single__body { padding: 32px 20px 0; }
  .tl-single__back { margin-bottom: 32px; }
  .tl-single__title { font-size: clamp(28px, 9vw, 42px); }
  .tl-single__meta-row { gap: 16px; padding: 20px 0; }
  .tl-single__gallery { padding: 0 20px; }
  .tl-single__tags { padding: 0 20px; }
  .tl-single__behance { padding: 0 20px 32px; }
  .tl-single__nav a { padding: 20px 20px; }
  .tl-single__nav-title { font-size: 14px; }

  /* Cards */
  .tl-case-card__title { font-size: 15px; }
  .tl-case-card__arrow { display: none; } /* remove seta em tela muito pequena */
}
