:root {
  --teal: #08798d;
  --teal-dark: #075b6c;
  --teal-soft: #e7f4f6;
  --ink: #10242c;
  --muted: #5f7078;
  --line: #d8e6e8;
  --paper: #ffffff;
  --soft: #f5fafb;
  --warm: #d8973c;
  --warm-soft: #fff4e2;
  --danger: #be3f38;
  --shadow: 0 18px 45px rgba(11, 48, 56, 0.12);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fbfdfd;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 62px;
  padding: 10px clamp(18px, 4vw, 58px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(216, 230, 232, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--teal-dark);
  font-weight: 950;
  font-size: 1rem;
  text-decoration: none;
}

.brand-text {
  padding: 6px 0;
}

.brand-text strong {
  font-size: 1.2rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.brand img {
  width: 118px;
  height: 42px;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a,
.nav-admin {
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 7px;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
}

.site-nav a:hover,
.nav-admin:hover {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

main {
  overflow: hidden;
}

.hero {
  min-height: calc(100vh - 62px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  align-items: stretch;
  background: #0b2e37;
  color: #fff;
}

.hero-photo {
  position: relative;
  min-height: 620px;
  background:
    linear-gradient(90deg, rgba(5, 35, 43, 0.12), rgba(5, 35, 43, 0.66)),
    url("assets/foto-calha-chuva.jpg") center / cover no-repeat;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 620px;
  padding: clamp(30px, 6vw, 82px);
  background: #087f99;
}

.hero-brand {
  display: flex;
  align-items: center;
  width: min(660px, 100%);
  min-height: 172px;
  margin-bottom: 26px;
  overflow: hidden;
  border-radius: 8px;
  background: #087f99;
}

.hero-brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 53%;
  display: block;
}

.eyebrow {
  display: inline-flex;
  color: var(--warm);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 9px;
}

.hero h1 {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 5.1vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p {
  max-width: 620px;
  margin: 0;
  color: #e5f5f8;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
}

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

.link-button {
  text-decoration: none;
}

.primary,
.secondary,
.ghost,
.danger,
.nav-admin,
.admin-tab,
.admin-logout {
  border: 0;
  border-radius: 7px;
  min-height: 44px;
  padding: 10px 15px;
  font-weight: 950;
}

.primary {
  background: var(--teal);
  color: #fff;
}

.primary:hover {
  background: var(--teal-dark);
}

.secondary {
  background: var(--ink);
  color: #fff;
}

.ghost {
  background: var(--soft);
  color: var(--ink);
  border: 1px solid var(--line);
}

.danger {
  background: #ffe8e6;
  color: var(--danger);
}

.proof-bar,
.section-block,
.gallery-section,
.contact-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.proof-bar {
  transform: translateY(-34px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--line);
}

.proof-bar article {
  display: grid;
  gap: 5px;
  padding: 22px;
  background: #fff;
}

.proof-bar strong {
  font-size: 1.05rem;
}

.proof-bar span,
p {
  color: var(--muted);
}

.section-block,
.gallery-section,
.contact-section {
  padding: 56px 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 24px;
  text-align: center;
}

.section-heading h2,
.contact-section h2,
.admin-heading h2,
.login-card h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 3.1rem);
  line-height: 1.02;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.service-widget {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
}

.service-menu {
  display: grid;
  gap: 10px;
  align-content: start;
}

.service-option {
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
  text-align: left;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(11, 48, 56, 0.06);
}

.service-option:hover,
.service-option.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.service-feature {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.service-feature-image {
  min-height: 440px;
  background: var(--soft);
}

.service-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-feature-image img.contain {
  object-fit: contain;
  padding: 28px;
  background: linear-gradient(135deg, #f8f5ee, #d8d2c4);
}

.service-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: clamp(22px, 4vw, 42px);
}

.service-feature-copy h3 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 1;
}

.service-feature-copy p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tags span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  padding: 7px 10px;
  font-size: 0.82rem;
  font-weight: 950;
}

.service-grid article,
.gallery-card,
.contact-section,
.login-card,
.admin-shell,
.panel,
.metric-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.service-grid article {
  min-height: 230px;
  padding: 22px;
}

.service-grid span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 950;
}

.service-grid h3,
.gallery-card h3,
.panel h3,
.soft-panel h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.service-grid p,
.gallery-card p,
.contact-section p,
.login-card p,
.soft-panel p {
  margin-bottom: 0;
  line-height: 1.55;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 14px;
}

.gallery-card {
  overflow: hidden;
  display: grid;
  align-content: start;
}

.gallery-card.large {
  grid-row: span 2;
}

.gallery-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  display: block;
}

.gallery-card.large img {
  height: 530px;
}

.gallery-card div {
  padding: 20px;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  margin-bottom: 18px;
}

.whatsapp-card {
  min-width: 250px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 2px 12px;
  align-items: center;
  padding: 14px;
  border-radius: 8px;
  background: #e9fbf1;
  color: #075c35;
  text-decoration: none;
  font-weight: 950;
}

.whatsapp-card small {
  grid-column: 2;
  color: #286947;
  font-weight: 800;
}

.wa-icon,
.floating-whatsapp span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #1fb769;
  color: #fff;
  font-weight: 950;
}

.wa-icon {
  grid-row: span 2;
  width: 48px;
  height: 48px;
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  text-decoration: none;
}

.floating-whatsapp span {
  width: 58px;
  height: 58px;
  box-shadow: 0 14px 36px rgba(31, 183, 105, 0.36);
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 54px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(150px, 0.8fr));
  gap: 24px;
  align-items: start;
}

.footer-grid > div {
  display: grid;
  gap: 8px;
}

.footer-grid strong {
  color: #fff4dc;
}

.footer-brand-img {
  width: 190px;
  max-width: 100%;
  height: 86px;
  object-fit: contain;
  object-position: left center;
  display: block;
  margin-bottom: 8px;
}

.footer-grid p,
.footer-grid span {
  margin: 0;
  color: #d8ccb5;
  line-height: 1.45;
}

.site-footer a {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #52636b;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 750;
}

.site-footer a:hover {
  color: var(--teal-dark);
}

