/*
Theme Name: GBS Contabilidade
Theme URI: https://gbscontabilidade.lovable.app
Author: GBS Contabilidade
Description: Tema institucional da GBS Contabilidade — landing page única, responsiva, com animações suaves. Verde institucional, tipografia Space Grotesk + Inter.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: gbs-contabilidade
*/

/* ========== Tokens ========== */
:root{
  --background:#ffffff;
  --foreground:#13211c;
  --primary:#388a5e;
  --primary-foreground:#ffffff;
  --secondary:#eef5f0;
  --accent:#cdebd9;
  --muted-foreground:#5a6c64;
  --border:#dde7e1;
  --shadow-card:0 4px 20px -2px rgba(20,80,50,.08);
  --shadow-soft:0 10px 40px -10px rgba(40,120,80,.18);
  --ease:cubic-bezier(.16,1,.3,1);
}

/* ========== Reset ========== */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  background:var(--background);
  color:var(--foreground);
  -webkit-font-smoothing:antialiased;
  line-height:1.5;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4,h5{font-family:'Space Grotesk',system-ui,sans-serif;font-weight:700;letter-spacing:-.02em;margin:0;line-height:1.05}
p{margin:0}
ul{margin:0;padding:0;list-style:none}
button{font:inherit;cursor:pointer;border:0;background:transparent;color:inherit}

/* ========== Layout ========== */
.container{width:100%;max-width:1200px;margin:0 auto;padding:0 1.5rem}
.section{padding:5rem 0}
@media(min-width:768px){.section{padding:8rem 0}}
.label-mono{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:.72rem;font-weight:500;text-transform:uppercase;letter-spacing:.2em;color:rgba(19,33,28,.6)}

