/* =====================================================
   CHEF GARCIA  — PROJECT PAGE
===================================================== */

:root {
  --color-background: #000000;
  --color-text: #FFFFFF;
  --color-text-secondary: #D9D9D9;
  --color-text-hover: #666666;
  --color-surface: #111111;

  --font-family: "Heebo", sans-serif;

  --project-width: 900px;

  --header-height: 72px;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-2xl: 24px;
  --space-3xl: 32px;
  --space-4xl: 40px;
  --space-5xl: 48px;
  --space-6xl: 64px;
  --space-7xl: 80px;
  --space-8xl: 96px;

  --duration-fast: 200ms;
  --duration-normal: 300ms;

  --ease-standard: cubic-bezier(.16,.84,.44,1);

  --footer-logo-width: 900px;
  --footer-logo-offset: -1%;

  --icon-xl: 48px;
}


/* =====================================================
   RESET
===================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* =====================================================
   HTML / BODY
===================================================== */

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-family);
  background: var(--color-background);
  color: var(--color-text);

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* =====================================================
   LINKS
===================================================== */

a {
  color: inherit;
  text-decoration: none;
}


/* =====================================================
   CONTAINER
===================================================== */

.container {
  width: min(100%, 1200px);
  margin-inline: auto;
  padding-inline: var(--space-xl);
}


/* =====================================================
   HEADER
===================================================== */

.site-header {
  position: fixed;

  top: 0;
  left: 0;
  right: 0;

  z-index: 1000;

  height: var(--header-height);

  background-color: #FFFFFF;

  box-shadow:
    0 2px 8px rgba(0,0,0,.08);
}


/* =====================================================
   HEADER CONTENT
===================================================== */

.header-content {
  min-height: var(--header-height);

  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* =====================================================
   LOGO
===================================================== */

.logo {
  display: flex;
  align-items: center;
}

.site-header .logo-img {
  display: block;

  width: auto;
  height: 40px;

  max-width: 180px;

  object-fit: contain;
}


/* =====================================================
   MENU DESKTOP
===================================================== */

.menu {
  display: block;
}

.menu ul {
  display: flex;
  align-items: center;

  gap: var(--space-3xl);

  margin: 0;
  padding: 0;

  list-style: none;
}

.menu a {
  color: #000000;

  font-size: 14px;
  font-family: var(--font-family);
  font-weight: 500;

  letter-spacing: 0.04em;

  transition:
    color var(--duration-fast) var(--ease-standard),
    opacity var(--duration-fast) var(--ease-standard);
}

.menu a:hover {
  color: var(--color-text-hover);
}

.menu a.active {
  font-weight: 700;
}

.menu a.active::after {
  content: "_";
  margin-left: 4px;
}


/* =====================================================
   MENU TOGGLE
===================================================== */

.menu-toggle {
  display: none;

  flex-direction: column;
  justify-content: center;

  gap: var(--space-xs);

  width: var(--space-4xl);
  height: var(--space-4xl);

  background: none;
  border: none;

  cursor: pointer;

  position: relative;
  z-index: 2000;
}

.menu-toggle span {
  display: block;

  width: 100%;
  height: 3px;

  background: var(--color-surface);

  border-radius: 2px;

  transition:
    transform var(--duration-normal) var(--ease-standard),
    opacity var(--duration-normal) var(--ease-standard);
}


/* =====================================================
   MENU HAMBÚRGUER ABERTO
===================================================== */

.menu-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}


/* =====================================================
   PÁGINA DO PROJETO
===================================================== */

.project-page {
  width: 100%;
  min-height: 100vh;

  display: flex;
  flex-direction: column;
  align-items: center;

  /*
    Espaço para o header fixo.
    O conteúdo começa abaixo do menu.
  */
  padding:
    calc(var(--header-height) + 80px)
    20px
    80px;
}


/* =====================================================
   VOLTAR
===================================================== */

.project-back {
  width: var(--project-width);
  max-width: 100%;

  margin-bottom: 100px;

  color: #FFFFFF;

  font-size: 12px;
  font-weight: 400;

  text-decoration: none;

  opacity: 0.7;

  transition:
    opacity var(--duration-fast) var(--ease-standard);
}

.project-back:hover {
  opacity: 1;
}


/* =====================================================
   CABEÇALHO DO PROJETO
===================================================== */

.project-header {
  width: var(--project-width);
  max-width: 100%;

  margin-top: 100px;
  margin-bottom: 60px;
}

.project-header h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;

  margin-bottom: 24px;
}

.project-header p {
  max-width: 600px;

  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;

  color: var(--color-text-secondary);
}


/* =====================================================
   IMAGENS DO PROJETO
===================================================== */

.project-content {
  width: var(--project-width);
  max-width: 100%;

  display: flex;
  flex-direction: column;

  gap: 0;

  margin: 0;
  padding: 0;
}


/* =====================================================
   IMAGENS
===================================================== */

.project-content img {
  display: block;

  width: 100%;
  height: auto;

  margin: 0;
  padding: 0;

  border: 0;
}


/* =====================================================
   FINAL
===================================================== */

.project-back-bottom {
  margin-top: 60px;
  margin-bottom: 0;
}