.footer-admin {
  width: fit-content;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgba(216, 154, 43, 0.34);
  border-radius: 7px;
  background: #101010;
  color: #fff4dc;
  font-weight: 850;
}

.footer-credit {
  margin-top: 22px;
}

.footer-logo,
.footer-logo-img {
  width: 34px;
  height: 34px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #c82018;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(200, 32, 24, 0.18);
}

.footer-logo-img {
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(200, 32, 24, 0.18);
}

.admin-access {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100%;
  min-height: 100vh;
  overflow: auto;
  padding: clamp(16px, 4vw, 38px);
  background: rgba(11, 35, 43, 0.74);
  backdrop-filter: blur(10px);
}

.admin-access.is-open {
  display: block;
}

.admin-close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 105;
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  padding: 9px 13px;
  background: #fff;
  color: var(--ink);
  font-weight: 950;
  box-shadow: var(--shadow);
}

.login-card {
  width: min(1120px, 100%);
  margin: 42px auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.6fr);
  gap: 24px;
  align-items: center;
  padding: clamp(20px, 4vw, 36px);
}

.login-form {
  display: grid;
  gap: 12px;
}

.form-status {
  min-height: 22px;
  color: var(--danger);
  font-weight: 850;
}

.admin-shell {
  width: min(1260px, 100%);
  margin: 42px auto;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 680px;
  overflow: hidden;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 18px;
  background: #070707;
  color: #fff;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-brand img {
  width: 86px;
  height: 46px;
  object-fit: contain;
  object-position: left center;
  background: #050505;
  border: 1px solid rgba(216, 154, 43, 0.38);
  border-radius: 7px;
}

.admin-brand strong,
.admin-brand span {
  display: block;
}

.admin-brand span {
  color: #c7b99b;
  font-size: 0.9rem;
}

.admin-nav-group {
  display: grid;
  gap: 8px;
}

.admin-tab,
.admin-logout {
  width: 100%;
  text-align: left;
  background: #101010;
  color: #f7f0df;
  border: 1px solid rgba(216, 154, 43, 0.16);
}

.admin-tab.active,
.admin-tab:hover {
  background: linear-gradient(135deg, rgba(216, 154, 43, 0.28), rgba(216, 154, 43, 0.1));
  border-color: rgba(216, 154, 43, 0.58);
  color: #f4c35d;
}

.admin-logout {
  margin-top: auto;
  color: #f7f0df;
}

.admin-main {
  padding: 22px;
  background: #f5fafb;
}

.admin-page {
  display: none;
}

.admin-page.active {
  display: grid;
  gap: 16px;
}

.admin-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.doc-number-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-weight: 850;
}

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

