:root {
  --bg: #f7f5f0;
  --ink: #181512;
  --muted: #67615a;
  --paper: #fffefa;
  --paper-2: #f3ead8;
  --line: rgba(24, 21, 18, 0.1);
  --black: #100d0a;
  --red: #b9271e;
  --red-dark: #7f1611;
  --yellow: #f4b71b;
  --yellow-2: #ffd84a;
  --green: #25d366;
  --shadow: 0 18px 38px rgba(24, 21, 18, 0.12);
  --shadow-soft: 0 8px 22px rgba(24, 21, 18, 0.08);
  --radius: 8px;
  --radius-sm: 6px;
  --max: 1180px;
  --font-body: "Segoe UI", Arial, sans-serif;
  --font-display: "Segoe UI", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  overflow-x: hidden;
}

html.no-scroll,
body.no-scroll {
  overflow: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #fffefa 0%, var(--bg) 46%, #eee8de 100%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

body.admin-body {
  background:
    radial-gradient(circle at top right, rgba(244, 183, 27, 0.28), transparent 28rem),
    linear-gradient(135deg, #160f0c 0%, #2a1713 55%, #6f1713 100%);
}

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

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

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

:focus-visible {
  outline: 3px solid rgba(244, 183, 27, 0.55);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 999;
  transform: translateY(-160%);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 10px 14px;
  font-weight: 900;
}

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

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

.topbar {
  background: var(--black);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
  font-weight: 900;
  padding: 8px 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.topbar a {
  color: var(--yellow-2);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 8px 24px rgba(23, 17, 13, 0.06);
  backdrop-filter: blur(14px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 1.12rem;
  letter-spacing: 0;
  line-height: 1;
}

.brand-mark {
  width: 58px;
  height: 46px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: #090807;
  padding: 4px;
}

.brand span {
  display: block;
  color: var(--red);
  text-shadow: 0 1px 0 var(--yellow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1 1 auto;
}

.nav a {
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
  padding: 10px 11px;
}

.nav a:hover,
.nav a.is-active {
  background: var(--paper-2);
  color: var(--black);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--black);
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 900;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 800;
  line-height: 1.1;
  padding: 12px 18px;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.btn-primary {
  background: var(--green);
  color: #062b14;
  box-shadow: 0 12px 26px rgba(37, 211, 102, 0.26);
}

.btn-secondary,
.btn-product {
  background: var(--black);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-ghost {
  border-color: var(--black);
  background: #fff;
  color: var(--black);
}

.btn-ghost.on-dark {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-danger {
  background: var(--red);
  color: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(16, 13, 10, 0.88), rgba(16, 13, 10, 0.64) 58%, rgba(16, 13, 10, 0.42)),
    url("assets/img/casa-da-picape-fachada.jpg") center / cover;
  color: #fff;
  padding: clamp(42px, 8vw, 96px) 0;
}

.hero::after {
  content: none;
}

.hero-grid,
.page-hero-grid,
.split-grid,
.contact-grid,
.section-head,
.products-grid,
.steps-grid,
.stats-grid,
.showcase-grid,
.admin-grid {
  display: grid;
  gap: 24px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 430px);
  align-items: center;
}

.hero-grid > * {
  min-width: 0;
}

.hero-copy-block {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 14px;
  border-radius: 999px;
  background: rgba(244, 183, 27, 0.18);
  color: var(--yellow-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 7px 11px;
  text-transform: uppercase;
}

.section .eyebrow,
.section-alt .eyebrow,
.page-hero .eyebrow {
  background: rgba(185, 39, 30, 0.1);
  color: var(--red-dark);
}

.hero h1,
.page-hero h1,
.section-title,
.split-copy h2,
.contact-card h2,
.contact-card h3,
.product-body h3,
.step-card h3,
.info-card h3,
.admin-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.03;
}

.hero h1 {
  max-width: 720px;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4.55rem);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
  overflow-wrap: anywhere;
}

.hero-copy,
.section-copy,
.page-hero-copy,
.split-copy p,
.hero-card p,
.info-card p {
  max-width: 720px;
  color: var(--muted);
  margin: 16px 0 0;
}

.hero-copy,
.page-hero-photo .page-hero-copy,
.page-hero-photo .hero-card p {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}

.hero-actions,
.page-actions,
.split-actions,
.section-actions,
.card-actions,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions,
.page-actions,
.split-actions {
  margin-top: 26px;
}

.section-actions {
  justify-content: center;
  margin-top: 26px;
}

.hero-metrics,
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-metrics div,
.badge-chip {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12);
  padding: 11px 13px;
  backdrop-filter: blur(8px);
}

.hero-metrics strong {
  display: block;
  color: var(--yellow-2);
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1;
}

.hero-metrics span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 900;
}

.hero-panel,
.lookup-panel,
.hero-card,
.catalog-tools,
.path-card,
.quote-form,
.contact-card,
.product-card,
.empty-state,
.step-card,
.stat-card,
.info-card,
.showcase-card,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.lookup-panel {
  overflow: hidden;
  background: rgba(255, 254, 250, 0.98);
  color: var(--ink);
}

.lookup-media {
  position: relative;
}

.lookup-media img {
  width: 100%;
  aspect-ratio: 4 / 2.35;
  object-fit: cover;
}

.lookup-media .hours-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.lookup-form {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.lookup-form h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.1;
}

.lookup-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 900;
}

.lookup-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
}

