/* ============================================
   Grupo Telefox — Design System
   Paleta extraída da logo: azul + laranja
   ============================================ */

:root {
  --red: #ff3300;
  --red-dark: #cc2900;
  --red-light: #ff5c33;

  --navy: #1533f5;
  --navy-dark: #0a0e3d;

  --text: #201a1e;
  --text-muted: #6c6469;
  --bg: #ffffff;
  --bg-alt: #f7f5f4;
  --border: #ece7e6;

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container: 1200px;
  --header-h: 84px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

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

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

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

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

/* ============================================
   Header
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: box-shadow 0.3s ease;
}

.header--scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.header__logo img {
  height: 52px;
}

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

.nav a {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy);
  transition: color 0.25s ease;
}

.nav a:hover {
  color: var(--red);
}

.nav__cta {
  background: var(--red);
  color: #ffffff !important;
  padding: 10px 24px;
  border-radius: 8px;
  transition: background 0.25s ease;
}

.nav__cta:hover {
  background: var(--red-light);
  color: #ffffff !important;
}

.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.header__toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy-dark) url('../img/hero-bg.jpg') center/cover no-repeat;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.4;
  background:
    radial-gradient(circle at 80% 15%, rgba(255, 51, 0, 0.35), transparent 45%),
    linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #04061f 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.hero__logo {
  width: min(360px, 80vw);
  margin: 0 auto;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.35));
}

.hero__tagline {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

.hero__actions {
  margin-top: 48px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  z-index: 2;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.55);
  animation: bounce 2.4s infinite;
}

.hero__scroll svg {
  width: 28px;
  height: 28px;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 34px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9375rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}

.btn--primary {
  background: var(--red);
  color: #ffffff;
}

.btn--primary:hover {
  background: var(--red-light);
}

.btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn--block {
  width: 100%;
}

.btn:active {
  transform: scale(0.98);
}

/* ============================================
   Section helpers
   ============================================ */

.section {
  padding: 100px 0;
}

.section--navy {
  background: var(--navy);
  color: #ffffff;
}

.section--red {
  background: var(--red-dark);
  color: #ffffff;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--red);
  margin-bottom: 16px;
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.6);
}

.eyebrow--center {
  text-align: center;
}

.section__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  color: var(--text);
}

.section__title--light {
  color: #ffffff;
}

.divider {
  width: 64px;
  height: 4px;
  background: var(--red);
  border-radius: 2px;
  margin: 24px 0 32px;
}

.divider--light {
  background: rgba(255, 255, 255, 0.35);
}

.divider--center {
  margin-left: auto;
  margin-right: auto;
}

.section__head--center {
  max-width: 680px;
  margin: 0 auto 72px;
  text-align: center;
}

.lead {
  font-size: 1.125rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 18px;
}

/* ============================================
   Quem Somos
   ============================================ */

.quem-somos__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.quem-somos__grid p:not(.lead) {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
}

.stat-card__num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--red);
}

.stat-card__label {
  display: block;
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/* ============================================
   Onde Atuamos
   ============================================ */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar {
  text-align: center;
  padding: 48px 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.pillar:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-6px);
}

.pillar__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease;
}

.pillar:hover .pillar__icon {
  transform: scale(1.1);
}

.pillar__icon svg {
  width: 28px;
  height: 28px;
  color: #ffffff;
}

.pillar h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.pillar p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  line-height: 1.75;
}

/* ============================================
   Portfólio
   ============================================ */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  height: 320px;
  cursor: pointer;
  border-radius: 4px;
}

/* Cor de fundo combinando com a logo de cada veículo */
.portfolio-grid .portfolio-item { background: var(--navy); }

.portfolio-item img {
  width: 100%;
  height: 100%;
  padding: 28px;
  box-sizing: border-box;
  object-fit: contain;
  transition: transform 0.7s ease;
}

.portfolio-item:hover img {
  transform: scale(1.08);
}

.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(to top, rgba(25, 3, 54, 0.92) 0%, rgba(25, 3, 54, 0) 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-item__overlay {
  opacity: 1;
}

.portfolio-item__tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.6);
}

.portfolio-item__overlay h4 {
  margin-top: 4px;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: #ffffff;
}

/* ============================================
   Nossos Valores
   ============================================ */

.values-text {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.values-text p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}

.values-text p:last-child {
  margin-bottom: 0;
}

/* ============================================
   Fale Conosco
   ============================================ */

.contato__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info__icon svg {
  width: 20px;
  height: 20px;
  color: #ffffff;
}

.contact-info__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.contact-info__value {
  display: block;
  margin-top: 2px;
  font-weight: 600;
  line-height: 1.6;
}

.contact-info__details {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 8px;
  font-size: 0.9375rem;
}

.contact-info__details a {
  color: var(--red);
  font-weight: 600;
}

.contact-info__details a:hover {
  text-decoration: underline;
}

.team-section {
  margin-top: 88px;
}

.team-section__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  text-align: center;
  padding: 36px 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-alt);
}

.team-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 12px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card__icon svg {
  width: 20px;
  height: 20px;
  color: #ffffff;
}

.team-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.team-card__name {
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 8px;
}

.team-card__email {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.team-card__email a {
  color: var(--red);
  font-weight: 600;
}

.team-card__email a:hover {
  text-decoration: underline;
}

.contact-form-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
}

.contact-form-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-feedback {
  margin-top: 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  min-height: 1.2em;
}

.form-feedback--success {
  color: #16a34a;
}

.form-feedback--error {
  color: var(--red);
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--navy-dark);
  color: #ffffff;
  padding: 72px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo {
  height: 58px;
  margin-bottom: 16px;
}

.footer__brand p {
  max-width: 320px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.footer__col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 18px;
}

.footer__col ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.footer__icon svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}

.footer__social a:hover {
  background: var(--red);
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
}

.footer__bottom p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.footer__bottom a:hover {
  color: var(--red);
}

.footer__mark {
  height: 18px;
  opacity: 0.5;
}

/* ============================================
   WhatsApp Flutuante
   ============================================ */

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  z-index: 999;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

/* ============================================
   Scroll reveal
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 980px) {
  .section {
    padding: 80px 0;
  }

  .quem-somos__grid,
  .contato__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .pillars,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav.is-open {
    max-height: 360px;
  }

  .nav a {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
  }

  .nav__cta {
    margin: 16px 24px;
    text-align: center;
  }

  .header__toggle {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero__scroll {
    animation: none;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  .section__head--center {
    margin-bottom: 48px;
  }

  .pillars,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-item {
    height: 220px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__brand {
    grid-column: span 1;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .contact-form-card {
    padding: 28px;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}
