/* Interface exclusiva da página inicial — inspirada na composição editorial
   do site de referência, preservando a identidade Carrinhos Gourmet. */

.homepage {
  --home-forest: #123f38;
  --home-green: #1f685b;
  --home-mint: #9cdec7;
  --home-cream: #fbf6ea;
  --home-ink: #17201e;
  --home-line: rgba(18, 63, 56, .14);
  --home-shadow: 0 24px 70px rgba(9, 45, 39, .16);
  background: var(--home-cream);
  width: 100%;
  max-width: 100%;
}

.homepage main,
.homepage section,
.homepage header,
.homepage footer {
  max-width: 100%;
}

.homepage .header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 80;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
  background: linear-gradient(180deg, rgba(4, 28, 24, .62), transparent);
}

.homepage .header .container {
  width: min(calc(100% - 48px), 1320px);
}

.homepage .nav-wrap {
  height: 112px;
}

.homepage .header .brand {
  transform: none;
  margin-right: 32px;
}

.homepage .header .brand img {
  width: 188px !important;
  max-height: 88px;
  transform: none !important;
  filter: none !important;
  object-fit: contain;
}

.homepage .nav {
  gap: 25px;
  font-size: .88rem;
}

.homepage .nav a:not(.nav-cta) {
  position: relative;
}

.homepage .nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1px;
  background: var(--home-mint);
  transition: right .25s ease;
}

.homepage .nav a:not(.nav-cta):hover::after {
  right: 0;
}

.homepage .nav-cta {
  border-color: var(--home-mint);
  background: var(--home-mint);
  color: var(--home-forest);
  padding: 12px 21px;
}

.homepage .hero {
  position: relative;
  isolation: isolate;
  min-height: 860px;
  padding: 170px 0 84px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--home-forest);
}

.homepage .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 30, 26, .93) 0%, rgba(5, 30, 26, .72) 43%, rgba(5, 30, 26, .18) 76%),
    linear-gradient(0deg, rgba(5, 30, 26, .55), transparent 52%);
}

.homepage .hero::after {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  right: -100px;
  bottom: -130px;
  z-index: -1;
  border: 1px solid rgba(156, 222, 199, .35);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(156, 222, 199, .05), 0 0 0 145px rgba(156, 222, 199, .035);
}

.homepage .hero-grid {
  display: block;
  width: min(calc(100% - 48px), 1320px);
}

.homepage .hero-visual {
  position: absolute;
  inset: 0;
  z-index: -2;
  max-width: none;
  margin: 0;
}

.homepage .hero-photo {
  width: 100%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
}

.homepage .hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.homepage .photo-tag {
  right: max(28px, calc((100vw - 1320px) / 2));
  top: 154px;
  width: 126px;
  height: 126px;
  background: var(--home-mint);
  color: var(--home-forest);
  border: 6px solid rgba(255, 255, 255, .22);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .25);
}

.homepage .floating-card {
  left: auto;
  right: max(28px, calc((100vw - 1320px) / 2));
  bottom: 64px;
  border: 1px solid rgba(255, 255, 255, .44);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
}

.homepage .hero-copy {
  width: min(760px, 67vw);
  text-align: left;
}

.homepage .hero-copy .eyebrow {
  color: var(--home-mint);
}

.homepage .hero-copy h1 {
  max-width: 760px;
  margin: 20px 0 24px;
  font-size: clamp(3.7rem, 7.2vw, 6.8rem);
  line-height: .96;
  text-wrap: balance;
}

.homepage .hero-copy > p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, .88);
  font-size: 1.08rem;
}

.homepage .hero-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 13px;
  margin: 34px 0 30px;
}

.homepage .hero-actions .button,
.homepage .hero-actions .text-link {
  min-height: 52px;
}

.homepage .hero-actions .button.primary {
  background: var(--home-mint);
  color: var(--home-forest);
}

.homepage .hero-actions .instagram-hero {
  padding: 14px 20px;
  border-color: rgba(255, 255, 255, .52);
}

.homepage .hero-actions .text-link {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: #fff;
}

.homepage .proof {
  margin: 0;
  padding: 20px 0 0;
  max-width: 475px;
}

.homepage .proof strong {
  color: var(--home-mint);
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
}

.homepage .featured {
  background: var(--home-forest);
}

.homepage .featured .container.featured-grid {
  min-height: clamp(620px, 82vh, 860px);
}

.homepage .featured-photo::after {
  background: linear-gradient(90deg, rgba(6, 34, 30, .93) 0%, rgba(6, 34, 30, .68) 43%, rgba(6, 34, 30, .12) 78%);
}

.homepage .featured-copy {
  align-self: center;
  margin-bottom: 0;
}

.homepage .featured-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 25px 0;
}

.homepage .featured-badges span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.homepage .trust-strip {
  border-bottom: 1px solid var(--home-line);
  background: var(--home-mint);
}

.homepage .trust-items {
  color: var(--home-forest);
}

.homepage .section {
  padding: 120px 0;
}

