/* =========================================================
   RAIZ CAFÉ
   Stylesheet principal
   ========================================================= */


/* =========================================================
   1. RESET
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background: var(--color-bg-light);
  line-height: 1.6;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 var(--space-md);
  max-width: 65ch;
}

h1,
h2,
h3 {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 600;
}

h3 {
  font-size: 1.35rem;
  font-weight: 600;
}


/* =========================================================
   2. TOKENS
   ========================================================= */

:root {

  /* Cores */

  --color-bg-dark: #241811;

  --color-bg-dark-soft: #2d1e15;

  --color-bg-light: #f2e9d8;

  --color-bg-light-soft: #eadfca;

  --color-text-dark: #241811;

  --color-text-light: #f2e9d8;

  --color-accent: #8fa37e;

  --color-accent-warm: #b5651d;

  --color-accent-warm-light: #d38a38;

  --color-line: #d8c9ae;

  --color-muted: #6b5c4a;


  /* Tipografia */

  --font-display: "Fraunces", serif;

  --font-body: "Work Sans", sans-serif;


  /* Espaçamento */

  --space-xs: 0.5rem;

  --space-sm: 0.75rem;

  --space-md: 1.5rem;

  --space-lg: 3rem;

  --space-xl: 6rem;

  --space-xxl: 9rem;


  /* Layout */

  --container-width: 1100px;

  --header-height: 64px;


  /* Outros */

  --radius: 3px;

  --transition: 0.3s ease;

}


/* =========================================================
   3. CONTAINER
   ========================================================= */

.container {
  width: min(
    calc(100% - 3rem),
    var(--container-width)
  );

  margin-inline: auto;
}


/* =========================================================
   4. ACESSIBILIDADE
   ========================================================= */

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-accent-warm-light);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;

  z-index: 999;

  padding: 0.75rem 1.25rem;

  background: var(--color-accent-warm);
  color: var(--color-text-light);

  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}


/* =========================================================
   5. BOTÕES
   ========================================================= */

.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 48px;

  padding: 0.75rem 1.5rem;

  border: 2px solid transparent;
  border-radius: var(--radius);

  font-weight: 600;

  transition:
    transform var(--transition),
    background-color var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn--large {
  min-height: 54px;
  padding-inline: 1.75rem;
}

.btn--primary {
  background: var(--color-accent-warm);
  color: var(--color-text-light);

  box-shadow:
    0 8px 20px rgba(181, 101, 29, 0.18);
}

.btn--primary:hover {
  background: #c17427;

  box-shadow:
    0 12px 28px rgba(181, 101, 29, 0.25);
}

.btn--outline {
  border-color: var(--color-text-dark);
  color: var(--color-text-dark);
}

.btn--outline:hover {
  background: var(--color-text-dark);
  color: var(--color-text-light);
}


/* =========================================================
   6. HEADER
   ========================================================= */

.site-header {
  position: sticky;

  top: 0;

  z-index: 100;

  background: rgba(36, 24, 17, 0.96);

  color: var(--color-text-light);

  border-bottom: 1px solid rgba(242, 233, 216, 0.08);

  backdrop-filter: blur(12px);
}

.site-header__inner {
  min-height: var(--header-height);

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: var(--space-lg);
}

.site-header__logo {
  font-family: var(--font-display);

  font-size: 1.6rem;

  font-weight: 600;

  letter-spacing: -0.02em;
}

.main-nav__list {
  display: flex;

  align-items: center;

  gap: 2.25rem;

  list-style: none;

  margin: 0;

  padding: 0;
}

.main-nav__link {
  position: relative;

  color: var(--color-text-light);

  opacity: 0.8;

  transition:
    opacity var(--transition);
}

.main-nav__link::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -7px;

  width: 0;
  height: 1px;

  background: var(--color-accent-warm-light);

  transition: width var(--transition);
}

.main-nav__link:hover {
  opacity: 1;
}

.main-nav__link:hover::after {
  width: 100%;
}