.lookup-form p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.hero-panel {
  justify-self: end;
  overflow: hidden;
  color: var(--ink);
  padding: 16px;
}

.hero-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.panel-note {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
  margin-top: 15px;
}

.panel-note strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
}

.hours-badge {
  border-radius: 999px;
  background: rgba(185, 39, 30, 0.12);
  color: var(--red-dark);
  font-size: 0.8rem;
  font-weight: 1000;
  padding: 7px 10px;
  white-space: nowrap;
}

.hours-badge.is-open {
  background: rgba(37, 211, 102, 0.16);
  color: #09562a;
}

.trust-band {
  border-bottom: 1px solid var(--line);
  background: #fffefa;
  color: var(--ink);
  padding: 18px 0;
}

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

.trust-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  display: grid;
  gap: 4px;
  padding: 14px;
}

.trust-item strong {
  color: var(--red-dark);
  font-size: 1.15rem;
  line-height: 1;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.section {
  padding: clamp(40px, 6vw, 76px) 0;
}

.section-alt {
  background: rgba(255, 254, 250, 0.72);
}

.section-head {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  align-items: end;
  margin-bottom: 24px;
}

.section-title,
.split-copy h2,
.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 3.5rem);
}

.compact-head {
  margin-bottom: 18px;
}

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

.path-card {
  display: grid;
  min-height: 148px;
  align-content: start;
  gap: 10px;
  padding: 18px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.path-card:hover {
  transform: translateY(-3px);
  border-color: rgba(185, 39, 30, 0.45);
  box-shadow: var(--shadow-soft);
}

.path-card span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(185, 39, 30, 0.1);
  color: var(--red-dark);
  font-size: 1rem;
}

.path-card strong {
  font-size: 1.08rem;
  line-height: 1.15;
}

.path-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.section-featured {
  background: #fffdf8;
}

.catalog-tools {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
  padding: 18px;
  background: linear-gradient(180deg, #fffdf8, #fff6e7);
}

.search-field,
.quote-form label,
.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 900;
}

.search-field input,
.quote-form input,
.quote-form textarea,
.admin-form input,
.admin-form textarea,
.admin-form select,
.admin-toolbar input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
}

.quote-form textarea,
.admin-form textarea {
  resize: vertical;
}

.filter-label,
.product-kicker,
.product-meta dt,
.contact-list span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 900;
  padding: 8px 13px;
}

.filter-btn.is-active {
  border-color: var(--black);
  background: var(--black);
  color: #fff;
}

.products-count {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 900;
}

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

.product-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(244, 183, 27, 0.7);
  box-shadow: var(--shadow);
}

.product-image {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  background: #ead8bc;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  text-align: left;
}

.product-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 260ms ease;
}

.product-card:hover .product-image img {
  transform: scale(1.045);
}

.product-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  border-radius: 999px;
  background: var(--yellow);
  color: #221606;
  font-size: 0.78rem;
  font-weight: 1000;
  padding: 6px 10px;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px;
}

