@font-face {
  font-family: "Tanker";
  src: url("/assets/fonts/tanker/Tanker-Regular.woff2") format("woff2"),
    url("/assets/fonts/tanker/Tanker-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Tanker";
  src: url("/assets/fonts/tanker/Tanker-Bold.woff2") format("woff2"),
    url("/assets/fonts/tanker/Tanker-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =========================
   Reset
   ========================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

a:link,
a:visited,
a:hover,
a:active {
  color: inherit;
  text-decoration: none;
}

html.hash-loading body {
  visibility: hidden;
}

html.hash-loaded body {
  visibility: visible;
}

ul {
  margin: 0;
  padding-left: 1.2rem; /* controla a posição da bullet */
  list-style-position: outside;
}

/* =========================
   Design Tokens
   ========================= */
:root {
  /* Main Colors */
  --color-primary: hsla(64, 96%, 81%, 1);
  --color-secondary: hsla(95, 50%, 9%, 1);

  /* Transparency */
  --transparency-primary: hsla(64, 96%, 81%, 0.3);
  --transparency-secondary: hsla(95, 50%, 9%, 0.3);

  /* Background / Text */
  --color-bg-dark: var(--color-secondary);
  --color-text-on-dark: var(--color-primary);
  --color-bg-light: var(--color-primary);
  --color-text-on-light: var(--color-secondary);

  /* Spacing */
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 40px;
  --space-11: 44px;
  --space-12: 48px;

  /* Radius */
  --radius-s: 28px;
  --radius-m: 32px;
  --radius-l: 36px;
  --radius-xl: 40px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 150ms;
  --t-med: 300ms;
}

/* =========================
   Theme helpers
   ========================= */
.dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.light {
  background-color: var(--color-bg-light);
  color: var(--color-text-on-light);
}

/* =========================
   Typography
   ========================= */
h2 {
  font-family: "Tanker", system-ui, sans-serif;
  font-size: 120px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
}

h3 {
  font-family: "Sora", sans-serif;
  font-size: 32px;
  font-style: normal;
  font-weight: 800;
  line-height: 100%;
}

/* Class to remove style from ul */
.clean-list {
  margin: 0;
  /* padding: 0; */
  list-style: none;
}

body {
  background-color: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  font-family: "Sora", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 200;
  line-height: 28px;
}

strong {
  font-weight: 600;
}

/* =========================
   Buttons
   ========================= */
.btn {
  display: flex;
  padding: 8px 16px;
  justify-content: center;
  align-items: center;
  height: 44px;
  gap: 8px;
  border-radius: 100px;
  border: 1.5px solid var(--color-primary);

  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  text-decoration: none;
  color: inherit;
}

.btn.dark {
  color: var(--color-text-on-dark);
}

.btn:hover {
  opacity: 0.8;
}

.btn:focus-visible {
  outline: 2px solid orangered;
  outline-offset: 2px;
}

/* Icon Button */
.btn-icon {
  display: flex;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  border-radius: 100px;
  border: 1.5px solid var(--color-primary);
}

.btn-icon:hover {
  opacity: 0.8;
}

.btn-icon:focus-visible {
  outline: 2px solid orangered;
  outline-offset: 2px;
}

/* Menu Button */
.btn-menu {
  display: flex;
  padding: 8px 16px;
  justify-content: center;
  align-items: center;
  border-radius: 100px;
  height: 44px;
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px;
  text-decoration: none;
  color: inherit;
}

.btn-menu.small {
  padding: 4px 8px;
  height: auto;
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  text-decoration: none;
  color: inherit;
}

.btn-menu:hover {
  opacity: 0.8;
}

.btn-menu:focus-visible {
  outline: 2px solid orangered;
  outline-offset: 2px;
}

/* =========================
   Card
   ========================= */
.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 210px;
  padding: 12px 16px;
  gap: 16px;
  flex: 1 0 0;

  border-radius: 24px;
  border: 1.5px solid var(--color-secondary);
}

.card-light {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 210px;
  padding: 12px 16px;
  gap: 16px;
  flex: 1 0 0;

  border-radius: 24px;
  border: 1.5px solid var(--color-primary);
}

/* =========================
   Header / Hero
   ========================= */
header {
  padding: 48px 48px 24px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Hero Banner */
#hero-banner {
  width: 100%;
  max-width: 1532px;
  aspect-ratio: 3/1.5;

  display: grid;
  padding: 24px 24px 0px 24px;
  border-radius: var(--radius-xl);
  grid-template-rows: 2fr repeat(3, minmax(0, 1fr));
  grid-template-columns: repeat(7, minmax(0, 1fr));
  overflow: hidden;
}

#hero-banner .title {
  font-family: "Tanker", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: -0.03em;

  grid-row: 1 / 2;
  grid-column: 1 / -1;
  align-self: start;
  justify-self: start;

  white-space: nowrap;
  text-align: left;
  line-height: 80%;
  display: block;
  width: 100%;
}

#hero-banner p {
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px;
}

