/* ============================================================
   YELLOW ENERGY — Global Styles
   Cor principal: #f5c10e
   ============================================================ */

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

:root {
  --yellow:       #f5c10e;
  --yellow-dark:  #d4a20c;
  --yellow-light: #fff8da;
  --black:        #0a0a0a;
  --dark:         #111827;
  --dark2:        #1f2937;
  --gray:         #6b7280;
  --gray-light:   #f3f4f6;
  --white:        #ffffff;
  --radius:       12px;
  --radius-lg:    20px;
  --shadow:       0 4px 24px rgba(0,0,0,.12);
  --shadow-lg:    0 12px 48px rgba(0,0,0,.18);
  --transition:   .35s cubic-bezier(.4,0,.2,1);
  --font-main:    'Inter', 'Segoe UI', sans-serif;
  --max-width:    1280px;
}

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

body {
  font-family: var(--font-main);
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-main); }

/* ---------- Typography ---------- */
h1,h2,h3,h4,h5 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p  { font-size: 1rem; color: var(--gray); }

/* ---------- Containers ---------- */
.container { width: min(var(--max-width), 100% - 2rem); margin-inline: auto; }
.section    { padding-block: 80px; }
.section-sm { padding-block: 48px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 4px 20px rgba(245,193,14,.35);
}
.btn-primary:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245,193,14,.45);
}

.btn-outline {
  border: 2px solid var(--yellow);
  color: var(--yellow);
}
.btn-outline:hover {
  background: var(--yellow);
  color: var(--black);
  transform: translateY(-2px);
}

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

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

/* ---------- Badge / Tag ---------- */
.tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.tag-yellow { background: var(--yellow-light); color: var(--yellow-dark); }
.tag-dark   { background: var(--dark2); color: var(--yellow); }

/* ---------- Section Title ---------- */
.section-title { margin-bottom: 48px; text-align: center; }
.section-title .tag { margin-bottom: 12px; }
.section-title h2 { margin-bottom: 12px; }
.section-title p  { max-width: 600px; margin-inline: auto; }

/* ---------- Card ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* ---------- Divider ---------- */
.divider { width: 60px; height: 4px; background: var(--yellow); border-radius: 2px; margin: 12px auto; }

/* ---------- Grid helpers ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }

/* ---------- Highlight yellow text ---------- */
.text-yellow { color: var(--yellow); }
.bg-yellow   { background: var(--yellow); }
.bg-dark     { background: var(--dark); color: var(--white); }
.bg-dark p   { color: rgba(255,255,255,.75); }
.bg-gray     { background: var(--gray-light); }

/* ---------- Animate on scroll ---------- */
.anim { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.anim.visible { opacity: 1; transform: translateY(0); }
.anim-left  { opacity: 0; transform: translateX(-40px); transition: opacity .7s ease, transform .7s ease; }
.anim-right { opacity: 0; transform: translateX(40px);  transition: opacity .7s ease, transform .7s ease; }
.anim-left.visible, .anim-right.visible { opacity: 1; transform: translateX(0); }

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 58px; height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.6); }
.whatsapp-float img { width: 36px; height: 36px; display: block; }

/* ---------- Scroll Top ---------- */
.scroll-top {
  position: fixed;
  bottom: 98px; right: 28px;
  width: 46px; height: 46px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.scroll-top.visible { opacity: 1; pointer-events: all; }
.scroll-top svg { width: 20px; height: 20px; }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  z-index: 99999;
  transition: opacity .5s ease;
}
#preloader.hidden { opacity: 0; pointer-events: none; }

.preloader-logo {
  width: 180px;
  animation: preloaderPulse 1.8s ease-in-out infinite;
  filter: none;
}
@keyframes preloaderPulse {
  0%,100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(1.04); opacity: .85; }
}

.preloader-progress-wrap {
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.preloader-bar-track {
  width: 100%;
  height: 4px;
  background: #e5e7eb;
  border-radius: 99px;
  overflow: hidden;
}
.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--yellow), var(--yellow-dark));
  border-radius: 99px;
  transition: width .1s linear;
}
.preloader-percent {
  font-size: .8rem;
  font-weight: 700;
  color: var(--gray);
  letter-spacing: .04em;
}

/* ---------- Responsive Utilities ---------- */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .section { padding-block: 56px; }
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}
