/* ============================================
   JC ENERGIA SOLAR — GLOBAL STYLES
   ============================================ */

   @import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');
   @import './theme.css';
   
   *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
   html { scroll-behavior: smooth; font-size: 16px; }
   body {
     font-family: var(--font-body);
     color: var(--color-text-primary);
     background: var(--color-light-bg);
     line-height: 1.6;
     -webkit-font-smoothing: antialiased;
   }
   img { max-width: 100%; display: block; }
   a   { text-decoration: none; color: inherit; }
   ul  { list-style: none; }
   
   /* ── CONTAINER ── */
   .container {
     width: 100%;
     max-width: var(--container-max);
     margin: 0 auto;
     padding: 0 var(--space-6);
   }
   
   /* ── NAVBAR ── */
   .navbar {
     position: fixed;
     top: 0; left: 0; right: 0;
     height: var(--nav-height);
     z-index: 100;
     transition: background var(--transition-normal), box-shadow var(--transition-normal);
   }
   .navbar.scrolled {
     background: rgba(13,33,55,0.97);
     backdrop-filter: blur(12px);
     box-shadow: 0 2px 20px rgba(0,0,0,0.3);
   }
   .navbar .container {
     height: 100%;
     display: flex;
     align-items: center;
     justify-content: space-between;
   }
   .navbar__logo img { height: 48px; width: auto; }
   .navbar__links {
     display: flex;
     align-items: center;
     gap: var(--space-8);
   }
   .navbar__links a {
     font-size: var(--text-sm);
     font-weight: var(--weight-medium);
     color: rgba(255,255,255,0.75);
     transition: color var(--transition-fast);
     position: relative;
   }
   .navbar__links a::after {
     content: '';
     position: absolute;
     bottom: -4px; left: 0;
     width: 0; height: 2px;
     background: var(--color-yellow);
     transition: width var(--transition-normal);
   }
   .navbar__links a:hover,
   .navbar__links a.active { color: #fff; }
   .navbar__links a:hover::after,
   .navbar__links a.active::after { width: 100%; }
   
   .navbar__cta {
     background: var(--color-yellow) !important;
     color: var(--color-dark-bg) !important;
     font-weight: var(--weight-semibold) !important;
     padding: var(--space-2) var(--space-6);
     border-radius: var(--radius-full);
     transition: background var(--transition-fast), box-shadow var(--transition-fast) !important;
   }
   .navbar__cta:hover {
     background: var(--color-orange) !important;
     box-shadow: var(--shadow-yellow) !important;
   }
   .navbar__cta::after { display: none !important; }
   
   .navbar__toggle {
     display: none;
     flex-direction: column;
     gap: 5px;
     cursor: pointer;
     padding: var(--space-2);
   }
   .navbar__toggle span {
     display: block;
     width: 24px; height: 2px;
     background: #fff;
     border-radius: 2px;
     transition: transform var(--transition-normal), opacity var(--transition-normal);
   }
   
   /* ── BUTTONS ── */
   .btn {
     display: inline-flex;
     align-items: center;
     gap: var(--space-2);
     padding: var(--space-3) var(--space-8);
     border-radius: var(--radius-full);
     font-family: var(--font-body);
     font-size: var(--text-base);
     font-weight: var(--weight-semibold);
     cursor: pointer;
     border: none;
     transition: all var(--transition-normal);
     white-space: nowrap;
   }
   .btn--primary {
     background: var(--color-yellow);
     color: var(--color-dark-bg);
   }
   .btn--primary:hover {
     background: var(--color-orange);
     box-shadow: var(--shadow-yellow);
     transform: translateY(-2px);
   }
   .btn--outline {
     background: transparent;
     color: #fff;
     border: 1.5px solid rgba(255,255,255,0.3);
   }
   .btn--outline:hover {
     border-color: var(--color-yellow);
     color: var(--color-yellow);
     transform: translateY(-2px);
   }
   .btn--blue {
     background: var(--color-blue-mid);
     color: #fff;
   }
   .btn--blue:hover {
     background: var(--color-blue-dark);
     box-shadow: var(--shadow-blue);
     transform: translateY(-2px);
   }
   
   /* ── SECTIONS ── */
   .section { padding: var(--space-24) 0; }
   .section--dark    { background: var(--color-dark-bg); color: #fff; }
   .section--light   { background: var(--color-light-bg); }
   .section--surface { background: var(--color-light-surface); }
   .section--blue    { background: var(--color-blue-dark); color: #fff; }
   
   .section__eyebrow {
     display: inline-block;
     font-size: var(--text-xs);
     font-weight: var(--weight-semibold);
     letter-spacing: 0.12em;
     text-transform: uppercase;
     color: var(--color-yellow);
     margin-bottom: var(--space-3);
   }
   .section__title {
     font-family: var(--font-display);
     font-size: var(--text-4xl);
     font-weight: var(--weight-black);
     line-height: 1.15;
     margin-bottom: var(--space-4);
   }
   .section__subtitle {
     font-size: var(--text-lg);
     color: var(--color-text-secondary);
     max-width: 560px;
     line-height: 1.7;
   }
   .section--dark .section__subtitle,
   .section--blue .section__subtitle { color: var(--color-text-muted); }
   .section__header { margin-bottom: var(--space-12); }
   
   /* ── CARDS ── */
   .card {
     background: var(--color-light-surface);
     border: 1px solid var(--color-light-border);
     border-radius: var(--radius-lg);
     padding: var(--space-8);
     transition: box-shadow var(--transition-normal), transform var(--transition-normal), border-color var(--transition-normal);
   }
   .card:hover {
     box-shadow: var(--shadow-lg);
     transform: translateY(-4px);
     border-color: var(--color-yellow);
   }
   .card--dark {
     background: var(--color-dark-surface);
     border-color: var(--color-dark-border);
   }
   .card--dark:hover { box-shadow: var(--shadow-yellow); }
   .card__icon {
     width: 52px; height: 52px;
     background: var(--color-yellow-glow);
     border-radius: var(--radius-md);
     display: flex;
     align-items: center;
     justify-content: center;
     margin-bottom: var(--space-4);
     font-size: 1.5rem;
   }
   .card__title {
     font-family: var(--font-display);
     font-size: var(--text-xl);
     font-weight: var(--weight-bold);
     margin-bottom: var(--space-2);
   }
   .card__text {
     font-size: var(--text-sm);
     color: var(--color-text-secondary);
     line-height: 1.7;
   }
   .card--dark .card__text { color: var(--color-text-muted); }
   
   /* ── PAGE HERO (páginas internas) ── */
   .page-hero {
     background: var(--color-dark-bg);
     padding: calc(var(--nav-height) + var(--space-20)) 0 var(--space-20);
     position: relative;
     overflow: hidden;
     text-align: center;
   }
   .page-hero::before {
     content: '';
     position: absolute;
     top: -100px; left: 50%;
     transform: translateX(-50%);
     width: 600px; height: 400px;
     background: radial-gradient(ellipse, rgba(245,166,35,0.12) 0%, transparent 70%);
     pointer-events: none;
   }
   .page-hero__eyebrow {
     display: inline-block;
     font-size: var(--text-xs);
     font-weight: var(--weight-semibold);
     letter-spacing: 0.12em;
     text-transform: uppercase;
     color: var(--color-yellow);
     margin-bottom: var(--space-3);
   }
   .page-hero__title {
     font-family: var(--font-display);
     font-size: var(--text-5xl);
     font-weight: var(--weight-black);
     color: #fff;
     margin-bottom: var(--space-4);
     position: relative;
   }
   .page-hero__subtitle {
     font-size: var(--text-lg);
     color: var(--color-text-muted);
     max-width: 540px;
     margin: 0 auto;
     line-height: 1.7;
   }
   
   /* ── FOOTER ── */
   .footer {
     background: var(--color-dark-bg);
     color: var(--color-text-muted);
     padding: var(--space-16) 0 var(--space-8);
     border-top: 1px solid var(--color-dark-border);
   }
   .footer__grid {
     display: grid;
     grid-template-columns: 2fr 1fr 1fr 1fr;
     gap: var(--space-12);
     margin-bottom: var(--space-12);
   }
   .footer__brand img { height: 48px; margin-bottom: var(--space-4); }
   .footer__brand p   { font-size: var(--text-sm); line-height: 1.7; max-width: 280px; }
   .footer__col h4 {
     font-family: var(--font-display);
     font-size: var(--text-sm);
     font-weight: var(--weight-semibold);
     color: #fff;
     margin-bottom: var(--space-4);
     letter-spacing: 0.05em;
     text-transform: uppercase;
   }
   .footer__col ul { display: flex; flex-direction: column; gap: var(--space-3); }
   .footer__col ul li a {
     font-size: var(--text-sm);
     color: var(--color-text-muted);
     transition: color var(--transition-fast);
   }
   .footer__col ul li a:hover { color: var(--color-yellow); }
   .footer__bottom {
     border-top: 1px solid var(--color-dark-border);
     padding-top: var(--space-6);
     display: flex;
     justify-content: space-between;
     align-items: center;
     font-size: var(--text-xs);
   }
   
   /* ── HERO HOME ── */
   .hero {
     min-height: 100vh;
     background: var(--color-dark-bg);
     position: relative;
     overflow: hidden;
     display: flex;
     flex-direction: column;
     justify-content: center;
     padding-top: var(--nav-height);
   }
   .hero__bg { position: absolute; inset: 0; pointer-events: none; }
   .hero__orb {
     position: absolute;
     border-radius: 50%;
     filter: blur(80px);
   }
   .hero__orb--1 {
     width: 500px; height: 500px;
     background: rgba(245,166,35,0.10);
     top: -100px; right: -100px;
   }
   .hero__orb--2 {
     width: 350px; height: 350px;
     background: rgba(46,139,192,0.10);
     bottom: 50px; left: -80px;
   }
   .hero__grid {
     position: absolute; inset: 0;
     background-image:
       linear-gradient(rgba(245,166,35,0.04) 1px, transparent 1px),
       linear-gradient(90deg, rgba(245,166,35,0.04) 1px, transparent 1px);
     background-size: 60px 60px;
   }
   .hero__content {
     display: grid;
     grid-template-columns: 1fr 1fr;
     align-items: center;
     gap: var(--space-16);
     padding-top: var(--space-20);
     padding-bottom: var(--space-16);
     position: relative;
     z-index: 1;
   }
   .hero__text { max-width: 560px; }
   .hero__title {
     font-family: var(--font-display);
     font-size: var(--text-6xl);
     font-weight: var(--weight-black);
     color: #fff;
     line-height: 1.05;
     margin: var(--space-4) 0 var(--space-6);
   }
   .hero__title span { color: var(--color-yellow); }
   .hero__subtitle {
     font-size: var(--text-lg);
     color: var(--color-text-muted);
     line-height: 1.7;
     margin-bottom: var(--space-8);
     max-width: 480px;
   }
   .hero__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; }
   
   /* Hero visual */
   .hero__visual {
     position: relative;
     display: flex;
     justify-content: center;
     align-items: center;
     height: 400px;
   }
   .hero__logo-glow {
     width: 300px; height: 300px;
     background: var(--color-dark-surface);
     border: 1px solid var(--color-dark-border);
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     box-shadow: 0 0 60px rgba(245,166,35,0.15);
     animation: pulse-jc 3s ease-in-out infinite;
   }
   .hero__logo-glow img { width: 200px; height: auto; }
   @keyframes pulse-jc {
     0%,100% { box-shadow: 0 0 60px rgba(245,166,35,0.15); }
     50%      { box-shadow: 0 0 100px rgba(245,166,35,0.30); }
   }
   .hero__card-float {
     position: absolute;
     background: var(--color-dark-surface);
     border: 1px solid var(--color-dark-border);
     border-radius: var(--radius-md);
     padding: var(--space-3) var(--space-4);
     display: flex;
     align-items: center;
     gap: var(--space-2);
     font-size: var(--text-sm);
     color: #fff;
     font-weight: var(--weight-medium);
     box-shadow: var(--shadow-md);
     animation: float-jc 4s ease-in-out infinite;
   }
   .hero__card-float--1 { top: 40px; left: 0; animation-delay: 0s; }
   .hero__card-float--2 { bottom: 60px; right: 0; animation-delay: 1.5s; }
   @keyframes float-jc {
     0%,100% { transform: translateY(0); }
     50%     { transform: translateY(-10px); }
   }
   
   /* Stats bar */
   .hero__stats {
     display: flex;
     align-items: center;
     justify-content: center;
     gap: var(--space-12);
     padding: var(--space-8) var(--space-12);
     background: var(--color-dark-surface);
     border: 1px solid var(--color-dark-border);
     border-radius: var(--radius-lg);
     margin-bottom: var(--space-16);
     position: relative;
     z-index: 1;
   }
   .stat-item { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); }
   .stat-item__value {
     font-family: var(--font-display);
     font-size: var(--text-3xl);
     font-weight: var(--weight-black);
     color: var(--color-yellow);
   }
   .stat-item__label { font-size: var(--text-xs); color: var(--color-text-muted); text-align: center; }
   .stat-item__divider { width: 1px; height: 48px; background: var(--color-dark-border); }
   
   /* Services grid */
   .services__grid {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: var(--space-6);
   }
   
   /* Sectors tags */
   .sectors__grid { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-8); }
   .sector-tag {
     background: var(--color-dark-surface);
     border: 1px solid var(--color-dark-border);
     border-radius: var(--radius-full);
     padding: var(--space-3) var(--space-6);
     font-size: var(--text-sm);
     font-weight: var(--weight-medium);
     color: #fff;
     display: flex;
     align-items: center;
     gap: var(--space-2);
     transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
   }
   .sector-tag:hover { border-color: var(--color-yellow); box-shadow: var(--shadow-yellow); }
   
   /* CTA box */
   .cta-section { background: var(--color-light-bg); }
   .cta-box {
     background: var(--color-dark-bg);
     border: 1px solid var(--color-dark-border);
     border-radius: var(--radius-lg);
     padding: var(--space-16) var(--space-12);
     text-align: center;
     position: relative;
     overflow: hidden;
   }
   .cta-box::before {
     content: '';
     position: absolute;
     top: -80px; left: 50%;
     transform: translateX(-50%);
     width: 400px; height: 400px;
     background: radial-gradient(circle, rgba(245,166,35,0.10) 0%, transparent 70%);
     pointer-events: none;
   }
   .cta-box__title {
     font-family: var(--font-display);
     font-size: var(--text-4xl);
     font-weight: var(--weight-black);
     color: #fff;
     margin-bottom: var(--space-4);
     position: relative;
   }
   .cta-box__subtitle {
     font-size: var(--text-lg);
     color: var(--color-text-muted);
     margin-bottom: var(--space-8);
     position: relative;
   }
   
   /* Mobile menu */
   .navbar__links.open {
     display: flex;
     flex-direction: column;
     position: fixed;
     top: var(--nav-height); left: 0; right: 0;
     background: rgba(13,33,55,0.98);
     backdrop-filter: blur(12px);
     padding: var(--space-8) var(--space-6);
     gap: var(--space-6);
     border-bottom: 1px solid var(--color-dark-border);
   }
   
   /* Scroll reveal */
   .revealed { opacity: 1 !important; transform: translateY(0) !important; }
   
   /* ── RESPONSIVE ── */
   @media (max-width: 768px) {
    .navbar__links  { display: none; }
    .navbar__toggle {
      display: flex !important;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      padding: 8px;
      z-index: 200;
    }
     .hero__content  { grid-template-columns: 1fr; text-align: center; padding-top: var(--space-12); }
     .hero__title    { font-size: var(--text-4xl); }
     .hero__subtitle { margin: 0 auto var(--space-8); }
     .hero__actions  { justify-content: center; }
     .hero__visual   { display: none; }
     .hero__stats    { flex-direction: column; gap: var(--space-6); }
     .stat-item__divider { width: 48px; height: 1px; }
     .services__grid { grid-template-columns: 1fr; }
     .section__title { font-size: var(--text-3xl); }
     .page-hero__title { font-size: var(--text-3xl); }
     .footer__grid   { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
     .footer__bottom { flex-direction: column; gap: var(--space-3); text-align: center; }
     .cta-box        { padding: var(--space-12) var(--space-6); }
     .cta-box__title { font-size: var(--text-2xl); }
   }
   @media (max-width: 480px) {
     .section        { padding: var(--space-16) 0; }
     .section__title { font-size: var(--text-2xl); }
     .footer__grid   { grid-template-columns: 1fr; }
     .hero__title    { font-size: var(--text-3xl); }
   }

   /* ── MOBILE NAVBAR FIX ── */
/* ── RESPONSIVE ── */
/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .navbar__links  { display: none; }
    .navbar__toggle { display: flex; }
  
    .hero__content {
      grid-template-columns: 1fr;
      text-align: center;
      padding-top: var(--space-12);
    }
    .hero__title    { font-size: var(--text-4xl); }
    .hero__subtitle { margin: 0 auto var(--space-8); }
    .hero__actions  { justify-content: center; }
    .hero__visual   { display: none; }
    .hero__stats    { flex-direction: column; gap: var(--space-6); }
    .stat-item__divider { width: 48px; height: 1px; }
    .services__grid { grid-template-columns: 1fr; }
    .section__title { font-size: var(--text-3xl); }
    .page-hero__title { font-size: var(--text-3xl); }
    .footer__grid   { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
    .footer__bottom { flex-direction: column; gap: var(--space-3); text-align: center; }
    .cta-box        { padding: var(--space-12) var(--space-6); }
    .cta-box__title { font-size: var(--text-2xl); }
  }
  
  @media (max-width: 480px) {
    .section        { padding: var(--space-16) 0; }
    .section__title { font-size: var(--text-2xl); }
    .footer__grid   { grid-template-columns: 1fr; }
    .hero__title    { font-size: var(--text-3xl); }
  }
  
  /* Mobile menu open */
  .navbar__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(13,33,55,0.98);
    backdrop-filter: blur(12px);
    padding: var(--space-8) var(--space-6);
    gap: var(--space-6);
    border-bottom: 1px solid var(--color-dark-border);
    z-index: 150;
  }

  /* ── OVERFLOW FIX MOBILE ── */
