/* ===========================================================
   Centro Auditivo Fortaleza — Design System
   Vermelho da marca + preto + cinza + branco
   =========================================================== */

:root {
  /* Marca */
  --red: #e9060c;
  --red-dark: #b3040a;
  --red-darker: #7a0307;
  --red-light: #ff4d52;
  --red-bg: #fdeceb;

  /* Neutros */
  --black: #1a1a1a;
  --gray-900: #2b2b2b;
  --gray-700: #555555;
  --gray-500: #888888;
  --gray-400: #aaaaaa;
  --gray-300: #d9d9d9;
  --gray-200: #e8e8e8;
  --gray-100: #f4f4f5;
  --white: #ffffff;

  /* Texto */
  --text: var(--gray-900);
  --text-muted: var(--gray-700);
  --bg: var(--white);
  --bg-alt: var(--gray-100);

  /* Tipografia */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --container: 1180px;
  --header-h: 86px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(26, 26, 26, 0.08);
  --shadow-lg: 0 20px 50px rgba(26, 26, 26, 0.14);
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--black);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { color: var(--text-muted); }

.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head .tag {
  display: inline-block;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.section-head p { margin-top: 14px; }

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(233, 6, 12, 0.35);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border-color: var(--gray-300);
  color: var(--black);
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }

.btn-dark {
  background: var(--black);
  color: var(--white);
}
.btn-dark:hover { background: var(--gray-900); transform: translateY(-2px); }

.btn-block { width: 100%; justify-content: center; }
.btn svg { flex-shrink: 0; }
.header__cta .btn-primary .cta-short { display: none; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
  transition: var(--transition);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header__logo img { height: 50px; }

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gray-900);
  position: relative;
  transition: var(--transition);
}
.nav a:hover { color: var(--red); }
.nav a.active { color: var(--red); }

.header__cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--gray-900);
  font-size: 0.95rem;
}
.header__phone svg { color: var(--red); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { width: 26px; height: 3px; background: var(--black); border-radius: 2px; }

/* ===== Hero ===== */
.hero {
  padding: calc(var(--header-h) + 64px) 0 80px;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 60%);
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red-bg);
  color: var(--red-dark);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 { margin-bottom: 18px; }
.hero h1 span { color: var(--red); }

.hero p.lead {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero__stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.hero__stats div strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--black);
}
.hero__stats div span { font-size: 0.85rem; color: var(--text-muted); }

.hero__media {
  position: relative;
}
.hero__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4/3.4;
  object-fit: cover;
  background: var(--gray-200);
}

.hero__media .float-card {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 240px;
}
.hero__media .float-card .ic {
  width: 42px; height: 42px;
  background: var(--red-bg);
  color: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero__media .float-card strong { display: block; font-size: 0.95rem; color: var(--black); }
.hero__media .float-card span { font-size: 0.8rem; color: var(--text-muted); }

/* ===== Marcas / logos strip ===== */
.brands-strip {
  padding: 36px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.brands-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.brands-strip span.label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.brands-strip .brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gray-700);
  letter-spacing: 0.03em;
}

.brands-strip .brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brands-strip .brand-logo img { height: 28px; width: auto; object-fit: contain; }
.brands-strip .brand-logo img.icon-mark { height: 24px; }
.brands-strip .brand-logo span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--gray-700);
}

/* ===== Cards genéricos ===== */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }

.card .ic {
  width: 52px; height: 52px;
  background: var(--red-bg);
  color: var(--red);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }

.brand-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  padding: 12px;
}

/* ===== Sinais de alerta (checklist) ===== */
.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-weight: 600;
  color: var(--gray-900);
  font-size: 0.95rem;
}
.checklist li .ic {
  width: 28px; height: 28px;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

/* ===== Timeline / Como funciona ===== */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.timeline__step {
  text-align: center;
  position: relative;
}
.timeline__step .num {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
}
.timeline__step:nth-child(odd) .num { background: var(--red); }
.timeline__step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.timeline__step p { font-size: 0.88rem; }

/* ===== Depoimentos ===== */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 30px 26px;
}
.testimonial-card .stars { color: var(--red); margin-bottom: 14px; font-size: 0.95rem; letter-spacing: 2px; }
.testimonial-card p.quote { color: var(--gray-900); font-style: italic; margin-bottom: 18px; }
.testimonial-card .author { display: flex; align-items: center; gap: 12px; }
.testimonial-card .author .avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: var(--gray-700);
  font-family: var(--font-heading);
}
.testimonial-card .author strong { display: block; font-size: 0.9rem; color: var(--black); }
.testimonial-card .author span { font-size: 0.8rem; color: var(--text-muted); }

/* ===== CTA banner ===== */
.cta-banner {
  background: linear-gradient(120deg, var(--black) 0%, var(--gray-900) 100%);
  border-radius: var(--radius);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 280px; height: 280px;
  background: var(--red);
  opacity: 0.25;
  border-radius: 50%;
}
.cta-banner h2, .cta-banner p { color: var(--white); position: relative; z-index: 1; }
.cta-banner p { color: var(--gray-300); margin-top: 8px; }
.cta-banner .actions { display: flex; gap: 14px; position: relative; z-index: 1; flex-wrap: wrap; }

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 22px 0;
}
.faq-item summary {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--black);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--red);
  transition: var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 14px; font-size: 0.95rem; }