.metric-grid article {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.metric-grid span {
  color: var(--muted);
  font-weight: 850;
}

.metric-grid strong {
  font-size: 1.9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 14px;
}

.form-grid > .panel:not(.summary-panel) {
  grid-column: 1;
}

.summary-panel {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: start;
  position: sticky;
  top: 92px;
}

.panel {
  padding: 18px;
}

.panel-subtitle {
  margin: 16px 0 10px;
  color: var(--muted);
  font-weight: 950;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.panel-title,
.actions,
.totals div,
.saved-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-title {
  margin-bottom: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--warm-soft);
  color: #87591f;
  font-size: 0.82rem;
  font-weight: 950;
}

.pill.success {
  background: #e6fbef;
  color: #08763d;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 12px;
}

.field-grid.two {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.item-entry label:nth-child(2) {
  grid-column: span 2;
}

label {
  display: grid;
  gap: 7px;
  color: #4f636b;
  font-size: 0.9rem;
  font-weight: 850;
}

.quote-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.quote-category-card {
  min-height: 132px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px solid rgba(216, 154, 43, 0.3);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.quote-category-card:hover,
.quote-category-card.active,
.quote-category-card.selected {
  transform: translateY(-1px);
  border-color: #d89a2b;
  background: #fff8ea;
}

.quote-category-card.selected {
  box-shadow: inset 0 0 0 2px rgba(216, 154, 43, 0.28);
}

.quote-icon,
.service-line-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: #fff;
  border: 0;
}

.quote-icon {
  width: 72px;
  height: 72px;
  padding: 4px;
}

.quote-icon img,
.quote-icon svg,
.service-line-icon img,
.service-line-icon svg {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

.quote-category-card.active .quote-icon,
.quote-category-card.selected .quote-icon {
  background: rgba(255, 255, 255, 0.92);
}

.quote-category-card strong,
.quote-option-card span {
  font-weight: 950;
}

.quote-category-card small,
.quote-option-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.quote-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.quote-option-card {
  min-height: 92px;
  display: grid;
  gap: 6px;
  align-content: center;
  border: 1px solid rgba(216, 154, 43, 0.3);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 13px;
  text-align: left;
}

.quote-option-card strong {
  color: #b91018;
  font-size: 1.05rem;
}

.quote-option-card:hover,
.quote-option-card.selected,
.quote-cut-card:hover,
.quote-cut-card.selected {
  border-color: #d89a2b;
  background: linear-gradient(135deg, #f8c955, #d8931b);
  color: #111;
}

.quote-option-card:hover strong,
.quote-option-card.selected strong,
.quote-option-card:hover small,
.quote-option-card.selected small {
  color: #111;
}

.quote-cut-card {
  min-height: 42px;
  border: 1px solid rgba(216, 154, 43, 0.3);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 950;
}

.discount-box {
  display: grid;
  gap: 8px;
}

.discount-actions {
  display: grid;
  grid-template-columns: 70px minmax(70px, 1fr) auto;
  gap: 8px;
}

.inline-edit {
  width: 90px;
  min-height: 34px;
  border: 1px solid rgba(216, 154, 43, 0.35);
  border-radius: 7px;
  background: #fffdf8;
  color: var(--ink);
  padding: 7px 8px;
  font: inherit;
  font-weight: 850;
}

.inline-edit.wide {
  width: min(320px, 100%);
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c2d6da;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 121, 141, 0.13);
}

.right {
  justify-content: flex-end;
  margin-top: 14px;
}

.stack {
  display: grid;
  gap: 10px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

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

th {
  color: #52636b;
  font-size: 0.8rem;
  background: var(--soft);
  text-transform: uppercase;
}

td strong {
  display: block;
}

td small {
  color: var(--muted);
}

.small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.85rem;
}

.empty {
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

.totals {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.totals div {
  padding: 11px 12px;
  border-radius: 7px;
  background: var(--soft);
}

.totals span {
  color: #52636b;
  font-weight: 850;
}

.totals .grand {
  background: var(--ink);
  color: #fff;
}

.totals .grand span {
  color: #d6e6e8;
}

.saved-list {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
}

.saved-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.saved-item strong,
.saved-item small {
  display: block;
}

.saved-item small {
  color: var(--muted);
}

@media (max-width: 1100px) {
  .hero,
  .gallery-grid,
  .service-widget,
  .service-feature,
  .admin-shell,
  .form-grid,
  .login-card {
    grid-template-columns: 1fr;
  }

  .hero-photo,
  .hero-content {
    min-height: 460px;
  }

  .service-grid,
  .proof-bar,
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .summary-panel,
  .form-grid > .panel:not(.summary-panel) {
    grid-column: auto;
    grid-row: auto;
    position: static;
  }

  .admin-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .admin-brand {
    width: 100%;
  }

  .admin-tab,
  .admin-logout {
    width: auto;
  }
}

@media (max-width: 720px) {
  .site-header,
  .contact-section,
  .admin-heading {
    align-items: stretch;
    flex-direction: column;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-photo {
    min-height: 320px;
  }

  .hero-content {
    min-height: auto;
    padding: 30px 18px 46px;
  }

  .hero-brand {
    width: 100%;
    min-height: 132px;
    margin-bottom: 22px;
  }

  .proof-bar,
  .service-grid,
  .metric-grid,
  .field-grid,
  .field-grid.two {
    grid-template-columns: 1fr;
  }

  .proof-bar {
    transform: none;
    margin-top: 16px;
  }

  .gallery-card.large img,
  .gallery-card img {
    height: 300px;
  }

  .whatsapp-card {
    min-width: 0;
  }

  .admin-main {
    padding: 14px;
  }

  .item-entry label:nth-child(2) {
    grid-column: auto;
  }

  .actions {
    flex-direction: column;
  }

  .actions button,
  .stack button {
    width: 100%;
  }
}

@media print {
  .site-header,
  main,
  .floating-whatsapp {
    display: none;
  }
}

/* Ideal Calhas - identidade preta e dourada */
:root {
  --teal: #d89a2b;
  --teal-dark: #f2b84b;
  --teal-soft: rgba(216, 154, 43, 0.13);
  --ink: #f7f0df;
  --muted: #c7b99b;
  --line: rgba(216, 154, 43, 0.34);
  --paper: #101010;
  --soft: #090909;
  --warm: #f2b84b;
  --warm-soft: rgba(242, 184, 75, 0.13);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
}

body {
  background: #050505;
}

.site-header {
  background: rgba(5, 5, 5, 0.9);
  border-bottom-color: rgba(216, 154, 43, 0.28);
}

.brand {
  color: #f2b84b;
}

.site-nav a,
.nav-admin {
  color: #f7f0df;
}

.site-nav a:hover,
.nav-admin:hover {
  background: rgba(216, 154, 43, 0.16);
  color: #f2b84b;
}

.hero {
  display: flex;
  align-items: flex-end;
  min-height: calc(100vh - 62px);
  padding: clamp(24px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.42) 45%, rgba(0, 0, 0, 0.04) 100%),
    url("assets/web/ideal-calhas-banner.webp") calc(50% + 150px) 55% / 112% auto no-repeat;
  border-bottom: 1px solid rgba(216, 154, 43, 0.35);
}

.hero-photo,
.hero-brand {
  display: none;
}

.hero-content {
  width: min(720px, 100%);
  min-height: 610px;
  justify-content: flex-end;
  padding: 0;
  background: transparent;
}

.hero h1 {
  color: #fff;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.82);
}

.hero p {
  color: #f4ead4;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.72);
}

.primary {
  background: linear-gradient(135deg, #f4c35d, #c78118);
  color: #111;
  box-shadow: 0 12px 28px rgba(216, 154, 43, 0.28);
}

.primary:hover {
  filter: brightness(1.08);
}

.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.ghost {
  background: #181818;
  color: #f7f0df;
  border-color: var(--line);
}

.proof-bar,
.service-grid article,
.gallery-card,
.contact-section,
.login-card,
.admin-shell,
.panel,
.metric-grid article,
.service-feature {
  border-color: var(--line);
  background: #101010;
  box-shadow: var(--shadow);
}

.proof-bar {
  background: rgba(216, 154, 43, 0.34);
}

.proof-bar article,
.saved-item,
.totals div {
  background: #101010;
}

.service-option {
  background: #101010;
  color: #f7f0df;
  border-color: var(--line);
}

.service-option:hover,
.service-option.active {
  border-color: #f2b84b;
  background: linear-gradient(135deg, #f4c35d, #c78118);
  color: #111;
}

.service-feature-image {
  background: #050505;
}

.service-tags span,
.service-grid span {
  background: rgba(216, 154, 43, 0.14);
  color: #f2b84b;
}

.quote-category-card,
.quote-option-card,
.quote-cut-card {
  background: #151515;
  color: #f7f0df;
  border-color: rgba(216, 154, 43, 0.28);
}

.quote-category-card:hover,
.quote-category-card.active,
.quote-category-card.selected,
.quote-option-card:hover,
.quote-option-card.selected,
.quote-cut-card:hover,
.quote-cut-card.selected {
  background: linear-gradient(135deg, #f4c35d, #c78118);
  color: #111;
}

.quote-icon,
.service-line-icon {
  color: currentColor;
}

.quote-option-card strong {
  color: #f2b84b;
}

.quote-option-card:hover strong,
.quote-option-card.selected strong {
  color: #111;
}

.quote-category-card small,
.quote-option-card small {
  color: #c8baa2;
}

.quote-category-card:hover small,
.quote-category-card.active small,
.quote-category-card.selected small,
.quote-option-card:hover small,
.quote-option-card.selected small {
  color: #211403;
}

.inline-edit {
  background: #fffaf0;
  border-color: rgba(216, 154, 43, 0.45);
}

.contact-section {
  background:
    radial-gradient(circle at 90% 10%, rgba(216, 154, 43, 0.18), transparent 34%),
    #101010;
}

.whatsapp-card {
  background: #111;
  color: #fff;
  border: 1px solid rgba(37, 211, 102, 0.36);
}

.whatsapp-card small {
  color: #c7f5d8;
}

.wa-icon-img {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  display: block;
  border-radius: 999px;
}

.floating-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: #101010;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(37, 211, 102, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
}

.floating-whatsapp img {
  width: 42px;
  height: 42px;
  display: block;
}

.floating-whatsapp span {
  width: auto;
  height: auto;
  background: transparent;
  color: #fff;
  border-radius: 0;
  box-shadow: none;
  font-size: 0.9rem;
  font-weight: 950;
}

.site-footer a {
  color: #c7b99b;
}

.site-footer a:hover {
  color: #f2b84b;
}

.admin-access {
  background: rgba(0, 0, 0, 0.78);
}

.admin-sidebar {
  background: #080808;
}

.admin-main {
  background: #0b0b0b;
}

input,
select,
textarea {
  border-color: rgba(216, 154, 43, 0.34);
  background: #080808;
  color: #fff;
}

.choice-grid,
.cut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.cut-grid {
  margin-top: 14px;
}

.choice-grid label,
.cut-grid label {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid rgba(216, 154, 43, 0.28);
  border-radius: 7px;
  background: #080808;
  color: #f7f0df;
}

.choice-grid input,
.cut-grid input {
  width: 18px;
  min-height: 18px;
  accent-color: #d89a2b;
}

.totals .grand {
  background: linear-gradient(135deg, #f4c35d, #c78118);
  color: #111;
}

@media (max-width: 720px) {
  .hero {
    min-height: 620px;
    background-position: calc(50% + 70px) 54%;
    background-size: auto 108%;
  }

  .hero-content {
    min-height: 520px;
  }

  .floating-whatsapp span {
    display: none;
  }
}

body.admin-mode {
  overflow: hidden;
}

body.admin-mode .site-header,
body.admin-mode .site-footer,
body.admin-mode .floating-whatsapp {
  display: none;
}

.hero {
  justify-content: center;
  align-items: center;
  padding: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.02) 42%, rgba(0, 0, 0, 0) 100%),
    url("assets/web/ideal-calhas-banner.webp") calc(50% + 230px) 50% / cover no-repeat;
}

.hero-content {
  display: none;
}

.admin-access {
  padding: 0;
  background: #050505;
  backdrop-filter: none;
}

.admin-close {
  top: auto;
  bottom: 18px;
  right: auto;
  left: 18px;
  background: #f4c35d;
  color: #111;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.36);
}

.admin-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  border: 0;
  border-radius: 0;
  grid-template-columns: 282px minmax(0, 1fr);
  box-shadow: none;
}

.admin-sidebar {
  padding: 24px 18px;
  padding-bottom: 90px;
  border-right: 1px solid rgba(216, 154, 43, 0.28);
}

.admin-main {
  height: 100vh;
  overflow: auto;
  padding: 28px;
  background:
    radial-gradient(circle at 80% 0%, rgba(216, 154, 43, 0.11), transparent 30%),
    #0b0b0b;
}

.admin-page[data-page="orcamentos"].active {
  max-width: 1680px;
  margin: 0 auto;
}

.quote-system-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.quote-system-bar h2 {
  margin: 4px 0 0;
  color: #fffaf0;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.quote-system-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.digital-quote-sheet {
  overflow: hidden;
  border: 1px solid rgba(216, 154, 43, 0.62);
  border-radius: 6px;
  background: #fff;
  color: #111;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.quote-sheet-header {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(260px, 0.72fr) minmax(270px, 0.55fr);
  min-height: 188px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.84) 45%, rgba(0, 0, 0, 0.38)),
    url("assets/web/ideal-calhas-banner.webp") right center / auto 150% no-repeat;
  color: #fff;
  border-bottom: 4px solid #d89a2b;
}

.sheet-logo {
  min-height: 188px;
  display: flex;
  align-items: center;
  padding: 22px 34px;
}

.sheet-logo img {
  width: min(500px, 100%);
  max-height: 150px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(1.2) contrast(1.08) saturate(1.08);
}

.sheet-contact {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px 24px;
  border-left: 1px solid rgba(216, 154, 43, 0.72);
  color: #f8f1df;
}

.sheet-contact strong {
  color: #f4c35d;
  font-size: 1.25rem;
}

.sheet-number {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  padding: 18px;
}

.sheet-number span {
  color: #fff;
  max-width: 100%;
  font-size: clamp(1.25rem, 2.2vw, 1.78rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.sheet-number strong {
  width: min(210px, 100%);
  padding: 12px 18px;
  border: 1px solid #d89a2b;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.72);
  color: #fffaf0;
  text-align: center;
  font-size: 1.25rem;
}

.sheet-number b {
  color: #f4c35d;
}

.sheet-motto {
  padding: 10px 32px;
  background: #090909;
  color: #f4c35d;
  font-size: 0.9rem;
  font-weight: 950;
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quote-client-area,
.quote-condition-fields,
.config-field-grid,
.saved-search-grid {
  display: grid;
  gap: 12px;
}

.quote-client-area {
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  padding: 24px 28px 14px;
}

.digital-quote-sheet label {
  color: #111;
}

.digital-quote-sheet input,
.digital-quote-sheet select,
.digital-quote-sheet textarea {
  background: #fff;
  color: #111;
  border-color: rgba(216, 154, 43, 0.58);
}

.quote-service-area,
.quote-configurator,
.quote-items-area,
.quote-finance-area {
  margin: 14px 28px;
}

.sheet-section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 12px;
  color: #111;
}

.sheet-section-title span {
  color: #c47b0b;
  font-weight: 950;
  text-transform: uppercase;
}

.sheet-section-title strong {
  color: #4f4f4f;
}

.quote-category-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(118px, 1fr));
  gap: 0;
  border: 1px solid rgba(216, 154, 43, 0.46);
  border-radius: 10px;
  overflow: hidden;
}

.quote-category-card {
  min-height: 122px;
  border: 0;
  border-right: 1px solid rgba(216, 154, 43, 0.42);
  border-radius: 0;
  background: #fff;
  color: #111;
  box-shadow: none;
}

.quote-category-card:last-child {
  border-right: 0;
}

.quote-category-card.active,
.quote-category-card:hover {
  background: linear-gradient(135deg, #fff7df 0%, #f4c35d 54%, #be790e 100%);
  color: #111;
}

.quote-category-card.selected:not(.active) {
  background: #fff8e7;
  box-shadow: inset 0 -4px 0 #d89a2b;
}

.quote-config-hint {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(216, 154, 43, 0.34);
  border-radius: 8px;
  background: #fffaf1;
  color: #5c4531;
  font-size: 0.93rem;
  font-weight: 800;
}

.quote-configurator {
  padding: 22px;
  border: 1px solid rgba(216, 154, 43, 0.62);
  border-radius: 10px;
  background:
    linear-gradient(180deg, #fffaf0 0%, #ffffff 74%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75), 0 16px 38px rgba(216, 154, 43, 0.11);
}

.quote-configurator .panel-title h3 {
  color: #111;
}

.config-product-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.5fr) minmax(260px, 1fr);
  gap: 14px;
  align-items: end;
  margin-bottom: 14px;
}

.config-helper {
  min-height: 68px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(216, 154, 43, 0.35);
  border-radius: 8px;
  background: #111;
  color: #f8f1df;
}

.configurator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.32fr);
  gap: 18px;
  align-items: stretch;
}

.config-form-column {
  min-width: 0;
}

.config-summary-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 16px;
  border: 1px solid rgba(216, 154, 43, 0.54);
  border-radius: 10px;
  background: #101010;
  color: #fffaf0;
}

