:root {
  --brand-red: #f3273d;
  --brand-gold: #f7a814;
  --brand-orange: #f39c12;
  --blue: #0069de;
  --ink: #1f2933;
  --muted: #607080;
  --line: #e6ebf0;
  --soft: #f7f9fb;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(20, 32, 44, 0.13);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 20;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 6px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(230, 235, 240, 0.88);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 40px rgba(22, 34, 47, 0.09);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 28px;
}

.brand img {
  width: clamp(178px, 19vw, 260px);
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.9rem;
  font-weight: 700;
}

.main-nav a {
  color: #334155;
  transition: color 180ms ease, background 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
  color: var(--brand-red);
}

.nav-store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--white) !important;
  background: var(--ink);
}

.nav-store:hover,
.nav-store:focus-visible {
  background: var(--brand-red);
}

.nav-store svg,
.btn svg,
.back-top svg,
.social-links svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 680px;
  padding: 160px 0 88px;
  overflow: hidden;
  isolation: isolate;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 18, 28, 0.94) 0%, rgba(11, 18, 28, 0.78) 46%, rgba(11, 18, 28, 0.18) 100%),
    linear-gradient(0deg, rgba(11, 18, 28, 0.74), rgba(11, 18, 28, 0.08));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: end;
  gap: 50px;
}

