/* ============================================ */
/* MAIN.CSS — Transfé Transportes               */
/* Páginas completas: home, faq, cobertura,     */
/* sobre-nos, avalie-nos, servicos              */
/* ============================================ */

/* ============================================ */
/* HERO                                         */
/* ============================================ */
.hero {
  background: linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-mid) 100%);
  padding: 80px 24px 60px; position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(249,115,22,0.08) 0%, transparent 70%);
}
.hero::after {
  content: '';
  position: absolute; inset: 0; opacity: 0.03;
  background-image:
    linear-gradient(rgba(255,255,255,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.3) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 50%, black, transparent);
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; position: relative; z-index: 1;
  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: rgba(249,115,22,0.1); border: 1px solid rgba(249,115,22,0.2);
  padding: 6px 16px; border-radius: 100px;
  font-family: var(--font-data); font-size: 12px;
  font-weight: 600; color: var(--orange-light); margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); animation: badge-pulse 2s infinite;
  position: relative; isolation: isolate;
}
.hero-badge-dot::after {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%; background: var(--green);
  animation: badge-pulse-ring 2s ease-out infinite;
  z-index: -1;
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}
@keyframes badge-pulse-ring {
  0%   { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(3); opacity: 0; }
}
.hero h1 {
  font-family: var(--font-headline);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800; line-height: 0.95;
  color: var(--white); letter-spacing: -1px;
  text-transform: uppercase; margin-bottom: 20px;
}
.hero h1 .orange { color: var(--orange); }
.hero-sub {
  font-family: var(--font-body); font-size: 17px;
  color: var(--gray-500); line-height: 1.7;
  max-width: 480px; margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

/* Hero Stats */
.hero-stats {
  display: flex; gap: 32px;
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-number {
  font-family: var(--font-data); font-size: 32px; font-weight: 700;
  color: var(--orange); line-height: 1;
}
.hero-stat-label {
  font-family: var(--font-body); font-size: 12px;
  color: var(--gray-500); margin-top: 4px;
  font-weight: 500; letter-spacing: 0.3px;
}

/* Hero Right Card */
.hero-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px; padding: 36px;
  /* backdrop-filter removido — criava compositing layer GPU durante scroll */
}
.hero-card-title {
  font-family: var(--font-headline); font-size: 22px;
  font-weight: 700; color: var(--white); text-transform: uppercase;
  margin-bottom: 6px; letter-spacing: 0.5px;
}
.hero-card-sub {
  font-family: var(--font-body); font-size: 13px;
  color: var(--gray-500); margin-bottom: 24px;
}

/* ============================================ */
/* TRUST BAR                                    */
/* ============================================ */
.trust-bar {
  background: var(--white); border-bottom: 1px solid var(--gray-100);
  padding: 0 24px;
}
.trust-bar-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}
.trust-item {
  padding: 24px 20px; display: flex; align-items: center; gap: 14px;
  border-right: 1px solid var(--gray-100);
}
.trust-item:last-child { border-right: none; }
.trust-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.trust-icon svg { width: 24px; height: 24px; }
.trust-number {
  font-family: var(--font-data); font-size: 20px; font-weight: 700;
  color: var(--navy-deep); line-height: 1.1;
}
.trust-label {
  font-family: var(--font-body); font-size: 12px; color: var(--gray-500);
  font-weight: 500;
}

/* ============================================ */
/* SERVICES                                     */
/* ============================================ */
.services { background: var(--gray-50); }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px;
}
.service-card {
  background: #fff; border: 1px solid var(--gray-100);
  border-radius: 16px; padding: 32px;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s cubic-bezier(0.4,0,0.2,1), border-color 0.4s cubic-bezier(0.4,0,0.2,1);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--orange); transform: scaleX(0);
  transition: transform 0.4s; transform-origin: left;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(10,22,40,0.08); border-color: var(--gray-200); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-title {
  font-family: var(--font-headline); font-size: 20px; font-weight: 700;
  color: var(--navy-deep); text-transform: uppercase;
  margin-bottom: 8px; letter-spacing: 0.3px;
}
.service-desc {
  font-family: var(--font-body); font-size: 14px;
  color: var(--gray-500); line-height: 1.6;
}

/* ============================================ */
/* HOW IT WORKS                                 */
/* ============================================ */
.how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  position: relative;
}
.how-grid::before {
  content: '';
  position: absolute; top: 44px; left: 16.5%; right: 16.5%; height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--blue), var(--green));
  opacity: 0.2;
}
.how-step { text-align: center; position: relative; }
.how-number {
  width: 88px; height: 88px; border-radius: 50%;
  margin: 0 auto 24px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-data); font-size: 28px; font-weight: 700;
  position: relative; z-index: 1;
}
.how-title {
  font-family: var(--font-headline); font-size: 22px; font-weight: 700;
  color: var(--navy-deep); text-transform: uppercase;
  margin-bottom: 8px;
}
.how-desc {
  font-family: var(--font-body); font-size: 14px;
  color: var(--gray-500); line-height: 1.6;
  max-width: 280px; margin: 0 auto;
}
.how-time {
  font-family: var(--font-data); font-size: 13px;
  font-weight: 600; color: var(--orange);
  margin-top: 12px; display: flex; align-items: center;
  justify-content: center; gap: 6px;
}
.how-time svg { width: 14px; height: 14px; }

