:root {
  --navy: #101d33;
  --navy-soft: #172942;
  --gold: #c8a66a;
  --gold-dark: #a8874f;
  --off-white: #f7f3ec;
  --white: #ffffff;
  --text: #1b2430;
  --muted: #6c7583;
  --line: #e8e1d6;
  --shadow: 0 18px 45px rgba(16, 29, 51, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--off-white);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

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

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

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

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 84px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(16, 29, 51, 0.96);
  border-bottom: 1px solid rgba(200, 166, 106, 0.2);
  backdrop-filter: blur(14px);
}

.header-content {
  display: flex;
  align-items: center;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: var(--white);
  font-weight: 800;
}

.brand-logo,
.hero-logo,
.footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy-soft), var(--gold));
}

.brand-logo:not([src]),
.hero-logo:not([src]) {
  display: none;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  font-weight: 600;
}

.main-nav a {
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 12px 28px rgba(200, 166, 106, 0.25);
}

.btn-primary:hover {
  background: #d7b77a;
}

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

.btn-outline {
  border-color: rgba(200, 166, 106, 0.55);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
}

.hero {
  background:
    linear-gradient(135deg, rgba(16, 29, 51, 0.98), rgba(23, 41, 66, 0.94)),
    radial-gradient(circle at 80% 15%, rgba(200, 166, 106, 0.22), transparent 28%);
  color: var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: 72px 0 92px;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 16px 0 18px;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(200, 166, 106, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.84rem;
  font-weight: 800;
}

.hero-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--gold);
  font-weight: 800;
}

.eyebrow {
  margin: 0;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  margin-top: 34px;
  color: var(--gold);
}

.hero-panel {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(200, 166, 106, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.hero-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(16, 29, 51, 0.05), rgba(16, 29, 51, 0.9)),
    url("../img/sofas/mirabe06.webp") center/cover;
}

.hero-card-label,
.hero-price span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-card strong {
  margin-top: 8px;
  color: var(--white);
  font-size: 1.55rem;
}

.hero-card p {
  max-width: 360px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.hero-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
}

.hero-price span {
  color: var(--muted);
}

.hero-price strong {
  color: var(--gold-dark);
  font-size: 1.3rem;
}

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

.benefit-card,
.product-card,
.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 32px rgba(16, 29, 51, 0.06);
}

.benefit-card {
  padding: 26px;
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(200, 166, 106, 0.15);
  color: var(--gold-dark);
  font-weight: 800;
}

.benefit-card h2 {
  margin: 22px 0 10px;
  color: var(--navy);
  font-size: 1.05rem;
}

.benefit-card p,
.section-heading p,
.step p,
.footer-brand p {
  color: var(--muted);
}

.catalog {
  background: var(--white);
}

.section-heading {
  max-width: 650px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 10px 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.section-heading p {
  margin: 0;
}

.catalog-commerce-strip {
  margin: -8px 0 22px;
  padding: 14px 18px;
  border: 1px solid rgba(200, 166, 106, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(200, 166, 106, 0.14), rgba(247, 243, 236, 0.78));
  color: var(--navy);
  font-size: 0.94rem;
  font-weight: 800;
  text-align: center;
}

.catalog-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(150px, 0.7fr) minmax(150px, 0.7fr) auto;
  gap: 12px;
  align-items: end;
  margin: 0 0 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf7;
  box-shadow: 0 10px 30px rgba(16, 29, 51, 0.05);
}

.filter-field {
  display: grid;
  gap: 7px;
}

.filter-field span {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.filter-field input,
.filter-field select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: 0;
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
}

.filter-field input:focus,
.filter-field select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 166, 106, 0.16);
}

.btn-filter-clear {
  min-height: 42px;
  padding: 0 16px;
  border-color: var(--line);
  background: var(--white);
  color: var(--navy);
  font-size: 0.9rem;
}

