/*
Theme Name: Amorim e Teles
Theme URI: https://amorimteles.com.br
Author: Amorim e Teles Engenharia Elétrica
Description: Tema personalizado para Amorim e Teles Engenharia Elétrica — compatível com Elementor
Version: 3.0
Text Domain: amorim-teles
*/

:root {
  --lima: #D9DB77;
  --lima-escuro: #B8BA52;
  --azul: #3A6784;
  --azul-medio: #1C3E52;
  --azul-profundo: #0D2233;
  --branco: #FFFFFF;
  --off-white: #F7F7F4;
  --cinza: #9A9A94;
  --texto: #1A1A1A;
  --texto-suave: #5A5A5A;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Gabarito', sans-serif;
  background: var(--branco);
  color: var(--texto);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ─── ELEMENTOR RESET ─── */
.elementor-section { padding: 0 !important; }
.elementor-widget-wrap { padding: 0 !important; }

/* ─── TIPOGRAFIA GLOBAL ─── */
.at-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--azul);
  display: block;
  margin-bottom: 16px;
}
.at-label--light { color: rgba(217,219,119,0.7); }

/* ─── BOTÕES ─── */
.at-btn {
  display: inline-block;
  font-family: 'Gabarito', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 13px 32px !important;
  border-radius: 2px !important;
  border: none !important;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s !important;
  text-decoration: none !important;
}
.at-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.at-btn--primary {
  background: var(--lima) !important;
  color: var(--azul-profundo) !important;
}
.at-btn--ghost {
  background: transparent !important;
  color: rgba(255,255,255,0.7) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
}
.at-btn--ghost:hover { border-color: var(--lima) !important; color: var(--lima) !important; }
.at-btn--dark {
  background: var(--azul-profundo) !important;
  color: var(--branco) !important;
}

/* Elementor button override */
.elementor-button.at-btn--primary {
  background: var(--lima) !important;
  color: var(--azul-profundo) !important;
  border-radius: 2px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}
.elementor-button.at-btn--dark {
  background: var(--azul-profundo) !important;
  color: var(--branco) !important;
  border-radius: 2px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

/* ─── SEÇÕES ─── */
.at-sec--dark { background: var(--azul-profundo); }
.at-sec--mid  { background: var(--azul-medio); }
.at-sec--light { background: var(--off-white); }
.at-sec--white { background: var(--branco); }

/* ─── HERO ─── */
.at-hero {
  background: var(--azul-profundo);
  position: relative;
  overflow: hidden;
}

.at-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 45%;
  height: 100%;
  background: var(--azul-medio);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: 0.5;
  pointer-events: none;
}

.at-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 620px;
  padding: 160px 64px 100px;
}

.at-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
}
.at-hero__eyebrow::before {
  content: '';
  display: block;
  width: 36px; height: 1px;
  background: var(--lima);
  flex-shrink: 0;
}

.at-hero__title {
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 900;
  color: var(--branco);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}
.at-hero__title em { font-style: normal; color: var(--lima); }

.at-hero__sub {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255,255,255,0.5);
  margin-bottom: 48px;
  max-width: 500px;
}

.at-hero__btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-start;
  width: 100%;
}

.at-hero__btns .at-btn {
  flex-shrink: 0;
}

/* Barra de stats — bloco independente */
.at-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--azul-profundo);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.at-stat {
  padding: 28px 48px;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.at-stat:last-child { border-right: none; }
.at-stat__num {
  font-size: 30px;
  font-weight: 900;
  color: var(--lima);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.at-stat__desc {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  line-height: 1.5;
}

/* ─── SOBRE ─── */
.at-sobre {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 640px;
}
.at-sobre__foto {
  background: var(--azul-medio);
  position: relative;
  overflow: hidden;
  min-height: 480px;
}
.at-sobre__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.at-sobre__foto-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding: 40px;
}
.at-sobre__foto-placeholder span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  text-align: center;
  line-height: 1.8;
}
.at-sobre__content {
  background: var(--branco);
  padding: 80px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.at-sobre__titulo {
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 900;
  color: var(--azul-profundo);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}
.at-sobre__titulo em { font-style: normal; color: var(--azul); }
.at-sobre__texto {
  font-size: 16px;
  line-height: 1.85;
  color: var(--texto-suave);
  margin-bottom: 18px;
}
.at-sobre__destaque {
  margin-top: 32px;
  padding: 20px 24px;
  border-left: 3px solid var(--lima);
  background: var(--off-white);
  border-radius: 0 2px 2px 0;
}
.at-sobre__destaque p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--azul-medio);
  font-style: italic;
}