.config-summary-card h4 {
  margin: 0;
  color: #f4c35d;
  font-size: 1.18rem;
}

.config-summary-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.config-summary-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(244, 195, 93, 0.18);
  padding-bottom: 7px;
}

.config-summary-card dt,
.config-summary-card dd {
  margin: 0;
}

.config-summary-card dt {
  color: #c9c0ad;
  font-weight: 800;
}

.config-summary-card dd {
  color: #fff;
  font-weight: 950;
  text-align: right;
}

.config-helper strong {
  color: #f4c35d;
}

.config-field-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.config-field-grid .wide {
  grid-column: span 2;
}

.config-total-preview {
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f4c35d, #be790e);
  color: #111;
  font-size: 1.1rem;
  font-weight: 950;
  text-align: right;
}

.summary-actions {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.quote-items-area {
  padding: 0;
  border: 1px solid rgba(216, 154, 43, 0.45);
  border-radius: 9px;
  background: #fff;
}

.quote-items-area .panel-title {
  padding: 16px 18px 0;
}

.quote-items-area h3 {
  color: #111;
}

.quote-items-area table {
  min-width: 1100px;
}

.quote-items-area th {
  background: #090909;
  color: #f4c35d;
}

.row-actions,
.saved-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quote-finance-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.38fr);
  gap: 16px;
}

