:root {
  --bg: #f5f7f6;
  --ink: #122620;
  --muted: #5f6f69;
  --line: #d7dfdc;
  --panel: #ffffff;
  --accent: #08735a;
  --accent-strong: #07533f;
  --warm: #b94f23;
  --steel: #dfe8ea;
  --soft: #e8f0ed;
  --shadow: 0 18px 50px rgba(19, 35, 30, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid rgba(19, 35, 30, 0.1);
  background: rgba(245, 247, 246, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: white;
  background: var(--ink);
  border-radius: 8px;
  font-weight: 800;
}

.brand small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.top-nav {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.top-nav::-webkit-scrollbar {
  height: 6px;
}

.top-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(18, 38, 32, 0.22);
}

.top-nav a,
.secondary-action,
.admin-tabs button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.top-nav a:hover,
.secondary-action:hover {
  border-color: rgba(8, 115, 90, 0.45);
  background: #ffffff;
  transform: translateY(-1px);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  cursor: pointer;
}

.tiktok-menu {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: min(780px, calc(100svh - 76px));
  padding: clamp(28px, 6vw, 70px) clamp(16px, 4vw, 56px) 34px;
}

.tiktok-copy h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2.25rem, 5.8vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.tiktok-copy p:not(.eyebrow) {
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.6;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(8, 115, 90, 0.2);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-actions,
.contact-actions,
.lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.primary-action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  color: white;
  background: var(--accent);
  box-shadow: 0 10px 28px rgba(15, 123, 95, 0.22);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.primary-action:hover {
  background: var(--accent-strong);
  box-shadow: 0 14px 34px rgba(15, 123, 95, 0.26);
  transform: translateY(-1px);
}

.card-body .secondary-action {
  margin-top: 10px;
}

.full {
  width: 100%;
}

.hero-media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--steel);
  box-shadow: var(--shadow);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 38, 32, 0) 45%, rgba(18, 38, 32, 0.28));
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.hero-badge {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 8px;
  color: white;
  background: rgba(19, 35, 30, 0.86);
  z-index: 1;
}

.hero-badge span {
  color: rgba(255, 255, 255, 0.78);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  color: white;
  background: var(--ink);
}

.trust-strip article {
  padding: clamp(18px, 3vw, 26px) clamp(16px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.045);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
}

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

.section-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(50px, 8vw, 92px) 0;
}

.intro-grid,
.contact-grid,
.quote-guide {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.8vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.works-page h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 0.98;
}

h3 {
  margin: 10px 0 8px;
  font-size: 1.05rem;
}

p {
  line-height: 1.65;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 26px;
}

.section-heading p {
  max-width: 440px;
  color: var(--muted);
}

.compact-heading {
  align-items: start;
}

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

.filter-row button {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--panel);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.filter-row button:hover {
  border-color: rgba(8, 115, 90, 0.45);
  transform: translateY(-1px);
}

.filter-row button.active,
.admin-tabs button.active {
  color: white;
  border-color: var(--ink);
  background: var(--ink);
}

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

.catalog-work-area {
  margin-top: clamp(34px, 5vw, 56px);
  padding-top: clamp(28px, 4vw, 42px);
  border-top: 1px solid var(--line);
}

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

.empty-work-state {
  grid-column: 1 / -1;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.56);
}

.empty-work-state p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
}

.work-cta .primary-action {
  width: fit-content;
}

.product-card,
.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(18, 38, 32, 0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.product-card:hover,
.work-card:hover {
  border-color: rgba(8, 115, 90, 0.32);
  box-shadow: 0 14px 36px rgba(18, 38, 32, 0.11);
  transform: translateY(-2px);
}

.product-card img,
.work-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--steel);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  min-height: 2.5em;
}

.card-body p {
  color: var(--muted);
}

.option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 14px 0 18px;
  list-style: none;
}

.option-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 9px;
  color: var(--muted);
  font-size: 0.86rem;
  background: #fbfcfb;
}