/* ============================================ */
/* TESTIMONIALS                                 */
/* ============================================ */
.testimonials { background: var(--navy-deep); }
.testimonials .section-title { color: var(--white); }
.testimonials .section-desc { color: var(--gray-500); }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px;
}
.testimonial-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; padding: 28px;
  transition: border-color 0.3s, background 0.3s;
}
.testimonial-card:hover { border-color: rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); }
.testimonial-stars { display: flex; gap: 3px; margin-bottom: 16px; }
.testimonial-stars svg { width: 16px; height: 16px; color: var(--orange); fill: var(--orange); }
.testimonial-text {
  font-family: var(--font-body); font-size: 15px;
  color: var(--gray-200); line-height: 1.7; margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex; align-items: center; gap: 12px;
}
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-headline); font-size: 16px;
  font-weight: 700; color: #fff;
}
.testimonial-name {
  font-family: var(--font-cta); font-size: 14px;
  font-weight: 700; color: var(--white);
}
.testimonial-location {
  font-family: var(--font-data); font-size: 12px; color: var(--gray-500);
}

/* ============================================ */
/* COVERAGE                                     */
/* ============================================ */
.coverage-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.coverage-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.coverage-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 10px;
  background: var(--gray-50); border: 1px solid var(--gray-100);
  transition: border-color 0.3s, background 0.3s;
}
.coverage-item:hover { border-color: var(--orange); background: var(--orange-glow); }
.coverage-item svg { width: 16px; height: 16px; color: var(--orange); flex-shrink: 0; }
.coverage-item span {
  font-family: var(--font-body); font-size: 14px;
  font-weight: 500; color: var(--navy-deep);
}
.coverage-card {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  border-radius: 20px; padding: 40px; position: relative; overflow: hidden;
}
.coverage-card::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(249,115,22,0.1) 0%, transparent 70%);
}
.coverage-card-title {
  font-family: var(--font-headline); font-size: 28px;
  font-weight: 700; color: var(--white); text-transform: uppercase;
  margin-bottom: 8px; position: relative;
}
.coverage-card-sub {
  font-family: var(--font-body); font-size: 14px;
  color: var(--gray-500); margin-bottom: 24px;
  line-height: 1.6; position: relative;
}
.coverage-card-stat {
  display: flex; gap: 24px; margin-bottom: 28px; position: relative;
}
.coverage-stat-number {
  font-family: var(--font-data); font-size: 28px;
  font-weight: 700; color: var(--orange);
}
.coverage-stat-label {
  font-family: var(--font-body); font-size: 11px;
  color: var(--gray-500); font-weight: 500;
}

/* ============================================ */
/* FAQ                                          */
/* ============================================ */
.faq { background: var(--gray-50); }
.faq-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.faq-item {
  background: #fff; border: 1px solid var(--gray-100);
  border-radius: 14px; overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item:hover { border-color: var(--gray-200); }
.faq-question {
  padding: 20px 24px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-cta); font-size: 15px;
  font-weight: 600; color: var(--navy-deep);
}
.faq-question svg {
  width: 18px; height: 18px; color: var(--orange);
  transition: transform 0.3s; flex-shrink: 0;
}
.faq-item.open .faq-question svg { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  font-family: var(--font-body); font-size: 14px;
  color: var(--gray-500); line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 200px; }

/* ============================================ */
/* PORTFOLIO / PROVAS VISUAIS                   */
/* ============================================ */
.portfolio {
  padding: 80px 24px;
  background: #F9FAFB;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.portfolio-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.portfolio-img-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #E2E8F0;
}
.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.97) contrast(1.04) saturate(0.96);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-item:hover .portfolio-img {
  transform: scale(1.03);
}
.portfolio-caption {
  padding: 16px;
  text-align: center;
}
.portfolio-caption-text {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
  font-weight: 500;
}
.portfolio-authority {
  text-align: center;
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}
.portfolio-cta {
  margin-top: 48px;
  text-align: center;
}

/* ============================================ */
/* MEDIA QUERIES — MAIN PAGES                   */
/* ============================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 480px; }
  .coverage-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 768px) {
  .hero { padding: 48px 24px 40px; }
  .hero h1 { font-size: 40px; }
  .hero-stats { gap: 20px; }
  .hero-stat-number { font-size: 24px; }
  .trust-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .trust-item { border-right: none; border-bottom: 1px solid var(--gray-100); }
  .services-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; gap: 32px; }
  .how-grid::before { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .coverage-list { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
}

@media (max-width: 640px) {
  .portfolio { padding: 60px 20px; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 20px; }
  .portfolio-img-wrapper { height: 220px; }
}
