/* ===== D+ Engenharia - WordPress Theme Styles ===== */

/* --- Reset & Variables --- */
:root {
  --primary: hsl(0, 0%, 8%);
  --primary-fg: hsl(0, 0%, 100%);
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(0, 0%, 8%);
  --secondary: hsl(0, 0%, 96%);
  --muted: hsl(0, 0%, 45%);
  --accent: hsl(0, 85%, 45%);
  --accent-fg: hsl(0, 0%, 100%);
  --border: hsl(0, 0%, 90%);
  --radius: 0.75rem;
  --shadow-card: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-card-hover: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.hidden { display: none !important; }

/* --- Container --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Text Utilities --- */
.text-accent { color: var(--accent); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  padding: 0.625rem 1.25rem;
}
.btn--sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn--lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--accent {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}
.btn--accent:hover { opacity: 0.9; transform: translateY(-1px); }
.btn--outline-white {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
}
.btn--outline-white:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.6); }

/* --- Header --- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: all 0.3s;
}
.header--scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}
.header__logo-img { height: 2.5rem; width: auto; transition: all 0.3s; }
.header__logo-img--dark { display: none; }
.header--scrolled .header__logo-img--white { display: none; }
.header--scrolled .header__logo-img--dark { display: block; }

.header__nav { display: none; align-items: center; gap: 2rem; }
.header__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  transition: color 0.2s;
}
.header__link:hover { color: var(--accent); }
.header--scrolled .header__link { color: var(--foreground); }

.header__mobile-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
}
.header--scrolled .header__mobile-toggle { color: var(--foreground); }
.header__icon--close { display: none; }
.header__mobile-toggle.active .header__icon--menu { display: none; }
.header__mobile-toggle.active .header__icon--close { display: block; }

.header__mobile-menu {
  display: none;
  background: var(--background);
  border-top: 1px solid var(--border);
  padding: 1rem 0;
}
.header__mobile-menu.active { display: block; }
.header__mobile-link {
  display: block;
  padding: 0.5rem 1.5rem;
  color: var(--foreground);
  font-weight: 500;
  transition: color 0.2s;
}
.header__mobile-link:hover { color: var(--accent); }

@media (min-width: 768px) {
  .header__nav { display: flex; }
  .header__mobile-toggle { display: none; }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hero__slide--active { opacity: 1; }
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.6), rgba(0,0,0,0.4));
}
.hero__content {
  position: relative;
  z-index: 10;
  padding: 5rem 0;
}
.hero__text { max-width: 48rem; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(185,28,28,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(185,28,28,0.3);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}
.hero__badge-dot {
  width: 0.5rem; height: 0.5rem;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero__subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  max-width: 42rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__stats {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.hero__stat { text-align: center; }
.hero__stat-number { font-size: 1.875rem; font-weight: 700; color: var(--accent); }
.hero__stat-label { font-size: 0.875rem; color: rgba(255,255,255,0.6); }

.hero__indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 20;
}
.hero__indicator {
  width: 0.5rem; height: 0.5rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.hero__indicator--active {
  background: var(--accent);
  width: 1.5rem;
}

@media (min-width: 768px) {
  .hero__title { font-size: 3rem; }
}
@media (min-width: 1024px) {
  .hero__title { font-size: 3.75rem; }
}

/* --- Sections --- */
.section { padding: 5rem 0; }
.section--alt { background: var(--secondary); }
.section__header { text-align: center; max-width: 48rem; margin: 0 auto 4rem; }
.section__label {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.section__title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}
.section__title--left { text-align: left; }
.section__desc { color: var(--muted); font-size: 1.125rem; }

@media (min-width: 768px) {
  .section { padding: 8rem 0; }
  .section__title { font-size: 2.25rem; }
}
@media (min-width: 1024px) {
  .section__title { font-size: 3rem; }
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s;
  cursor: pointer;
}
.service-card:hover {
  border-color: rgba(185,28,28,0.3);
  box-shadow: var(--shadow-card-hover);
}
.service-card__icon {
  width: 3.5rem; height: 3.5rem;
  border-radius: 0.75rem;
  background: rgba(185,28,28,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
  transition: all 0.3s;
}
.service-card:hover .service-card__icon {
  background: var(--accent);
  color: #fff;
  transform: scale(1.1);
}
.service-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}
.service-card:hover .service-card__title { color: var(--accent); }
.service-card__desc { color: var(--muted); line-height: 1.7; }

/* --- Authority --- */
.authority-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .authority-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }

