/*
Theme Name: AE Comunicação V6.2
Theme URI: https://example.com/
Author: Perplexity
Author URI: https://perplexity.ai/
Description: Tema WordPress institucional limpo e estável para a AE Comunicação.
Version: 1.6.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: ae-comunicacao-v62
*/

:root {
  --bg-navy: #031d5b;
  --bg-navy-2: #021548;
  --red: #ee3f43;
  --red-dark: #d93236;
  --white: #ffffff;
  --text: #13203f;
  --muted: #5b647a;
  --shadow: 0 18px 45px rgba(7, 19, 59, 0.12);
  --content: 1200px;
  --font: 'Montserrat', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--white); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: #fff; padding: .8rem 1rem; z-index: 100; }
.container { width: min(calc(100% - 2rem), var(--content)); margin-inline: auto; }
.center { text-align: center; }
.hero-header { background: radial-gradient(circle at 10% 15%, rgba(255,255,255,.12) 0 2px, transparent 2px 100%), linear-gradient(135deg, var(--bg-navy) 0%, #021441 60%, #031c5d 100%); color: var(--white); overflow: hidden; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 1.5rem 0 0.5rem; }
.logo-link img { width: 130px; height: auto; }
.nav { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.nav a { font-size: .84rem; font-weight: 700; letter-spacing: .02em; opacity: .95; }
.nav a.active, .nav a:hover, .nav .current-menu-item > a { color: var(--red); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--white); font-size: 1.8rem; }
.mobile-panel { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .95rem 1.5rem; border-radius: 8px; font-size: .9rem; font-weight: 800; transition: .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-dark { background: var(--bg-navy-2); color: var(--white); }
.hero-grid { display: grid; grid-template-columns: 0.95fr 1.15fr; align-items: center; gap: 1rem; padding: 1.2rem 0 0; }
.hero-copy { padding: 2rem 0 4rem; max-width: 470px; }
.hero-copy h1 { margin: 0 0 1rem; font-size: clamp(2.5rem, 4vw, 5rem); line-height: .95; font-weight: 800; letter-spacing: -0.04em; color: var(--white); }
.hero-copy h1 span { color: var(--red); }
.hero-copy p { max-width: 420px; margin: 0 0 2rem; font-size: 1.05rem; line-height: 1.7; color: rgba(255,255,255,.9); }
.hero-image-wrap { position: relative; min-height: 640px; display: flex; align-items: flex-end; justify-content: flex-end; --hero-max-width: 820px; --hero-max-height: 680px; --hero-object-position: center top; --hero-border-radius: 0px; }
.curve-shape { position: absolute; left: -8%; top: -6%; width: 54%; height: 120%; background: linear-gradient(135deg, #07215f, #001441); border-top-right-radius: 220px; border-bottom-right-radius: 220px; z-index: 0; }
.hero-image-wrap img { position: relative; z-index: 1; width: min(100%, var(--hero-max-width)); max-height: var(--hero-max-height); object-fit: cover; object-position: var(--hero-object-position); border-radius: var(--hero-border-radius); }
.section, .portfolio-section, .blog-section, .testimonials-section { padding: 4rem 0; }
.eyebrow { display: inline-block; margin-bottom: .6rem; color: var(--red); font-weight: 800; font-size: .95rem; }
.section-title h2, .about-copy h2, .footer-copy h2, .portfolio-grid-title { margin: 0; font-size: clamp(2rem, 2.8vw, 3.5rem); line-height: 1.05; letter-spacing: -0.03em; color: #15254d; }
.cards-grid, .portfolio-grid, .blog-grid, .testimonials-grid { display: grid; gap: 1.4rem; margin-top: 2rem; }
.cards-grid { grid-template-columns: repeat(4, 1fr); }
.portfolio-grid, .blog-grid, .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
.service-card, .portfolio-card, .blog-card, .testimonial-card { background: var(--white); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.service-card, .portfolio-card, .testimonial-card { padding: 1.8rem; }
.blog-card-body { padding: 1.4rem; }
.icon-circle { width: 78px; height: 78px; margin: 0 auto 1rem; border-radius: 50%; background: var(--bg-navy); color: var(--red); display: grid; place-items: center; font-size: 2rem; font-weight: 700; }
.service-card h3, .portfolio-card h3, .blog-card h3, .testimonial-card h3 { margin: .4rem 0 .9rem; font-size: 1.4rem; color: #1a2850; }
.service-card p, .portfolio-card p, .blog-card p, .testimonial-card p { margin: 0; color: var(--muted); line-height: 1.8; font-size: 1rem; }
.blog-card img, .portfolio-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.services-cta { margin-top: 1.8rem; }
.about-band, .site-footer { background: linear-gradient(135deg, var(--bg-navy) 0%, #02133e 100%); color: var(--white); }
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2rem; align-items: start; }
.about-copy h2, .about-copy p, .footer-copy h2, .footer-copy p, .footer-contact a, .footer-contact span { color: var(--white); }
.about-copy p, .footer-copy p { line-height: 1.8; color: rgba(255,255,255,.9); }
.about-features { display: grid; grid-template-columns: repeat(2, 1fr); border-left: 1px solid rgba(255,255,255,.16); border-top: 1px solid rgba(255,255,255,.16); }
.feature-item { display: flex; gap: 1rem; padding: 1.5rem 1.2rem; border-right: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); }
.feature-icon { color: var(--red); font-size: 2rem; line-height: 1; }
.feature-item h3 { margin: 0 0 .5rem; font-size: 1.35rem; color: var(--white); }
.feature-item p { margin: 0; color: rgba(255,255,255,.82); line-height: 1.6; }
.stats-strip { background: #ffffff; padding: 1.8rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: center; }
.stat-item { display: flex; align-items: center; gap: 1rem; justify-content: center; color: #1c2744; }
.stat-icon { color: #273453; }
.metric-icon-fa i { font-size: 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr .8fr; gap: 2rem; align-items: center; }
.footer-contact { display: grid; gap: 1rem; }
.footer-brand { justify-self: end; text-align: center; }
.footer-brand img { width: 160px; height: auto; margin: 0 auto 1rem; }
.socials { display: flex; gap: .8rem; justify-content: center; }
.socials a, .contact-icon, .social-icon { display: inline-grid; place-items: center; }
.socials a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; color: var(--white); }
.contact-line { display: flex; align-items: center; gap: .75rem; }
.contact-icon { width: 2rem; min-width: 2rem; height: 2rem; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--white); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
@media (max-width: 1100px) {
  .nav { display: none; }
  .desktop-btn { display: none; }
  .menu-toggle { display: inline-block; }
  .mobile-panel { display: grid; gap: .4rem; padding: 0 1rem 1rem; }
  .mobile-panel[hidden] { display: none; }
  .mobile-panel a { color: var(--white); font-weight: 700; padding: .6rem 0; }
  .mobile-btn { margin-top: .5rem; width: fit-content; }
  .hero-grid, .about-grid, .footer-grid, .stats-grid, .cards-grid, .portfolio-grid, .blog-grid, .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { justify-self: start; }
}
@media (max-width: 760px) {
  .hero-grid, .about-grid, .footer-grid, .stats-grid, .cards-grid, .about-features, .portfolio-grid, .blog-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 1rem 0 0; max-width: 100%; }
  .hero-copy p { max-width: 100%; }
  .hero-image-wrap { min-height: auto; }
  .curve-shape { width: 42%; height: 100%; left: auto; right: -12%; border-radius: 180px 0 0 180px; }
  .hero-image-wrap img { max-height: none; width: 100%; }
  .topbar { padding-top: 1rem; }
}
