:root {
  --ink: #171717;
  --muted: #595959;
  --line: #e5e5e5;
  --surface: #f7f7f5;
  --white: #ffffff;
  --max: 1200px;
  --radius: 8px;
  --ease: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid #1769e0;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: 72px;
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 100%;
  padding-left: 112px;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  transform: translateY(8px);
}

.nav-group a,
.mobile-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #323232;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 6px;
}

.nav-group a:hover,
.mobile-nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.header-logo {
  position: absolute;
  z-index: 25;
  top: 100%;
  left: 0;
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  align-items: center;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--white);
}

.header-logo img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  transition: width 220ms ease, height 220ms ease;
}

.site-header.is-logo-prominent .header-logo img {
  width: 104px;
  height: 104px;
}

.menu-button,
.mobile-nav {
  display: none;
}

.hero {
  text-align: center;
  padding: 48px 0 72px;
}

.hero-logo {
  width: 220px;
  height: 220px;
  margin: 0 auto 24px;
  object-fit: contain;
}

.hero h1 {
  max-width: 800px;
  margin: 0 auto 16px;
  font-size: clamp(2.4rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.hero p {
  max-width: 620px;
  margin: 0 auto 24px;
  color: var(--muted);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 10px 24px;
  color: var(--white);
  background: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--ease), background var(--ease);
}

.button:hover {
  color: var(--ink);
  background: var(--white);
}

.button.secondary {
  color: var(--ink);
  background: var(--white);
}

.button.secondary:hover {
  color: var(--white);
  background: var(--ink);
}

.section {
  padding: 96px 0;
}

.section.alt {
  background: var(--surface);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 48px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 16px;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-heading p,
.lead,
.prose p {
  color: var(--muted);
}

.section-heading p {
  margin: 0;
}

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

.brand-grid--additional {
  margin-top: 24px;
}

.brand-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.brand-logo {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.brand-logo img {
  width: 100%;
  height: 96px;
  object-fit: contain;
}

.brand-card--logo-only {
  min-height: 184px;
  justify-content: center;
}

.brand-card--logo-only .brand-logo {
  height: 120px;
  margin-bottom: 0;
}

.brand-card--logo-only .brand-logo img {
  height: 120px;
}

@media (min-width: 1024px) {
  .brand-grid--additional .brand-card:last-child:nth-child(3n + 1) {
    grid-column: 2;
  }
}

.brand-card h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 600;
}

.brand-card p {
  flex: 1;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
}

.text-link {
  min-height: 44px;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.text-link::after {
  content: "→";
  margin-left: 8px;
  transition: transform var(--ease);
}

.text-link:hover::after {
  transform: translateX(4px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 72px;
}

.split.reverse .split-media {
  order: 2;
}

.split-media {
  overflow: hidden;
  border-radius: var(--radius);
  background: #e9e9e6;
}

.split-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: grayscale(100%);
}

.split-copy h2 {
  max-width: 520px;
}

.split-copy p {
  max-width: 560px;
  margin: 0 0 24px;
  color: var(--muted);
}

.history-years {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.history-years li {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.contact-strip h2 {
  margin-bottom: 8px;
}

.contact-strip p {
  margin: 0;
  color: var(--muted);
}

.page-hero {
  padding: 88px 0 72px;
}

.page-hero .eyebrow {
  margin-bottom: 16px;
}

.page-hero h1 {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.page-hero .lead {
  max-width: 760px;
  margin: 0;
  font-size: 20px;
}

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

.value-card {
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.value-card h2 {
  font-size: 24px;
}

.value-card p {
  margin: 0;
  color: var(--muted);
}

.timeline {
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 40px;
  padding: 0 0 48px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-year {
  position: relative;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.timeline-year::after {
  content: "";
  position: absolute;
  top: 15px;
  right: -22px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 6px var(--surface);
}

.timeline-content {
  position: relative;
  padding-left: 40px;
  border-left: 1px solid #cfcfca;
}

.timeline-content h2 {
  margin: 0 0 8px;
  font-size: 21px;
}

.timeline-content p {
  margin: 0 0 8px;
  color: var(--muted);
}

.timeline-content p:last-child {
  margin-bottom: 0;
}

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

.contact-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.contact-card h2 {
  margin-bottom: 24px;
  font-size: 24px;
}

.contact-details {
  margin: 0 0 24px;
}

.contact-details dt {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-details dt:first-child {
  margin-top: 0;
}

.contact-details dd {
  margin: 3px 0 0;
  font-size: 16px;
}

.contact-details a {
  overflow-wrap: anywhere;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.contact-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--ease), background var(--ease);
}

.contact-actions a:hover {
  border-color: var(--ink);
  background: var(--surface);
}

.site-footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--line);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 600;
}

.footer-brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 24px;
}

.footer-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 15px;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

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

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

  .split {
    gap: 40px;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 16px;
  }

  .container {
    width: calc(100% - 40px);
  }

  .site-header {
    height: 64px;
  }

  .header-inner {
    display: flex;
    padding-left: 88px;
  }

  .nav-group {
    display: none;
  }

  .header-logo img {
    width: 64px;
    height: 64px;
  }

  .site-header.is-logo-prominent .header-logo img {
    width: 84px;
    height: 84px;
  }

  .menu-button {
    display: inline-flex;
    min-width: 48px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    color: var(--ink);
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
  }

  .mobile-nav {
    position: absolute;
    z-index: 30;
    top: 64px;
    right: 0;
    left: 0;
    display: none;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
  }

  .mobile-nav.is-open {
    display: grid;
  }

  .mobile-nav a {
    border-bottom: 1px solid var(--line);
  }

  .hero {
    padding: 32px 0 48px;
  }

  .hero-logo {
    width: 160px;
    height: 160px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .section {
    padding: 56px 0;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  h2 {
    font-size: 26px;
  }

  .brand-grid,
  .split,
  .values-grid,
  .contact-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .brand-card {
    padding: 24px;
  }

  .split {
    gap: 32px;
  }

  .split.reverse .split-media {
    order: 0;
  }

  .contact-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero {
    padding: 56px 0 48px;
  }

  .page-hero h1 {
    font-size: 44px;
  }

  .page-hero .lead {
    font-size: 18px;
  }

  .value-card {
    padding: 28px;
  }

  .timeline-item {
    grid-template-columns: 76px 1fr;
    gap: 12px;
    padding-bottom: 36px;
  }

  .timeline-year {
    font-size: 19px;
  }

  .timeline-year::after {
    top: 10px;
    right: -11px;
    width: 7px;
    height: 7px;
    box-shadow: 0 0 0 5px var(--surface);
  }

  .timeline-content {
    padding-left: 24px;
  }

  .contact-card {
    padding: 24px;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.site-header {
  position: sticky !important;
  top: 0 !important;
  height: 72px !important;
  border: 0 !important;
  box-shadow: none !important;
}

.site-header .header-inner {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 32px !important;
  height: 100% !important;
  padding-left: 112px !important;
}

.site-header .header-logo {
  position: absolute !important;
  top: 100% !important;
  right: auto !important;
  left: 0 !important;
  width: 76px !important;
  height: 76px !important;
  border-radius: 50% !important;
  background: #fff !important;
  transform: translateY(-50%) !important;
}

.site-header .header-logo img {
  width: 76px !important;
  height: 76px !important;
}

.site-header.is-logo-prominent .header-logo,
.site-header.is-logo-prominent .header-logo img {
  width: 104px !important;
  height: 104px !important;
}

.site-header .nav-group {
  display: flex !important;
  align-items: center !important;
  gap: 28px !important;
  margin-right: 0 !important;
  margin-left: auto !important;
  transform: translateY(8px) !important;
}

.site-header .nav-group a[aria-current="page"] {
  text-decoration: none !important;
}

@media (max-width: 760px) {
  .site-header .header-inner {
    padding-left: 76px !important;
  }

  .site-header .header-logo,
  .site-header .header-logo img {
    width: 64px !important;
    height: 64px !important;
  }

  .site-header.is-logo-prominent .header-logo,
  .site-header.is-logo-prominent .header-logo img {
    width: 84px !important;
    height: 84px !important;
  }

  .site-header .nav-group {
    display: none !important;
  }
}

.brand-logo--large {
  height: 160px;
  overflow: hidden;
}

.brand-logo--large img,
.brand-card--logo-only .brand-logo--large img {
  width: 100%;
  height: 160px;
  max-width: 100%;
  object-fit: contain;
}

.brand-card--logo-only .brand-logo--large {
  height: 160px;
}

.brand-logo--large img[src*="mordisco"] {
  transform: scale(1.45);
}

.brand-logo--large img[src*="marbelo"] {
  transform: scale(1.18);
}

#marcas {
  scroll-margin-top: 80px;
}

@media (max-width: 760px) {
  #marcas {
    scroll-margin-top: 88px;
  }

  .brand-logo--large,
  .brand-card--logo-only .brand-logo--large {
    height: 144px;
  }

  .brand-logo--large img,
  .brand-card--logo-only .brand-logo--large img {
    height: 144px;
  }
}

body.internal-page .site-header .header-logo,
body.internal-page .site-header .header-logo img {
  width: 104px !important;
  height: 104px !important;
}

@media (max-width: 760px) {
  body.internal-page .site-header .header-logo,
  body.internal-page .site-header .header-logo img {
    width: 84px !important;
    height: 84px !important;
  }
}

body.home .site-header .header-logo,
body.home .site-header.is-logo-prominent .header-logo {
  width: 76px !important;
  height: 76px !important;
  transform-origin: center center;
  backface-visibility: hidden;
  will-change: transform;
  transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

body.home .site-header .header-logo {
  transform: translateY(-50%) scale(1) !important;
}

body.home .site-header.is-logo-prominent .header-logo {
  transform: translateY(-50%) scale(1.368421) !important;
}

body.home .site-header .header-logo img,
body.home .site-header.is-logo-prominent .header-logo img {
  width: 76px !important;
  height: 76px !important;
  transition: none !important;
}

@media (max-width: 760px) {
  body.home .site-header .header-logo,
  body.home .site-header.is-logo-prominent .header-logo {
    width: 64px !important;
    height: 64px !important;
  }

  body.home .site-header.is-logo-prominent .header-logo {
    transform: translateY(-50%) scale(1.3125) !important;
  }

  body.home .site-header .header-logo img,
  body.home .site-header.is-logo-prominent .header-logo img {
    width: 64px !important;
    height: 64px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home .site-header .header-logo {
    transition: none !important;
  }
}

/* Ampliação suave dos logótipos das marcas em dispositivos com cursor. */
.brand-card .brand-logo img {
  transform-origin: center center;
  backface-visibility: hidden;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .brand-card:hover .brand-logo img {
    transform: scale(1.1);
  }

  .brand-card:hover .brand-logo--large img[src*="mordisco"] {
    transform: scale(1.595);
  }

  .brand-card:hover .brand-logo--large img[src*="marbelo"] {
    transform: scale(1.298);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-card .brand-logo img {
    transition: none;
  }
}