.product-body h3 {
  margin-top: 7px;
  color: var(--black);
  font-size: 1.08rem;
  line-height: 1.2;
}

.product-body p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
}

.product-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 4px 8px;
}

.product-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: auto 0 14px;
}

.product-meta div {
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.product-meta dd {
  margin: 2px 0 0;
  font-weight: 900;
}

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

.product-body .btn {
  width: 100%;
  padding-inline: 12px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 26px;
}

.empty-state h3 {
  margin: 0 0 8px;
}

.split-grid,
.contact-grid,
.content-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: start;
}

.align-center {
  align-items: center;
}

.feature-stack {
  display: grid;
  gap: 12px;
}

.quote-form {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.quote-form .btn {
  width: 100%;
}

.contact-card {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: #fff;
  padding: clamp(22px, 4vw, 34px);
}

.contact-card h2,
.contact-card h3 {
  color: #fff;
  font-size: 1.3rem;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.contact-list a,
.contact-list div {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 900;
  padding: 13px;
}

.contact-list span {
  color: rgba(255, 255, 255, 0.68);
}

.contact-whatsapp {
  display: grid !important;
  background: var(--green);
  border-color: transparent !important;
  color: #062b14 !important;
}

.map-box {
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ead8bc;
  box-shadow: var(--shadow-soft);
}

.map-box iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.page-hero {
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  padding: clamp(46px, 7vw, 86px) 0;
}

.page-hero-photo {
  background:
    linear-gradient(90deg, rgba(16, 13, 10, 0.9), rgba(16, 13, 10, 0.64)),
    url("assets/img/casa-da-picape-fachada.jpg") center / cover;
  color: #fff;
}

.page-hero-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: center;
}

.hero-card {
  padding: 22px;
}

.page-hero-photo .hero-card {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(16, 13, 10, 0.76);
  color: #fff;
  backdrop-filter: blur(12px);
}

.hero-card h3 {
  margin: 0 0 10px;
  color: inherit;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.badge-chip {
  background: #fff;
  color: var(--black);
  font-weight: 900;
}

.page-hero-photo .badge-chip {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

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

.step-card,
.stat-card,
.info-card,
.showcase-card {
  padding: 20px;
}

.step-number,
.stat-card strong {
  display: block;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 10px;
}

.stats-grid,
.showcase-grid {
  grid-template-columns: repeat(3, 1fr);
}

.stack-md,
.feature-list,
.contact-methods,
.check-list {
  display: grid;
  gap: 14px;
}

.list-clean {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.check-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 27px;
  color: var(--muted);
}

.check-list li::before {
  content: "OK";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 1000;
}

.feature-item,
.contact-method {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 16px;
}

.feature-item strong,
.contact-method strong,
.showcase-card strong {
  display: block;
  color: var(--black);
  font-weight: 1000;
}

.feature-item p,
.contact-method span,
.showcase-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.contact-method.is-primary {
  background: var(--green);
  border-color: transparent;
}

.contact-method.is-primary strong,
.contact-method.is-primary span {
  color: #062b14;
}

.cta-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--black) 0%, var(--red-dark) 100%);
  color: #fff;
  padding: 24px;
  box-shadow: var(--shadow);
}

.catalog-help {
  margin-top: 26px;
}

.cta-banner h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

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

.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.78);
  padding: 34px 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.site-footer .brand {
  color: #fff;
}

.site-footer p {
  max-width: 620px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.66);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  font-weight: 900;
}

.float-actions {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.float-actions a {
  display: grid;
  min-width: 86px;
  height: 44px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 1000;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.float-wp {
  background: var(--green);
}

.float-call {
  background: var(--black);
  display: none !important;
}

.float-contact {
  background: var(--red);
  display: none !important;
}

.float-inst {
  background: radial-gradient(circle at 30% 30%, #f58529 0%, #dd2a7b 52%, #515bd4 100%);
}

.product-dialog {
  width: min(960px, calc(100% - 28px));
  max-width: 960px;
  max-height: calc(100dvh - 28px);
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  background: transparent;
}

.product-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
}

.dialog-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  max-height: calc(100dvh - 28px);
  overflow: auto;
  border-radius: var(--radius);
  background: var(--paper);
  padding: 20px;
}

.dialog-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  font-size: 1.4rem;
}