.quote-notes-box,
.quote-total-box {
  padding: 18px;
  border: 1px solid rgba(216, 154, 43, 0.48);
  border-radius: 9px;
  background: #fff;
}

.quote-notes-box h3,
.quote-total-box h3 {
  margin: 0 0 14px;
  color: #111;
}

.condition-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.condition-chip-grid label {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(216, 154, 43, 0.35);
  border-radius: 8px;
  background: #fffaf1;
  font-size: 0.86rem;
}

.condition-chip-grid input {
  width: 18px;
  min-height: 18px;
  accent-color: #d89a2b;
}

.quote-condition-fields {
  grid-template-columns: repeat(2, minmax(170px, 1fr));
  margin-bottom: 12px;
}

.quote-total-box {
  align-self: start;
}

.quote-total-box .totals div {
  background: #fff8e8;
  color: #111;
  border: 1px solid rgba(216, 154, 43, 0.35);
}

.quote-total-box .totals .grand {
  background: linear-gradient(135deg, #f4c35d, #c78118);
  color: #111;
}

.quote-sheet-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(280px, 0.85fr);
  gap: 18px;
  padding: 22px 28px;
  background: #090909;
  color: #fffaf0;
  border-top: 4px solid #d89a2b;
}

.quote-sheet-footer div {
  display: grid;
  gap: 4px;
}

.quote-sheet-footer strong {
  color: #f4c35d;
  text-transform: uppercase;
}

.quote-actions-footer {
  grid-template-columns: 1fr;
}

.saved-search-grid {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  margin-bottom: 14px;
}

@media (max-width: 1180px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 4;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .admin-brand {
    width: 100%;
    margin-bottom: 6px;
  }

  .admin-tab,
  .admin-logout {
    width: auto;
  }

  .admin-main {
    height: calc(100vh - 156px);
  }

  .quote-sheet-header,
  .quote-finance-area,
  .quote-sheet-footer {
    grid-template-columns: 1fr;
  }

  .quote-category-grid {
    grid-template-columns: repeat(4, minmax(130px, 1fr));
    border-radius: 8px;
    gap: 8px;
    overflow: visible;
  }

  .quote-client-area,
  .config-field-grid,
  .configurator-layout {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .config-summary-card {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 560px;
    background-position: center;
    background-size: auto 100%;
  }

  .admin-main {
    height: auto;
    min-height: 100vh;
    padding: 16px;
  }

  .admin-access {
    position: absolute;
  }

  .quote-system-bar,
  .quote-system-actions,
  .sheet-section-title,
  .config-product-row,
  .saved-search-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .digital-quote-sheet {
    border-radius: 8px;
  }

  .quote-sheet-header {
    min-height: 0;
  }

  .sheet-logo {
    min-height: 110px;
    padding: 16px;
  }

  .sheet-contact,
  .sheet-number {
    padding: 16px;
  }

  .quote-client-area,
  .config-field-grid,
  .condition-chip-grid,
  .quote-condition-fields {
    grid-template-columns: 1fr;
  }

  .quote-service-area,
  .quote-configurator,
  .quote-items-area,
  .quote-finance-area {
    margin: 12px;
  }

  .quote-category-grid {
    display: flex;
    overflow-x: auto;
  }

  .quote-category-card {
    min-width: 132px;
    border-right: 1px solid rgba(216, 154, 43, 0.42);
    border-radius: 8px;
  }

  .configurator-layout,
  .config-field-grid {
    grid-template-columns: 1fr;
  }

  .config-field-grid .wide,
  .config-summary-card {
    grid-column: auto;
  }
}

/* Correção final Ideal Calhas: site público, admin e recibos */
body {
  overflow-x: hidden;
  background: #050505;
  color: #fff7e8;
}

body:not(.admin-mode) main {
  overflow: visible;
}

.site-header {
  min-height: 66px;
  background: rgba(5, 5, 5, 0.94);
  border-bottom: 1px solid rgba(216, 154, 43, 0.38);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
}

.brand {
  color: #f4c35d;
  gap: 12px;
}

.brand img {
  width: 142px;
  height: 46px;
  object-fit: contain;
}

.site-nav {
  gap: 10px;
}

.site-nav a,
.nav-admin {
  color: #fff7e8;
}

.site-nav .nav-cta {
  background: linear-gradient(135deg, #f4c35d, #b87912);
  color: #0b0b0b;
  border-color: rgba(244, 195, 93, 0.75);
}

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

.hero-carousel {
  position: relative;
  min-height: min(720px, calc(100vh - 66px));
  height: min(720px, calc(100vh - 66px));
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.12)),
    url("assets/web/ideal-calhas-banner.webp") center center / cover no-repeat;
  border-bottom: 1px solid rgba(216, 154, 43, 0.45);
}