#hero-banner h1 {
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px;
}

#hero-banner .content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: stretch;
}

#hero-banner .left {
  grid-row: 2 / span 1;
  grid-column: 1 / span 2;
  align-items: flex-start;
  text-align: left;
}

#hero-banner .right {
  grid-row: 3 / span 1;
  grid-column: 6 / span 2;
  align-items: flex-end;
  text-align: right;
}

#hero-banner .center {
  grid-row: 1 / span 4;
  grid-column: 3 / span 3;
  align-items: flex-end;
  text-align: right;
  justify-content: flex-end;
}

#hero-banner img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

#hero-banner ul {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

#hero-banner .hide-desktop {
  display: none;
}

/* =========================
   NavBar
   ========================= */
nav {
  width: 100%;
  height: 100px;
  padding: 0px 20%;

  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;

  position: sticky;
  top: 0;
  z-index: 1000;

  background: var(--transparency-secondary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-menu.active {
  background-color: var(--transparency-primary);
  border-radius: 100px;
}

nav ul {
  display: flex;
  flex: 1;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  align-self: stretch;
}

/* =========================
   Main
   ========================= */
main {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* =========================
   Work
   ========================= */
#work {
  position: relative;
  width: 100%;
  max-width: 1532px;
}

#work h2 {
  position: absolute;
  top: 120px;
  left: 4%;
}

#work .navigation {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: 50%;
}

/* Work / Case Cover */
#work .case-cover {
  display: grid;
  width: 100%;
  min-height: 800px;
  padding: 160px 120px;
  gap: 32px;
  grid-template-rows: repeat(1, minmax(0, 1fr));
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#work .case-cover .content {
  display: flex;
  padding-bottom: 18%;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 24px;
  flex: 1 0 0;
  align-self: stretch;
  grid-row: 1 / span 1;
  grid-column: 1 / span 1;
}

#work .case-cover .mockup {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =========================
   About
   ========================= */
#about {
  width: 100%;
  max-width: 1532px;
  min-height: 800px;
  padding: 100px 120px;

  display: grid;
  gap: 60px;
  grid-template-rows: auto auto;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

#about h2 {
  grid-row: 1 / 2;
  grid-column: 3 / -1;
  justify-self: end;
}

#about .working {
  grid-row: 1 / span 2;
  grid-column: 1 / span 2;
  justify-self: center;
  align-self: center;

  width: 100%;
  height: 80%;
  object-fit: cover;
  object-position: top center;
  border-radius: 40px;
  border: 6px solid var(--color-primary);
}

#about .working-mobile {
  grid-row: 1 / span 2;
  grid-column: 1 / span 2;
  justify-self: center;
  align-self: center;

  width: 100%;
  height: 80%;
  object-fit: cover;
  object-position: top center;
  border-radius: 40px;
  border: 6px solid var(--color-primary);

  display: none;
}

#about .content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  align-self: stretch;
  gap: 16px;
  flex: 1 0 0;

  grid-row: 2 / span 1;
  grid-column: 3 / span 3;
}

/* =========================
   Contact
   ========================= */
#contact {
  width: 100%;
  padding: 48px 48px 0px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 48px;
}

#contact .title {
  width: 100%;
  max-width: 1532px;
  text-align: right;
  line-height: 42px;
}

#contact .banner {
  position: relative;
  display: flex;
  height: 420px;
  width: 100%;
  max-width: 1532px;
  padding: 0 80px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  align-self: center;
  border-radius: 40px 40px 0 0;
}

#contact .email {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-end;
}

#contact .btn-icon {
  width: 56px;
  height: 56px;
}

#contact .menu {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  gap: 18px;
  margin-left: -16px;
}

#contact .banner p {
  position: absolute;
  bottom: 16px;
  right: 48px;
}

/* =========================
   Modal Case Study
   ========================= */

.case-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  display: none;
}

.case-modal.is-visible {
  display: flex;
}

.case-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}