.homepage .services {
  position: relative;
  overflow: hidden;
  background: var(--home-cream);
}

.homepage .services::before {
  content: '✦';
  position: absolute;
  top: 55px;
  left: 4vw;
  color: rgba(31, 104, 91, .1);
  font-size: 8rem;
  line-height: 1;
}

.homepage .section-head {
  max-width: 790px;
  margin-bottom: 58px;
}

.homepage .section-head h2 {
  font-size: clamp(2.7rem, 5vw, 4.6rem);
  letter-spacing: -.035em;
}

.homepage .service-grid {
  gap: 22px;
}

.homepage .service-card {
  position: relative;
  min-height: 535px;
  display: grid;
  grid-template-rows: 335px 1fr;
  border: 0;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(18, 63, 56, .08);
}

.homepage .service-card img {
  height: 335px;
  background: #fff;
}

.homepage .service-card > div {
  padding: 30px;
}

.homepage .service-card span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-top: -52px;
  margin-bottom: 16px;
  position: relative;
  border: 5px solid #fff;
  border-radius: 50%;
  background: var(--home-mint);
  color: var(--home-forest);
}

.homepage .service-card h3 {
  font-size: 1.8rem;
}

.homepage .service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--home-shadow);
}

.homepage .dual-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.homepage .story {
  background: #fff;
}

.homepage .story-grid {
  grid-template-columns: 1.05fr .95fr;
  gap: 100px;
}

.homepage .story-images {
  position: relative;
}

.homepage .story-images::before {
  content: '';
  position: absolute;
  inset: -22px 22px 22px -22px;
  z-index: 0;
  border: 1px solid rgba(31, 104, 91, .3);
  border-radius: 190px 190px 34px 34px;
}

.homepage .story-main {
  position: relative;
  z-index: 1;
  height: 650px;
  border-radius: 180px 180px 32px 32px;
  object-position: center 25%;
}

.homepage .story-copy h2,
.homepage .contact-copy h2 {
  font-size: clamp(2.65rem, 4.5vw, 4.35rem);
  letter-spacing: -.035em;
}

.homepage .checks li {
  padding: 13px 0 13px 34px;
}

.homepage .testimonials {
  overflow: hidden;
  background: var(--home-forest);
  color: #fff;
}

.homepage .testimonials .eyebrow {
  color: var(--home-mint);
}

.homepage .testimonials .section-head p {
  color: rgba(255, 255, 255, .72);
}

.homepage .testimonial-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 0 22px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--home-mint) rgba(255, 255, 255, .1);
}

.homepage .testimonial-card {
  flex: 0 0 min(330px, 82vw);
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 26px;
  background: #fff;
  scroll-snap-align: start;
  box-shadow: none;
}

.homepage .testimonial-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.homepage .testimonials .center .text-link {
  color: var(--home-mint);
}

.homepage .process {
  background: var(--home-cream);
}

.homepage .steps {
  gap: 20px;
}

.homepage .steps article {
  min-height: 245px;
  padding: 34px;
  border: 1px solid var(--home-line);
  border-radius: 25px;
  background: rgba(255, 255, 255, .65);
}

.homepage .steps b {
  background: var(--home-mint);
  color: var(--home-forest);
}

.homepage .contact {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 6% 90%, rgba(156, 222, 199, .14), transparent 28%),
    var(--home-forest);
}

.homepage .quote-form {
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .2);
}

.homepage .quote-form input,
.homepage .quote-form select,
.homepage .quote-form textarea {
  min-height: 50px;
  border-radius: 13px;
}

.homepage .quote-form .button.primary {
  min-height: 54px;
  background: var(--home-mint);
  color: var(--home-forest);
}

.homepage .footer {
  background: #082823;
}

.homepage .footer-grid img {
  filter: none !important;
}

@media (max-width: 1099px) {
  .homepage .nav {
    gap: 16px;
  }

  .homepage .hero-copy {
    width: min(720px, 76vw);
  }

  .homepage .story-grid {
    gap: 65px;
  }
}

@media (max-width: 900px) {
  .homepage .header .container {
    width: min(calc(100% - 36px), 1320px);
  }

  .homepage .nav-wrap {
    height: 94px;
  }

  .homepage .header .brand img {
    width: 162px !important;
  }

  .homepage .nav {
    inset: 94px 18px auto;
    color: var(--home-ink);
    border: 1px solid rgba(18, 63, 56, .12);
  }

  .homepage .nav a:not(.nav-cta)::after {
    display: none;
  }

  .homepage .menu-button {
    display: grid;
    width: 48px;
    height: 48px;
    place-content: center;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
  }

  .homepage .hero {
    min-height: 780px;
    padding: 145px 0 65px;
  }

  .homepage .hero-grid {
    width: min(calc(100% - 36px), 1320px);
  }

  .homepage .hero-copy {
    width: min(680px, 82vw);
  }

  .homepage .photo-tag {
    top: 125px;
    right: 22px;
  }

  .homepage .floating-card {
    display: none;
  }

  .homepage .story-grid {
    grid-template-columns: 1fr;
  }

  .homepage .story-images {
    width: min(600px, 100%);
    margin: 0 auto;
  }
}

