/*
Theme Name: De Farias Tecnologia
Theme URI: https://defariastecnologia.com.br
Author: De Farias Tecnologia
Author URI: https://defariastecnologia.com.br
Description: Tema institucional para consultoria Bitrix24, implementacao e integracoes para pequenas e medias empresas.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: defarias-tecnologia
*/

:root {
  --ink: #102027;
  --muted: #5d6c72;
  --paper: #f7f8f5;
  --white: #ffffff;
  --line: #dce3df;
  --teal: #0e7c7b;
  --teal-dark: #075757;
  --amber: #d89135;
  --charcoal: #101719;
  --soft: #ecf1ee;
  --shadow: 0 22px 70px rgba(10, 28, 31, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 64px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, padding 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(16, 23, 25, 0.94);
  box-shadow: 0 8px 34px rgba(0, 0, 0, 0.16);
  padding-top: 12px;
  padding-bottom: 12px;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
  color: #eaf8f6;
  font-size: 0.95rem;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.94rem;
  font-weight: 700;
}

.main-nav a {
  transition: color 160ms ease;
}

.main-nav a:hover {
  color: var(--white);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  padding: 0 11px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 7px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--white);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 14, 16, 0.96) 0%, rgba(5, 14, 16, 0.86) 42%, rgba(5, 14, 16, 0.24) 74%),
    linear-gradient(180deg, rgba(5, 14, 16, 0.18), rgba(5, 14, 16, 0.48));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(780px, calc(100% - 40px));
  margin-left: clamp(20px, 6vw, 84px);
  padding-top: 96px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.45rem, 5.7vw, 5.35rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--teal);
  color: var(--white);
}

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

.button.secondary {
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.button.secondary.light {
  border-color: rgba(255, 255, 255, 0.42);
}

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

.trust-strip span {
  display: grid;
  min-height: 86px;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
  text-align: center;
  padding: 0 12px;
}

.trust-strip span:last-child {
  border-right: 0;
}

.section {
  padding: clamp(72px, 9vw, 122px) clamp(20px, 5vw, 64px);
}

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

.section h2 {
  max-width: 960px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  min-height: 330px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.service-card .icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 44px;
  border: 1px solid rgba(14, 124, 123, 0.28);
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 900;
}

.service-card h3 {
  margin-bottom: 14px;
  font-size: 1.16rem;
}

.service-card p,
.feature-item span,
.timeline p,
.contact-band p,
.site-footer {
  color: var(--muted);
  line-height: 1.65;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: start;
  background: var(--soft);
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-item {
  padding: 24px;
  border-left: 4px solid var(--teal);
  background: rgba(255, 255, 255, 0.64);
}

.feature-item strong,
.feature-item span {
  display: block;
}

.feature-item strong {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.process {
  background: var(--white);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.timeline article {
  min-height: 270px;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.timeline span {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-bottom: 48px;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: clamp(48px, 7vw, 84px) clamp(20px, 5vw, 64px);
  background: var(--charcoal);
  color: var(--white);
}

.contact-band h2 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 1.05;
}

.contact-band p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 64px);
  background: #0c1214;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer span:first-child {
  color: var(--white);
  font-weight: 900;
}

@media (max-width: 980px) {
  .service-grid,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 14px 18px;
  }

  .menu-button {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 18px 18px;
    background: rgba(16, 23, 25, 0.98);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .hero {
    min-height: 88vh;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(5, 14, 16, 0.94), rgba(5, 14, 16, 0.58));
  }

  .hero-content {
    width: calc(100% - 36px);
    margin-left: 18px;
  }

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

  .trust-strip span {
    min-height: 68px;
  }

  .service-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .service-card,
  .timeline article {
    min-height: auto;
  }

  .service-card .icon,
  .timeline span {
    margin-bottom: 28px;
  }

  .button {
    width: 100%;
  }

  .site-footer,
  .contact-meta {
    flex-direction: column;
  }
}