/* ========== Buttons ========== */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;border-radius:9999px;padding:.95rem 1.75rem;font-family:'Space Grotesk',sans-serif;font-weight:600;transition:all .3s var(--ease);box-shadow:var(--shadow-card)}
.btn-primary{background:var(--primary);color:#fff}
.btn-primary:hover{background:#2f7350;transform:translateY(-2px)}
.btn-ghost{background:transparent;box-shadow:none;color:var(--foreground)}
.btn-ghost:hover{background:rgba(19,33,28,.05)}
.btn-light{background:#fff;color:var(--foreground)}
.btn-light:hover{background:#f5f5f5;transform:translateY(-2px)}

/* ========== Nav ========== */
.nav{position:fixed;top:0;left:0;right:0;z-index:50;background:rgba(255,255,255,.95);backdrop-filter:blur(10px);border-bottom:1px solid rgba(221,231,225,.6)}
.nav-inner{display:flex;align-items:center;justify-content:space-between;padding:.75rem 0}
.nav-logo img{height:48px;width:auto}
.nav-links{display:none;gap:2rem}
.nav-links a{font-size:.875rem;font-weight:700;color:rgba(19,33,28,.8);transition:color .2s}
.nav-links a:hover{color:var(--primary)}
.nav-cta{display:none}
.nav-toggle{display:block;font-size:1.5rem;color:var(--primary);padding:.5rem}
.nav-mobile{display:none;border-bottom:1px solid var(--border);padding:1.5rem 0}
.nav-mobile.open{display:block}
.nav-mobile a{display:block;padding:.5rem 0;font-weight:700;color:rgba(19,33,28,.8)}
.nav-mobile .btn{margin-top:1rem;width:100%}
@media(min-width:768px){
  .nav-logo img{height:56px}
  .nav-links,.nav-cta{display:flex;align-items:center}
  .nav-toggle{display:none}
  .nav-mobile{display:none!important}
}

/* ========== Hero ========== */
.hero{position:relative;padding:7rem 0 4rem;overflow:hidden}
@media(min-width:768px){.hero{padding:9rem 0 6rem}}
.hero::before{content:"";position:absolute;inset:0;z-index:-1;background:
  radial-gradient(1000px 500px at 80% 0%,rgba(176,224,200,.6),transparent 60%),
  radial-gradient(800px 400px at 0% 10%,#f0f8f3,transparent 60%);}
.hero-grid{display:grid;gap:2.5rem;max-width:1200px;margin:0 auto;align-items:center}
@media(min-width:1024px){.hero-grid{grid-template-columns:1fr 1fr;gap:3rem}}
.hero h1{font-size:clamp(2rem,5vw,4.25rem);margin-bottom:1.25rem}
.hero h1 .accent{color:var(--primary)}
.hero p{font-size:1.05rem;color:var(--muted-foreground);max-width:36rem;margin-bottom:2rem;line-height:1.6}
.hero-ctas{display:flex;flex-wrap:wrap;gap:.75rem}
@media(max-width:1023px){.hero-text{text-align:center}.hero p{margin-left:auto;margin-right:auto}.hero-ctas{justify-content:center}}

.hero-image-wrap{position:relative;max-width:24rem;margin:0 auto}
@media(min-width:1024px){.hero-image-wrap{margin:0 0 0 auto}}
.hero-image-wrap::before{content:"";position:absolute;inset:-2rem;border-radius:50%;background:radial-gradient(circle at center,#b9e0c8,transparent 70%)}
.hero-image{position:relative;aspect-ratio:4/5;border-radius:2rem;overflow:hidden}
.hero-image img{width:100%;height:100%;object-fit:cover;transition:transform .7s var(--ease)}
.hero-image:hover img{transform:scale(1.05)}
.hero-badge-plus{position:absolute;left:-.5rem;top:2rem;z-index:2;width:3.5rem;height:3.5rem;border-radius:50%;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.75rem;font-weight:300;box-shadow:var(--shadow-card);transition:transform .3s}
.hero-badge-plus:hover{transform:rotate(90deg)}
.hero-badge-circle{position:absolute;right:-.5rem;top:.5rem;z-index:2;width:8rem;height:8rem;display:flex;align-items:center;justify-content:center}
@media(min-width:640px){.hero-badge-circle{width:9rem;height:9rem;right:-1rem}}
.hero-badge-circle svg{position:absolute;inset:0;width:100%;height:100%;animation:spin 22s linear infinite}
.hero-badge-circle .num{font-family:'Space Grotesk',sans-serif;font-size:1.875rem;font-weight:700;color:var(--foreground)}
.hero-badge-circle .num span{color:var(--primary)}
.hero-floating-card{position:absolute;left:-.5rem;bottom:2rem;z-index:2;background:#fff;border-radius:1rem;border:1px solid var(--border);box-shadow:var(--shadow-card);padding:.625rem .875rem;display:flex;align-items:center;gap:.625rem;transition:transform .3s}
@media(min-width:640px){.hero-floating-card{left:-1.5rem;bottom:4rem;padding:.75rem 1rem;gap:.75rem}}
.hero-floating-card:hover{transform:translateY(-4px)}
.hero-floating-card .ic{width:2.25rem;height:2.25rem;border-radius:.5rem;background:var(--accent);display:flex;align-items:center;justify-content:center;color:var(--primary);font-size:1rem}
.hero-floating-card .small{font-family:'JetBrains Mono',monospace;font-size:.625rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted-foreground)}
.hero-floating-card .big{font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:.875rem}
.hero-floating-card .tag{margin-left:.25rem;font-size:.625rem;font-weight:700;padding:.125rem .5rem;border-radius:9999px;background:var(--primary);color:#fff}
@keyframes spin{to{transform:rotate(360deg)}}

/* ========== Stats ========== */
.stats{padding:5rem 0}
.stats-grid{display:grid;grid-template-columns:1fr;gap:1.25rem;max-width:1100px;margin:0 auto}
@media(min-width:768px){.stats-grid{grid-template-columns:repeat(3,1fr)}}
.stat-card{position:relative;border-radius:1.5rem;padding:2.5rem;min-height:260px;display:flex;flex-direction:column;justify-content:space-between;transition:all .3s var(--ease)}
.stat-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-soft)}
.stat-card.dark{background:var(--foreground);color:#fff}
.stat-card.light{background:var(--secondary);color:var(--foreground)}
.stat-card .top{display:flex;justify-content:space-between;align-items:flex-start}
.stat-card .logo{height:28px;width:auto;opacity:.9}
.stat-card .arrow{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.stat-card.dark .arrow{background:rgba(255,255,255,.1)}
.stat-card.light .arrow{background:rgba(19,33,28,.05)}
.stat-card .value{font-family:'Space Grotesk',sans-serif;font-size:3.25rem;font-weight:700;letter-spacing:-.04em;margin-bottom:.75rem;line-height:1}
.stat-card .label{font-size:.875rem;max-width:200px;opacity:.7}

/* ========== CTA Band ========== */
.cta-band{padding:4rem 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.cta-band.light{background:var(--secondary);color:var(--foreground)}
.cta-band.dark{background:var(--foreground);color:#fff}
.cta-band-inner{display:flex;flex-direction:column;gap:2rem;max-width:1100px;margin:0 auto}
@media(min-width:768px){.cta-band-inner{flex-direction:row;align-items:flex-end;justify-content:space-between}}
.cta-band h3{font-size:clamp(1.5rem,3vw,3rem);max-width:42rem}
.cta-band .hl{color:var(--primary)}
.cta-band.dark .hl{color:rgba(255,255,255,.7)}
.cta-band .eyebrow{display:block;margin-bottom:1rem}
.cta-band.dark .eyebrow{color:rgba(255,255,255,.6)}

/* ========== Services ========== */
.services{border-top:1px solid var(--border)}
.services .head{display:grid;gap:2rem;margin-bottom:3rem}
@media(min-width:768px){.services .head{grid-template-columns:1fr 2fr;margin-bottom:5rem}}
.services h2{font-size:clamp(1.875rem,4vw,3.75rem)}
.services h2 .hl{color:var(--primary)}
.services-list{border-top:1px solid var(--border)}
.service-row{display:grid;gap:1.5rem;padding:2.5rem 0;border-bottom:1px solid var(--border);transition:background-color .3s;cursor:pointer}
.service-row:hover{background:rgba(238,245,240,.4)}
@media(min-width:768px){.service-row{grid-template-columns:.5fr 5fr 4fr 2fr;gap:2rem;padding:2.5rem 1rem;margin:0 -1rem}}
.service-row .code{font-family:'JetBrains Mono',monospace;font-size:.72rem;text-transform:uppercase;letter-spacing:.2em;color:rgba(19,33,28,.6)}
.service-row h3{font-size:1.5rem;margin-bottom:.75rem;transition:color .3s}
.service-row:hover h3{color:var(--primary)}
@media(min-width:768px){.service-row h3{font-size:1.875rem}}
.service-row .desc{color:rgba(19,33,28,.65);max-width:28rem;line-height:1.65}
.service-row .img{aspect-ratio:4/3;border-radius:1rem;overflow:hidden;background:var(--secondary)}
.service-row .img img{width:100%;height:100%;object-fit:cover;transition:transform .7s var(--ease)}
.service-row:hover .img img{transform:scale(1.04)}
.service-row .cta{display:inline-flex;align-items:center;gap:.5rem;font-family:'Space Grotesk',sans-serif;font-weight:600;font-size:.875rem;transition:color .3s}
@media(min-width:768px){.service-row .cta{justify-content:flex-end}}
.service-row:hover .cta{color:var(--primary)}

/* ========== About ========== */
.about-grid{display:grid;gap:3rem;max-width:1200px;margin:0 auto;align-items:center}
@media(min-width:1024px){.about-grid{grid-template-columns:5fr 7fr;gap:4rem}}
.about-img-wrap{position:relative;order:2}
@media(min-width:1024px){.about-img-wrap{order:1}}
.about-img{aspect-ratio:4/5;border-radius:1.5rem;overflow:hidden;background:var(--secondary)}
.about-img img{width:100%;height:100%;object-fit:cover;transition:transform .7s var(--ease)}
.about-img-wrap:hover img{transform:scale(1.04)}
.about-badge{position:absolute;bottom:-1.25rem;right:-.5rem;background:var(--foreground);color:#fff;border-radius:1rem;padding:.75rem 1.25rem;box-shadow:var(--shadow-card);transition:transform .3s}
@media(min-width:640px){.about-badge{right:-1.25rem;padding:1rem 1.5rem}}
.about-img-wrap:hover .about-badge{transform:translateY(-4px)}
.about-badge .l{font-family:'JetBrains Mono',monospace;font-size:.625rem;letter-spacing:.2em;text-transform:uppercase;color:rgba(255,255,255,.6);margin-bottom:.25rem}
.about-badge .v{font-family:'Space Grotesk',sans-serif;font-size:1.75rem;font-weight:700}
.about-content{order:1}
@media(min-width:1024px){.about-content{order:2}}
.about-content h2{font-size:clamp(1.875rem,4vw,3.75rem);color:var(--primary);margin:1.5rem 0 1.75rem}
.about-content h2 .soft{color:rgba(56,138,94,.7)}
.about-content .lead{display:flex;flex-direction:column;gap:1.25rem;font-size:1.05rem;color:rgba(19,33,28,.75);line-height:1.7;max-width:36rem;margin-bottom:2.5rem}
.about-features{display:flex;flex-direction:column;gap:.75rem;margin-bottom:2.5rem}
.about-features li{display:flex;gap:.75rem;align-items:flex-start;color:rgba(19,33,28,.85)}
.about-features .ck{color:var(--primary);font-weight:700;flex-shrink:0}
.about-states{border-top:1px solid var(--border);padding-top:2rem}
.about-states .tags{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}
.about-states .tag{border:1px solid rgba(56,138,94,.3);color:var(--primary);font-weight:600;padding:.375rem .75rem;border-radius:.5rem;font-size:.72rem;font-family:'JetBrains Mono',monospace}

/* ========== Contact ========== */
.contact{padding-top:5rem;border-top:1px solid var(--border)}
@media(min-width:768px){.contact{padding-top:8rem}}
.contact-card{background:var(--secondary);border-radius:1.5rem;padding:2.5rem;max-width:1100px;margin:0 auto;display:grid;gap:2rem}
@media(min-width:768px){.contact-card{padding:4rem;grid-template-columns:2fr 1fr;align-items:center}}
.contact-card h2{font-size:clamp(1.875rem,4vw,3.75rem);margin-bottom:1.25rem}
.contact-card h2 .hl{color:var(--primary)}
.contact-card p{font-size:1.05rem;color:var(--muted-foreground);max-width:36rem}
.contact-card .btn-wrap{display:flex;justify-content:flex-start}
@media(min-width:768px){.contact-card .btn-wrap{justify-content:flex-end}}
.contact-info{margin-top:2.5rem;display:grid;grid-template-columns:1fr;border:1px solid var(--border);border-radius:1.5rem;overflow:hidden;max-width:1100px;margin-left:auto;margin-right:auto}
@media(min-width:640px){.contact-info{grid-template-columns:1fr 1fr}}
@media(min-width:1024px){.contact-info{grid-template-columns:repeat(4,1fr)}}
.contact-cell{padding:2rem;border-top:1px solid var(--border);transition:background-color .2s}
.contact-cell:first-child{border-top:0}
@media(min-width:640px){
  .contact-cell{border-top:0;border-left:1px solid var(--border)}
  .contact-cell:nth-child(-n+2){border-top:0}
  .contact-cell:nth-child(odd){border-left:0}
  .contact-cell:nth-child(3),.contact-cell:nth-child(4){border-top:1px solid var(--border)}
}
@media(min-width:1024px){
  .contact-cell{border-top:0;border-left:1px solid var(--border)}
  .contact-cell:first-child{border-left:0}
  .contact-cell:nth-child(n){border-top:0}
}
a.contact-cell:hover{background:rgba(238,245,240,.4)}
.contact-cell .row{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}
.contact-cell .icon{color:var(--primary);font-size:1.5rem;line-height:1}
.contact-cell .label{font-family:'JetBrains Mono',monospace;font-size:.72rem;letter-spacing:.2em;text-transform:uppercase;color:rgba(19,33,28,.6);margin-bottom:.5rem}
.contact-cell .val{font-size:.875rem;font-weight:600;color:var(--foreground);white-space:pre-line;line-height:1.4}

/* ========== Footer ========== */
.footer{background:var(--background);border-top:1px solid var(--border);margin-top:6rem;padding:2.5rem 0}
.footer-inner{max-width:1100px;margin:0 auto;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:1.5rem}
@media(min-width:768px){.footer-inner{flex-direction:row}}
.footer img{height:40px;width:auto}

/* ========== Reveal animation ========== */
.reveal{opacity:0;transform:translateY(24px);transition:opacity .9s var(--ease),transform .9s var(--ease)}
.reveal.in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){
  .reveal{opacity:1;transform:none;transition:none}
  *{animation:none!important;transition:none!important}
}