.authority__text { color: var(--muted); font-size: 1.125rem; margin-bottom: 2rem; line-height: 1.8; }
.authority__features { display: flex; flex-direction: column; gap: 1.5rem; }
.authority__feature { display: flex; gap: 1rem; }
.authority__feature-icon {
  flex-shrink: 0;
  width: 3rem; height: 3rem;
  border-radius: 0.75rem;
  background: rgba(185,28,28,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.authority__feature-title { font-weight: 700; color: var(--foreground); margin-bottom: 0.25rem; }
.authority__feature-desc { color: var(--muted); font-size: 0.875rem; }

.authority__certs-wrapper { position: relative; }
.authority__certs {
  background: var(--foreground);
  border-radius: 1rem;
  padding: 2rem;
}
@media (min-width: 1024px) { .authority__certs { padding: 3rem; } }
.authority__certs-title { font-size: 1.5rem; font-weight: 700; color: var(--background); margin-bottom: 1.5rem; }
.authority__certs-desc { color: rgba(255,255,255,0.7); margin-bottom: 2rem; }
.authority__certs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.authority__cert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--accent);
}
.authority__cert span { color: rgba(255,255,255,0.9); font-size: 0.875rem; font-weight: 500; }

.authority__lgpd {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.authority__lgpd-img {
  width: 5rem;
  height: auto;
  border-radius: 0.5rem;
  flex-shrink: 0;
}
.authority__lgpd-title { font-size: 1.5rem; font-weight: 700; color: var(--background); }
.authority__lgpd-desc { color: rgba(255,255,255,0.6); font-size: 0.875rem; }

.authority__deco {
  position: absolute;
  border-radius: 1rem;
  z-index: -1;
}
.authority__deco--top { top: -1rem; right: -1rem; width: 6rem; height: 6rem; background: rgba(185,28,28,0.2); }
.authority__deco--bottom { bottom: -1rem; left: -1rem; width: 8rem; height: 8rem; background: rgba(185,28,28,0.1); }

/* --- Partners --- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 768px) { .partners-grid { grid-template-columns: repeat(4, 1fr); } }

.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  padding: 1.5rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 0.3s;
}
.partner-card:hover { border-color: rgba(185,28,28,0.3); }
.partner-card__img { max-height: 4rem; width: auto; object-fit: contain; }
.partners__note { text-align: center; color: var(--muted); font-size: 0.875rem; margin-top: 2rem; }

/* --- Contact --- */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }

.contact__desc { color: var(--muted); font-size: 1.125rem; margin-bottom: 2.5rem; }
.contact__details { display: flex; flex-direction: column; gap: 1.5rem; }
.contact__detail { display: flex; align-items: center; gap: 1rem; }
.contact__detail-icon {
  width: 3rem; height: 3rem;
  border-radius: 0.75rem;
  background: rgba(185,28,28,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.contact__detail-label { font-size: 0.875rem; color: var(--muted); }
.contact__detail-value { font-weight: 600; color: var(--foreground); }

.contact__form-wrapper {
  background: var(--background);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}
@media (min-width: 1024px) { .contact__form-wrapper { padding: 2.5rem; } }
.contact__form { display: flex; flex-direction: column; gap: 1.5rem; }

.form-group { display: flex; flex-direction: column; }
.form-label { font-size: 0.875rem; font-weight: 500; color: var(--foreground); margin-bottom: 0.5rem; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
  font-family: inherit;
  transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(185,28,28,0.1);
}
.form-input { height: 3rem; }
.form-textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-disclaimer { font-size: 0.75rem; color: var(--muted); text-align: center; }

.contact__success {
  text-align: center;
  padding: 3rem;
  animation: fadeIn 0.6s ease-out;
}
.contact__success-icon {
  width: 5rem; height: 5rem;
  border-radius: 50%;
  background: rgba(185,28,28,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--accent);
}
.contact__success h2 { font-size: 1.875rem; font-weight: 700; margin-bottom: 1rem; }
.contact__success p { color: var(--muted); font-size: 1.125rem; }

/* --- Footer --- */
.footer {
  background: var(--foreground);
  color: var(--background);
  padding: 4rem 0;
}
.footer__grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer__logo { height: 2.5rem; width: auto; margin-bottom: 1rem; }
.footer__desc { color: rgba(255,255,255,0.6); max-width: 28rem; margin-bottom: 1rem; }
.footer__contact-info { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.footer__contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer__contact-link:hover { color: var(--accent); }
.footer__address {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
}
.footer__social { display: flex; gap: 1rem; }
.footer__social-link {
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.footer__social-link:hover { background: var(--accent); }

.footer__heading { font-weight: 700; font-size: 1.125rem; margin-bottom: 1rem; }
.footer__links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__links a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer__links a:hover { color: var(--accent); }

.footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 3.5rem;
  height: 3.5rem;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.1); }

/* --- Animation --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeIn 0.6s ease-out forwards; opacity: 0; }