/* =========================================================
   7. MENU MOBILE
   ========================================================= */

.nav-toggle {
  display: none;

  width: 38px;
  height: 38px;

  padding: 7px;

  border: 0;

  background: transparent;
}

.nav-toggle__bar {
  display: block;

  width: 100%;
  height: 2px;

  margin: 5px 0;

  background: var(--color-text-light);

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.nav-toggle--open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle--open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle--open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* =========================================================
   8. HERO
   ========================================================= */

.hero {
  position: relative;

  min-height: calc(100vh - var(--header-height));

  display: flex;

  align-items: center;

  overflow: hidden;

  background: var(--color-bg-dark);

  color: var(--color-text-light);
}

.hero::before {
  content: "";

  position: absolute;

  width: 600px;
  height: 600px;

  right: -250px;
  top: -250px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(181, 101, 29, 0.15),
      transparent 70%
    );

  pointer-events: none;
}

.hero__inner {
  position: relative;

  z-index: 1;

  min-height: calc(100vh - var(--header-height));

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: var(--space-xl);
}

.hero__text {
  flex: 1 1 560px;
}

.hero__eyebrow {
  margin-bottom: 1.5rem;

  color: var(--color-accent);

  font-size: 0.78rem;

  font-weight: 600;

  letter-spacing: 0.14em;

  text-transform: uppercase;
}

.hero__title {
  max-width: 780px;

  letter-spacing: -0.035em;
}

.hero__title span {
  color: var(--color-accent-warm-light);
}

.hero__subtitle {
  max-width: 600px;

  margin-top: 1.75rem;

  color: var(--color-line);

  font-size: 1.08rem;
}

.hero__actions {
  display: flex;

  align-items: center;

  flex-wrap: wrap;

  gap: 1.5rem;

  margin-top: 2rem;
}

.hero__secondary-link {
  color: var(--color-text-light);

  opacity: 0.75;

  transition:
    opacity var(--transition),
    transform var(--transition);
}

.hero__secondary-link:hover {
  opacity: 1;

  transform: translateX(4px);
}

.hero__note {
  margin-top: 1.5rem;

  color: var(--color-line);

  font-size: 0.78rem;

  letter-spacing: 0.03em;
}


/* =========================================================
   9. HERO VISUAL
   ========================================================= */

.hero__visual {
  flex: 0 0 420px;

  display: flex;

  justify-content: center;

  align-items: center;
}

.coffee-orbit {
  position: relative;

  width: 390px;
  height: 390px;

  display: grid;

  place-items: center;
}

.coffee-orbit::before,
.coffee-orbit::after {
  content: "";

  position: absolute;

  border-radius: 50%;

  border: 1px solid rgba(242, 233, 216, 0.15);

  animation: orbitSpin 18s linear infinite;
}

.coffee-orbit::before {
  width: 100%;
  height: 100%;
}

.coffee-orbit::after {
  width: 115%;
  height: 115%;

  border-color: rgba(181, 101, 29, 0.2);

  animation-duration: 25s;

  animation-direction: reverse;
}

.coffee-circle {
  position: relative;

  width: 320px;
  height: 320px;

  animation: coffeeFloat 5s ease-in-out infinite;
}

.coffee-circle svg {
  width: 100%;
  height: 100%;
}


/* =========================================================
   10. ANIMAÇÕES
   ========================================================= */

@keyframes coffeeFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }

}

@keyframes orbitSpin {

  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }

}


/* =========================================================
   11. REVEAL
   ========================================================= */

.reveal {
  opacity: 0;

  transform: translateY(30px);

  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;

  transform: translateY(0);
}


/* =========================================================
   12. SEÇÕES
   ========================================================= */

.steps,
.pricing,
.cta-final {
  padding-block: var(--space-xxl);
}

.section-heading {
  max-width: 720px;
}

.section-eyebrow {
  margin-bottom: 0.8rem;

  color: var(--color-accent-warm);

  font-size: 0.78rem;

  font-weight: 600;

  letter-spacing: 0.14em;

  text-transform: uppercase;
}

