/* ===========================================================
   MHS ENERGIA SOLAR — design tokens
   navy   #0A1830 / #122448   sun gold #F5A623 / #FBD46D
   green  #3FA65C             paper   #F4F6F5
=========================================================== */
:root{
  --navy-900: #08152C;
  --navy-800: #0F2247;
  --navy-700: #17325F;
  --gold-500: #F5A623;
  --gold-300: #FBD46D;
  --green-500: #3FA65C;
  --green-600: #2F8B4B;
  --paper: #F4F6F5;
  --paper-dim: #E9ECEC;
  --ink: #0E1526;
  --ink-soft: #4A5468;
  --white: #FFFFFF;

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-1: 0 1px 2px rgba(8,21,44,.06), 0 8px 24px -12px rgba(8,21,44,.18);
  --shadow-2: 0 20px 60px -20px rgba(8,21,44,.35);

  --ease: cubic-bezier(.16,.8,.24,1);
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth; overflow-x:hidden; width:100%;}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important}
}

body{
  margin:0;
  overflow-x:hidden;
  width:100%;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  line-height:1.55;
}

h1,h2,h3{
  font-family:var(--font-display);
  color:var(--navy-900);
  margin:0;
  line-height:1.08;
  letter-spacing:-.01em;
}
h2{font-size:clamp(1.7rem,3.2vw,2.5rem); font-weight:700}
h3{font-size:1.15rem; font-weight:600}
p{margin:0}
a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}
ul,ol{margin:0; padding:0; list-style:none}
button{font:inherit; cursor:pointer; background:none; border:0; color:inherit}
input,select,textarea{font:inherit}

.wrap{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:0 24px;
}