.hero-copy {
  max-width: 780px;
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--brand-gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.hero h1,
.history-hero h1 {
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero p,
.history-hero p {
  max-width: 660px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.7vw, 1.22rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brand-red);
  color: var(--white);
  box-shadow: 0 16px 36px rgba(243, 39, 61, 0.24);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #d91f34;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--white);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.btn-light {
  background: var(--white);
  color: var(--ink);
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(16px);
  color: var(--white);
}

.hero-panel div {
  padding: 18px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-panel strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.hero-panel span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 700;
}

.section {
  padding: 96px 0;
}

.section-tight {
  padding-top: 88px;
}

.section-heading {
  max-width: 790px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-heading.align-left {
  margin-inline: 0;
  text-align: left;
}

.section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 40px;
  max-width: none;
  text-align: left;
}

.section-heading h2 {
  margin: 0;
  color: #18222d;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p,
.content-stack p,
.mission-card p,
.values-grid p,
.site-footer p {
  color: var(--muted);
}

.section-heading p {
  margin: 18px 0 0;
  font-size: 1.05rem;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.mission-card,
.values-grid article,
.contact-card,
.brand-grid a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 44px rgba(20, 32, 44, 0.06);
}

.mission-card {
  padding: 34px;
}

.mission-card svg,
.values-grid svg,
.contact-card svg {
  width: 28px;
  height: 28px;
  color: var(--brand-red);
}

.mission-card h3,
.values-grid h3,
.timeline-item h3 {
  margin: 18px 0 8px;
  color: #18222d;
  font-size: 1.2rem;
}

.mission-card p,
.values-grid p,
.timeline-item p,
.contact-card p,
.content-stack p {
  margin: 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.values-grid article {
  padding: 28px;
}

.metrics-band {
  padding: 58px 0;
  background: #18222d;
  color: var(--white);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.metrics-grid div {
  container-type: inline-size;
  min-width: 0;
  min-height: 134px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.metrics-grid strong {
  display: block;
  max-width: 100%;
  color: var(--brand-gold);
  font-size: clamp(1.85rem, 12cqw, 2.75rem);
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.metrics-grid span {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.brand-grid a {
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 22px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.brand-grid a:hover,
.brand-grid a:focus-visible {
  border-color: rgba(243, 39, 61, 0.28);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.brand-grid img {
  max-height: 76px;
  object-fit: contain;
}

.brand-grid.brand-carousel-root {
  display: block;
}

.brand-carousel-frame {
  min-height: 278px;
}

.brand-carousel-page {
  animation: brandPageFade 180ms ease;
}

.brand-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

.brand-carousel-controls button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--brand-red);
  box-shadow: 0 12px 30px rgba(20, 32, 44, 0.08);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.brand-carousel-controls button:hover,
.brand-carousel-controls button:focus-visible {
  border-color: rgba(243, 39, 61, 0.34);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.brand-carousel-controls svg {
  width: 18px;
  height: 18px;
}

.brand-carousel-controls span {
  min-width: 58px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.brand-carousel-root.is-single-page .brand-carousel-controls {
  display: none;
}

@keyframes brandPageFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.split-section,
.map-section,
.contact-section {
  background: var(--soft);
}

.split-grid,
.contact-grid,
.work-grid,
.history-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 58px;
  align-items: center;
}

.content-stack {
  display: grid;
  gap: 18px;
  font-size: 1.05rem;
}

.content-stack .btn {
  justify-self: start;
  margin-top: 8px;
}

.map-frame {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.map-frame img {
  width: 100%;
}

.work-cta {
  padding: 64px 0;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(24, 34, 45, 0.96), rgba(24, 34, 45, 0.74)),
    url("../img/bg-cta.jpg") center/cover;
}

.work-cta h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.1;
}

.work-cta p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.work-grid {
  grid-template-columns: minmax(0, 1fr) auto;
}

.contact-card {
  display: grid;
  gap: 24px;
  padding: 32px;
}

.contact-card div {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 14px;
}

.contact-card span {
  color: #18222d;
  font-weight: 800;
}

.contact-card p {
  grid-column: 2;
}

.contact-card a {
  color: var(--blue);
  font-weight: 700;
}

.map-embed {
  width: 100%;
  height: 390px;
  margin-top: 46px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-footer {
  padding: 62px 0;
  background: #111923;
  color: rgba(255, 255, 255, 0.76);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 46px;
}

.footer-logo {
  width: min(260px, 100%);
  margin-bottom: 22px;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: 1rem;
}

.site-footer a {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--brand-gold);
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.lgpd-seal {
  width: 150px;
  margin-top: 18px;
  border-radius: 6px;
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 12;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(920px, calc(100% - 40px));
  margin-inline: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  color: var(--muted);
}

.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 11;
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--brand-red);
  color: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.back-top.is-visible {
  display: grid;
}

.history-hero {
  padding: 160px 0 88px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(17, 25, 35, 0.96), rgba(17, 25, 35, 0.72)),
    url("../img/loja-chocosul.png") center/cover;
}

.history-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.history-summary strong {
  color: var(--brand-gold);
  font-size: 1.6rem;
  line-height: 1;
}

.history-summary span {
  align-self: end;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.history-section {
  background: var(--soft);
}

.timeline {
  position: relative;
  display: grid;
  gap: 22px;
  max-width: 920px;
  margin-inline: auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 178px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 58px;
  align-items: start;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 169px;
  top: 28px;
  width: 20px;
  height: 20px;
  border: 5px solid var(--white);
  border-radius: 50%;
  background: var(--brand-red);
  box-shadow: 0 0 0 1px var(--line);
}

.timeline-item time {
  padding-top: 20px;
  color: var(--brand-red);
  font-weight: 800;
}

.timeline-item div {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 16px 44px rgba(20, 32, 44, 0.06);
}

.timeline-item h3 {
  margin-top: 0;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: grid;
  }

  .main-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px;
    border-radius: 6px;
  }

  .hero-grid,
  .split-grid,
  .contact-grid,
  .history-hero-grid,
  .mission-grid,
  .section-heading-row {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 520px;
  }

  .values-grid,
  .brand-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }

  .work-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .nav-shell {
    min-height: 72px;
  }

  .brand img {
    width: 178px;
  }

  .hero,
  .history-hero {
    min-height: auto;
    padding: 128px 0 64px;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero-actions,
  .contact-actions,
  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 68px 0;
  }

  .mission-card,
  .values-grid article,
  .contact-card {
    padding: 24px;
  }

  .values-grid,
  .metrics-grid,
  .brand-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .metrics-grid strong {
    font-size: clamp(2rem, 14cqw, 2.85rem);
  }

  .brand-grid a {
    min-height: 118px;
  }

  .brand-carousel-frame {
    min-height: 118px;
  }

  .map-embed {
    height: 320px;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-left: 34px;
  }

  .timeline-item::before {
    left: 0;
    top: 18px;
  }

  .timeline-item time {
    padding-top: 0;
  }

  .cookie-banner {
    bottom: 14px;
    left: 14px;
    right: 14px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
