/*
 * Reparo Smart — camada visual moderna
 * Mantém seletores, URLs e comportamento do sistema legado.
 */
:root {
  --rs-navy-950: #111318;
  --rs-navy-900: #171a21;
  --rs-blue-700: #df7410;
  --rs-blue-600: #f7901e;
  --rs-blue-500: #ffb347;
  --rs-cyan-500: #ffc66d;
  --rs-surface: #ffffff;
  --rs-surface-soft: #fcfcfd;
  --rs-border: #e6e8ec;
  --rs-text: #171a21;
  --rs-muted: #68707e;
  --rs-success: #16885c;
  --rs-warning: #b86a06;
  --rs-danger: #c9364f;
  --rs-radius-sm: 8px;
  --rs-radius: 12px;
  --rs-radius-lg: 18px;
  --rs-shadow-sm: 0 3px 12px rgba(23, 26, 33, .08);
  --rs-shadow: 0 12px 32px rgba(23, 26, 33, .12);
  --rs-transition: 180ms ease;
  --rs-content: 1280px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--rs-text);
  background: var(--rs-surface-soft);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img, video, iframe { max-width: 100%; }
img { height: auto; }

a {
  color: var(--rs-blue-600);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--rs-transition), opacity var(--rs-transition);
}
a:hover { color: var(--rs-blue-700); }

h1, h2, h3, h4, h5, h6 {
  color: var(--rs-navy-900);
  font-family: Inter, "Segoe UI", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.btn,
.button {
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--rs-radius-sm);
  color: #fff;
  background: linear-gradient(135deg, var(--rs-blue-600), var(--rs-blue-700));
  box-shadow: 0 5px 14px rgba(247, 144, 30, .22);
  font: 600 14px/1.2 Inter, "Segoe UI", sans-serif;
  cursor: pointer;
  transition: transform var(--rs-transition), box-shadow var(--rs-transition), background var(--rs-transition);
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.btn:hover,
.button:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(28, 99, 224, .28);
}

button:disabled,
input:disabled,
.btn.disabled {
  cursor: not-allowed;
  opacity: .58;
  transform: none;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="search"],
input[type="url"],
select,
textarea {
  max-width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius-sm);
  color: var(--rs-text);
  background: var(--rs-surface);
  font: inherit;
  box-shadow: 0 1px 2px rgba(3, 19, 54, .04);
  transition: border-color var(--rs-transition), box-shadow var(--rs-transition);
}

textarea { min-height: 100px; resize: vertical; }
select { cursor: pointer; }

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--rs-blue-500);
  box-shadow: 0 0 0 3px rgba(28, 99, 224, .14);
}

label {
  color: var(--rs-navy-900);
  font-weight: 600;
}

fieldset,
.panel,
.card,
.box,
#conteudo,
#content {
  border: 1px solid var(--rs-border);
  border-radius: var(--rs-radius);
  background: var(--rs-surface);
  box-shadow: var(--rs-shadow-sm);
}

fieldset { padding: 20px; }
legend { padding: 0 8px; color: var(--rs-navy-900); font-weight: 700; }

table {
  width: 100%;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--rs-text);
  background: var(--rs-surface);
}

th {
  padding: 11px 12px;
  border-bottom: 2px solid var(--rs-border);
  color: var(--rs-navy-900);
  background: #fff7ec;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .025em;
  text-align: left;
  text-transform: uppercase;
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--rs-border);
  vertical-align: middle;
}