.hero-track,
.hero-slide,
.hero-arrow,
.hero-indicators,
.hero-progress {
  display: none !important;
}

.proof-bar {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 34px));
  margin: -54px auto 68px;
  transform: none;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(216, 154, 43, 0.46);
  background: rgba(216, 154, 43, 0.32);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.proof-bar article {
  min-height: 116px;
  background: rgba(15, 15, 15, 0.96);
  color: #fff7e8;
}

.proof-bar strong {
  color: #fff7e8;
}

.proof-bar span {
  color: #e8d7b7;
}

.section-block,
.gallery-section,
.about-section,
.testimonials-section,
.contact-section,
.site-footer {
  width: min(1180px, calc(100% - 34px));
  margin-left: auto;
  margin-right: auto;
}

.section-block,
.gallery-section,
.about-section,
.testimonials-section {
  padding: 78px 0;
}

.section-heading {
  max-width: 850px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading h2,
.about-copy h2,
.contact-copy h2 {
  color: #fff7e8;
  text-wrap: balance;
}

.section-heading p,
.about-copy p,
.contact-copy p {
  color: #d8ccb5;
}

.service-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.service-card {
  min-height: 300px;
  display: grid;
  grid-template-rows: 160px auto auto auto;
  align-content: start;
  gap: 10px;
  padding: 0 0 18px;
  overflow: hidden;
  border: 1px solid rgba(216, 154, 43, 0.35);
  border-radius: 8px;
  background: #101010;
  color: #fff7e8;
  text-align: left;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

.service-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.service-card span,
.service-card strong,
.service-card small {
  margin: 0 18px;
}

.service-card span {
  color: #f4c35d;
  font-weight: 950;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.service-card strong {
  font-size: 1.25rem;
}

.service-card small {
  color: #d8ccb5;
  line-height: 1.45;
}

.service-card:hover,
.service-card.active {
  transform: translateY(-2px);
  border-color: #f4c35d;
  background: #151515;
  color: #fff7e8;
}

.service-widget {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 18px;
}

.service-menu.compact {
  display: none;
}

.service-feature {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1fr);
  min-height: 470px;
  border: 1px solid rgba(216, 154, 43, 0.42);
  background: #101010;
}

.service-feature-image {
  min-height: 470px;
}

.service-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-feature-copy {
  padding: clamp(28px, 5vw, 62px);
}

.service-feature-copy h3 {
  color: #fff7e8;
}

.service-feature-copy p {
  color: #d8ccb5;
}

.gallery-filters,
.center-actions,
.contact-actions,
.receipt-toolbar,
.receipt-client-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.gallery-filters {
  justify-content: center;
  margin-bottom: 24px;
}

.gallery-filters button,
.center-actions button {
  min-height: 40px;
  border: 1px solid rgba(216, 154, 43, 0.35);
  border-radius: 999px;
  background: #101010;
  color: #fff7e8;
  padding: 9px 14px;
  font-weight: 950;
}

.gallery-filters button.active,
.gallery-filters button:hover {
  background: linear-gradient(135deg, #f4c35d, #b87912);
  color: #101010;
}

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

.gallery-card {
  min-height: 420px;
  overflow: hidden;
  border-color: rgba(216, 154, 43, 0.34);
  background: #101010;
}

.gallery-card.large {
  grid-row: span 1;
}

.gallery-card img,
.gallery-card.large img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: #080808;
}

.gallery-card div {
  padding: 18px;
}

.gallery-card span {
  color: #f4c35d;
  font-weight: 950;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.gallery-card h3 {
  color: #fff7e8;
}

.gallery-card p {
  color: #d8ccb5;
}

.gallery-open {
  min-height: 38px;
  border: 1px solid rgba(216, 154, 43, 0.4);
  border-radius: 7px;
  background: #181818;
  color: #fff7e8;
  font-weight: 950;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.72fr);
  gap: 26px;
  align-items: center;
  border-top: 1px solid rgba(216, 154, 43, 0.25);
}

.about-section > img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border: 1px solid rgba(216, 154, 43, 0.4);
  border-radius: 8px;
}

.counter-grid,
.receipt-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.counter-grid article,
.receipt-summary-grid article {
  min-height: 94px;
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(216, 154, 43, 0.34);
  border-radius: 8px;
  background: #101010;
}

.counter-grid strong,
.receipt-summary-grid strong {
  color: #f4c35d;
  font-size: 1.75rem;
}

.counter-grid span,
.receipt-summary-grid span {
  color: #d8ccb5;
}

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

.testimonial-card {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(216, 154, 43, 0.34);
  border-radius: 8px;
  background: #101010;
}

.testimonial-card span {
  color: #f4c35d;
  font-weight: 950;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.testimonial-card strong {
  color: #fff7e8;
  font-size: 1.25rem;
}

.testimonial-card p,
.testimonial-card small {
  color: #d8ccb5;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.55fr);
  gap: 28px;
  align-items: start;
  padding: 30px;
  border: 1px solid rgba(216, 154, 43, 0.42);
  background: radial-gradient(circle at 90% 10%, rgba(216, 154, 43, 0.14), transparent 34%), #101010;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(216, 154, 43, 0.28);
  border-radius: 8px;
}

.contact-list strong {
  color: #f4c35d;
}

.contact-list span {
  color: #d8ccb5;
}

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

.site-footer {
  padding: 34px 0 56px;
  border-top: 1px solid rgba(216, 154, 43, 0.34);
}

.footer-grid {
  grid-template-columns: 1.2fr repeat(3, minmax(140px, 0.7fr));
}

.footer-brand-img {
  width: 220px;
  height: 96px;
  object-fit: contain;
  object-position: left center;
}

.site-footer a {
  color: #d8ccb5;
}

.footer-credit {
  margin-top: 20px;
}

.footer-logo-img {
  width: 34px;
  height: 34px;
}

body.admin-mode main > section:not(.admin-access),
body.admin-mode main > footer,
body.admin-mode main > .lightbox,
body.admin-mode .site-header,
body.admin-mode .site-footer,
body.admin-mode .floating-whatsapp {
  display: none !important;
}

body.admin-mode .admin-access {
  display: block !important;
}

.admin-access {
  background: #050505;
}

.admin-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  border: 0;
  border-radius: 0;
  grid-template-columns: 270px minmax(0, 1fr);
}

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

.admin-brand img {
  width: 84px;
  height: 48px;
}

.admin-nav-group {
  gap: 10px;
}

.admin-tab,
.admin-logout {
  list-style: none;
  text-decoration: none;
}

.admin-tab::before,
.admin-logout::before {
  content: none !important;
}

.admin-main {
  min-width: 0;
  height: 100vh;
  overflow: auto;
  background: #0b0b0b;
}

.admin-page[data-page="recibos"].active {
  gap: 18px;
}

.receipt-heading {
  align-items: flex-start;
}

.receipt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  gap: 18px;
  align-items: start;
}