.section-title {
  letter-spacing: -0.025em;
}

.section-intro {
  margin-top: 1.25rem;

  color: var(--color-muted);

  font-size: 1rem;
}


/* =========================================================
   13. COMO FUNCIONA
   ========================================================= */

.steps {
  background: var(--color-bg-light);
}

.steps__list {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 2rem;

  list-style: none;

  margin: 4rem 0 0;

  padding: 0;
}

.steps__item {
  position: relative;

  display: grid;

  grid-template-columns: auto 1fr;

  gap: 1.25rem;

  padding-top: 1.5rem;

  border-top: 1px solid var(--color-line);
}

.steps__number {
  font-family: var(--font-display);

  font-size: 2rem;

  line-height: 1;

  color: var(--color-accent-warm);
}

.steps__title {
  margin-bottom: 0.6rem;
}

.steps__item p {
  color: var(--color-muted);

  font-size: 0.95rem;
}


/* =========================================================
   14. ORIGENS
   ========================================================= */

.origins {
  position: relative;

  overflow: hidden;

  padding-block: var(--space-xxl);

  background: var(--color-bg-dark);

  color: var(--color-text-light);
}

.origins::before {
  content: "";

  position: absolute;

  width: 500px;
  height: 500px;

  left: -300px;
  bottom: -300px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(143, 163, 126, 0.15),
      transparent 70%
    );
}

.section-heading--light {
  position: relative;

  z-index: 1;
}

.section-heading--light .section-title {
  color: var(--color-text-light);
}

.section-heading--light .section-intro {
  color: var(--color-line);
}


/* =========================================================
   15. CARDS DOS CAFÉS
   ========================================================= */

.origins__grid {
  position: relative;

  z-index: 1;

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 1.5rem;

  margin-top: 4rem;
}

.origin-card {
  overflow: hidden;

  background: var(--color-bg-light);

  color: var(--color-text-dark);

  border-radius: 3px;

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.12);

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.origin-card:hover {
  transform: translateY(-10px);

  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.22);
}


/* Imagem */

.origin-card__image {
  position: relative;

  height: 360px;

  display: flex;

  align-items: flex-end;

  justify-content: center;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 50% 30%,
      #fffaf0,
      var(--color-bg-light-soft)
    );
}

.origin-card__image::after {
  content: "";

  position: absolute;

  inset: auto 0 0;

  height: 100px;

  background:
    linear-gradient(
      to top,
      rgba(242, 233, 216, 0.9),
      transparent
    );

  pointer-events: none;
}