html, body {
    overflow-x: hidden;
    max-width: 100%;
  }
  
  @media (max-width: 768px) {
    /* grids de 2 colunas no index */
    .section--dark > .container > div[style*="grid-template-columns:repeat(2"] {
      grid-template-columns: 1fr !important;
    }
  
    /* fix geral para qualquer grid que transborde */
    .container {
      padding: 0 var(--space-4);
      overflow: hidden;
    }
  
    /* cards de diferencial — forçar 1 coluna */
    div[style*="repeat(2,1fr)"],
    div[style*="repeat(2, 1fr)"] {
      grid-template-columns: 1fr !important;
    }
  
    /* galeria instalações */
    .gallery-grid {
      grid-template-columns: 1fr !important;
    }
  
    /* serviços detail */
    .service-detail {
      grid-template-columns: 1fr !important;
      direction: ltr !important;
    }
  
    /* about grid */
    .about-grid {
      grid-template-columns: 1fr !important;
    }
  
    /* values grid */
    .values-grid {
      grid-template-columns: 1fr !important;
    }
  
    /* stats bar instalações */
    .stats-bar {
      grid-template-columns: 1fr 1fr !important;
    }
  
    /* process grid */
    .process-grid {
      grid-template-columns: 1fr 1fr !important;
    }
    .process-grid::before { display: none; }
  
    /* blog grid */
    .blog-grid {
      grid-template-columns: 1fr !important;
    }
  
    /* founder/profile card */
    .profile-card {
      grid-template-columns: 1fr !important;
      text-align: center;
    }
    .profile-avatar { margin: 0 auto; }
  
    /* newsletter form */
    .newsletter__form {
      flex-direction: column;
    }
  }