/* ============================================
   FR ENERGIA — Design Tokens
   ============================================ */
:root {
  --yellow: #FEB62E;
  --yellow-dim: #d99a1f;
  --dark: #191919;
  --dark-2: #232323;
  --dark-3: #2c2c2c;
  --white: #FFFFFF;
  --gray: #a8a8a8;
  --gray-dim: #7a7a7a;

  --font-display: "Lexend", sans-serif;
  --font-body: "Source Sans 3", sans-serif;

  --container: 1180px;
  --radius: 6px;
  --ease: cubic-bezier(.16,.84,.44,1);

  /* Spacing scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
}

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

html { scroll-behavior: smooth; }

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

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

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

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

.eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 20px; }
h4 { font-size: 16px; font-weight: 600; margin-top: 24px; margin-bottom: 12px; }

p { color: var(--gray); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: transform .25s var(--ease), background .25s var(--ease);
  cursor: pointer;
  border: none;
  box-shadow: none;
}

.btn-primary {
  background: var(--yellow);
  color: var(--dark);
  box-shadow: none;
}
.btn-primary:hover {
  background: #ffc44f;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.25);
}
.btn-ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(25,25,25,0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: padding .3s var(--ease);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-mark { height: 100px; }

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

.main-nav a:not(.btn) {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--gray);
  transition: color .2s;
}
.main-nav a:not(.btn):hover { color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 83vh;
  display: flex;
  align-items: center;
  margin-top: 130px;
  overflow: hidden;
  background-size: 100%;
  background-position: center;
  background-attachment: scroll;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 100%;
}

.hero-grid {
  display: none;
}

.hero-copy .eyebrow { margin-bottom: 18px; display: block; }

.hero-copy h1 {
  font-size: clamp(38px, 5.4vw, 68px);
  margin-bottom: 22px;
}

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

.hero-copy p {
  font-size: 18px;
  max-width: 480px;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.hero-stats .stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  color: var(--white);
}
.hero-stats .stat-label {
  font-size: 12px;
  color: var(--gray-dim);
  text-transform: uppercase;
  letter-spacing: .08em;
}


.hero-image {
  display: none;
}

/* ============================================
   Services
   ============================================ */
.section { padding: 120px 0; }
.section-head { max-width: 620px; margin-bottom: 64px; }
.section-head .eyebrow { display: block; margin-bottom: 14px; }
.section-head p { margin-top: 16px; font-size: 17px; }

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

.service-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(254,182,46,.4);
}

.service-card h3 {
  margin-bottom: 16px;
  color: var(--white);
  font-size: 26px;
}

.service-card p {
  margin-bottom: 24px;
  font-size: 18px;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(254,182,46,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.service-icon svg { width: 26px; height: 26px; stroke: var(--yellow); }

.service-image {
  display: none;
}

.service-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 32px 0;
}

.service-gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .2s var(--ease);
}

.service-gallery img:hover {
  transform: scale(1.05);
}

.service-card h4 {
  font-size: 20px;
}

.service-card ul { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.service-card li {
  font-size: 16px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 10px;
}
.service-card li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--yellow);
  border-radius: 50%;
  flex-shrink: 0;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  width: 100%;
  justify-content: center;
}

/* ============================================
   Why us
   ============================================ */
.why {
  background: var(--dark-2);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.why-item .why-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  color: var(--yellow);
  margin-bottom: 10px;
}
.why-item h3 { font-size: 18px; margin-bottom: 10px; }
.why-item p { font-size: 15px; }

.why-intro-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 40px;
}

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-section {
  background: rgba(255,255,255,.02);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-accordion-item {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s var(--ease);
}

.faq-accordion-item:hover {
  border-color: rgba(254,182,46,.4);
}

.faq-accordion-header {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background .2s var(--ease);
}

.faq-accordion-header:hover {
  background: rgba(254,182,46,.05);
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--yellow);
  flex-shrink: 0;
  transition: transform .3s var(--ease);
}

.faq-accordion-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--ease), padding .3s var(--ease);
}

.faq-accordion-item.active .faq-accordion-content {
  max-height: 500px;
  padding: 0 24px 20px;
}

.faq-accordion-content p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray);
}

/* ============================================
   CTA / Contact
   ============================================ */
.cta {
  position: relative;
  background: rgba(255,255,255,.02);
}

.cta-head {
  text-align: center;
  margin-bottom: 48px;
}

.cta-head h2 { margin-bottom: 16px; }
.cta-head p { font-size: 17px; max-width: 600px; margin: 0 auto; }

.cta-content {
  background: transparent;
  border: none;
  border-radius: 12px;
  padding: 48px 0;
  max-width: 900px;
  margin: 0 auto;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.form-group label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--white);
  letter-spacing: 0.02em;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--gray-dim);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--yellow);
  background: rgba(254,182,46,.02);
}

.contact-form select {
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

.form-actions .btn {
  flex: 1;
  text-align: center;
}

@media (max-width: 900px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .cta-content {
    padding: 32px 24px;
  }
}

/* ============================================
   Blog
   ============================================ */
.blog-header {
  padding: 80px 0;
  background: var(--dark-2);
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-top: 130px;
}

.blog-header h1 {
  font-size: 42px;
  margin-bottom: 16px;
}

.blog-header p {
  font-size: 18px;
  color: var(--gray);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 40px;
  max-width: 800px;
}

.blog-card {
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding-bottom: 32px;
}

.blog-card:last-child {
  border-bottom: none;
}

.blog-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--gray-dim);
  margin-bottom: 12px;
}

.blog-title {
  font-size: 24px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-title a {
  color: var(--white);
  transition: color .2s;
}

.blog-title a:hover {
  color: var(--yellow);
}

.blog-excerpt {
  font-size: 15px;
  margin-bottom: 16px;
  color: var(--gray);
}

.blog-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--yellow);
  transition: gap .2s;
  display: inline-flex;
  gap: 8px;
}

.blog-link:hover {
  gap: 12px;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 48px 0;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-grid .logo-mark { height: 66px; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 14px; color: var(--gray-dim); }
.footer-links a:hover { color: var(--yellow); }
.footer-copy { font-size: 13px; color: var(--gray-dim); }
.footer-copy a:hover { color: var(--yellow); }

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -6px rgba(37,211,102,.6);
  transition: transform .25s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* ============================================
   Reveal on scroll
   ============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (min-width: 901px) and (max-width: 1500px) {
  .hero {
    background-size: cover;
    background-position: center right;
    margin-top: 130px;
  }
}



   @media (max-width: 900px) {
  .hero {
    background-attachment: scroll;
    background-size: cover;
    
  }
  
  .services-grid { grid-template-columns: 1fr; }
  .service-gallery { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .main-nav { display: none; }
}

@media (max-width: 560px) {
  .hero { margin-top: 80px; }
  .section { padding: 80px 0; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}