/* =====================================================
   FOOTER / CONTATO
===================================================== */

.site-footer {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  padding: var(--space-8xl) 0;

  background: var(--color-background);
}


/* =====================================================
   FOOTER CONTENT
===================================================== */

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;

  width: 100%;
}


/* =====================================================
   LOGO / DIVISOR DO FOOTER
===================================================== */

.footer-logo {
  margin-top: var(--space-xs);
}

.footer-logo img {
  display: block;

  width: var(--footer-logo-width);
  max-width: none;

  height: auto;

  margin: 0 auto;

  object-fit: cover;

  transform: translateX(var(--footer-logo-offset));
}


/* =====================================================
   ÍCONES DE CONTATO
===================================================== */

.contact-icons {
  display: flex;

  gap: var(--space-6xl);

  margin-top: var(--space-sm);
}

.contact-icons a {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: var(--space-4xl);
  height: var(--space-4xl);

  text-decoration: none;

  opacity: 0.9;

  transition:
    transform var(--duration-normal) var(--ease-standard),
    opacity var(--duration-normal) var(--ease-standard);
}

.contact-icons a:hover {
  transform: scale(1.1);
  opacity: 1;
}


/* =====================================================
   ÍCONES
===================================================== */

.contact-icons img {
  width: var(--icon-xl);
  height: var(--icon-xl);

  object-fit: contain;

  filter: brightness(0) invert(1);

  transition:
    filter var(--duration-normal) var(--ease-standard);
}

.contact-icons a:hover img {
  filter: brightness(1) invert(0);
}

/* =====================================================
   TABLET
===================================================== */

@media (min-width: 768px) and (max-width: 1024px) {

  /* =================================================
     MENU
  ================================================= */

  .menu-toggle {
    display: flex;
  }

  .menu {
    position: fixed;

    top: var(--header-height);
    right: -100%;

    width: 500px;
    height: calc(100vh - var(--header-height));

    display: flex;
    align-items: flex-start;
    justify-content: flex-end;

    padding: var(--space-6xl);

    background: var(--color-background);

    transition:
      right var(--duration-normal) var(--ease-standard);

    z-index: 1500;
  }

  .menu.active {
    right: 0;
  }

  .menu ul {
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    gap: var(--space-6xl);
  }

  .menu a {
    font-size: 32px;
    color: var(--color-text);
    font-weight: 500;
  }

  .menu a.active {
    font-weight: 700;
    color: var(--color-text);
  }

  .menu a:hover {
    color: var(--color-text-hover);
  }


  /* =================================================
     PROJETO
  ================================================= */

  .project-page {
    padding:
      calc(var(--header-height) + 64px)
      32px
      64px;
  }

  .project-header {
    margin-top: 80px;
  }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {

  /* =================================================
     HEADER
  ================================================= */

  .site-header {
    height: var(--header-height);
  }

  .header-content {
    min-height: var(--header-height);
  }


  /* LOGO */

  .site-header .logo-img {
    width: auto;
    height: 32px;

    max-width: 150px;
  }


  /* =================================================
     MENU TOGGLE
  ================================================= */

  .menu-toggle {
    display: flex;

    width: var(--space-3xl);
    height: var(--space-3xl);
  }


  /* =================================================
     MENU LATERAL
  ================================================= */

  .menu {
    position: fixed;

    top: var(--header-height);
    right: -100%;

    width: 100%;
    height: calc(100vh - var(--header-height));

    display: flex;
    align-items: flex-start;
    justify-content: flex-end;

    padding:
      var(--space-5xl)
      var(--space-5xl);

    background: var(--color-background);

    transition:
      right var(--duration-normal) var(--ease-standard);

    z-index: 1500;
  }

  .menu.active {
    right: 0;
  }


  /* =================================================
     LISTA
  ================================================= */

  .menu ul {
    display: flex;
    flex-direction: column;
    align-items: flex-end;

    gap: var(--space-5xl);

    margin: 0;
    padding: 0;

    list-style: none;
  }

  .menu a {
    font-size: 20px;

    color: var(--color-text);

    font-weight: 500;
  }

  .menu a.active {
    font-weight: 700;
    color: var(--color-text);
  }


  /* =================================================
     PÁGINA
  ================================================= */

  .project-page {
    padding:
      calc(var(--header-height) + 40px)
      16px
      40px;
  }


  /* =================================================
     VOLTAR
  ================================================= */

  .project-back {
    margin-bottom: 40px;
  }


  /* =================================================
     CABEÇALHO
  ================================================= */

  .project-header {
    margin-top: 60px;
    margin-bottom: 40px;
  }

  .project-header h1 {
    font-size: 40px;
  }

  .project-header p {
    font-size: 14px;
  }


  /* =================================================
     PROJETO
  ================================================= */

  .project-content {
    width: 100%;
  }


 /* =================================================
   FOOTER
================================================= */

.site-footer {
  padding:
    var(--space-7xl)
    var(--space-2xl);
}

.footer-logo {
  margin-bottom: var(--space-3xl);
}

.footer-logo img {
  width: 240px;
  max-width: 80%;
}

.contact-icons {
  gap: var(--space-4xl);
}

.contact-icons a {
  width: var(--space-5xl);
  height: var(--space-5xl);
}

}