:root {
  --paper: #f7f3ec;
  --paper-deep: #ece4d6;
  --white: #ffffff;
  --ink: #343735;
  --muted: #676965;
  --green: #163d35;
  --green-soft: #dfe8e2;
  --gold: #b99343;
  --gold-soft: #eadbb9;
  --line: rgba(52, 55, 53, 0.14);
  --shadow: 0 18px 42px rgba(37, 34, 27, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: geometricPrecision;
}

body.dialog-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 12px 54px;
  border-bottom: 1px solid rgba(185, 147, 67, 0.28);
  background: rgba(247, 243, 236, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 245px;
  flex: 0 0 auto;
}

.brand img {
  width: 100%;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 auto;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a,
.header-action,
.primary-action,
.secondary-action,
.sku-list button {
  line-height: 1.12;
  text-align: center;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--green);
}

.header-action,
.primary-action,
.secondary-action,
.sku-list button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.header-action,
.primary-action {
  background: var(--green);
  color: var(--white);
}

.secondary-action,
.sku-list button {
  border-color: rgba(22, 61, 53, 0.22);
  background: rgba(255, 255, 255, 0.86);
  color: var(--green);
}

.header-action:hover,
.primary-action:hover,
.secondary-action:hover,
.sku-list button:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--paper);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: url("assets/brand/bellac-logo.png");
  background-repeat: no-repeat;
  background-position: right 8vw center;
  background-size: min(58vw, 760px) auto;
  opacity: 0.075;
  pointer-events: none;
}

.hero > img {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 48px));
  margin: 0 0 0 64px;
  color: var(--ink);
}

.eyebrow,
.product-type,
.signal-band > div > span,
.contact-item > span {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  max-width: 620px;
  font-size: 74px;
  line-height: 0.96;
}

h2 {
  font-size: 50px;
  line-height: 1.02;
}

h3 {
  font-size: 29px;
  line-height: 1.14;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 690px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 19px;
}

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

.signal-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--white);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

.signal-band div {
  min-height: 118px;
  padding: 26px 30px;
  border-right: 1px solid var(--line);
}

.signal-band div:last-child {
  border-right: 0;
}

.signal-band strong {
  display: block;
  max-width: 240px;
  font-size: 20px;
  line-height: 1.25;
}

