/* ============================================================
   Victor Luna — Product Designer
   Design tokens measured from the live victorluna.com.br
   ============================================================ */

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var.woff2") format("woff2-variations"),
       url("../fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2-variations"),
       url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0e1114;
  --fg: #ffffff;
  --muted: #999999;
  --muted-2: rgba(255, 255, 255, 0.6);
  --accent: #fa3205;
  --border: rgba(255, 255, 255, 0.12);
  --card-bg: rgba(255, 255, 255, 0.04);
  --radius: 20px;
  --radius-sm: 12px;

  --font-display: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  --pad: 20px;
  --gap: 12px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 810px) {
  :root {
    --pad: 64px;
    --gap: 16px;
  }
}

@media (min-width: 1440px) {
  :root {
    --pad: 100px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

.wrap {
  max-width: 1512px;
  margin: 0 auto;
  padding-inline: var(--pad);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

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

/* -------------------- reveal-on-scroll -------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==================== HERO ==================== */

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__rays {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.15) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero__top {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1512px;
  margin-inline: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px var(--pad) 0;
  flex-wrap: wrap;
}

.hero__id p:first-child {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
}

.hero__clock {
  display: flex;
  gap: 6px;
  font-size: 15px;
  color: var(--muted);
}

.hero__clock strong {
  font-weight: 400;
  color: var(--fg);
}

.hero__status {
  max-width: 380px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.7;
  text-align: right;
}

@media (max-width: 809px) {
  .hero__status {
    text-align: left;
    max-width: 100%;
  }
}

.hero__title {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1512px;
  margin-inline: auto;
  margin-top: auto;
  padding: 0 var(--pad);
}

.fit-text {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.fit-text text {
  font-family: var(--font-display);
  font-weight: 700;
  fill: var(--fg);
  letter-spacing: -0.04em;
}

/* ==================== SECTION HEADS ==================== */

.section {
  padding-block: 72px;
}

@media (min-width: 810px) {
  .section {
    padding-block: 100px;
  }
}

.section__head {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 42px;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

@media (min-width: 810px) {
  .section__head {
    font-size: 48px;
    margin-bottom: 56px;
  }
}

/* ==================== WORK ==================== */

.work {
  padding-block: 40px;
}

.project {
  margin-bottom: 56px;
}

.project:last-child {
  margin-bottom: 0;
}

.project__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  margin-bottom: 16px;
}

.project__row {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.project__row::-webkit-scrollbar {
  display: none;
}

.project__row img {
  flex: 0 0 auto;
  width: 216px;
  height: auto;
  border-radius: var(--radius);
  scroll-snap-align: start;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  background: var(--card-bg);
}

.project__row--wide img {
  width: 100%;
  flex: 1 1 auto;
  aspect-ratio: 16 / 10;
}

@media (min-width: 810px) {
  .project__row img {
    width: calc((100% - var(--gap) * 3) / 4);
  }

  .project__row--wide img {
    width: 100%;
  }
}

/* ==================== ABOUT ==================== */

.about {
  display: grid;
  gap: 40px;
}

.about__imgs {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--gap);
}

.about__imgs img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

.about__body {
  display: grid;
  gap: 24px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg);
}

@media (min-width: 810px) {
  .about {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }

  .about__body {
    font-size: 20px;
  }
}

/* ==================== EXPERIENCE ==================== */

.exp-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding-block: 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 16px;
}

.exp-row:first-child {
  border-top: 1px solid var(--border);
}

@media (min-width: 810px) {
  .exp-row {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
  }
}

.exp-row__loc {
  color: var(--muted);
}

@media (min-width: 810px) {
  .exp-row__loc {
    color: var(--fg);
  }
}

.exp-more-rows {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
  overflow: hidden;
}

.exp-more-rows.is-open {
  grid-template-rows: 1fr;
}

.exp-more-rows__inner {
  min-height: 0;
}

.exp-toggle {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--fg);
}

.exp-toggle svg {
  transition: transform 0.3s var(--ease);
}

.exp-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* ==================== TESTIMONIALS ==================== */

.testi {
  position: relative;
}

.testi__track {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: var(--radius);
}

.testi__track::-webkit-scrollbar {
  display: none;
}

.testi__card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

@media (min-width: 810px) {
  .testi__card {
    padding: 64px;
  }
}

.testi__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.testi__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
}