.receipt-form,
.receipt-preview,
.receipt-history-panel {
  border-color: rgba(216, 154, 43, 0.4);
  background: #101010;
}

.receipt-form .panel-title {
  align-items: flex-start;
}

.receipt-client-actions {
  justify-content: flex-end;
  max-width: 720px;
}

.receipt-client-actions select {
  min-width: 250px;
}

.field-grid.four {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.span-2 {
  grid-column: span 2;
}

.receipt-item-entry {
  display: grid;
  grid-template-columns: 180px minmax(220px, 1fr) 110px 100px 130px auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}

.receipt-total-card,
.validation-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(216, 154, 43, 0.4);
  border-radius: 8px;
  background: linear-gradient(135deg, #111, #1c1c1c);
}

.receipt-total-card span,
.validation-card span {
  color: #f4c35d;
  font-weight: 950;
}

.receipt-total-card strong {
  color: #fff7e8;
  font-size: 2rem;
}

.validation-card img {
  width: 116px;
  height: 116px;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
}

.receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.receipt-table .inline-edit {
  width: 100%;
  min-width: 0;
  background: #080808;
  border-color: rgba(216, 154, 43, 0.45);
  color: #fff7e8;
}

.receipt-table .inline-edit:focus {
  border-color: #f4c35d;
  box-shadow: 0 0 0 3px rgba(244, 195, 93, 0.16);
}

.receipt-history-item {
  background: #151515;
}

.receipt-history-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 190px 190px;
  gap: 10px;
  width: min(820px, 100%);
}

.receipt-history-filters input,
.receipt-history-filters select {
  width: 100%;
}

.receipt-history-item .saved-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.confirm-modal {
  width: min(440px, 100%);
  padding: 22px;
  border: 1px solid rgba(216, 154, 43, 0.55);
  border-radius: 8px;
  background: linear-gradient(145deg, #111, #050505);
  color: #fff7e8;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.confirm-modal h3 {
  margin: 0 0 8px;
  color: #f4c35d;
  font-size: 1.45rem;
}

.confirm-modal p {
  margin: 0;
  color: #f8ead1;
  line-height: 1.45;
}

.confirm-modal div {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.app-toast {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: 9999;
  max-width: min(360px, calc(100vw - 40px));
  padding: 13px 16px;
  border: 1px solid rgba(216, 154, 43, 0.45);
  border-radius: 8px;
  background: #101010;
  color: #fff7e8;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  font-weight: 850;
}

.app-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .proof-bar,
  .service-card-grid,
  .gallery-grid,
  .counter-grid,
  .receipt-summary-grid,
  .testimonial-carousel,
  .contact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-feature,
  .about-section,
  .contact-section,
  .receipt-layout {
    grid-template-columns: 1fr;
  }

  .receipt-preview {
    position: static;
  }

  .receipt-item-entry,
  .field-grid.four {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: center;
    flex-direction: row;
  }

  .mobile-menu-button {
    display: inline-grid;
    width: 44px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(216, 154, 43, 0.35);
    border-radius: 7px;
    background: #101010;
  }

  .mobile-menu-button span {
    width: 20px;
    height: 2px;
    display: block;
    background: #f4c35d;
  }

  .site-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid rgba(216, 154, 43, 0.36);
    border-radius: 8px;
    background: #080808;
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .hero-carousel {
    min-height: 410px;
    height: 410px;
    background-size: cover;
    background-position: center;
  }

  .proof-bar,
  .service-card-grid,
  .gallery-grid,
  .counter-grid,
  .receipt-summary-grid,
  .testimonial-carousel,
  .contact-list,
  .receipt-item-entry,
  .field-grid.four,
  .receipt-history-filters {
    grid-template-columns: 1fr;
  }

  .proof-bar {
    margin-top: 18px;
  }

  .span-2 {
    grid-column: auto;
  }

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

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    padding-bottom: 18px;
  }

  .admin-main {
    height: auto;
    min-height: 100vh;
  }
}