.dialog-media {
  display: grid;
  gap: 10px;
  align-content: start;
}

.dialog-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.dialog-media img#dialog-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.dialog-nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--black);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
}

.dialog-prev {
  left: 12px;
}

.dialog-next {
  right: 12px;
}

.dialog-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.dialog-thumbs .thumb {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  padding: 4px;
}

.dialog-thumbs .thumb.active {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(185, 39, 30, 0.14);
}

.dialog-thumbs img {
  width: 76px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
}

.dialog-content {
  min-width: 0;
  padding: 8px 8px 8px 0;
}

.dialog-content h2 {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1;
}

.dialog-content p {
  color: var(--muted);
}

.detail-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  margin-top: 14px;
  padding: 14px;
}

.detail-box h3 {
  margin: 0 0 8px;
}

.detail-box ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.admin-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
  color: var(--ink);
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  color: #fff;
}

.admin-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.admin-grid {
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
}

.admin-panel {
  padding: 20px;
}

.admin-panel h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.admin-form {
  display: grid;
  gap: 13px;
}

.admin-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.admin-checks label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  margin-bottom: 14px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.admin-thumb {
  width: 76px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
}

.toast {
  min-height: 24px;
  color: #0b5a2c;
  font-weight: 1000;
}

@media (max-width: 1040px) {
  .hero-grid,
  .page-hero-grid,
  .split-grid,
  .contact-grid,
  .content-grid-2,
  .section-head,
  .cta-banner,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    justify-self: start;
  }

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

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

@media (max-width: 860px) {
  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    position: absolute;
    inset: 74px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
    padding: 10px;
  }

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

  .nav a {
    padding: 13px 14px;
  }

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

  .dialog-content {
    padding: 0;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 86px;
  }

  .container,
  .admin-shell {
    width: min(100% - 24px, var(--max));
  }

  .topbar {
    display: none;
  }

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

  .brand {
    font-size: 0.95rem;
  }

  .brand-mark {
    width: 42px;
    height: 40px;
  }

  .nav {
    inset: 68px 12px auto;
  }

  .nav-actions .btn-primary {
    min-height: 42px;
    padding: 10px 12px;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding: 28px 0 30px;
  }

  .hero h1 {
    font-size: clamp(2.05rem, 10vw, 2.7rem);
    line-height: 1.08;
    max-width: 100%;
  }

  .hero-copy {
    font-size: 0.98rem;
    margin-top: 12px;
  }

  .lookup-panel,
  .hero-copy-block {
    min-width: 0;
  }

  .hero-actions,
  .page-actions,
  .split-actions,
  .section-actions,
  .admin-actions,
  .admin-top {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .hero-metrics {
    display: none;
  }

  .lookup-panel {
    margin-top: 4px;
  }

  .lookup-media {
    display: none;
  }

  .lookup-form {
    padding: 16px;
  }

  .lookup-form h2 {
    font-size: 1.32rem;
  }

  .hero-actions .btn,
  .page-actions .btn,
  .split-actions .btn,
  .section-actions .btn,
  .admin-actions .btn {
    width: 100%;
  }

  .trust-grid,
  .path-grid,
  .products-grid,
  .product-meta,
  .stats-grid,
  .steps-grid,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .trust-band {
    padding: 10px 0;
  }

  .trust-item {
    padding: 11px;
  }

  .trust-item span {
    font-size: 0.88rem;
  }

  .quick-paths {
    display: none;
  }

  .path-card {
    min-height: auto;
  }

  .filter-row {
    flex-wrap: nowrap;
    margin-inline: -14px;
    overflow-x: auto;
    padding-inline: 14px;
  }

  .filter-btn {
    flex: 0 0 auto;
  }

  .card-actions,
  .dialog-actions,
  .admin-toolbar {
    grid-template-columns: 1fr;
  }

  .map-box,
  .map-box iframe {
    min-height: 300px;
  }

  .footer-grid,
  .quick-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-dialog {
    width: 100%;
    max-height: 100dvh;
    border-radius: 0;
  }

  .dialog-card {
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    padding: 14px;
  }

  .float-actions {
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: grid;
    grid-template-columns: 1.2fr 0.85fr 0.95fr;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 254, 250, 0.96);
    box-shadow: 0 12px 34px rgba(24, 21, 18, 0.18);
    padding: 8px;
    backdrop-filter: blur(12px);
  }

  .float-actions a {
    width: auto;
    min-width: 0;
    height: 48px;
    border-radius: 10px;
    font-size: 0.85rem;
  }

  .float-call,
  .float-contact {
    display: grid !important;
  }

  .float-actions a:only-child {
    grid-column: 1 / -1;
  }

  .float-inst {
    background: var(--red);
  }
}