.steps {
  display: grid;
  gap: 14px;
}

.steps article {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.steps span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: white;
  background: var(--warm);
  font-weight: 900;
}

.steps p {
  margin: 0;
  color: var(--muted);
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 18;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 20px;
  border-radius: 8px;
  color: white;
  background: var(--accent);
  box-shadow: var(--shadow);
  font-weight: 900;
  text-decoration: none;
}

.floating-whatsapp::before {
  content: "";
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 999px;
  background: #c9f7dd;
  box-shadow: 0 0 0 5px rgba(201, 247, 221, 0.16);
}

.quote-dialog {
  width: min(560px, calc(100% - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

.quote-dialog::backdrop {
  background: rgba(19, 35, 30, 0.52);
}

.quote-form,
.admin-shell {
  padding: 22px;
  background: var(--panel);
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.dialog-head h2 {
  font-size: 1.7rem;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
  color: var(--ink);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: #fbfcfb;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(8, 115, 90, 0.16);
  border-color: var(--accent);
}

.is-loading {
  min-height: 360px;
}

.skeleton-card {
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0)) 0 0 / 200% 100%,
    linear-gradient(#dfe8ea 0 0) 0 0 / 100% 55% no-repeat,
    linear-gradient(#edf2f0 0 0) 18px 62% / 42% 18px no-repeat,
    linear-gradient(#edf2f0 0 0) 18px 70% / 72% 14px no-repeat,
    linear-gradient(#edf2f0 0 0) 18px 77% / 58% 14px no-repeat,
    #ffffff;
  animation: skeleton 1300ms linear infinite;
}

@keyframes skeleton {
  to {
    background-position: 200% 0, 0 0, 18px 62%, 18px 70%, 18px 77%, 0 0;
  }
}

textarea {
  min-height: 92px;
  resize: vertical;
}

.form-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 40;
  width: min(720px, 100%);
  transform: translateX(102%);
  transition: transform 180ms ease;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: auto;
}

.admin-panel.open {
  transform: translateX(0);
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-label input {
  width: auto;
}

.admin-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.admin-item {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-item img {
  width: 74px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
}

.admin-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.mini-actions {
  display: flex;
  gap: 6px;
}

.mini-actions button,
.danger {
  border-color: #d8b8ad;
}

.leads .admin-item {
  grid-template-columns: 1fr auto;
}

.dashboard-page {
  background: #eef2ef;
}

.dashboard-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px) 0;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
  gap: clamp(22px, 4vw, 48px);
  align-items: end;
  margin-bottom: 24px;
}

.dashboard-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 1;
}

.dashboard-hero p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
}

.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.dashboard-summary article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.dashboard-summary span {
  display: block;
  font-size: 2rem;
  font-weight: 900;
}

.dashboard-summary p {
  margin: 2px 0 0;
  color: var(--muted);
}

.dashboard-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 34px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.admin-error {
  padding: 12px 16px;
  color: #7a1f12;
  background: #ffe8df;
  border-bottom: 1px solid #e3b8a8;
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .top-nav a {
    white-space: nowrap;
  }

  .tiktok-menu,
  .intro-grid,
  .contact-grid,
  .quote-guide,
  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .dashboard-summary {
    grid-template-columns: 1fr;
  }

  .tiktok-menu {
    min-height: auto;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .hero-media,
  .hero-media img {
    min-height: 360px;
  }

  .hero-badge {
    align-items: start;
  }

  .section-heading {
    display: block;
  }

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

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

  .admin-item {
    grid-template-columns: 64px 1fr;
  }

  .mini-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .brand small {
    display: none;
  }

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

  .brand {
    min-width: 0;
  }

  .brand strong {
    display: block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .quick-actions > *,
  .contact-actions > * {
    width: 100%;
  }

  .quick-actions {
    margin-bottom: 68px;
  }

  .hero-badge {
    display: block;
  }

  .floating-whatsapp {
    right: 12px;
    bottom: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
  }

  .floating-whatsapp.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}