.btn-filter-clear:hover {
  border-color: var(--gold);
  background: var(--off-white);
}

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

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 408px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-media {
  position: relative;
  height: 178px;
  overflow: hidden;
  background: linear-gradient(135deg, #e7ded0, #f6f0e5);
}

.product-media::before {
  content: "Sofá Direto-SP";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(16, 29, 51, 0.42);
  font-weight: 800;
}

.product-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.product-badge {
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 5px 9px;
  border: 1px solid rgba(200, 166, 106, 0.34);
  border-radius: 999px;
  background: rgba(200, 166, 106, 0.12);
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.product-info h3 {
  min-height: 46px;
  margin: 0 0 10px;
  color: var(--navy);
  display: -webkit-box;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-meta {
  display: grid;
  gap: 6px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.product-price {
  margin: auto 0 14px;
  color: var(--gold-dark);
  font-size: 1.38rem;
  font-weight: 800;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 8px;
  margin-top: auto;
}

.product-actions .btn {
  min-height: 40px;
  padding: 0 12px;
  font-size: 0.88rem;
}

.btn-secondary {
  background: var(--navy);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--navy-soft);
}

.btn-whatsapp {
  background: #1f9d5a;
  color: var(--white);
}

.btn-whatsapp:hover {
  background: #17864b;
}

.empty-state {
  display: none;
  margin: 28px 0 0;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  background: #fbfaf7;
}

.empty-state.active {
  display: block;
}

.how-to {
  background: var(--off-white);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  padding: 28px;
}

.step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-weight: 800;
}

.step h3 {
  margin: 22px 0 8px;
  color: var(--navy);
}

.step p {
  margin: 0;
}

.trust {
  padding: 72px 0;
  background: var(--navy);
  color: var(--white);
}

.trust-content p {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
}

.site-footer {
  background: #0b1424;
  color: var(--white);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  flex: 0 0 auto;
}

.footer-brand p {
  margin: 4px 0 0;
}

.footer-links {
  display: flex;
  gap: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

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

.footer-bottom {
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0 0 6px;
}

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

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 12, 22, 0.72);
}

.modal-backdrop.active {
  display: flex;
}

.modal {
  position: relative;
  width: min(1060px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.35);
}

.modal-close {
  position: sticky;
  top: 16px;
  left: calc(100% - 58px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 16px 16px -58px auto;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

.modal-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 34px;
  padding: 32px;
}

.modal-gallery {
  min-width: 0;
}

.modal-main-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #e7ded0, #f6f0e5);
}

.modal-main-image::before {
  content: "Sofá Direto-SP";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(16, 29, 51, 0.38);
  font-weight: 800;
}

.modal-main-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.thumb {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: #efe7da;
  cursor: pointer;
}

.thumb.active {
  border-color: var(--gold);
}

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

.modal-details h2 {
  margin: 0 44px 12px 0;
  color: var(--navy);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.08;
}

.modal-price {
  margin: 0 0 20px;
  color: var(--gold-dark);
  font-size: 2rem;
  font-weight: 800;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.detail-list strong {
  color: var(--navy);
}

.commercial-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0 2px;
}

.commercial-benefit {
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf7;
}

.commercial-benefit span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(200, 166, 106, 0.16);
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 800;
}

.commercial-benefit strong {
  color: var(--navy);
  font-size: 0.82rem;
  line-height: 1.28;
}

.modal-section {
  margin-top: 24px;
}

.modal-section h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 1.05rem;
}

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

.measure {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--off-white);
}

.measure span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.measure strong {
  color: var(--navy);
}

.description-list {
  display: grid;
  gap: 12px;
}

.description-item {
  margin: 0;
  color: var(--muted);
}

.description-item strong {
  color: var(--navy);
}

.modal-cta {
  width: 100%;
  margin-top: 26px;
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .header-content {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav,
  .header-whatsapp {
    display: none;
  }

  .main-nav.active,
  .header-whatsapp.active {
    display: flex;
  }

  .main-nav {
    order: 3;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 8px 0 16px;
  }

  .main-nav a {
    padding: 12px 0;
  }

  .header-whatsapp {
    order: 4;
    width: 100%;
    margin-bottom: 16px;
  }

  .hero-grid,
  .modal-content {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
    padding: 58px 0 74px;
  }

  .benefit-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog-filters {
    grid-template-columns: repeat(2, 1fr);
  }

  .commercial-benefits {
    grid-template-columns: 1fr;
  }

  .btn-filter-clear {
    width: 100%;
  }

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

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .section {
    padding: 60px 0;
  }

  .brand-text {
    font-size: 0.98rem;
  }

  .hero-actions,
  .hero-badges,
  .footer-content {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-badges span {
    justify-content: center;
    text-align: center;
  }

  .hero-panel {
    padding: 12px;
  }

  .hero-card {
    min-height: 260px;
    padding: 22px;
  }

  .hero-price {
    align-items: flex-start;
    flex-direction: column;
  }

  .benefit-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .product-info {
    padding: 18px;
  }

  .catalog-filters,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 392px;
  }

  .product-media {
    height: 190px;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .modal {
    max-height: 92vh;
  }

  .modal-content {
    gap: 22px;
    padding: 20px;
  }

  .modal-close {
    top: 10px;
    width: 40px;
    height: 40px;
    margin: 10px 10px -50px auto;
  }

  .thumbs {
    grid-template-columns: repeat(5, minmax(44px, 1fr));
    gap: 6px;
  }

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