.testi__role {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}

.testi__quote {
  max-width: 640px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg);
}

.testi__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 28px;
}

.testi__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.testi__arrow:hover {
  background: var(--card-bg);
}

.testi__arrow:active {
  transform: scale(0.94);
}

.testi__dots {
  display: flex;
  gap: 8px;
}

.testi__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.testi__dot.is-active {
  background: var(--accent);
  transform: scale(1.2);
}

/* ==================== QUOTE FORM ==================== */

.quote {
  display: grid;
  gap: 40px;
}

@media (min-width: 810px) {
  .quote {
    grid-template-columns: 1fr 1fr;
  }
}

.form {
  display: grid;
  gap: 20px;
  max-width: 644px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 16px;
  color: var(--fg);
}

.field input,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 8px 4px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s var(--ease);
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--fg);
}

.field textarea {
  min-height: 160px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.field textarea:focus {
  border-color: var(--fg);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__submit {
  justify-self: start;
  margin-top: 8px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.form__submit:hover {
  transform: translateY(-1px);
}

.form__submit:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.form__note {
  font-size: 14px;
  margin-top: 4px;
}

.form__note[data-state="success"] {
  color: #3ddc84;
}

.form__note[data-state="error"] {
  color: var(--accent);
}

/* ==================== FAQ ==================== */

.faq {
  border-top: 1px solid var(--border);
}

.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  font-family: var(--font-body);
  font-size: 18px;
}

@media (min-width: 810px) {
  .faq__item summary {
    font-size: 20px;
  }
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  position: relative;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}

.faq__icon::before {
  left: 0;
  top: 7px;
  width: 16px;
  height: 2px;
}

.faq__icon::after {
  left: 7px;
  top: 0;
  width: 2px;
  height: 16px;
}

.faq__item[open] .faq__icon::after {
  transform: rotate(90deg) translate(0, 0);
  opacity: 0;
}

.faq__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.faq__item[open] .faq__body {
  grid-template-rows: 1fr;
}

.faq__body-inner {
  overflow: hidden;
}

.faq__answer {
  padding: 0 0 24px 32px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 900px;
}

/* ==================== BLOG ==================== */

.blog__list {
  display: grid;
  gap: 20px;
}

.blog__card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
  border-radius: var(--radius-sm);
  transition: opacity 0.2s var(--ease);
}

.blog__card:hover {
  opacity: 0.8;
}

.blog__thumb {
  width: 92px;
  height: 92px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex: 0 0 auto;
}

.blog__meta {
  flex: 1 1 auto;
  min-width: 0;
}

.blog__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 8px;
}

.blog__sub {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: var(--fg);
}

.blog__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.blog__arrow {
  flex: 0 0 auto;
  color: var(--accent);
}

.blog__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  color: var(--accent);
  font-size: 16px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}

.blog__more:hover {
  border-color: var(--accent);
}

/* ==================== FOOTER ==================== */

.footer {
  padding-block: 40px 60px;
}

.footer .fit-text text {
  fill: var(--fg);
}

/* ==================== COOKIE BANNER ==================== */

.cookie {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 50;
  width: max-content;
  max-width: min(320px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: #1a1e22;
  border-radius: 32px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.cookie[hidden] {
  display: flex;
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
}

.cookie p {
  font-size: 14px;
  color: var(--fg);
}

.cookie__actions {
  display: flex;
  gap: 12px;
}

.cookie__btn {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s var(--ease);
}

.cookie__btn:hover {
  opacity: 0.85;
}

.cookie__btn--accept {
  background: #fff;
  color: var(--bg);
}

.cookie__btn--decline {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
}

/* ==================== FOCUS STATES ==================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