/* Layout polish pass: keeps the storefront centered and visually consistent. */
.container {
  width: min(1120px, calc(100% - 40px));
}

.site-header .container,
.topbar .container {
  max-width: 1180px;
}

.hero {
  padding: clamp(46px, 7vw, 86px) 0;
}

.hero-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 410px);
  gap: clamp(28px, 5vw, 64px);
  justify-content: center;
}

.hero-copy-block {
  width: 100%;
  max-width: 690px;
}

.lookup-panel {
  width: 100%;
  max-width: 410px;
  justify-self: center;
}

.hero-actions,
.split-actions,
.section-actions,
.card-actions,
.dialog-actions {
  align-items: center;
}

.section-head {
  grid-template-columns: 1fr;
  justify-items: center;
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.section-copy,
.page-hero-copy,
.split-copy p,
.info-card p {
  margin-inline: auto;
}

.section-title,
.split-copy h2,
.page-hero h1 {
  text-wrap: balance;
}

.trust-grid,
.path-grid,
.products-grid,
.steps-grid,
.stats-grid,
.showcase-grid {
  align-items: stretch;
}

.trust-item,
.path-card,
.product-card,
.feature-item,
.info-card,
.showcase-card,
.quote-form,
.contact-card {
  height: 100%;
}

.trust-item {
  align-content: center;
  text-align: center;
}

.path-grid {
  max-width: 1040px;
  margin-inline: auto;
}

.path-card {
  justify-items: start;
}

.products-grid {
  max-width: 1120px;
  margin-inline: auto;
}

.products-grid[data-catalog-scope="all"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  background: #fff;
}

.product-body {
  gap: 10px;
}

.product-body p {
  margin-top: 0;
}

.product-tags {
  margin: 4px 0 2px;
}

.product-meta {
  margin-top: auto;
}

.card-actions {
  margin-top: 4px;
}

.split-grid,
.contact-grid,
.content-grid-2,
.page-hero-grid {
  max-width: 1120px;
  margin-inline: auto;
}

.split-grid,
.content-grid-2 {
  align-items: center;
}

.split-copy {
  max-width: 600px;
}

.split-copy .check-list {
  max-width: 560px;
}

.feature-stack {
  width: 100%;
  max-width: 520px;
  justify-self: center;
}

.quote-form {
  width: 100%;
  max-width: 470px;
  justify-self: center;
}

.contact-grid {
  grid-template-columns: minmax(320px, 0.8fr) minmax(360px, 1fr);
  align-items: stretch;
}

.contact-card,
.map-box {
  min-height: 100%;
}

.site-footer .footer-grid {
  align-items: flex-start;
}

@media (max-width: 1040px) {
  .container {
    width: min(100% - 32px, 920px);
  }

  .hero-grid,
  .split-grid,
  .contact-grid,
  .content-grid-2,
  .page-hero-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .hero-copy-block,
  .split-copy {
    max-width: 760px;
  }

  .products-grid[data-catalog-scope="all"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .hero {
    text-align: center;
  }

  .hero-grid {
    gap: 20px;
  }

  .hero-copy-block,
  .lookup-panel,
  .split-copy,
  .quote-form,
  .feature-stack {
    max-width: 100%;
  }

  .hero-actions,
  .section-actions,
  .split-actions,
  .page-actions {
    width: 100%;
  }

  .trust-item,
  .path-card,
  .feature-item,
  .info-card,
  .showcase-card {
    text-align: left;
  }

  .products-grid[data-catalog-scope="all"],
  .products-grid[data-catalog-scope="featured"] {
    grid-template-columns: 1fr;
  }

  .section-head {
    text-align: center;
  }

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

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