tbody tr { transition: background var(--rs-transition); }
tbody tr:hover { background: #fffaf3; }

.alert,
.aviso,
.mensagem,
.message,
.erro,
.error,
.sucesso,
.success {
  margin: 12px 0;
  padding: 12px 16px;
  border: 1px solid var(--rs-border);
  border-left: 4px solid var(--rs-blue-600);
  border-radius: var(--rs-radius-sm);
  background: #fff7ec;
  color: var(--rs-text);
}

.erro, .error, .alert-danger {
  border-left-color: var(--rs-danger);
  background: #fff2f4;
  color: #8f2033;
}

.sucesso, .success, .alert-success {
  border-left-color: var(--rs-success);
  background: #effbf6;
  color: #106441;
}

.paginacao {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 18px 8px;
}

.paginacao a,
.paginacao span {
  display: inline-flex;
  min-width: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid var(--rs-border);
  border-radius: 7px;
  background: #fff;
  text-decoration: none;
}

.paginacao a:hover,
.paginacao .active,
.paginacao .atual {
  border-color: var(--rs-blue-600);
  color: #fff;
  background: var(--rs-blue-600);
}

/* Estrutura clássica do Controle de OS */
#areatopo {
  position: relative;
  min-height: 96px;
  padding: 24px 150px 20px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: #fff;
  background: linear-gradient(120deg, var(--rs-navy-950), #2b2117);
  box-shadow: var(--rs-shadow-sm);
}
#areatopo .style4, #areatopo .style5, #areatopo .style6 { color: #fff; }
#divbtnlogout { position: absolute; top: 30px; right: 30px; }
#divbtnlogout img { max-height: 38px; width: auto; }
#divlogoperfil {
  position: absolute; top: 8px; left: 28px;
  width: 80px; height: 80px; overflow: hidden;
  border: 3px solid rgba(255,255,255,.8); border-radius: 18px;
  background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.2);
}
#divlogoperfil img { width: 100%; height: 100%; border: 0; object-fit: cover; }
#divmenu {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--rs-border);
  background: #fff;
  box-shadow: var(--rs-shadow-sm);
}
iframe#conteudo {
  display: block;
  width: 100%;
  min-height: 560px;
  border: 0;
  background: var(--rs-surface-soft);
}
.dl-menuwrapper button { border-radius: var(--rs-radius-sm); }
.dl-menuwrapper ul { box-shadow: var(--rs-shadow); }
body .menu {
  margin-top: 0;
  border: 0;
  color: #fff;
  background: var(--rs-navy-900);
  font-family: Inter, "Segoe UI", sans-serif;
  font-size: 13px;
  box-shadow: var(--rs-shadow-sm);
}
body .menu ul {
  display: flex;
  flex-wrap: wrap;
  background: var(--rs-navy-900);
}
body .menu li { position: relative; background: transparent; }
body .menu li a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 10px 14px;
  border: 0;
  color: #f3f4f6;
  background: transparent;
  text-decoration: none;
  transition: background var(--rs-transition), color var(--rs-transition);
}
body .menu li a:hover,
body .menu li:hover > a {
  color: #fff;
  background: rgba(28,99,224,.55);
}
body .menu li ul {
  min-width: 220px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 0 0 var(--rs-radius-sm) var(--rs-radius-sm);
  box-shadow: var(--rs-shadow);
}

/* Acabamento visual unificado das páginas públicas legadas.
   Mantém os caminhos originais no HTML/PHP e substitui apenas a apresentação. */
img[src$="gk_images/logo-pequeno.png"],
img[src$="images/logocontroledeos.png"],
img[src$="images/img_logo_reparosmart-135x117.png"],
img[src$="images/img_logo_reparosmart-101x88.png"],
img[src$="images/img_logo_buscaservice-135x117.png"] {
  content: url("../wp-content/themes/reparosmart-reforge/assets/images/reparos-smart-logo-bw.png");
  width: auto;
  height: auto;
  max-width: 210px;
  max-height: 96px;
  object-fit: contain;
}

img[src$="gk_images/passo-a-passo3.png"] {
  content: url("../wp-content/themes/reparosmart-reforge/assets/images/trade-in.jpg");
  display: block;
  width: 100%;
  max-width: 1180px;
  height: clamp(260px, 38vw, 520px);
  margin: 20px auto;
  border-radius: var(--rs-radius);
  object-fit: cover;
  object-position: center;
  box-shadow: var(--rs-shadow);
}