.kicker{
  font-family:var(--font-display);
  font-weight:600;
  font-size:.8rem;
  color:var(--green-600);
  margin:0 0 10px;
}
.eyebrow{
  font-family:var(--font-display);
  font-weight:500;
  font-size:.85rem;
  color:var(--gold-300);
  margin:0 0 18px;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.eyebrow::before{
  content:"";
  width:22px; height:1.5px;
  background:var(--gold-300);
  display:inline-block;
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  font-family:var(--font-display);
  font-weight:600;
  font-size:.96rem;
  padding:14px 26px;
  border-radius:999px;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
  white-space:nowrap;
}
.btn-primary{
  background:var(--gold-500);
  color:var(--navy-900);
  box-shadow:0 10px 30px -10px rgba(245,166,35,.6);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 16px 36px -10px rgba(245,166,35,.7); background:var(--gold-300); }
.btn-ghost{
  background:rgba(255,255,255,.08);
  color:var(--white);
  border:1.5px solid rgba(255,255,255,.5);
  backdrop-filter:blur(6px);
}
.btn-ghost:hover{ background:rgba(255,255,255,.16); transform:translateY(-2px); }
.btn-sm{ padding:10px 20px; font-size:.86rem; }
.btn-block{ width:100%; padding:16px; margin-top:6px; }

/* ===========================================================
   HEADER
=========================================================== */
.site-header{
  position:fixed; top:0; left:0; right:0; z-index:100;
  padding:18px 0;
  transition:padding .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.scrolled{
  padding:10px 0;
  background:rgba(8,21,44,.92);
  backdrop-filter:blur(10px);
  box-shadow:0 6px 24px -12px rgba(0,0,0,.4);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.brand-mark{ height:44px; width:auto; transition:height .35s var(--ease); }
.site-header.scrolled .brand-mark{ height:36px; }

.main-nav{ display:flex; gap:30px; }
.main-nav a{
  font-family:var(--font-display);
  font-size:.92rem; font-weight:500;
  color:var(--white); opacity:.85;
  position:relative; padding:4px 0;
  transition:opacity .2s;
}
.main-nav a::after{
  content:""; position:absolute; left:0; right:100%; bottom:-2px; height:2px;
  background:var(--gold-500); transition:right .3s var(--ease);
}
.main-nav a:hover{ opacity:1; }
.main-nav a:hover::after{ right:0; }

.header-actions{ display:flex; align-items:center; gap:16px; }
.header-phone{
  display:flex; align-items:center; gap:7px;
  font-family:var(--font-display); font-weight:600; font-size:.9rem;
  color:var(--white); opacity:.9;
}
.header-phone:hover{ opacity:1; color:var(--gold-300); }

.nav-toggle{ display:none; flex-direction:column; gap:5px; width:26px; }
.nav-toggle span{ height:2px; background:var(--white); border-radius:2px; transition:transform .3s var(--ease), opacity .3s; }

/* ===========================================================
   HERO
=========================================================== */
.hero{
  position:relative;
  min-height:100vh;
  display:flex; align-items:flex-end;
  overflow:hidden;
  background:var(--navy-900);
  padding-top:120px;
}
.hero-media{ position:absolute; inset:0; }
.hero-media img{
  width:100%; height:100%; object-fit:cover; object-position:70% 40%;
  transform:scale(1.08);
  animation:heroZoom 22s ease-out forwards;
}
@keyframes heroZoom{ from{transform:scale(1.12)} to{transform:scale(1)} }
.hero-scrim{
  position:absolute; inset:0;
  background:
    linear-gradient(90deg, rgba(8,21,44,.97) 0%, rgba(8,21,44,.88) 32%, rgba(8,21,44,.45) 62%, rgba(8,21,44,.55) 100%),
    linear-gradient(0deg, rgba(8,21,44,1) 0%, rgba(8,21,44,.2) 42%, rgba(8,21,44,.35) 100%);
}
.hero-sun{
  position:absolute; top:-6%; right:-8%;
  width:min(46vw,620px); height:min(46vw,620px);
  color:var(--gold-500); opacity:.16;
  animation:sunSpin 90s linear infinite;
}
@keyframes sunSpin{ to{ transform:rotate(360deg); } }

.hero-inner{
  position:relative; z-index:2;
  padding-bottom:96px;
  max-width:720px;
}
.hero-title{
  font-size:clamp(2.4rem,5.4vw,4.1rem);
  font-weight:800;
  color:var(--white);
}
.hero-title .line{ display:block; }
.hero-title .accent{ color:var(--gold-500); }

.hero-sub{
  display:block;
  margin:26px 0 34px;
  max-width:52ch;
  font-size:1.08rem;
  color:rgba(255,255,255,.82);
}
.hero-cta{ display:flex; flex-wrap:wrap; gap:14px; }

.hero-stats{
  display:flex; flex-wrap:wrap; gap:36px;
  margin-top:52px;
  padding-top:28px;
  border-top:1px solid rgba(255,255,255,.16);
}
.hero-stats li{ display:flex; flex-direction:column; gap:4px; }
.hero-stats strong{
  font-family:var(--font-display); font-size:1.3rem; font-weight:700; color:var(--gold-300);
}
.hero-stats span{ font-size:.84rem; color:rgba(255,255,255,.68); }

/* reveal-on-load (hero only, orchestrated) */
.reveal{ opacity:0; transform:translateY(22px); animation:revealUp .8s var(--ease) forwards; }
.reveal[data-reveal="1"]{ animation-delay:.15s }
.reveal[data-reveal="2"]{ animation-delay:.32s }
.reveal[data-reveal="3"]{ animation-delay:.44s }
.reveal[data-reveal="4"]{ animation-delay:.56s }
.reveal[data-reveal="5"]{ animation-delay:.72s }
.reveal[data-reveal="6"]{ animation-delay:.86s }
.reveal[data-reveal="7"]{ animation-delay:1s }
@keyframes revealUp{ to{ opacity:1; transform:translateY(0); } }

/* ===========================================================
   TICKER
=========================================================== */
.ticker{
  background:var(--gold-500);
  overflow:hidden;
  padding:12px 0;
  position:relative; z-index:3;
}
.ticker-track{
  display:flex; gap:14px; white-space:nowrap;
  width:max-content;
  animation:tickerMove 32s linear infinite;
  font-family:var(--font-display); font-weight:600; font-size:.86rem;
  color:var(--navy-900);
}
.ticker-track span:nth-child(even){ opacity:.55; }
@keyframes tickerMove{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

/* ===========================================================
   SECTIONS (shared)
=========================================================== */
.section{ padding:108px 0; }
.section-alt{ background:var(--paper-dim); }
.section-head{ max-width:640px; }
.section-head.center{ max-width:640px; margin:0 auto 64px; text-align:center; }
.section-lead{ margin-top:18px; font-size:1.05rem; color:var(--ink-soft); max-width:48ch; }

.section-split{
  display:grid;
  grid-template-columns:.85fr 1.15fr;
  gap:72px;
  align-items:start;
}
.section-split.reverse{ grid-template-columns:1fr 1fr; }

/* scroll reveal (used sparingly, once per element) */
.reveal-io{ opacity:0; transform:translateY(28px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-io.in{ opacity:1; transform:translateY(0); }

/* ---------- benefit list ---------- */
.benefit-list{ display:flex; flex-direction:column; gap:0; }
.benefit-list li{
  display:flex; gap:22px; align-items:flex-start;
  padding:30px 0;
  border-top:1px solid rgba(14,21,38,.1);
}
.benefit-list li:last-child{ border-bottom:1px solid rgba(14,21,38,.1); }
.benefit-icon{
  width:38px; height:38px; flex:none; color:var(--green-500);
  transition:transform .4s var(--ease);
}
.benefit-list li:hover .benefit-icon{ transform:rotate(35deg); }
.benefit-list h3{ margin-bottom:6px; }
.benefit-list p{ color:var(--ink-soft); font-size:.97rem; max-width:46ch; }

/* ---------- process ---------- */
.process{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:22px;
}
.process li{
  background:var(--white);
  border-radius:var(--radius-md);
  padding:28px 22px;
  box-shadow:var(--shadow-1);
  position:relative;
  transition:transform .3s var(--ease), box-shadow .3s var(--ease);
}
.process li:hover{ transform:translateY(-6px); box-shadow:var(--shadow-2); }
.process-n{
  display:inline-flex; align-items:center; justify-content:center;
  width:34px; height:34px; border-radius:50%;
  background:var(--navy-900); color:var(--gold-300);
  font-family:var(--font-display); font-weight:700; font-size:.95rem;
  margin-bottom:16px;
}
.process h3{ margin-bottom:8px; font-size:1.02rem; }
.process p{ color:var(--ink-soft); font-size:.9rem; }
.process li:not(:last-child)::after{
  content:"";
  position:absolute; top:44px; right:-22px;
  width:22px; height:1.5px;
  background:repeating-linear-gradient(90deg, rgba(14,21,38,.28) 0 6px, transparent 6px 10px);
  display:none;
}
@media (min-width:900px){ .process li:not(:last-child)::after{ display:block; } }

/* ===========================================================
   GARANTIA
=========================================================== */
.guarantee{
  position:relative;
  background:var(--navy-900);
  padding:120px 0;
  overflow:hidden;
  text-align:center;
}
.guarantee-sun{
  position:absolute; left:50%; top:50%;
  width:900px; height:900px;
  transform:translate(-50%,-50%);
  color:var(--gold-500); opacity:.07;
  animation:sunSpin 140s linear infinite;
}
.guarantee-inner{ position:relative; z-index:1; max-width:760px; margin:0 auto; }
.guarantee-badge{
  display:inline-block;
  font-family:var(--font-display); font-weight:600; font-size:.82rem;
  color:var(--navy-900); background:var(--green-500);
  padding:7px 18px; border-radius:999px; margin-bottom:26px;
}
.guarantee h2{ color:var(--white); font-size:clamp(1.7rem,3.6vw,2.7rem); }
.guarantee p{ color:rgba(255,255,255,.72); margin:22px 0 36px; font-size:1.05rem; }

/* ===========================================================
   TESTIMONIALS
=========================================================== */
.testimonials{ position:relative; }
.t-track{
  display:flex;
  gap:24px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  margin:0 -2px;
  padding:2px;
}
.t-track::-webkit-scrollbar{ display:none; height:0; }
.t-card{
  flex:0 0 100%;
  scroll-snap-align:center;
  scroll-snap-stop:always;
  background:var(--white);
  border-radius:var(--radius-lg);
  padding:40px;
  box-shadow:var(--shadow-1);
  margin:0;
}
.t-stars{ color:var(--gold-500); font-size:1.1rem; letter-spacing:3px; margin-bottom:18px; }
.t-card blockquote{
  margin:0 0 26px;
  font-family:var(--font-display);
  font-size:1.2rem; font-weight:500;
  color:var(--navy-900); line-height:1.5;
}
.t-card figcaption{ display:flex; align-items:center; gap:12px; }
.t-avatar{
  width:42px; height:42px; border-radius:50%;
  background:var(--navy-900); color:var(--gold-300);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-display); font-weight:700; font-size:.85rem;
}
.t-card figcaption strong{ display:block; font-size:.92rem; }
.t-card figcaption span{ font-size:.8rem; color:var(--ink-soft); }

@media (min-width:760px){
  .t-track{ overflow-x:visible; scroll-snap-type:none; }
  .t-card{ flex:0 0 calc((100% - 48px)/3); scroll-snap-align:none; }
  .t-controls{ display:none; }
}

.t-controls{ display:flex; align-items:center; justify-content:center; gap:20px; margin-top:34px; }
.t-controls button{
  width:38px; height:38px; border-radius:50%;
  border:1.5px solid rgba(14,21,38,.18);
  font-size:1.2rem; display:flex; align-items:center; justify-content:center;
  transition:background .2s, color .2s, border-color .2s;
}
.t-controls button:hover{ background:var(--navy-900); color:var(--white); border-color:var(--navy-900); }
.t-dots{ display:flex; gap:8px; }
.t-dots button{
  width:8px; height:8px; border-radius:50%; border:none;
  background:rgba(14,21,38,.22);
}
.t-dots button.active{ background:var(--gold-500); width:22px; border-radius:4px; }

/* ===========================================================
   ORÇAMENTO FORM
=========================================================== */
.orcamento-points{ margin-top:26px; display:flex; flex-direction:column; gap:12px; }
.orcamento-points li{
  display:flex; align-items:center; gap:10px;
  font-size:.95rem; color:var(--ink-soft);
}
.orcamento-points li::before{
  content:""; width:7px; height:7px; border-radius:50%; background:var(--green-500); flex:none;
}

.quote-form{
  background:var(--white);
  border-radius:var(--radius-lg);
  padding:40px;
  box-shadow:var(--shadow-2);
  display:grid;
  gap:20px;
}
.field{ position:relative; }
.field input, .field select, .field textarea{
  width:100%;
  border:1.5px solid rgba(14,21,38,.16);
  border-radius:var(--radius-sm);
  padding:18px 16px 8px;
  background:transparent;
  color:var(--ink);
  transition:border-color .2s, box-shadow .2s;
  resize:none;
}
.field select{ appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%234A5468' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 16px center; padding-right:36px; }
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color:var(--green-500); box-shadow:0 0 0 4px rgba(63,166,92,.14);
}
.field label{
  position:absolute; left:16px; top:16px;
  font-size:1rem; color:var(--ink-soft);
  pointer-events:none;
  transform-origin:left top;
  transition:transform .18s var(--ease), top .18s var(--ease), color .18s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select:valid + label{
  top:8px; transform:scale(.76); color:var(--green-600);
}
.field-textarea textarea{ padding-top:22px; }

.form-note{ font-size:.82rem; color:var(--ink-soft); text-align:center; }
.btn-loading{ display:none; }
.quote-form.sending .btn-label{ display:none; }
.quote-form.sending .btn-loading{ display:inline; }

/* ===========================================================
   FOOTER
=========================================================== */
.site-footer{ background:var(--navy-900); color:rgba(255,255,255,.72); padding:76px 0 0; }
.footer-grid{
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr 1.2fr;
  gap:44px;
  padding-bottom:56px;
  border-bottom:1px solid rgba(255,255,255,.12);
}
.footer-mark{ height:40px; margin-bottom:16px; }
.footer-brand p{ font-size:.88rem; max-width:32ch; }
.footer-col h4{
  font-family:var(--font-display); color:var(--white); font-size:.9rem; margin-bottom:16px;
}
.footer-col a{ display:block; font-size:.9rem; margin-bottom:10px; transition:color .2s; }
.footer-col a:hover{ color:var(--gold-300); }
.footer-col p{ font-size:.88rem; line-height:1.7; }
.footer-map iframe{ width:100%; height:130px; border:0; border-radius:var(--radius-sm); filter:grayscale(.3) contrast(1.1); }

.footer-bottom{
  padding:22px 0 30px;
  font-size:.8rem;
  color:rgba(255,255,255,.45);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
}

/* ===========================================================
   WHATSAPP FLOAT
=========================================================== */
.wa-float{
  position:fixed; right:24px; bottom:24px; z-index:90;
  width:58px; height:58px; border-radius:50%;
  background:var(--green-500); color:var(--white);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 12px 28px -8px rgba(63,166,92,.6);
  animation:waPulse 2.6s ease-in-out infinite;
  transition:transform .25s var(--ease);
}
.wa-float:hover{ transform:scale(1.08); }
@keyframes waPulse{
  0%,100%{ box-shadow:0 12px 28px -8px rgba(63,166,92,.6), 0 0 0 0 rgba(63,166,92,.5); }
  50%{ box-shadow:0 12px 28px -8px rgba(63,166,92,.6), 0 0 0 12px rgba(63,166,92,0); }
}

/* ===========================================================
   RESPONSIVE
=========================================================== */
@media (max-width:980px){
  .section-split, .section-split.reverse{ grid-template-columns:1fr; gap:48px; }
  .process{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}

@media (max-width:760px){
  .main-nav{ display:none; }
  .nav-toggle{ display:flex; }
  .header-phone{ display:none; }
  .hero{ padding-top:96px; }
  .hero-inner{ padding-bottom:64px; }
  .hero-stats{ gap:24px; }
  .section{ padding:76px 0; }
  .process{ grid-template-columns:1fr; }
  .t-card{ padding:28px; }
  .quote-form{ padding:26px; }
  .footer-grid{ grid-template-columns:1fr; gap:34px; }
  .guarantee{ padding:80px 0; }

  .main-nav.open{
    display:flex; flex-direction:column;
    position:fixed; top:74px; left:0; right:0;
    background:rgba(8,21,44,.98); backdrop-filter:blur(10px);
    padding:24px; gap:18px;
  }
}
