/*
Theme Name: Adonay Tecnologia
Theme URI: https://adonay.net.br
Author: Adonay
Description: Tema institucional one-page para adonay.net.br — desenvolvimento de sistemas e soluções de TI.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: adonay
*/

:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-400: #60a5fa;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --emerald-600: #059669;
  --radius: 1rem;
  --max-w: 80rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--slate-900);
  background-color: #fff;
  overflow-x: clip;
}

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

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

.font-display { font-family: "Space Grotesk", sans-serif; }

.wrap { max-width: var(--max-w); margin-inline: auto; padding-inline: 1.5rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.site-header.is-scrolled {
  background-color: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--slate-200);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.site-header .wrap {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--slate-900);
}
.site-logo span { color: var(--blue-600); }

.main-nav { display: none; align-items: center; gap: 2rem; }
.main-nav a.nav-link { font-size: .875rem; color: var(--slate-600); transition: color .2s ease; }
.main-nav a.nav-link:hover { color: var(--blue-600); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 500; border-radius: .5rem; padding: .75rem 1.5rem; transition: background-color .2s ease, border-color .2s ease;
  font-size: .875rem; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background-color: var(--blue-600); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.btn-primary:hover { background-color: var(--blue-700); }
.btn-outline { border-color: var(--slate-300); color: var(--slate-700); background: #fff; }
.btn-outline:hover { border-color: var(--slate-400); }
.btn-sm { padding: .5rem 1rem; }

.menu-toggle { display: inline-flex; background: none; border: 0; color: var(--slate-900); cursor: pointer; padding: .25rem; }

.mobile-nav {
  display: none;
  background: #fff;
  border-bottom: 1px solid var(--slate-200);
  padding: 1rem 1.5rem 1.5rem;
  flex-direction: column;
  gap: 1rem;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a { color: var(--slate-600); }
.mobile-nav .btn { text-align: center; color: #fff; }

@media (min-width: 768px) {
  .main-nav { display: flex; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--slate-50);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .1; }
.hero-bg .gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,.7), rgba(248,250,252,.85), var(--slate-50));
}
.hero-bg .grid-glow {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(37,99,235,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37,99,235,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
}
.hero .wrap { position: relative; padding-top: 7rem; padding-bottom: 4rem; width: 100%; }
.hero-content { max-width: 48rem; opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.hero-content.in-view { opacity: 1; transform: translateY(0); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 500; color: var(--blue-700);
  border: 1px solid var(--blue-200); background: var(--blue-50);
  border-radius: 9999px; padding: .25rem .75rem;
}
.eyebrow .dot { height: .375rem; width: .375rem; border-radius: 9999px; background: var(--blue-600); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.hero h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.5rem; font-weight: 700; line-height: 1.05; color: var(--slate-900);
  margin: 1.5rem 0 0;
}
.hero h1 span { color: var(--blue-600); }
.hero p.lead { font-size: 1.125rem; color: var(--slate-600); margin-top: 1.5rem; max-width: 36rem; line-height: 1.6; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

@media (min-width: 640px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero h1 { font-size: 3.75rem; } }

/* ---------- Ticker ---------- */
.ticker {
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
  background: #fff;
  padding-block: 1rem;
  overflow: hidden;
}
.ticker-track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.ticker-track span {
  margin-inline: 2rem; font-size: .875rem; font-weight: 500;
  color: var(--slate-400); text-transform: uppercase; letter-spacing: .08em;
  font-family: "Space Grotesk", sans-serif;
  white-space: nowrap;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- Section heading ---------- */
.section { padding-block: 6rem; }
.section.bg-alt { background: var(--slate-50); }
.eyebrow-label { color: var(--blue-600); font-family: "Space Grotesk", sans-serif; font-weight: 500; font-size: .875rem; text-transform: uppercase; letter-spacing: .15em; }
.section h2 { font-family: "Space Grotesk", sans-serif; font-size: 1.875rem; font-weight: 700; color: var(--slate-900); margin: .75rem 0 0; }
.section .lead { color: var(--slate-600); margin-top: 1rem; }
.section-head { max-width: 42rem; }
@media (min-width: 640px) { .section h2 { font-size: 2.25rem; } }

/* ---------- Services ---------- */
.services-grid {
  display: grid; gap: 1px; background: var(--slate-200);
  border: 1px solid var(--slate-200); border-radius: 1.25rem; overflow: hidden;
  margin-top: 3rem;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  background: #fff; padding: 2rem; transition: background-color .2s ease, opacity .5s ease, transform .5s ease;
  opacity: 0; transform: translateY(20px);
}
.service-card.in-view { opacity: 1; transform: translateY(0); }
.service-card:hover { background-color: rgba(239,246,255,.5); }
.service-icon {
  height: 3rem; width: 3rem; border-radius: .5rem;
  background: var(--blue-50); border: 1px solid var(--blue-100);
  display: flex; align-items: center; justify-content: center; color: var(--blue-600);
  transition: background-color .2s ease, color .2s ease;
}
.service-card:hover .service-icon { background: var(--blue-600); color: #fff; }
.service-card h3 { font-family: "Space Grotesk", sans-serif; font-size: 1.125rem; font-weight: 600; color: var(--slate-900); margin: 1.25rem 0 0; }
.service-card p { color: var(--slate-600); font-size: .875rem; margin-top: .5rem; line-height: 1.6; }

/* ---------- Portfolio ---------- */
.portfolio-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.portfolio-grid { display: grid; gap: 1.5rem; margin-top: 3rem; }
@media (min-width: 768px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); } }
.portfolio-card {
  border-radius: 1.25rem; overflow: hidden; border: 1px solid var(--slate-200); background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.04); transition: box-shadow .2s ease, opacity .5s ease, transform .5s ease;
  opacity: 0; transform: translateY(24px);
}
.portfolio-card.in-view { opacity: 1; transform: translateY(0); }
.portfolio-card:hover { box-shadow: 0 4px 10px rgba(0,0,0,.06); }
.portfolio-thumb { aspect-ratio: 4/3; overflow: hidden; }
.portfolio-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.portfolio-card:hover .portfolio-thumb img { transform: scale(1.05); }
.portfolio-body { padding: 1.5rem; }
.tag {
  font-size: .75rem; font-weight: 500; color: var(--blue-700);
  background: var(--blue-50); border: 1px solid var(--blue-100);
  border-radius: 9999px; padding: .125rem .625rem;
}
.portfolio-body h3 { font-family: "Space Grotesk", sans-serif; font-size: 1.125rem; font-weight: 600; color: var(--slate-900); margin: 1rem 0 0; }
.portfolio-body p { color: var(--slate-600); font-size: .875rem; margin-top: .5rem; line-height: 1.6; }
.metric { color: var(--emerald-600); font-size: .875rem; font-weight: 500; margin-top: 1rem; display: flex; align-items: center; gap: .5rem; }

/* ---------- Depoimentos ---------- */
.testimonials-grid { display: grid; gap: 1.5rem; margin-top: 3rem; }
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card {
  background: #fff; border: 1px solid var(--slate-200); border-radius: 1.25rem;
  padding: 2rem; box-shadow: 0 1px 2px rgba(0,0,0,.04);
  opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease;
}
.testimonial-card.in-view { opacity: 1; transform: translateY(0); }
.testimonial-card blockquote { margin: 0; color: var(--slate-700); font-size: .9375rem; line-height: 1.7; }
.testimonial-card figcaption { margin-top: 1.5rem; display: flex; flex-direction: column; }
.testimonial-card .name { font-family: "Space Grotesk", sans-serif; font-weight: 600; color: var(--slate-900); font-size: .875rem; }
.testimonial-card .role { color: var(--slate-500); font-size: .8125rem; margin-top: .125rem; }

.badges-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem 3rem;
  margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--slate-200);
}
.badge-item { display: flex; align-items: center; gap: .625rem; color: var(--slate-600); }
.badge-item .icon { color: var(--blue-600); }
.badge-item span { font-size: .8125rem; font-weight: 500; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 48rem; margin: 3rem auto 0; }
.faq-item { border-bottom: 1px solid var(--slate-200); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 1.25rem 0; font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: 1rem; color: var(--slate-900);
}
.faq-caret {
  flex-shrink: 0; width: 1.25rem; height: 1.25rem; position: relative;
}
.faq-caret::before, .faq-caret::after {
  content: ''; position: absolute; top: 50%; left: 50%; background: var(--slate-500);
  transition: transform .25s ease;
}
.faq-caret::before { width: 12px; height: 2px; transform: translate(-50%, -50%); }
.faq-caret::after { width: 2px; height: 12px; transform: translate(-50%, -50%); }
.faq-item.is-open .faq-caret::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.is-open .faq-answer { max-height: 20rem; }
.faq-answer p { color: var(--slate-600); font-size: .9375rem; line-height: 1.7; margin: 0 0 1.25rem; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-media {
  border-radius: 1.25rem; overflow: hidden; border: 1px solid var(--slate-200); box-shadow: 0 1px 2px rgba(0,0,0,.04);
  opacity: 0; transform: translateX(-20px); transition: opacity .6s ease, transform .6s ease;
}
.about-media.in-view { opacity: 1; transform: translateX(0); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-text p { color: var(--slate-600); margin-top: 1.25rem; line-height: 1.6; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.stat { border-top: 1px solid var(--slate-200); padding-top: 1rem; }
.stat .n { font-family: "Space Grotesk", sans-serif; font-size: 1.875rem; font-weight: 700; color: var(--blue-600); margin: 0; }
.stat .l { color: var(--slate-600); font-size: .875rem; margin-top: .25rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 3.5rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-links { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2.5rem; }
.contact-links a, .contact-links .item { display: flex; align-items: center; gap: 1rem; color: var(--slate-700); transition: color .2s ease; }
.contact-links a:hover { color: var(--blue-600); }
.contact-icon {
  height: 2.75rem; width: 2.75rem; border-radius: .5rem;
  background: var(--blue-50); border: 1px solid var(--blue-100);
  display: flex; align-items: center; justify-content: center; color: var(--blue-600); flex-shrink: 0;
}
.contact-form-wrap { border-radius: 1.25rem; border: 1px solid var(--slate-200); background: var(--slate-50); padding: 2rem; box-shadow: 0 1px 2px rgba(0,0,0,.04); }

/* WPForms — ajustado pra seguir a linguagem visual do resto do site */
.contact-form-wrap .wpforms-container { margin: 0; }
.contact-form-wrap .wpforms-form .wpforms-field { padding: 0 0 1rem; }
.contact-form-wrap .wpforms-field-label { font-size: .8125rem; font-weight: 500; color: var(--slate-700); margin-bottom: .375rem; }
.contact-form-wrap .wpforms-field input[type="text"],
.contact-form-wrap .wpforms-field input[type="email"],
.contact-form-wrap .wpforms-field input[type="tel"],
.contact-form-wrap .wpforms-field textarea,
.contact-form-wrap .wpforms-field select {
  width: 100%; background: #fff; border: 1px solid var(--slate-300) !important; border-radius: .5rem !important;
  padding: .75rem 1rem !important; color: var(--slate-900); font-size: .875rem; font-family: inherit;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form-wrap .wpforms-field input:focus,
.contact-form-wrap .wpforms-field textarea:focus,
.contact-form-wrap .wpforms-field select:focus {
  outline: none; border-color: var(--blue-600) !important; box-shadow: 0 0 0 1px var(--blue-600);
}
.contact-form-wrap .wpforms-field-checkbox label,
.contact-form-wrap .wpforms-field-gdpr-checkbox label { font-size: .8125rem; color: var(--slate-600); }
.contact-form-wrap .wpforms-submit-container { margin-top: .5rem; }
.contact-form-wrap button.wpforms-submit {
  width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 500; font-family: inherit; font-size: .875rem; border-radius: .5rem !important; border: 0 !important;
  padding: .75rem 1.5rem !important; background-color: var(--blue-600) !important; color: #fff !important;
  transition: background-color .2s ease; cursor: pointer;
}
.contact-form-wrap button.wpforms-submit:hover { background-color: var(--blue-700) !important; }
.contact-form-wrap .wpforms-error-container,
.contact-form-wrap .wpforms-field-description { font-size: .8125rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-900); padding-block: 3.5rem; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.footer-brand p.tag { font-family: "Space Grotesk", sans-serif; font-size: 1.25rem; font-weight: 700; color: #fff; }
.footer-brand p.tag span { color: var(--blue-400); }
.footer-brand p.desc { color: var(--slate-400); font-size: .875rem; margin-top: 1rem; max-width: 20rem; line-height: 1.6; }
.footer-col p.title { font-family: "Space Grotesk", sans-serif; font-weight: 600; color: #fff; font-size: .875rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-col ul { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul a { color: var(--slate-400); font-size: .875rem; transition: color .2s ease; }
.footer-col ul a:hover { color: #fff; }
.footer-col ul li.item { color: var(--slate-400); font-size: .875rem; display: flex; align-items: center; gap: .5rem; }
.footer-social { display: flex; gap: .75rem; margin-top: 1.5rem; }
.footer-social a {
  height: 2.25rem; width: 2.25rem; border-radius: .5rem;
  background: rgba(255,255,255,.05); border: 1px solid #1e293b;
  display: flex; align-items: center; justify-content: center; color: var(--slate-400);
  transition: color .2s ease, background-color .2s ease;
}
.footer-social a:hover { color: #fff; background: rgba(255,255,255,.1); }
.footer-bottom {
  max-width: var(--max-w); margin: 3rem auto 0; padding: 1.5rem 1.5rem 0; border-top: 1px solid #1e293b;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1.5rem;
  text-align: center; color: #64748b; font-size: .875rem;
}
.footer-privacy-link { color: #94a3b8; text-decoration: underline; white-space: nowrap; }
.footer-privacy-link:hover { color: #fff; }

.icon { width: 1em; height: 1em; }
.text-blue { color: var(--blue-600); }
.screen-reader-text { position: absolute; left: -9999px; }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 60;
  height: 3.5rem;
  width: 3.5rem;
  border-radius: 9999px;
  background-color: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.whatsapp-float .icon { width: 1.75rem; height: 1.75rem; }
@media (max-width: 640px) {
  .whatsapp-float { right: 1rem; bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)); height: 3.25rem; width: 3.25rem; }
}

/* ---------- CTA fixo no mobile ---------- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 55;
  padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--slate-200);
  box-shadow: 0 -2px 10px rgba(0,0,0,.05);
}
.mobile-cta-bar .btn { width: 100%; }
@media (max-width: 767px) {
  .mobile-cta-bar { display: block; }
  body { padding-bottom: 4.5rem; }
}
