/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* =========================
   VARIÁVEIS
========================= */
:root {
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-soft: #f0f6ff;
  --line: #dbe5f0;
  --line-strong: #c7d6e5;

  --text: #132238;
  --text-soft: #5f7187;
  --text-light: #7b8ca1;

  --primary: #1473e6;
  --primary-dark: #0f5fc2;
  --secondary: #13b981;
  --secondary-dark: #0e9b6c;
  --accent: #e8f3ff;

  --danger: #dc2626;
  --warning: #f59e0b;
  --success: #16a34a;

  --shadow-sm: 0 8px 24px rgba(18, 38, 63, 0.06);
  --shadow-md: 0 18px 40px rgba(18, 38, 63, 0.10);
  --shadow-lg: 0 24px 60px rgba(18, 38, 63, 0.14);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;

  --container: 1180px;
  --transition: 0.25s ease;
}

/* =========================
   BASE
========================= */
html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #f7fbff 0%, #f3f7fb 100%);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

main {
  min-height: 70vh;
}

section {
  padding: 72px 0;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  color: var(--text-soft);
}

small {
  color: var(--text-light);
}

/* =========================
   BOTÕES
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform var(--transition), background var(--transition),
    border-color var(--transition), color var(--transition),
    box-shadow var(--transition);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 12px 28px rgba(20, 115, 230, 0.22);
}

.btn-primary:hover {
  box-shadow: 0 18px 36px rgba(20, 115, 230, 0.28);
}

.btn-secondary {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #1ebf5c);
  color: #fff;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.24);
}

.btn-whatsapp:hover {
  box-shadow: 0 18px 36px rgba(37, 211, 102, 0.30);
}

.btn-full {
  width: 100%;
}

.disabled-link {
  pointer-events: none;
  opacity: 0.55;
}

/* =========================
   HEADER
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(219, 229, 240, 0.85);
}

.header-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: var(--shadow-sm);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-text strong {
  font-size: 1.08rem;
}

.logo-text small {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  font-weight: 600;
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
  background: var(--accent);
}

.admin-link {
  border: 1px solid var(--line);
}

/* =========================
   HERO
========================= */
.hero {
  padding-top: 88px;
  padding-bottom: 54px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.hero-content,
.hero-side {
  display: grid;
  gap: 20px;
}

.hero-badge,
.section-tag,
.mini-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: #e8f3ff;
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-content h1 {
  max-width: 720px;
}

.hero-content p {
  font-size: 1.07rem;
  max-width: 670px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.trust-item {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.trust-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.trust-item span {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.hero-card {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.hero-card h3 {
  margin-bottom: 14px;
}

.hero-card ul {
  display: grid;
  gap: 12px;
}

.hero-card li {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f4f8fd;
  color: var(--text-soft);
  border: 1px solid #e4edf6;
}

.hero-highlight {
  background: linear-gradient(135deg, #0f66cf, #12a772);
  color: #fff;
}

.hero-highlight p,
.hero-highlight .mini-label {
  color: rgba(255, 255, 255, 0.92);
}

.hero-highlight .mini-label {
  background: rgba(255, 255, 255, 0.16);
}

/* =========================
   PAGE HERO
========================= */
.page-hero {
  padding-top: 72px;
  padding-bottom: 44px;
}

.page-hero-content {
  display: grid;
  gap: 14px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.page-hero-content .hero-badge {
  margin: 0 auto;
}

.item-hero {
  padding-bottom: 28px;
}

/* =========================
   STATS
========================= */
.stats {
  padding-top: 10px;
  padding-bottom: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.stat-card span {
  color: var(--text-soft);
}

/* =========================
   SEÇÕES GERAIS
========================= */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 26px;
}

.section-head.center {
  text-align: center;
  justify-content: center;
}

.section-head p {
  margin-top: 8px;
}

/* =========================
   FILTROS
========================= */
.search-section {
  padding-top: 48px;
}

.filters-box {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr;
  gap: 16px;
  background: #fff;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

.filter-group {
  display: grid;
  gap: 8px;
}

.filter-group label {
  font-weight: 700;
  color: var(--text);
}

.filter-group input,
.filter-group select,
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  padding: 0 16px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition),
    transform var(--transition);
}

.form-group textarea {
  min-height: 160px;
  resize: vertical;
  padding: 14px 16px;
}

.filter-group input:focus,
.filter-group select:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(20, 115, 230, 0.10);
}

.input-help {
  display: inline-block;
  margin-top: 6px;
}

/* =========================
   STATUS
========================= */
.status-message {
  margin-bottom: 20px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid #dbe6f3;
  background: #f6fbff;
  color: var(--text-soft);
}

.status-message.error {
  background: #fff2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.status-message.success {
  background: #effdf4;
  border-color: #bbf7d0;
  color: #166534;
}

/* =========================
   CARDS DE SERVIÇOS
========================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #c8d9ea;
}

.service-image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eff5fb;
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(19, 34, 56, 0.85);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.service-content {
  padding: 22px;
}

.service-content h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--text);
}

.service-meta {
  margin-bottom: 12px;
  color: var(--text-light);
  font-size: 0.94rem;
}

.service-description {
  color: var(--text-soft);
  font-size: 0.96rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  min-height: 72px;
}

.service-info-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 14px;
  background: #f7fbff;
  border: 1px solid #e3edf7;
  border-radius: 16px;
}

.service-info-list strong {
  color: var(--text);
}

.card-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.card-actions .btn {
  flex: 1;
}

.empty-state {
  grid-column: 1 / -1;
  background: #fff;
  border: 1px dashed var(--line-strong);
  border-radius: 24px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.empty-state h3 {
  margin-bottom: 10px;
}

.empty-state p {
  margin-bottom: 16px;
}

/* =========================
   COMO FUNCIONA
========================= */
.how-it-works {
  padding-top: 56px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.step-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}

.step-card h3 {
  margin-bottom: 8px;
}

/* =========================
   CTA
========================= */
.cta-section {
  padding-top: 56px;
  padding-bottom: 88px;
}

.cta-box {
  background: linear-gradient(135deg, #ffffff, #eff7ff);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-md);
}

/* =========================
   FORMULÁRIOS
========================= */
.form-section {
  padding-top: 34px;
  padding-bottom: 88px;
}

.form-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 22px;
  align-items: start;
}

.form-card,
.side-info-card,
.item-main-card,
.item-side-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
}

.form-card {
  padding: 28px;
}

.service-form {
  display: grid;
  gap: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  font-weight: 700;
  color: var(--text);
}

.full-width {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.image-preview-box {
  min-height: 220px;
  border: 1px dashed var(--line-strong);
  background: #f7fbff;
  border-radius: 22px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 16px;
}

.image-preview-box img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 18px;
}

.side-info-card {
  padding: 24px;
  display: grid;
  gap: 18px;
  position: sticky;
  top: 100px;
}

.info-list {
  display: grid;
  gap: 12px;
}

.info-list li {
  color: var(--text-soft);
  padding-left: 18px;
  position: relative;
}

.info-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--secondary);
  border-radius: 999px;
  position: absolute;
  left: 0;
  top: 10px;
}

.mini-tip-box {
  padding: 16px;
  border-radius: 18px;
  background: #f6fbff;
  border: 1px solid #deebf7;
}

.mini-tip-box strong {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--text);
}

/* =========================
   DETALHES DO ITEM / SERVIÇO
========================= */
.item-section {
  padding-top: 26px;
  padding-bottom: 88px;
}

.item-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.55fr;
  gap: 22px;
  align-items: start;
}