@media (max-width: 620px) {
  .homepage .container {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 16px;
    padding-right: 16px;
  }

  .homepage .hero-grid,
  .homepage .story-grid,
  .homepage .service-grid,
  .homepage .steps,
  .homepage .contact-grid,
  .homepage .footer-grid,
  .homepage .footer-bottom {
    min-width: 0;
  }

  .homepage .hero-grid > *,
  .homepage .story-grid > *,
  .homepage .service-grid > *,
  .homepage .steps > *,
  .homepage .contact-grid > *,
  .homepage .footer-grid > * {
    min-width: 0;
    max-width: 100%;
  }

  .homepage .header .container {
    width: 100%;
    padding: 0 17px;
  }

  .homepage .nav-wrap {
    height: 82px;
  }

  .homepage .header .brand {
    position: static;
    margin: 0 auto 0 0 !important;
  }

  .homepage .header .brand img {
    width: 142px !important;
    height: 66px !important;
  }

  .homepage .nav {
    inset: 82px 14px auto;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 98px);
    overflow-y: auto;
  }

  .homepage .hero {
    min-height: 760px;
    padding: 120px 0 54px;
    align-items: end;
  }

  .homepage .hero::before {
    background:
      linear-gradient(0deg, rgba(5, 30, 26, .97) 0%, rgba(5, 30, 26, .82) 48%, rgba(5, 30, 26, .15) 82%),
      linear-gradient(90deg, rgba(5, 30, 26, .35), transparent);
  }

  .homepage .hero-grid {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-inline: 18px;
  }

  .homepage .hero-photo img {
    object-position: 57% center;
  }

  .homepage .photo-tag {
    top: 104px;
    right: 16px;
    width: 88px;
    height: 88px;
    border-width: 4px;
    font-size: .72rem;
  }

  .homepage .hero-copy {
    width: 100%;
    max-width: 100%;
    padding: 0;
    text-align: left;
  }

  .homepage .hero-copy h1 {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    font-size: clamp(2.5rem, 11vw, 3.35rem);
    line-height: 1.02;
    letter-spacing: -.025em;
    overflow-wrap: normal;
    word-break: normal;
    white-space: normal;
  }

  .homepage .hero-copy > p {
    font-size: .98rem;
  }

  .homepage .hero-actions {
    align-items: stretch;
    gap: 10px;
    margin: 27px 0 24px;
  }

  .homepage .hero-actions .button,
  .homepage .hero-actions .text-link {
    width: 100%;
    justify-content: center;
  }

  .homepage .proof {
    display: grid;
    grid-template-columns: auto 1fr;
    width: 100%;
    max-width: 100%;
    text-align: left;
  }

  .homepage .featured {
    padding: 0 !important;
  }

  .homepage .featured .container.featured-grid {
    width: 100%;
    max-width: 100%;
    padding: 0;
    min-height: 720px;
  }

  .homepage .featured-copy {
    align-self: end;
    width: auto;
    max-width: none;
    margin: 0 16px 78px;
  }

  .homepage .featured-photo::after {
    background: linear-gradient(0deg, rgba(6, 34, 30, .96) 0%, rgba(6, 34, 30, .7) 50%, rgba(6, 34, 30, .08) 82%);
  }

  .homepage .featured-caption {
    left: 16px;
    bottom: 20px;
    max-width: calc(100% - 32px);
  }

  .homepage .section {
    padding: 82px 0;
  }

  .homepage .section-head {
    margin-bottom: 38px;
  }

  .homepage .section-head h2 {
    font-size: clamp(2.4rem, 12vw, 3.35rem);
  }

  .homepage .service-card {
    min-height: 0;
    grid-template-rows: 280px auto;
  }

  .homepage .service-card img {
    height: 280px;
  }

  .homepage .story-images::before {
    inset: 0;
    border-radius: 120px 120px 28px 28px;
  }

  .homepage .story-main {
    height: 510px;
    border-radius: 112px 112px 25px 25px;
  }

  .homepage .quote-form {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 27px 19px;
  }

  .homepage .field-row,
  .homepage .field,
  .homepage .field input,
  .homepage .field select,
  .homepage .field textarea {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 360px) {
  .homepage .header .container {
    padding-inline: 14px;
  }

  .homepage .header .brand img {
    width: 62px !important;
    height: 62px !important;
  }

  .homepage .hero-grid {
    padding-inline: 16px;
  }

  .homepage .hero-copy h1 {
    font-size: 2.4rem;
  }

  .homepage .hero-copy .eyebrow {
    max-width: calc(100% - 92px);
    font-size: .65rem;
    letter-spacing: .1em;
  }

  .homepage .photo-tag {
    right: 12px;
    width: 78px;
    height: 78px;
    font-size: .65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .homepage *,
  .homepage *::before,
  .homepage *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