.origin-card__image img {
  position: relative;

  z-index: 1;

  width: 82%;

  height: 100%;

  object-fit: contain;

  object-position: center bottom;

  padding: 1rem;

  transition:
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.origin-card:hover .origin-card__image img {
  transform: translateY(-8px) scale(1.04);
}


/* Tag */

.origin-card__tag {
  position: absolute;

  z-index: 2;

  top: 1rem;
  left: 1rem;

  padding: 0.45rem 0.75rem;

  background: var(--color-accent-warm);

  color: white;

  font-size: 0.7rem;

  font-weight: 600;

  letter-spacing: 0.04em;

  text-transform: uppercase;
}


/* Conteúdo */

.origin-card__content {
  padding: 1.5rem;
}

.origin-card__region {
  margin-bottom: 0.4rem;

  color: var(--color-accent-warm);

  font-size: 0.7rem;

  font-weight: 600;

  letter-spacing: 0.1em;

  text-transform: uppercase;
}

.origin-card__title {
  font-size: 1.6rem;

  margin-bottom: 0.75rem;
}

.origin-card__text {
  min-height: 76px;

  margin-bottom: 1.5rem;

  color: var(--color-muted);

  font-size: 0.92rem;
}

.origin-card__footer {
  display: flex;

  align-items: center;

  justify-content: space-between;

  padding-top: 1rem;

  border-top: 1px solid var(--color-line);

  font-size: 0.85rem;

  font-weight: 600;
}

.origin-card__link {
  color: var(--color-accent-warm);

  transition:
    transform var(--transition);
}

.origin-card__link:hover {
  transform: translateX(4px);
}


/* =========================================================
   16. PLANOS
   ========================================================= */

.pricing {
  background: var(--color-bg-light);
}

.pricing__list {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 1.5rem;

  margin-top: 4rem;

  align-items: stretch;
}

.plan {
  position: relative;

  display: flex;

  flex-direction: column;

  padding: 2rem;

  border: 1px solid var(--color-line);

  background: rgba(255, 255, 255, 0.2);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.plan:hover {
  transform: translateY(-7px);

  border-color: var(--color-accent-warm);

  box-shadow:
    0 20px 40px rgba(36, 24, 17, 0.08);
}

.plan--featured {
  border: 2px solid var(--color-accent-warm);

  background: #efe2cb;

  box-shadow:
    0 20px 50px rgba(36, 24, 17, 0.08);
}

.plan__featured-label {
  position: absolute;

  top: -1px;
  right: 1.5rem;

  padding: 0.45rem 0.8rem;

  background: var(--color-accent-warm);

  color: white;

  font-size: 0.7rem;

  font-weight: 600;

  text-transform: uppercase;

  letter-spacing: 0.05em;
}

.plan__label {
  display: block;

  margin-bottom: 0.5rem;

  color: var(--color-accent-warm);

  font-size: 0.72rem;

  font-weight: 600;

  letter-spacing: 0.08em;

  text-transform: uppercase;
}

.plan__title {
  font-size: 2rem;
}

.plan__price {
  margin-top: 1.25rem;

  margin-bottom: 0.5rem;

  font-family: var(--font-display);

  font-size: 2.8rem;

  line-height: 1;
}

.plan__price-period {
  font-family: var(--font-body);

  font-size: 0.95rem;

  font-weight: 400;

  color: var(--color-muted);
}

.plan__desc {
  color: var(--color-muted);

  font-size: 0.9rem;
}

.plan__features {
  list-style: none;

  margin: 1.5rem 0 2rem;

  padding: 0;

  color: var(--color-muted);

  font-size: 0.9rem;
}

.plan__features li {
  padding-block: 0.4rem;
}

.plan__button {
  width: 100%;

  margin-top: auto;
}


/* =========================================================
   17. DEPOIMENTO
   ========================================================= */

.testimonial {
  position: relative;

  overflow: hidden;

  padding-block: var(--space-xxl);

  background: var(--color-accent);

  color: var(--color-text-dark);
}

.testimonial::before {
  content: "“";

  position: absolute;

  right: 8%;

  top: 20%;

  font-family: var(--font-display);

  font-size: 18rem;

  line-height: 1;

  opacity: 0.08;
}

.testimonial__quote {
  position: relative;

  max-width: 780px;

  margin: 0;
}

.testimonial__mark {
  display: block;

  margin-bottom: -1rem;

  font-family: var(--font-display);

  font-size: 5rem;

  color: var(--color-accent-warm);

  line-height: 1;
}

.testimonial__text {
  max-width: 28ch;

  margin-bottom: 1.5rem;

  font-family: var(--font-display);

  font-size: clamp(1.8rem, 4vw, 3rem);

  line-height: 1.15;
}

.testimonial__cite {
  font-style: normal;

  font-size: 0.85rem;

  font-weight: 600;
}


/* =========================================================
   18. CTA FINAL
   ========================================================= */

.cta-final {
  text-align: center;
}

.cta-final .container {
  max-width: 720px;
}

.cta-final .section-eyebrow {
  margin-bottom: 1rem;
}

.cta-final__title {
  max-width: 14ch;

  margin-inline: auto;

  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.cta-final__text {
  max-width: 520px;

  margin: 1.5rem auto 2rem;

  color: var(--color-muted);
}


/* =========================================================
   19. FOOTER
   ========================================================= */

.site-footer {
  background: var(--color-bg-dark);

  color: var(--color-line);
}

.site-footer__inner {
  display: grid;

  grid-template-columns: 1fr auto 1fr;

  align-items: center;

  gap: 2rem;

  padding-block: 2.5rem;
}

.site-footer__logo {
  display: block;

  margin-bottom: 0.35rem;

  font-family: var(--font-display);

  font-size: 1.4rem;

  color: var(--color-text-light);
}

.site-footer__description {
  margin: 0;

  font-size: 0.8rem;
}

.site-footer__links {
  display: flex;

  gap: 1.5rem;

  list-style: none;

  margin: 0;
  padding: 0;

  font-size: 0.8rem;
}

.site-footer__links a {
  transition:
    color var(--transition);
}

.site-footer__links a:hover {
  color: var(--color-text-light);
}

.site-footer__copyright {
  justify-self: end;

  font-size: 0.75rem;
}


/* =========================================================
   20. RESPONSIVIDADE
   ========================================================= */

@media (max-width: 950px) {

  .hero__inner {
    gap: 3rem;
  }

  .hero__visual {
    flex-basis: 330px;
  }

  .coffee-orbit {
    width: 320px;
    height: 320px;
  }

  .coffee-circle {
    width: 270px;
    height: 270px;
  }

  .origins__grid,
  .pricing__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .origin-card:last-child {
    grid-column: 1 / -1;

    max-width: calc(50% - 0.75rem);

    justify-self: center;
  }

}


@media (max-width: 760px) {

  :root {
    --space-xxl: 6rem;
  }

  .container {
    width: min(
      calc(100% - 2rem),
      var(--container-width)
    );
  }

  .site-header__inner {
    position: relative;

    flex-wrap: wrap;

    gap: 1rem;
  }

  .nav-toggle {
    display: block;

    margin-left: auto;
  }

  .site-header__cta {
    display: none;
  }

  .main-nav {
    order: 5;

    flex-basis: 100%;

    max-height: 0;

    overflow: hidden;

    transition:
      max-height 0.3s ease;
  }

  .main-nav--open {
    max-height: 300px;
  }

  .main-nav__list {
    flex-direction: column;

    align-items: stretch;

    gap: 0;

    padding-bottom: 1rem;
  }

  .main-nav__link {
    display: block;

    padding-block: 0.75rem;

    border-top:
      1px solid rgba(242, 233, 216, 0.12);
  }


  /* HERO */

  .hero {
    min-height: auto;
  }

  .hero__inner {
    min-height: auto;

    flex-direction: column;

    align-items: flex-start;

    padding-block: 5rem 6rem;
  }

  .hero__visual {
    order: -1;

    width: 100%;

    flex-basis: auto;

    justify-content: center;
  }

  .coffee-orbit {
    width: 280px;
    height: 280px;
  }

  .coffee-circle {
    width: 235px;
    height: 235px;
  }

  .hero__title {
    font-size: clamp(2.7rem, 12vw, 4rem);
  }


  /* STEPS */

  .steps__list {
    grid-template-columns: 1fr;

    margin-top: 3rem;
  }


  /* ORIGENS */

  .origins__grid,
  .pricing__list {
    grid-template-columns: 1fr;
  }

  .origin-card:last-child {
    grid-column: auto;

    max-width: none;
  }


  /* FOOTER */

  .site-footer__inner {
    grid-template-columns: 1fr;

    align-items: start;
  }

  .site-footer__copyright {
    justify-self: start;
  }

}


@media (max-width: 480px) {

  .hero__actions {
    align-items: stretch;

    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__secondary-link {
    text-align: center;
  }

  .origin-card__image {
    height: 330px;
  }

  .plan {
    padding: 1.5rem;
  }

}


/* =========================================================
   21. REDUÇÃO DE MOVIMENTO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;

    transform: none;
  }

}