/* ─── SERVIÇOS ─── */
.at-servicos {
  background: var(--azul-profundo);
  padding: 96px 64px;
}
.at-servicos__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  max-width: 1200px;
  margin: 0 auto 56px;
  gap: 40px;
}
.at-servicos__titulo {
  font-size: clamp(34px, 3.5vw, 50px);
  font-weight: 900;
  color: var(--branco);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.at-servicos__titulo em { font-style: normal; color: var(--lima); }

.at-servicos__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255,255,255,0.07);
}
.at-servico {
  padding: 38px 32px;
  border-right: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative;
  transition: background 0.25s;
}
.at-servico:hover { background: rgba(255,255,255,0.03); }
.at-servico::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 2px; width: 0;
  background: var(--lima);
  transition: width 0.35s ease;
}
.at-servico:hover::after { width: 100%; }
.at-servico__num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(217,219,119,0.25);
  margin-bottom: 18px;
}
.at-servico__titulo {
  font-size: 16px;
  font-weight: 800;
  color: var(--branco);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.at-servico__desc {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.38);
}

/* ─── DIFERENCIAIS ─── */
.at-diferenciais {
  background: var(--off-white);
  padding: 96px 64px;
}
.at-diferenciais__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 80px;
  align-items: start;
}
.at-diferenciais__titulo {
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 900;
  color: var(--azul-profundo);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-top: 16px;
}
.at-diferenciais__titulo em { font-style: normal; color: var(--azul); }
.at-diferenciais__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #ddddd8;
}
.at-diferencial {
  background: var(--off-white);
  padding: 36px 32px;
  transition: background 0.2s;
}
.at-diferencial:hover { background: var(--branco); }
.at-diferencial__num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--azul);
  opacity: 0.4;
  margin-bottom: 14px;
}
.at-diferencial__titulo {
  font-size: 16px;
  font-weight: 800;
  color: var(--azul-profundo);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.at-diferencial__desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--texto-suave);
}

/* ─── CONTATO ─── */
.at-contato {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 640px;
}
.at-contato__info {
  background: var(--azul-profundo);
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.at-contato__info::before {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 360px; height: 360px;
  border: 1px solid rgba(217,219,119,0.07);
  transform: rotate(20deg);
  pointer-events: none;
}
.at-contato__titulo {
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 900;
  color: var(--branco);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.at-contato__titulo em { font-style: normal; color: var(--lima); }
.at-contato__sub {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255,255,255,0.4);
  margin-bottom: 44px;
  max-width: 340px;
}
.at-contato__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.at-contato__icon {
  width: 36px; height: 36px;
  background: rgba(217,219,119,0.08);
  border: 1px solid rgba(217,219,119,0.12);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.at-contato__icon svg { width: 15px; height: 15px; fill: var(--lima); }
.at-contato__item-texto {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  line-height: 1.6;
}
.at-contato__form {
  padding: 80px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--branco);
}
.at-contato__form-titulo {
  font-size: 22px;
  font-weight: 900;
  color: var(--azul-profundo);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

/* ─── CF7 ─── */
.wpcf7 { width: 100%; }
.wpcf7 br { display: none; }
.wpcf7 p { margin-bottom: 14px; }
.wpcf7 p:last-of-type { margin-bottom: 0; }
.wpcf7 .wpcf7-form-control-wrap { display: block; width: 100%; }

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #DDDDD8;
  background: var(--off-white);
  font-family: 'Gabarito', sans-serif;
  font-size: 15px;
  color: var(--texto);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  appearance: none;
}
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  border-color: var(--azul);
  background: var(--branco);
}
.wpcf7 textarea { min-height: 120px; resize: vertical; }
.wpcf7 input[type="submit"] {
  width: 100%;
  background: var(--azul-profundo);
  color: var(--branco);
  padding: 14px 24px;
  border: none;
  border-radius: 2px;
  font-family: 'Gabarito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}
.wpcf7 input[type="submit"]:hover { background: var(--azul); }
.wpcf7-response-output {
  margin-top: 16px !important;
  padding: 12px 16px !important;
  border-radius: 2px !important;
  font-size: 13px !important;
  border: none !important;
  font-family: 'Gabarito', sans-serif !important;
}
.wpcf7-mail-sent-ok { background: rgba(125,206,160,0.12) !important; color: #1E6B42 !important; }
.wpcf7-validation-errors { background: rgba(217,219,119,0.15) !important; color: var(--azul-medio) !important; }
.wpcf7-not-valid-tip { font-size: 12px !important; color: #B85A2A !important; margin-top: 4px !important; }

/* ─── FOOTER ─── */
.at-footer {
  background: var(--azul-profundo);
  padding: 36px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.at-footer__logo img,
.at-footer__logo .custom-logo {
  height: 30px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.45;
  display: block;
}
.at-footer__copy {
  font-size: 12px;
  color: rgba(255,255,255,0.22);
  letter-spacing: 0.04em;
}
.at-footer__nav { display: flex; gap: 24px; }
.at-footer__nav a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  transition: color 0.2s;
}
.at-footer__nav a:hover { color: var(--lima); }

/* ─── NAV ─── */
.at-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 64px;
  height: 68px;
  background: var(--azul-profundo);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.at-nav__logo {
  display: flex;
  align-items: center;
  height: 100%;
}
.at-nav__logo img,
.at-nav__logo .custom-logo {
  height: 38px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  display: block;
}
.at-nav__links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.at-nav__links a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.at-nav__links a:hover { color: var(--lima); }
.at-nav__cta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--azul-profundo);
  background: var(--lima);
  padding: 10px 26px;
  border-radius: 2px;
  transition: opacity 0.2s;
}
.at-nav__cta:hover { opacity: 0.85; }
.at-nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.at-nav__hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: rgba(255,255,255,0.6);
  transition: all 0.3s;
}

