/* ============================================
   Rui do Gás — Landing Page Styles
   Distribuidor Autorizado TutiGás
   ============================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  --navy: #1a2238;
  --navy-light: #253052;
  --magenta: #e91e8c;
  --magenta-dark: #c4177a;
  --magenta-glow: rgba(233, 30, 140, 0.25);
  --light-bg: #f8f9fa;
  --white: #ffffff;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-card: 0 10px 30px rgba(26,34,56,0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--gray-800);
  background-color: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Section Defaults ---------- */
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-600);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* ============================================
   BLOCO 1 — HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.header__logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header__logo-main {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
}

.header__logo-main span {
  color: var(--magenta);
}

.header__logo-sub {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.header__logo-img {
  height: 88px;
  width: auto;
  display: block;
}

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.header__cta:hover {
  background: var(--magenta);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px var(--magenta-glow);
}

.header__cta svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================
   BLOCO 2 — HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  overflow: hidden;
  padding-top: 80px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,34,56,0.92) 0%, rgba(37,48,82,0.85) 100%);
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  padding: 60px 20px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(233,30,140,0.15);
  color: var(--magenta);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(233,30,140,0.25);
}

.hero__badge::before {
  content: '⚡';
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--magenta);
}

.hero__sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 560px;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--magenta);
  color: var(--white);
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  transition: all var(--transition);
  box-shadow: 0 4px 20px var(--magenta-glow);
}

.hero__cta:hover {
  background: var(--magenta-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(233,30,140,0.4);
}

.hero__cta svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition);
}

.hero__cta:hover svg {
  transform: translateX(4px);
}

/* Decorative floating elements */
.hero__float {
  position: absolute;
  border-radius: 50%;
  background: var(--magenta);
  opacity: 0.06;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.hero__float--1 {
  width: 300px;
  height: 300px;
  top: -60px;
  right: -80px;
}

.hero__float--2 {
  width: 180px;
  height: 180px;
  bottom: 10%;
  right: 15%;
  animation-delay: -3s;
}

.hero__float--3 {
  width: 120px;
  height: 120px;
  bottom: 30%;
  right: 40%;
  animation-delay: -1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

/* ============================================
   BLOCO 3 — BENEFÍCIOS
   ============================================ */
.benefits {
  padding: 80px 0;
  background: var(--white);
}

.benefits__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.benefit-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  background: var(--light-bg);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--gray-200);
}

.benefit-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--magenta), var(--magenta-dark));
  border-radius: 16px;
  color: var(--white);
  font-size: 1.6rem;
  box-shadow: 0 4px 15px var(--magenta-glow);
}

.benefit-card__icon svg {
  width: 28px;
  height: 28px;
}

.benefit-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.benefit-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ============================================
   BLOCO 4 — PRODUTOS
   ============================================ */
.products {
  padding: 80px 0;
  background: var(--light-bg);
}

.products__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--magenta), var(--navy));
  opacity: 0;
  transition: opacity var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(233,30,140,0.15);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card__img {
  width: 180px;
  height: 220px;
  margin: 0 auto 24px;
  object-fit: contain;
  transition: transform var(--transition);
}

.product-card:hover .product-card__img {
  transform: scale(1.05);
}

.product-card__type {
  display: inline-block;
  background: rgba(233,30,140,0.1);
  color: var(--magenta);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.product-card__weight {
  font-size: 2rem;
  font-weight: 800;
  color: var(--magenta);
  margin-bottom: 16px;
}

.product-card__desc {
  font-size: 0.88rem;
  color: var(--gray-600);
  margin-bottom: 24px;
  line-height: 1.6;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #25d366;
  color: var(--white);
  padding: 14px 24px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(37,211,102,0.3);
}

.btn-whatsapp:hover {
  background: #1fb855;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(37,211,102,0.4);
}

.btn-whatsapp svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ============================================
   BLOCO 5 — COMO FUNCIONA
   ============================================ */
.how-it-works {
  padding: 80px 0;
  background: var(--white);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  position: relative;
}

.step {
  text-align: center;
  padding: 32px 24px;
  position: relative;
}

.step__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--white);
  font-size: 1.6rem;
  font-weight: 800;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(26,34,56,0.2);
  position: relative;
}

.step__number::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px dashed var(--magenta);
  opacity: 0.3;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.step p {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.6;
  max-width: 300px;
  margin: 0 auto;
}

/* connector line on desktop */
.steps__connector {
  display: none;
}

/* ============================================
   BLOCO 6 — CONFIANÇA
   ============================================ */
.trust {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
}

.trust .section-title {
  color: var(--white);
}

.trust__content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.trust__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(233,30,140,0.15);
  border-radius: 50%;
  font-size: 2rem;
  border: 2px solid rgba(233,30,140,0.3);
}

.trust__text {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.8;
  margin-bottom: 32px;
}

.trust__badges {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trust__badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.trust__badge-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  font-size: 1.3rem;
}

.trust__badge span {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   BLOCO 7 — FAQ
   ============================================ */
.faq {
  padding: 80px 0;
  background: var(--light-bg);
}

.faq__list {
  max-width: 740px;
  margin: 0 auto;
}

.faq__item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: border-color var(--transition);
}

.faq__item.active {
  border-color: var(--magenta);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  transition: color var(--transition);
  gap: 16px;
}

.faq__question:hover {
  color: var(--magenta);
}

.faq__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-bg);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all var(--transition);
}

.faq__item.active .faq__icon {
  background: var(--magenta);
  color: var(--white);
  transform: rotate(180deg);
}

.faq__icon svg {
  width: 16px;
  height: 16px;
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq__answer-inner {
  padding: 0 24px 20px;
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ============================================
   BLOCO 8 — FOOTER
   ============================================ */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 48px 0 24px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.footer__logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.footer__logo-main {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
}

.footer__logo-main span {
  color: var(--magenta);
}

.footer__logo-sub {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.footer__logo-img {
  height: 80px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.footer__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__info-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
}

.footer__info-item svg {
  width: 16px;
  height: 16px;
  color: var(--magenta);
  flex-shrink: 0;
}

.footer__divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 8px 0;
}

.footer__copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

/* ============================================
   RESPONSIVE — Tablet (768px+)
   ============================================ */
@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero__content {
    padding: 80px 40px;
  }

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

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

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer__info-item {
    justify-content: flex-end;
  }
}

/* ============================================
   RESPONSIVE — Desktop (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.6rem;
  }

  .hero__sub {
    font-size: 1.15rem;
  }

  .benefits__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .products__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps__connector {
    display: block;
    position: absolute;
    top: 56px;
    left: 16.6%;
    width: 66.6%;
    height: 2px;
    background: repeating-linear-gradient(
      90deg,
      var(--gray-300) 0px,
      var(--gray-300) 8px,
      transparent 8px,
      transparent 16px
    );
    z-index: 0;
  }

  .step {
    z-index: 1;
  }

  .faq__question {
    font-size: 1.02rem;
    padding: 22px 28px;
  }

  .header__cta span.cta-label {
    display: inline;
  }
}

/* ---------- Small Mobile (< 380px) ---------- */
@media (max-width: 380px) {
  .header__cta {
    padding: 8px 14px;
    font-size: 0.75rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .product-card__weight {
    font-size: 1.6rem;
  }
}

/* ---------- Animations on scroll (via JS) ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