img[src$="gk_images/ico/loja-icon.png"],
img[src$="gk_images/ico/parceiro2.png"],
img[src$="gk_images/ico/folder-tools-icon.png"] {
  padding: 14px;
  border-radius: 22px;
  background: linear-gradient(145deg, #fff, #f3f6fb);
  box-shadow: 0 16px 40px rgba(15, 23, 42, .14);
  object-fit: contain;
}

body #header,
body header#header {
  border: 0;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .08);
  backdrop-filter: blur(14px);
}

body .navbar,
body .navbar-inverse {
  margin-bottom: 0;
  border: 0;
  border-radius: 0;
  background: var(--rs-navy-900);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .12);
}

body .navbar-inverse .navbar-nav > li > a,
body .navbar-inverse .navbar-brand {
  color: rgba(255,255,255,.9);
  font-weight: 700;
  letter-spacing: .01em;
}

body .navbar-inverse .navbar-nav > li > a:hover,
body .navbar-inverse .navbar-nav > .active > a,
body .navbar-inverse .navbar-nav > .active > a:hover {
  color: #fff;
  background: var(--rs-orange);
}

body #main-slider,
body .carousel,
body .carousel-inner {
  overflow: hidden;
  background: var(--rs-navy-900);
}

body section {
  padding-top: clamp(36px, 6vw, 76px);
  padding-bottom: clamp(36px, 6vw, 76px);
}

body .center h2,
body .section-header h2 {
  color: var(--rs-navy-900);
  font-weight: 800;
  letter-spacing: -.025em;
}

body .lead {
  color: var(--rs-slate-600);
  line-height: 1.75;
}

body .panel,
body .well,
body .service-wrap,
body .feature-wrap,
body .media,
body .thumbnail {
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: var(--rs-radius);
  background: #fff;
  box-shadow: var(--rs-shadow-sm);
  transition: transform var(--rs-transition), box-shadow var(--rs-transition);
}

body .service-wrap:hover,
body .feature-wrap:hover,
body .thumbnail:hover {
  transform: translateY(-4px);
  box-shadow: var(--rs-shadow);
}

body #contact-info,
body #bottom,
body footer {
  border: 0;
}

body #bottom {
  color: rgba(255,255,255,.78);
  background: var(--rs-navy-900);
}

body footer,
body #footer {
  color: rgba(255,255,255,.8);
  background: #080d19;
}

body #bottom a,
body footer a,
body #footer a {
  color: #fff;
}

body #bottom a:hover,
body footer a:hover,
body #footer a:hover {
  color: var(--rs-orange);
}

:focus-visible {
  outline: 3px solid rgba(22, 184, 243, .72);
  outline-offset: 2px;
}

@media (max-width: 991px) {
  body { font-size: 14px; }
  fieldset { padding: 16px; }
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 767px) {
  body { overflow-x: hidden; }
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.35rem; }
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea { width: 100%; }
  button,
  input[type="button"],
  input[type="submit"],
  .btn,
  .button { max-width: 100%; }
  table { font-size: 13px; }
  th, td { padding: 9px 8px; }
  #areatopo { min-height: 118px; padding: 18px 68px 18px 82px; font-size: 13px; }
  #divlogoperfil { left: 12px; width: 58px; height: 58px; }
  #divbtnlogout { top: 18px; right: 12px; }
  #divbtnlogout img { max-width: 46px; object-fit: contain; object-position: right; }
  iframe#conteudo { min-height: 680px; }
  body .menu ul { display: block; }
  body .menu li, body .menu li a { width: 100%; }
  body .menu li ul { position: static; width: 100%; box-shadow: none; }
}

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

@media print {
  body { color: #000; background: #fff; }
  button, .btn, .menu, nav { display: none !important; }
  fieldset, .panel, .card, table { box-shadow: none; }
}