/* Ajustes finais Ideal Calhas */
.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 168px;
  height: 50px;
  object-fit: contain;
  object-position: left center;
}

.nav-admin {
  border-color: rgba(216, 154, 43, 0.58);
  color: #f8f1df;
  background: rgba(255, 255, 255, 0.04);
}

.nav-admin:hover {
  background: linear-gradient(135deg, #f4c35d, #b87912);
  color: #090909;
}

.ideal-service-icon,
.ideal-form-icon,
.ideal-footer-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.quote-icon {
  width: 46px;
  height: 46px;
  padding: 7px;
  background: radial-gradient(circle, rgba(244, 195, 93, 0.22), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(216, 154, 43, 0.45);
}

.quote-icon img {
  width: 100%;
  height: 100%;
}

.quote-category-card {
  gap: 9px;
  min-height: 132px;
}

.quote-category-card strong {
  line-height: 1.12;
}

.digital-quote-sheet {
  background: #fbfaf7;
}

.quote-sheet-header {
  grid-template-columns: minmax(360px, 1fr) minmax(270px, 0.78fr) minmax(240px, 0.62fr);
  min-height: 188px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(112deg, #050505 0%, #070707 57%, #151515 100%);
}

.quote-sheet-header::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 34%;
  background: url("assets/ideal-kit/orcamento/textura_calha_telhado.png") right center / cover no-repeat;
  opacity: 0.26;
  pointer-events: none;
}

.sheet-logo,
.sheet-contact,
.sheet-number {
  position: relative;
  z-index: 1;
}

.sheet-logo {
  min-height: 188px;
  padding: 18px 28px;
  align-items: center;
  justify-content: flex-start;
}

.sheet-logo img {
  width: min(560px, 100%);
  height: 148px;
  max-height: 148px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(1.16) contrast(1.08) saturate(1.08);
}

.sheet-contact {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-left: 1px solid rgba(216, 154, 43, 0.72);
  font-size: 0.84rem;
  color: #fff7e8;
  white-space: nowrap;
  flex-wrap: wrap;
}

.sheet-contact strong {
  color: #f4c35d;
  font-size: 1rem;
}

.sheet-number {
  min-height: 188px;
  padding: 18px 24px;
  align-content: center;
  justify-items: center;
  gap: 10px;
  border-left: 1px solid rgba(216, 154, 43, 0.62);
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(216, 154, 43, 0.08));
}

.sheet-number span {
  font-size: clamp(1.45rem, 2.2vw, 2.15rem);
  text-align: center;
}

.sheet-number strong {
  width: min(220px, 100%);
}

.gallery-card[hidden] {
  display: none !important;
}

/* Ajustes finais Ideal Calhas */
.doc-number-mini {
  background: linear-gradient(135deg, #f4c35d, #b87912) !important;
  color: #090909 !important;
  border: 1px solid rgba(255, 236, 178, 0.62);
  box-shadow: 0 10px 28px rgba(216, 154, 43, 0.22);
}

.doc-number-mini strong {
  color: #090909 !important;
}

.quote-step-nav {
  display: none !important;
}

.quote-sheet-header {
  grid-template-columns: minmax(390px, 1.04fr) minmax(360px, 0.88fr) minmax(230px, 0.46fr) !important;
  min-height: 178px !important;
  background: #050505 !important;
}

.quote-sheet-header::after {
  width: 34% !important;
  opacity: 0.18 !important;
}

.sheet-logo {
  min-height: 178px !important;
  padding: 18px 28px !important;
}

.sheet-logo img {
  width: min(520px, 100%) !important;
  height: 136px !important;
  object-fit: contain !important;
  object-position: left center !important;
}

.sheet-contact {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 18px !important;
  padding: 18px 24px !important;
  border-left: 1px solid rgba(216, 154, 43, 0.68) !important;
  border-right: 1px solid rgba(216, 154, 43, 0.42) !important;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.7)) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

.sheet-contact span,
.sheet-contact strong {
  position: relative;
  z-index: 2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheet-number {
  min-height: 178px !important;
  padding: 18px 28px !important;
  background: linear-gradient(135deg, rgba(216, 154, 43, 0.13), rgba(0, 0, 0, 0.72)) !important;
}

.sheet-number span {
  color: #f4c35d !important;
  font-size: clamp(1.2rem, 1.7vw, 1.85rem) !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.78);
}

.sheet-number strong {
  background: rgba(0, 0, 0, 0.82) !important;
  width: min(182px, 100%) !important;
  font-size: 1.05rem !important;
}

.quote-category-card {
  min-width: 0;
  overflow: hidden;
}

.quote-icon {
  width: 58px !important;
  height: 58px !important;
  padding: 6px !important;
  overflow: hidden !important;
  border: 1px solid rgba(216, 154, 43, 0.24) !important;
}

.quote-icon img,
.quote-icon svg {
  width: 46px !important;
  height: 46px !important;
  object-fit: contain !important;
}

.quote-icon svg {
  transform: scale(0.82);
  transform-origin: center;
}

.quote-category-card strong {
  font-size: 0.93rem;
  line-height: 1.05;
}

.quote-category-card small {
  line-height: 1.1;
}

.quote-system-actions .pill.success {
  background: linear-gradient(135deg, #dfffea, #b7f4cb);
  color: #063a21;
}

.quote-system-bar .doc-number-mini,
.quote-system-actions .doc-number-mini {
  background: linear-gradient(135deg, #f4c35d, #b87912) !important;
  color: #111 !important;
}

.quote-system-bar .doc-number-mini strong,
.quote-system-actions .doc-number-mini strong {
  color: #111 !important;
}

.receipt-services-strip span i {
  background: #fff;
}

.receipt-services-strip img {
  image-rendering: auto;
}

@media (max-width: 1180px) {
  .quote-sheet-header {
    grid-template-columns: 1fr !important;
  }

  .sheet-contact {
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    white-space: normal !important;
  }
}

@media (max-width: 900px) {
  .quote-sheet-header {
    grid-template-columns: 1fr;
  }

  .sheet-number {
    min-height: auto;
    padding: 18px;
    border-left: 0;
    border-top: 1px solid rgba(216, 154, 43, 0.45);
  }

  .sheet-contact {
    padding: 0 24px 20px;
  }
}