/* ─── RESPONSIVO ─── */
@media (max-width: 1024px) {
  .at-nav { padding: 0 24px; }
  .at-nav__links { display: none; }
  .at-nav__cta { display: none; }
  .at-nav__hamburger { display: flex; }

  .at-nav__mobile-menu {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--azul-profundo);
    padding: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 9998;
  }
  .at-nav__mobile-menu.open { display: flex; }
  .at-nav__mobile-menu a {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: color 0.2s;
  }
  .at-nav__mobile-menu a:hover { color: var(--lima); }
  .at-nav__mobile-menu .at-nav__cta-mobile {
    display: block;
    background: var(--lima);
    color: var(--azul-profundo);
    text-align: center;
    padding: 14px;
    margin-top: 8px;
    border: none;
    border-radius: 2px;
  }

  .at-hero__inner { padding: 100px 24px 64px; width: 100%; }
  .at-hero__btns { flex-direction: column; }
  .at-hero__btns .at-btn { width: 100%; text-align: center; }
  .at-stats { grid-template-columns: 1fr 1fr 1fr; }
  .at-stat { padding: 20px 24px; }

  .at-sobre { grid-template-columns: 1fr; }
  .at-sobre__foto { min-height: 300px; }
  .at-sobre__content { padding: 56px 32px; }

  .at-servicos { padding: 72px 24px; }
  .at-servicos__header { flex-direction: column; align-items: flex-start; gap: 24px; }
  .at-servicos__grid { grid-template-columns: 1fr 1fr; }

  .at-diferenciais { padding: 72px 24px; }
  .at-diferenciais__inner { grid-template-columns: 1fr; gap: 36px; }

  .at-contato { grid-template-columns: 1fr; }
  .at-contato__info { padding: 56px 32px; }
  .at-contato__form { padding: 56px 32px; }

  .at-footer { padding: 32px 24px; flex-direction: column; gap: 20px; text-align: center; }
  .at-footer__nav { justify-content: center; }
}

@media (max-width: 640px) {
  .at-hero__inner { padding: 100px 20px 48px; }
  .at-hero__btns { flex-direction: column; align-items: stretch; }
  .at-hero__btns .at-btn { text-align: center; width: 100%; }
  .at-stats { grid-template-columns: 1fr; }
  .at-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); padding: 20px 20px; }
  .at-stat:last-child { border-bottom: none; }
  .at-servicos__grid { grid-template-columns: 1fr; }
  .at-diferenciais__grid { grid-template-columns: 1fr; }
  .at-sobre__content { padding: 48px 20px; }
  .at-contato__info { padding: 48px 20px; }
  .at-contato__form { padding: 48px 20px; }
}