.item-main-card {
  overflow: hidden;
}

.item-image-wrap {
  position: relative;
  background: #eef5fb;
  aspect-ratio: 16 / 8;
}

.item-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-category-badge {
  position: absolute;
  left: 18px;
  top: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(19, 34, 56, 0.84);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
}

.item-content {
  padding: 28px;
}

.item-title-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.item-location {
  margin-top: 8px;
  color: var(--text-light);
}

.item-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.info-card,
.side-info-item {
  background: #f7fbff;
  border: 1px solid #e2ecf7;
  border-radius: 18px;
  padding: 16px;
}

.info-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 6px;
}

.item-description-box {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid #e3edf7;
  background: #fcfeff;
}

.item-description-box h3 {
  margin-bottom: 12px;
}

.item-description-box p {
  white-space: pre-line;
}

.item-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.item-side-card {
  padding: 24px;
  display: grid;
  gap: 18px;
  position: sticky;
  top: 100px;
}

.side-info-list {
  display: grid;
  gap: 14px;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 28px 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-soft);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--primary);
}

/* =========================
   CLASSES ÚTEIS
========================= */
.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

/* =========================
   RESPONSIVO
========================= */
@media (max-width: 1100px) {
  .hero-grid,
  .form-layout,
  .item-layout {
    grid-template-columns: 1fr;
  }

  .trust-list,
  .cards-grid,
  .steps-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .side-info-card,
  .item-side-card {
    position: static;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  section {
    padding: 56px 0;
  }

  .header-wrap {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
  }

  .main-nav {
    width: 100%;
  }

  .hero {
    padding-top: 56px;
  }

  .filters-box,
  .form-grid,
  .item-info-grid,
  .trust-list,
  .cards-grid,
  .steps-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .service-description {
    min-height: auto;
  }

  .card-actions .btn {
    flex: unset;
    width: 100%;
  }

  .form-actions,
  .item-actions,
  .hero-actions {
    flex-direction: column;
  }

  .form-actions .btn,
  .item-actions .btn,
  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 20px, var(--container));
  }

  .logo-mark {
    width: 44px;
    height: 44px;
  }

  .hero-card,
  .form-card,
  .side-info-card,
  .item-content,
  .item-side-card,
  .cta-box {
    padding: 20px;
  }

  .service-content {
    padding: 18px;
  }

  .item-image-wrap {
    aspect-ratio: 16 / 10;
  }
}