.signal-band .origin-highlight strong {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flag-brazil {
  display: inline-block;
  flex: 0 0 auto;
  width: 30px;
  height: 21px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(52, 55, 53, 0.14);
}

.chamber-section,
.products-section,
.why-section,
.contact-section {
  padding: 90px 54px;
}

.chamber-section {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 340px;
  gap: 64px;
  align-items: center;
  background: var(--paper);
}

.section-copy {
  max-width: 760px;
}

.section-copy p:not(.eyebrow),
.section-heading > p,
.contact-copy p {
  color: var(--muted);
  font-size: 18px;
}

.seal-panel {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(185, 147, 67, 0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffaf0, #efe3ca);
  box-shadow: var(--shadow);
}

.seal-panel img {
  width: 135px;
  height: auto;
}

.seal-panel figcaption {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.products-section {
  background: var(--white);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(300px, 0.75fr);
  gap: 54px;
  align-items: end;
  margin-bottom: 34px;
}

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

.product-card,
.why-card,
.contact-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.product-card {
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(52, 55, 53, 0.07);
}

.product-card.wide {
  grid-column: span 2;
}

.product-card > img {
  width: 100%;
  height: 360px;
  object-fit: contain;
  object-position: center;
  padding: 24px;
  background: var(--paper);
}

.product-card.wide > img {
  height: 470px;
}

.product-content {
  padding: 24px;
}

.product-content > p:not(.product-type) {
  color: var(--muted);
  font-size: 16px;
}

.catalog-list {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.catalog-list li + li {
  margin-top: 4px;
}

.sku-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.image-card {
  min-height: 0;
}

.image-card > img {
  height: 360px;
  min-height: 0;
  object-fit: contain;
  padding: 22px;
  background: var(--paper);
}

.why-section {
  background: var(--paper-deep);
}

.section-title {
  max-width: 780px;
  margin: 0 auto 50px;
  text-align: center;
}

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

.why-card {
  border: 0;
  background: transparent;
}

.why-card img {
  width: 100%;
  height: 220px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center;
  background: var(--white);
}

.why-card h3 {
  margin-top: 24px;
  color: #2d3440;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 800;
}

.why-card p {
  margin: 14px 0 0;
  color: #545963;
  font-size: 16px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(520px, 1fr);
  gap: 56px;
  align-items: start;
  background: var(--paper);
}

.contact-copy {
  position: sticky;
  top: 106px;
}

.site-url {
  display: inline-flex;
  margin-top: 22px;
  color: var(--green);
  font-size: 20px;
  font-weight: 850;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.contact-visual {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(52, 55, 53, 0.06);
}

.contact-visual img {
  width: 100%;
  height: auto;
}

.contact-item {
  min-height: 150px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(52, 55, 53, 0.06);
}

.contact-email {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: center;
}

.contact-item h3 {
  margin-bottom: 14px;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.contact-item p,
.contact-item a {
  display: block;
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.contact-item a + a {
  margin-top: 10px;
}

.contact-item a:hover,
.contact-item a:focus-visible {
  color: var(--green);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 26px 54px;
  border-top: 1px solid rgba(185, 147, 67, 0.22);
  background: var(--white);
  color: var(--muted);
}

.site-footer img {
  width: 210px;
}

.site-footer p {
  margin: 0;
}

.sku-dialog {
  width: min(1040px, calc(100vw - 30px));
  max-height: min(820px, calc(100vh - 30px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 28px 86px rgba(0, 0, 0, 0.28);
}

.sku-dialog::backdrop {
  background: rgba(19, 32, 29, 0.72);
  backdrop-filter: blur(4px);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(22, 61, 53, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--green);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.dialog-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(340px, 1fr);
}

.dialog-layout > img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: contain;
  object-position: center;
  padding: 18px;
  background: var(--paper);
}

.dialog-content {
  overflow: auto;
  padding: 56px 48px;
}

.dialog-content h2 {
  color: var(--green);
}

.dialog-content > p:not(.product-type) {
  color: var(--muted);
  font-size: 17px;
}

dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
}

dt {
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 750;
}

@media (max-width: 1120px) {
  .site-header {
    flex-wrap: wrap;
    padding: 12px 28px;
  }

  .brand {
    width: 215px;
  }

  .nav-links {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

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

  .contact-section,
  .section-heading,
  .chamber-section {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 72px;
    padding: 10px 18px;
  }

  .brand {
    width: 188px;
  }

  .header-action {
    display: none;
  }

  .nav-links {
    gap: 18px;
    font-size: 13px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-copy {
    width: calc(100% - 36px);
    margin: 0 18px;
  }

  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 24px;
  }

  .hero-copy > p:not(.eyebrow),
  .section-copy p:not(.eyebrow),
  .section-heading > p,
  .contact-copy p {
    font-size: 16px;
  }

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

  .signal-band div {
    min-height: 108px;
    padding: 22px 18px;
  }

  .signal-band div:nth-child(2) {
    border-right: 0;
  }

  .chamber-section,
  .products-section,
  .why-section,
  .contact-section {
    padding: 62px 18px;
  }

  .seal-panel {
    padding: 20px;
  }

  .seal-panel img {
    width: 108px;
  }

  .product-grid,
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .product-card.wide,
  .contact-item.address {
    grid-column: auto;
  }

  .product-card > img,
  .product-card.wide > img,
  .image-card > img {
    height: 290px;
    min-height: 290px;
  }

  .image-card > img {
    padding: 18px;
  }

  .why-card img {
    height: 210px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 18px;
  }

  .site-footer img {
    width: 180px;
  }

  .dialog-layout {
    grid-template-columns: 1fr;
  }

  .dialog-layout > img {
    height: 300px;
    min-height: 300px;
  }

  .dialog-content {
    padding: 34px 22px;
  }

  dl {
    grid-template-columns: 1fr;
  }
}