.case-modal__content {
  position: relative;
  z-index: 1;
  max-width: 520px;
  width: 90%;
  padding: 24px 24px 20px;
  border-radius: 16px;
  background: var(--color-bg-light, #ffffff);
  color: var(--color-text-on-light, #111111);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}

.case-modal__content h3 {
  margin: 0 0 12px;
  font-size: 1.4rem;
}

.case-modal__content p {
  margin: 0 0 10px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.case-modal__actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.case-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  color: inherit;
}

.case-modal__close:hover {
  background: rgba(0, 0, 0, 0.12);
}

body.case-modal-open {
  overflow: hidden;
}

.btn.secondary {
  background: transparent;
  border: 1px solid var(--color-primary);
  color: inherit;
}

/* =========================
   Breakpoints
   ========================= */

@media (max-width: 1440px) {
  header {
    padding: 32px 32px 16px 32px;
  }

  main {
    padding: 0px 32px;
  }

  #contact {
    padding: 32px 32px 0px 32px;
  }
}

@media (max-width: 1024px) {
  #hero-banner {
    aspect-ratio: 3/1.65;
    margin-bottom: 8px;
  }

  #hero-banner .center {
    grid-row: 2 / span 3;
    grid-column: 1 / span 3;
  }

  #hero-banner .left {
    grid-row: 2 / span 1;
    grid-column: 4 / span 4;
    text-align: right;
  }

  #hero-banner .right {
    grid-row: 3 / span 1;
    grid-column: 4 / span 4;
    text-align: right;
  }

  #hero-banner .hide {
    display: none;
  }

  .btn-menu {
    font-size: 16px;
  }

  nav {
    height: 60px;
  }

  #work .case-cover {
    padding: 80px 40px;
  }

  #work h2 {
    position: absolute;
    top: 10vh;
    left: 4%;
  }

  #work {
    min-height: auto;
  }

  #work h2 {
    top: 60px;
  }

  #work .navigation {
    justify-content: flex-end;
    gap: 24px;
    top: auto;
    bottom: 16px;
  }

  #about {
    padding: 80px 40px;
    row-gap: 60px;
    column-gap: 32px;
  }

  .card {
    min-width: 300px;
  }

  .card-light {
    min-width: 300px;
  }
}

@media (max-width: 768px) {
  h2 {
    font-size: 72px;
  }

  header {
    padding: 16px 16px 8px 16px;
  }

  #hero-banner {
    aspect-ratio: 3/2;
    padding: 16px 16px 0px 16px;
    border-radius: var(--radius-m);
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }

  #hero-banner .left {
    display: none;
  }

  #hero-banner .right {
    grid-row: 2 / span 1;
    grid-column: 5 / span 3;
    text-align: right;
  }

  #hero-banner .center {
    grid-row: 2 / span 3;
    grid-column: 1 / span 4;
  }

  #work .case-cover {
    gap: 16px;
  }

  #work .case-cover .content {
    padding-bottom: 0%;
  }

  #about {
    grid-template-rows: auto 240px auto;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
  }

  #about h2 {
    grid-row: 1 / 2;
    grid-column: 1 / -1;
    justify-self: end;
  }

  #about .working {
    display: none;
  }

  #about .working-mobile {
    grid-row: 2 / span 1;
    grid-column: 1 / span 5;
    justify-self: center;
    align-self: center;
    height: 100%;

    display: block;
  }

  #about .content {
    gap: 12px;

    grid-row: 3 / span 1;
    grid-column: 1 / span 5;
  }

  #contact {
    padding: 16px 16px 0px 16px;
  }

  #contact .banner {
    padding: 0 32px;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  #hero-banner {
    aspect-ratio: 3/4;
    padding: 16px 16px 0px 16px;
    border-radius: var(--radius-s);
    grid-template-rows: repeat(5, minmax(0, 1fr));
  }

  #hero-banner .right {
    grid-row: 2 / span 1;
    grid-column: 1 / span 7;
    text-align: center;
  }

  #hero-banner .center {
    grid-row: 3 / span 3;
    grid-column: 1 / span 6;
  }

  #hero-banner .hide-mobile {
    display: none;
  }

  #hero-banner .hide-desktop {
    display: flex;
    grid-row: 5 / span 1;
    align-items: flex-end;
    text-align: right;
    justify-content: flex-end;
    padding-bottom: 16px;
  }

  nav {
    padding: 0px 24px;
  }

  #work .case-cover {
    padding: 80px 0px;
    height: auto;
    grid-template-rows: auto 1fr;
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  #work .case-cover .content {
    justify-content: flex-start;
    grid-row: 2 / span 1;
  }

  #work .case-cover .mockup {
    width: 80%;
    height: 80%;
    justify-self: center;
    align-self: center;
  }

  #about {
    padding: 80px 0px;
    row-gap: 32px;
    column-gap: 32px;
  }

  #contact .email h3 {
    font-size: 20px;
  }

  #contact .btn-icon {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 425px) {
  body {
    font-size: 16px;
    font-style: normal;
    font-weight: 200;
    line-height: 24px;
  }

  #hero-banner {
    aspect-ratio: 3/5;
    padding: 16px 16px 0px 16px;
    border-radius: var(--radius-s);
    grid-template-rows: repeat(5, minmax(0, 1fr));
  }

  #contact .menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 4px;
    margin: 0px;
  }

  #contact .menu .btn-menu {
    display: flex;
    padding: 8px 4px;
    justify-content: flex-start;
    align-items: center;
    height: 44px;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
    text-decoration: none;
    color: inherit;
  }

  #contact .banner p {
    right: 12px;
  }

  #contact .banner .btn-icon {
    display: none;
  }
}
