/*
Theme Name: InfoJart
Theme URI: https://infojart.com.br
Author: InfoJart
Description: Tema institucional para assistência técnica, upgrades, catálogo e galeria de serviços realizados da InfoJart.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: infojart
*/

:root {
  --blue-950: #061b3a;
  --blue-900: #082b5f;
  --blue-700: #075dbb;
  --blue-500: #1285e5;
  --cyan: #25c7df;
  --ink: #102033;
  --muted: #607084;
  --line: #dbe7f4;
  --soft: #f4f8fd;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(8, 43, 95, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
}

body.modal-open {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand img {
  width: 154px;
  height: 58px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #30445c;
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover,
.text-link:hover {
  color: var(--blue-700);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
}

.nav-cta,
.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-700), var(--cyan));
  box-shadow: 0 14px 32px rgba(7, 93, 187, .22);
}

.button.secondary {
  color: var(--blue-900);
  background: var(--white);
  border-color: var(--line);
}

.button.full {
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .86fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 88px);
  padding: clamp(34px, 6vw, 80px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(244, 248, 253, .98), rgba(255, 255, 255, .84)),
    radial-gradient(circle at 80% 20%, rgba(37, 199, 223, .16), transparent 32%);
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  color: var(--blue-950);
  font-size: clamp(42px, 6vw, 76px);
  line-height: .98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  color: var(--blue-950);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
}

h3 {
  margin-bottom: 10px;
  color: var(--blue-950);
  font-size: 20px;
}

.hero-text,
.section-heading p,
.split-copy p,
.contact-section p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero-text {
  max-width: 650px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.quick-facts div {
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quick-facts dt {
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-facts dd {
  margin: 5px 0 0;
  color: var(--blue-950);
  font-weight: 800;
}

.hero-media,
.split-image,
.product-card {
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.hero-media {
  aspect-ratio: 4 / 5;
}

.hero-media img,
.split-image img,
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip span {
  padding: 18px clamp(18px, 5vw, 72px);
  color: var(--blue-950);
  background: var(--white);
  font-weight: 800;
}

.section,
.split-section,
.contact-section {
  padding: clamp(56px, 8vw, 112px) clamp(18px, 5vw, 72px);
}

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

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.service-feature {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

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

.service-feature div {
  padding: 28px 28px 28px 0;
}

.service-feature p {
  color: var(--muted);
  line-height: 1.6;
}

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

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

.service-card,
.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-card {
  min-height: 360px;
  padding: 0 0 24px;
}

.service-card > img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.service-card p,
.product-card p,
.work-card p,
.check-list,
.mini-cards {
  color: var(--muted);
  line-height: 1.55;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 20px 24px 18px;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue-700);
  font-weight: 900;
}

.service-card h3,
.service-card p {
  padding: 0 24px;
}

.card-action {
  min-height: 40px;
  margin: 4px 24px 0;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue-900);
  background: var(--white);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.card-action:hover {
  border-color: var(--blue-500);
  color: var(--blue-700);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.split-section.reverse {
  background: var(--blue-950);
}

.split-section.reverse h2,
.split-section.reverse .mini-cards span {
  color: var(--white);
}

.split-section.reverse p {
  color: #bed2e9;
}

.split-image {
  aspect-ratio: 16 / 11;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0;
  list-style: none;
}

.check-list li {
  padding-left: 28px;
  background: linear-gradient(var(--blue-700), var(--blue-700)) 0 10px / 12px 3px no-repeat;
}

.text-link {
  color: var(--blue-700);
  font-weight: 800;
}

.product-card,
.work-card {
  box-shadow: none;
}

.product-card {
  display: grid;
  grid-template-rows: 240px 1fr;
}

.product-card div,
.work-card div {
  padding: 22px;
  background: var(--white);
}

.product-card.no-image {
  display: flex;
  min-height: 100%;
  background: var(--white);
}

.work-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.work-card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.mini-cards span {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  font-weight: 800;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.contact-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-card p {
  margin: 20px 0;
  color: var(--muted);
  line-height: 1.6;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 27, 58, .62);
}

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

.modal-panel {
  position: relative;
  width: min(100%, 620px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 30px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 28px 90px rgba(6, 27, 58, .34);
}

.modal-panel h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.modal-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--blue-950);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.visit-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.visit-form label {
  display: grid;
  gap: 7px;
  color: var(--blue-950);
  font-size: 14px;
  font-weight: 800;
}

.visit-form input,
.visit-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.visit-form input:focus,
.visit-form textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(18, 133, 229, .12);
}

.site-footer {
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--white);
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .hero,
  .split-section,
  .contact-section,
  .service-feature {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    aspect-ratio: 16 / 10;
  }

  .trust-strip,
  .service-grid,
  .catalog-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .service-feature div {
    padding: 0 24px 24px;
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .site-header {
    gap: 12px;
  }

  .brand img {
    width: 126px;
  }

  .nav-cta {
    min-height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-text,
  .section-heading p,
  .split-copy p,
  .contact-section p {
    font-size: 16px;
  }

  .actions .button {
    width: 100%;
  }

  .mini-cards {
    grid-template-columns: 1fr;
  }
}