/* ===== Footer ===== */
.footer {
  background: var(--black);
  color: var(--gray-300);
  padding: 64px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__logo img { height: 44px; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer p { color: var(--gray-400); font-size: 0.92rem; }
.footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer ul li { margin-bottom: 12px; }
.footer ul li a { color: var(--gray-400); font-size: 0.92rem; transition: var(--transition); }
.footer ul li a:hover { color: var(--red-light); }
.footer .contact-item { display: flex; gap: 10px; margin-bottom: 14px; font-size: 0.92rem; color: var(--gray-400); }
.footer .contact-item svg { color: var(--red); flex-shrink: 0; margin-top: 2px; }
.footer .socials { display: flex; gap: 12px; margin-top: 18px; }
.footer .socials a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.footer .socials a:hover { background: var(--red); }
.footer__bottom {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--gray-500);
}
.footer__bottom a { color: var(--gray-400); }
.footer__bottom a:hover { color: var(--red-light); }

/* ===== WhatsApp flutuante ===== */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 999;
  animation: pulse 2.4s infinite;
}
.whatsapp-float svg { width: 30px; height: 30px; fill: var(--white); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===== Breadcrumb / page hero (páginas internas) ===== */
.page-hero {
  padding: calc(var(--header-h) + 56px) 0 56px;
  background: var(--gray-100);
  text-align: center;
}
.page-hero .tag { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.82rem; }
.page-hero h1 { margin: 12px 0 14px; }
.breadcrumb { font-size: 0.88rem; color: var(--gray-500); }
.breadcrumb a:hover { color: var(--red); }

/* ===== Formulário ===== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; color: var(--gray-900); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--red);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}

.info-box {
  background: var(--gray-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px;
}
.info-box .contact-item { color: var(--gray-300); margin-bottom: 22px; align-items: flex-start; }
.info-box .contact-item strong { display: block; color: var(--white); margin-bottom: 4px; }
.info-box hr { border: none; border-top: 1px solid rgba(255,255,255,0.12); margin: 24px 0; }

.map-frame {
  width: 100%;
  height: 320px;
  border: none;
  border-radius: var(--radius);
  filter: grayscale(15%);
}

/* ===== Blog ===== */
.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card .content { padding: 24px; }
.blog-card .meta { font-size: 0.78rem; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.blog-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.blog-card p { font-size: 0.9rem; margin-bottom: 16px; }
.blog-card .read-more { font-size: 0.88rem; font-weight: 700; color: var(--black); display: inline-flex; align-items: center; gap: 6px; }
.blog-card:hover .read-more { color: var(--red); }

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}
.article img.cover { width: 100%; border-radius: var(--radius); margin-bottom: 32px; aspect-ratio: 16/8; object-fit: cover; }
.article h2 { margin: 36px 0 16px; }
.article h3 { margin: 28px 0 12px; }
.article p { margin-bottom: 18px; font-size: 1.02rem; }
.article ul { margin: 0 0 18px 0; padding-left: 0; }
.article ul li { padding-left: 28px; position: relative; margin-bottom: 10px; color: var(--text-muted); }
.article ul li::before { content: '•'; color: var(--red); font-weight: 700; position: absolute; left: 8px; }
.article .meta-top { display: flex; gap: 16px; align-items: center; font-size: 0.85rem; color: var(--gray-500); margin-bottom: 20px; flex-wrap: wrap; }
.article .meta-top span.tag { background: var(--red-bg); color: var(--red-dark); padding: 5px 12px; border-radius: 999px; font-weight: 700; }
.article .cta-inline {
  background: var(--gray-100);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  margin: 28px 0;
}
.article .cta-inline strong { display: block; margin-bottom: 8px; color: var(--black); }

/* ===== Responsivo ===== */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__inner > div { min-width: 0; }
  .hero__media { order: -1; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .checklist { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; background: var(--white); flex-direction: column; padding: 24px; gap: 22px; border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow); transform: translateY(-130%); opacity: 0; transition: var(--transition); }
  .nav.open { transform: translateY(0); opacity: 1; }
  .nav-toggle { display: flex; }
  .header__phone { display: none; }
  .container { padding: 0 16px; }
  .header__inner { gap: 8px; }
  .header__logo { flex-shrink: 0; }
  .header__logo img { width: 95px; height: 30px; }
  .header__cta { gap: 8px; flex-shrink: 0; }
  .header__cta .btn-primary { padding: 9px 14px; font-size: 0.82rem; white-space: nowrap; }
  .header__cta .btn-primary .cta-full { display: none; }
  .header__cta .btn-primary .cta-short { display: inline; }
  .nav-toggle { flex-shrink: 0; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; text-align: center; padding: 40px 28px; }
  .footer__grid { grid-template-columns: 1fr; }
  .brands-strip .container { justify-content: center; gap: 28px; }
  .hero { text-align: center; }
  .hero__media { order: 0; }
  .hero p.lead { margin-inline: auto; }
  .hero__actions, .hero__stats { justify-content: center; }
  .hero__stats { gap: 18px 28px; }
  .hero__stats div { min-width: 0; }
  .hero__media .float-card { left: 12px; right: 12px; max-width: none; }
}
