:root {
  color-scheme: only light;
  --navy-950: #06152e;
  --navy-900: #09244a;
  --navy-800: #123665;
  --gold-600: #b97d1c;
  --gold-500: #d29c42;
  --gold-300: #e7c47f;
  --ivory: #faf7f1;
  --cream: #f1e9dc;
  --white: #ffffff;
  --ink: #172238;
  --muted: #667085;
  --line: rgba(9, 36, 74, 0.13);
  --shadow: 0 24px 70px rgba(6, 21, 46, 0.13);
  --radius-lg: 30px;
  --radius-md: 20px;
  --container: min(1180px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  background-color: #faf7f1;
  scroll-behavior: smooth;
  scroll-padding-top: 152px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

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

.container {
  width: var(--container);
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--gold-600);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 30px;
  height: 1px;
  content: "";
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
.serif {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(3rem, 6.8vw, 6.6rem);
  line-height: 0.96;
}

h2 {
  margin-bottom: 18px;
  color: var(--navy-950);
  font-size: clamp(2.25rem, 4vw, 4.1rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  color: var(--navy-950);
  font-size: 1.22rem;
}

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.section {
  padding: 104px 0;
}

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

.section-dark {
  color: var(--white);
  background: var(--navy-950);
}

.section-heading {
  max-width: 740px;
  margin-bottom: 44px;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.section-heading.center .eyebrow {
  justify-content: center;
}

.section-heading.center p {
  max-width: 620px;
  margin-inline: auto;
}

.topbar {
  position: relative;
  z-index: 31;
  color: rgba(255, 255, 255, 0.82);
  background: var(--navy-950);
  font-size: 0.76rem;
}

.topbar-inner {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.topbar a:hover {
  color: var(--gold-300);
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(9, 36, 74, 0.08);
  background: var(--white);
  box-shadow: 0 8px 30px rgba(6, 21, 46, 0.04);
}

.header-inner {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.header-inner > a:first-child {
  display: flex;
  height: 72px;
  flex: 0 0 auto;
  align-items: center;
  margin: 10px 0;
}

.brand-logo {
  width: auto;
  max-width: min(42vw, 246px);
  height: 100%;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav > a:not(.button) {
  position: relative;
  padding: 14px 13px;
  color: var(--navy-900);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav > a:not(.button)::after {
  position: absolute;
  right: 13px;
  bottom: 7px;
  left: 13px;
  height: 2px;
  content: "";
  background: var(--gold-500);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.main-nav > a:hover::after,
.main-nav > a.active::after {
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  min-height: 51px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--navy-900);
  box-shadow: 0 14px 30px rgba(9, 36, 74, 0.22);
}

.button-primary:hover {
  background: var(--navy-800);
  box-shadow: 0 18px 34px rgba(9, 36, 74, 0.28);
}

.button-gold {
  color: var(--navy-950);
  background: linear-gradient(135deg, #efcf8f, var(--gold-500));
  box-shadow: 0 14px 30px rgba(185, 125, 28, 0.24);
}

.button-outline {
  color: var(--navy-900);
  border-color: rgba(9, 36, 74, 0.22);
  background: rgba(255, 255, 255, 0.65);
}

.button-white {
  color: var(--navy-950);
  background: var(--white);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--navy-900);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  content: "";
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle span {
  position: relative;
}

.menu-toggle span::before {
  position: absolute;
  top: -6px;
}

.menu-toggle span::after {
  position: absolute;
  top: 6px;
}

.menu-open .menu-toggle span {
  background: transparent;
}

.menu-open .menu-toggle span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-open .menu-toggle span::after {
  top: 0;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 126px));
  overflow: hidden;
  background-color: var(--cream);
  background-image: linear-gradient(90deg, rgba(250, 247, 241, 0.99) 0%, rgba(250, 247, 241, 0.94) 32%, rgba(250, 247, 241, 0.35) 58%, rgba(250, 247, 241, 0.03) 100%), url("../images/hero-souza-colchoes.webp");
  background-position: center;
  background-size: cover;
}

.hero::after {
  position: absolute;
  right: -7vw;
  bottom: -130px;
  width: 54vw;
  height: 250px;
  border: 2px solid rgba(210, 156, 66, 0.5);
  border-radius: 50%;
  content: "";
  transform: rotate(-7deg);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: min(760px, calc(100vh - 126px));
  align-items: center;
  padding: 90px 0;
}

.hero-copy {
  width: min(650px, 55%);
}

.hero-copy h1 {
  margin-bottom: 28px;
  color: var(--navy-950);
}

.hero-copy h1 em {
  display: block;
  color: var(--gold-600);
  font-weight: 400;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 32px;
  color: #465269;
  font-size: 1.12rem;
}

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

.hero-signature {
  position: absolute;
  z-index: 3;
  right: 32px;
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  color: var(--white);
  background: rgba(6, 21, 46, 0.64);
  box-shadow: 0 16px 40px rgba(6, 21, 46, 0.18);
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.hero-signature strong {
  color: var(--gold-300);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.category-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: 0 14px 44px rgba(6, 21, 46, 0.1);
  grid-column: span 4;
  isolation: isolate;
}

.category-card:nth-child(1),
.category-card:nth-child(2),
.category-card:nth-child(6),
.category-card:nth-child(7) {
  grid-column: span 6;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.category-card::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 30%, rgba(4, 17, 38, 0.82) 100%);
}

.category-card:hover img {
  transform: scale(1.035);
}

.category-card-content {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 28px;
}

.category-card-content span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-300);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.category-card-content h3 {
  margin: 0;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 500;
}

.card-arrow {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.4rem;
  transition: background 0.25s ease, color 0.25s ease;
}

.category-card:hover .card-arrow {
  color: var(--navy-950);
  background: var(--white);
}

.brand-story {
  display: grid;
  align-items: center;
  gap: 70px;
  grid-template-columns: 0.95fr 1.05fr;
}

.story-image {
  position: relative;
}

.story-image img {
  width: 100%;
  min-height: 500px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.story-badge {
  position: absolute;
  right: -22px;
  bottom: 32px;
  display: grid;
  width: 150px;
  height: 150px;
  padding: 20px;
  place-content: center;
  border: 7px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  background: var(--navy-900);
  text-align: center;
  box-shadow: var(--shadow);
}

.story-badge strong {
  display: block;
  color: var(--gold-300);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 400;
}

.story-copy p:not(.eyebrow) {
  max-width: 590px;
}

.story-list {
  display: grid;
  margin: 28px 0 34px;
  padding: 0;
  list-style: none;
  gap: 13px;
}

.story-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-900);
  font-weight: 700;
}

.story-list li::before {
  width: 8px;
  height: 8px;
  border: 4px solid #f1dfbd;
  border-radius: 50%;
  content: "";
  background: var(--gold-600);
  box-sizing: content-box;
}

.inner-hero {
  position: relative;
  display: flex;
  min-height: 470px;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
  background-color: var(--navy-950);
  background-position: center;
  background-size: cover;
}

.inner-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(4, 17, 38, 0.95), rgba(4, 17, 38, 0.7) 48%, rgba(4, 17, 38, 0.18));
}

.inner-hero-company {
  background-image: url("../images/catalogo/diferenciais.webp");
  background-position: center 55%;
}

.inner-hero-products {
  background-image: url("../images/catalogo/produtos-hero.webp");
  background-position: center 52%;
}

.inner-hero-contact {
  background-image: url("../images/fachada.webp");
  background-position: center 54%;
}

.inner-hero .container {
  position: relative;
  z-index: 2;
  padding-bottom: 68px;
}

.inner-hero h1 {
  max-width: 850px;
  margin-bottom: 16px;
  font-size: clamp(3rem, 6vw, 5.8rem);
}

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

.inner-hero .eyebrow {
  color: var(--gold-300);
}

.company-intro {
  display: grid;
  align-items: center;
  gap: 46px;
  grid-template-columns: 1fr;
}

.company-intro > div:last-child {
  width: min(880px, 100%);
  margin-inline: auto;
  text-align: center;
}

.facade-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.facade-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.facade-caption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  color: var(--white);
  background: rgba(6, 21, 46, 0.76);
  font-size: 0.85rem;
  line-height: 1.5;
  backdrop-filter: blur(10px);
}

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

.value-card {
  min-height: 260px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.value-number {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 38px;
  border-radius: 50%;
  color: var(--navy-950);
  background: #f0dfbd;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

.video-shell {
  overflow: hidden;
  border: 10px solid var(--white);
  border-radius: var(--radius-lg);
  background: var(--navy-950);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.category-nav {
  position: sticky;
  z-index: 20;
  top: 92px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 247, 241, 0.94);
  box-shadow: 0 8px 25px rgba(6, 21, 46, 0.06);
  backdrop-filter: blur(16px);
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-nav-inner {
  display: flex;
  width: max-content;
  min-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
}

.category-nav a {
  padding: 11px 16px;
  border-radius: 999px;
  color: var(--navy-900);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.category-nav a:hover,
.category-nav a.active {
  color: var(--white);
  background: var(--navy-900);
}

.product-section {
  position: relative;
  padding: 96px 0;
  scroll-margin-top: 150px;
}

.product-section:nth-of-type(even) {
  background: var(--white);
}

.product-row {
  display: grid;
  align-items: center;
  gap: 70px;
  grid-template-columns: 1.08fr 0.92fr;
}

.product-section:nth-of-type(odd) .product-gallery {
  order: 2;
}

.product-gallery {
  display: grid;
  min-width: 0;
  gap: 14px;
  grid-template-columns: 1fr 0.55fr;
  grid-template-rows: repeat(2, 190px);
}

.product-gallery.one-image {
  display: block;
}

.product-gallery.three-images {
  grid-template-columns: 1fr 0.68fr;
}

.product-gallery.two-images .gallery-button:nth-child(2) {
  grid-row: 1 / 3;
}

.gallery-button {
  position: relative;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: #e8e3db;
  cursor: zoom-in;
}

.gallery-button:first-child {
  grid-row: 1 / 3;
}

.product-gallery.one-image .gallery-button {
  width: 100%;
  height: 520px;
}

.gallery-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-button:hover img {
  transform: scale(1.025);
}

.gallery-button::after {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: var(--navy-950);
  content: "+";
  background: rgba(255, 255, 255, 0.88);
  font-size: 1.35rem;
  box-shadow: 0 8px 22px rgba(6, 21, 46, 0.14);
}

.product-copy h2 {
  font-size: clamp(2.5rem, 4.7vw, 4.7rem);
}

.product-copy > p:not(.eyebrow) {
  margin-bottom: 28px;
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.feature-chips li {
  padding: 10px 13px;
  border: 1px solid #ead8b7;
  border-radius: 999px;
  color: var(--navy-900);
  background: #fbf4e8;
  font-size: 0.76rem;
  font-weight: 800;
}

.product-note {
  padding: 16px 18px;
  border-left: 3px solid var(--gold-500);
  color: #586277;
  background: rgba(210, 156, 66, 0.08);
  font-size: 0.88rem;
  line-height: 1.65;
}

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  color: var(--white);
  background: var(--navy-950);
}

.cta-band::before {
  position: absolute;
  top: -180px;
  right: -110px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(210, 156, 66, 0.32);
  border-radius: 50%;
  content: "";
}

.cta-band-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.cta-band h2 {
  max-width: 760px;
  margin: 0;
  color: var(--white);
  font-size: clamp(2.1rem, 4vw, 3.8rem);
}

.contact-layout {
  display: grid;
  align-items: start;
  gap: 70px;
  grid-template-columns: 0.9fr 1.1fr;
}

.contact-cards {
  display: grid;
  gap: 12px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

a.contact-card:hover {
  border-color: rgba(185, 125, 28, 0.46);
  transform: translateX(4px);
}

.contact-icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border-radius: 14px;
  color: var(--navy-900);
  background: #f4e7ce;
  font-weight: 900;
}

.contact-icon svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.contact-icon svg.icon-fill {
  fill: currentColor;
  stroke: none;
}

.contact-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--navy-950);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-card span {
  display: block;
  color: var(--muted);
  line-height: 1.55;
}

.contact-form {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-form h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.field-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--navy-900);
  font-size: 0.8rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid rgba(9, 36, 74, 0.14);
  border-radius: 12px;
  outline: none;
  color: var(--ink);
  background: #fcfbf8;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(210, 156, 66, 0.12);
}

.form-note {
  margin: 15px 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
}

.site-footer {
  padding-top: 72px;
  color: rgba(255, 255, 255, 0.72);
  background: #041126;
}

.footer-grid {
  display: grid;
  padding-bottom: 55px;
  gap: 55px;
  grid-template-columns: 1.15fr 0.65fr 0.9fr 1fr;
}

.footer-logo-wrap {
  display: flex;
  width: fit-content;
  height: 74px;
  align-items: center;
  margin-bottom: 20px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--white);
}

.footer-logo-wrap img {
  width: auto;
  max-width: 235px;
  height: 100%;
  object-fit: contain;
}

.footer-brand p {
  max-width: 320px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
}

.site-footer h3 {
  margin-bottom: 22px;
  color: var(--gold-300);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 11px;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact p,
.footer-contact a {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.76rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.7);
}

.whatsapp-float {
  position: fixed;
  z-index: 28;
  right: 22px;
  bottom: 86px;
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  border: 4px solid var(--white);
  border-radius: 999px;
  color: var(--white);
  background: #1ca957;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  font-size: 0.78rem;
  font-weight: 850;
}

.whatsapp-float svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.cookie-banner {
  position: fixed;
  z-index: 50;
  right: 20px;
  bottom: 20px;
  display: none;
  width: min(460px, calc(100% - 40px));
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: var(--white);
  background: rgba(4, 17, 38, 0.97);
  box-shadow: 0 24px 70px rgba(4, 17, 38, 0.3);
}

.cookie-banner.show {
  display: block;
}

.cookie-banner p {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1.6;
}

.cookie-actions {
  display: flex;
  gap: 10px;
}

.cookie-actions .button {
  min-height: 43px;
}

.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(2, 9, 21, 0.93);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(1200px, 92vw);
  max-height: 88vh;
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  width: 50px;
  height: 50px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 1.7rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Preserve the approved light palette when a browser requests or forces dark mode. */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: only light;
    --ivory: #faf7f1;
    --cream: #f1e9dc;
    --white: #ffffff;
    --ink: #172238;
    --muted: #667085;
  }

  html,
  body {
    color: #172238;
    background-color: #faf7f1;
  }
}

@media (max-width: 1020px) {
  :root {
    --container: min(calc(100% - 32px), 920px);
  }

  .topbar-inner > span {
    display: none;
  }

  .topbar-inner {
    justify-content: center;
  }

  .main-nav {
    position: fixed;
    z-index: 40;
    top: 126px;
    right: 16px;
    left: 16px;
    display: none;
    max-height: calc(100vh - 150px);
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow);
    overflow-y: auto;
  }

  .menu-open .main-nav {
    display: grid;
  }

  .main-nav > a:not(.button) {
    padding: 15px 12px;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    min-height: 680px;
    background-image: linear-gradient(90deg, rgba(250, 247, 241, 0.98) 0%, rgba(250, 247, 241, 0.9) 47%, rgba(250, 247, 241, 0.28) 100%), url("../images/hero-souza-colchoes.webp");
    background-position: 60% center;
  }

  .hero-inner {
    min-height: 680px;
  }

  .hero-copy {
    width: 66%;
  }

  .category-card,
  .category-card:nth-child(n) {
    min-height: 320px;
    grid-column: span 6;
  }

  .category-card:last-child {
    grid-column: 4 / span 6;
  }

  .brand-story,
  .company-intro,
  .product-row,
  .contact-layout {
    gap: 46px;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  :root {
    --container: calc(100% - 28px);
    --radius-lg: 24px;
  }

  html {
    scroll-padding-top: 132px;
  }

  .topbar-links {
    width: 100%;
    justify-content: center;
    gap: 14px;
  }

  .topbar-links a:first-child {
    display: none;
  }

  .header-inner {
    min-height: 80px;
  }

  .brand-logo {
    width: auto;
    max-width: 65vw;
  }

  .header-inner > a:first-child {
    height: 60px;
    margin: 10px 0;
  }

  .main-nav {
    top: 114px;
  }

  .section {
    padding: 76px 0;
  }

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

  .hero {
    min-height: 760px;
    background-image: linear-gradient(180deg, rgba(250, 247, 241, 0.99) 0%, rgba(250, 247, 241, 0.92) 46%, rgba(6, 21, 46, 0.08) 75%, rgba(6, 21, 46, 0.34) 100%), url("../images/hero-souza-colchoes.webp");
    background-position: 67% center;
  }

  .hero-inner {
    min-height: 760px;
    align-items: flex-start;
    padding-top: 72px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 14vw, 4.6rem);
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 1rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-signature {
    right: 14px;
    bottom: 16px;
    left: 14px;
    justify-content: center;
    text-align: center;
  }

  .category-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .facade-caption {
    position: static;
    border: 0;
    border-radius: 0;
    background: var(--navy-950);
    backdrop-filter: none;
  }

  .category-card,
  .category-card:nth-child(n),
  .category-card:last-child {
    min-height: 310px;
    grid-column: 1;
  }

  .category-card-content {
    padding: 24px;
  }

  .brand-story,
  .company-intro,
  .product-row,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .story-image {
    margin-right: 14px;
  }

  .story-image img {
    min-height: 420px;
  }

  .story-badge {
    right: -14px;
    width: 126px;
    height: 126px;
  }

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

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

  .value-number {
    margin-bottom: 24px;
  }

  .inner-hero {
    min-height: 410px;
  }

  .inner-hero .container {
    padding-bottom: 48px;
  }

  .category-nav {
    top: 80px;
  }

  .category-nav-inner {
    justify-content: flex-start;
  }

  .product-section {
    padding: 74px 0;
    scroll-margin-top: 137px;
  }

  .product-section:nth-of-type(odd) .product-gallery {
    order: 0;
  }

  .product-gallery {
    grid-template-columns: 1fr 0.62fr;
    grid-template-rows: repeat(2, 145px);
  }

  .product-gallery.one-image .gallery-button {
    height: 380px;
  }

  .cta-band-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .field.full {
    grid-column: auto;
  }

  .contact-form {
    padding: 28px 20px;
  }

  .footer-grid {
    gap: 38px;
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand,
  .footer-contact {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    padding: 20px 0;
    flex-direction: column;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 78px;
    width: 58px;
    padding: 0;
    justify-content: center;
  }

  .whatsapp-float span {
    display: none;
  }

  .cookie-banner {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
