:root{
    --paper:#FAF7F1;
    --paper-2:#EFE6D8;
    --ink:#20182F;
    --on-dark:#F6F2FA;
    --on-dark-muted:#C7BEDA;
    --muted:#69607a;
    --muted-2:#948c9e;
    --line:rgba(46,15,89,.14);
    --line-strong:rgba(46,15,89,.24);
    --line-on-dark:rgba(246,242,250,.16);
    --line-on-dark-strong:rgba(246,242,250,.32);
    --gold:#a9793d;
    --gold-light:#cda05c;
    --purple:#2E0F59;
    --purple-light:#3D1773;
    --brand-1:#120326;
    --brand-2:#200940;
    --brand-3:#2E0F59;
    --brand-4:#3D1773;
    --radius-lg:20px;
    --radius-md:14px;
    --wrap:1180px;
  }
  html{scroll-behavior:smooth; overflow-x:hidden; max-width:100%;}
  *{box-sizing:border-box; margin:0; padding:0;}
  body{
    background:var(--paper);
    color:var(--ink);
    font-family:'Inter',sans-serif;
    font-size:16px;
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
  }
  img{max-width:100%; display:block;}
  a{color:inherit; text-decoration:none;}
  .wrap{max-width:var(--wrap); margin:0 auto; padding:0 32px; min-width:0;}
  h1,h2,h3{font-family:'Fraunces',serif; font-weight:500; letter-spacing:-0.01em;}
  .eyebrow{
    font-family:'IBM Plex Mono',monospace;
    text-transform:uppercase;
    letter-spacing:.18em;
    font-size:12px;
    color:var(--gold);
    display:flex; align-items:center; gap:10px;
  }
  .eyebrow::before{content:""; width:22px; height:1px; background:var(--gold);}
  .mono{font-family:'IBM Plex Mono',monospace;}
  section{position:relative; padding:120px 0;}
  ::selection{background:var(--gold); color:#fff;}
  a:focus-visible, button:focus-visible{outline:2px solid var(--gold); outline-offset:4px;}

  /* ---------- NAV ---------- */
  /* Header supplies its own backdrop (paper wash) at all times, so it reads
     the same whether it's sitting over the dark hero or a light section. */
  header{
    position:fixed; top:0; left:0; right:0; z-index:100;
    background:rgba(250,247,241,.96);
    backdrop-filter:blur(8px);
    padding:22px 0;
    border-bottom:1px solid var(--line);
    transition:padding .3s ease;
  }
  header.scrolled{
    padding:14px 0;
  }
  nav.wrap{display:flex; align-items:center; justify-content:space-between;}
  .brand{display:flex; align-items:center; gap:12px;}
  .brand img{height:44px; width:auto; display:block; filter:brightness(0) saturate(100%); opacity:.85;}
  nav ul{list-style:none; display:flex; gap:34px;}
  nav ul li a{
    font-size:13px; text-transform:uppercase; letter-spacing:.1em;
    color:var(--muted); transition:color .25s ease;
    position:relative; padding-bottom:4px;
  }
  nav ul li a:hover, nav ul li a:focus-visible{color:var(--ink);}
  nav ul li a::after{
    content:""; position:absolute; left:0; bottom:0; width:0; height:1px;
    background:var(--gold); transition:width .25s ease;
  }
  nav ul li a:hover::after{width:100%;}
  .nav-cta{
    display:inline-flex; align-items:center; gap:8px;
    font-size:13px; letter-spacing:.06em; text-transform:uppercase;
    border:1px solid var(--line-strong); padding:10px 20px; border-radius:999px;
    color:var(--ink); transition:all .25s ease; white-space:nowrap;
  }
  .btn-ic{width:16px; height:16px; flex:none; display:block;}
  .nav-cta:hover{background:var(--gold); border-color:var(--gold); color:#fff;}
  .nav-cta-icons{display:none; gap:8px;}
  .nav-cta-icon{
    display:flex; align-items:center; justify-content:center;
    width:34px; height:34px; border-radius:9px; flex-shrink:0;
    background:var(--ink); border:1px solid var(--ink);
    transition:background .25s ease, border-color .25s ease;
  }
  .nav-cta-icon svg{width:16px; height:16px; fill:#fff;}
  .nav-cta-icon:hover{background:var(--gold); border-color:var(--gold);}
  .nav-toggle{display:none; background:none; border:0; color:var(--ink); font-size:24px;}

  /* ---------- BUTTONS ---------- */
  .btn{
    display:inline-flex; align-items:center; gap:10px;
    padding:15px 28px; font-size:14px; letter-spacing:.04em; text-transform:uppercase;
    border-radius:999px; font-weight:600; transition:all .25s ease; cursor:pointer; border:1px solid transparent;
  }
  .btn-primary{background:var(--gold); color:#fff;}
  .btn-primary:hover{background:var(--gold-light); transform:translateY(-2px);}
  .btn-ghost{border-color:var(--line-strong); color:var(--ink);}
  .btn-ghost:hover{border-color:var(--gold); color:var(--gold);}
  #inicio .btn-ghost, #contato .btn-ghost, #servicos .btn-ghost{border-color:var(--line-on-dark-strong); color:var(--on-dark);}
  #inicio .btn-ghost:hover, #contato .btn-ghost:hover, #servicos .btn-ghost:hover{border-color:var(--gold-light); color:var(--gold-light);}

  /* ---------- signature framed-photo motif (used only for genuine photos: Empresa) ---------- */
  .framed-photo{position:relative;}
  .framed-photo::before{
    content:""; position:absolute; z-index:0;
    top:20px; left:20px; right:-20px; bottom:-20px;
    border:1px solid var(--gold); border-radius:var(--radius-lg);
  }
  .framed-photo img{
    position:absolute; inset:0; z-index:1; width:100%; height:100%; object-fit:cover;
    border-radius:var(--radius-lg); display:block;
  }
  .framed-photo.frame-left::before{left:-20px; right:20px;}

  /* ---------- HERO (v4) ---------- */
  /* Clean split layout: gradient panel (brand colors, biased light per
     request) on the left, a real contained photo on the right — no baked-in
     banner graphic to fight, no scrim needed for legibility. */
  #inicio{
    position:relative;
    padding:0;
    background:linear-gradient(115deg, var(--brand-4) 0%, var(--brand-3) 62%, var(--brand-1) 100%);
    color:var(--on-dark);
    overflow:hidden;
  }
  .hero-grid{
    display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center;
  }
  #inicio .hero-grid{padding-top:150px; padding-bottom:90px;}
  .hero-photo{
    border-radius:var(--radius-lg); overflow:hidden; aspect-ratio:3/2;
    box-shadow:0 40px 90px -30px rgba(0,0,0,.5);
  }
  .hero-photo img{width:100%; height:100%; object-fit:cover; display:block;}
  .hero-eyebrow{margin-bottom:26px;}
  .hero-badge{
    display:inline-flex; align-items:center; gap:9px;
    font-family:'IBM Plex Mono',monospace; font-size:12.5px; font-weight:600;
    text-transform:uppercase; letter-spacing:.06em;
    color:var(--gold-light);
    background:rgba(169,121,61,.14);
    border:1px solid rgba(205,160,92,.55);
    border-radius:999px; padding:10px 18px;
  }
  .hero-badge svg{width:15px; height:15px; flex:none;}
  .hero-badge::before{content:none;}
  h1.hero-title{
    font-size:clamp(28px,3.4vw,42px);
    line-height:1.18;
    color:var(--on-dark);
  }
  h1.hero-title em{font-style:italic; color:var(--gold-light); font-weight:400;}
  .hero-sub{
    max-width:460px; margin-top:26px; color:var(--on-dark-muted); font-size:16.5px;
  }
  .hero-actions{display:flex; gap:16px; margin-top:40px; flex-wrap:nowrap;}
  .hero-actions .btn{min-width:0; flex-shrink:1; white-space:nowrap; text-align:center;}
  .hero-checks{
    display:flex; flex-wrap:wrap; gap:16px 32px; margin-top:56px; padding-top:28px;
    border-top:1px solid var(--line-on-dark); max-width:560px;
  }
  .check-item{display:flex; align-items:center; gap:10px;}
  .check-ic{width:19px; height:19px; flex-shrink:0;}
  .check-item span{
    font-size:13.5px; color:var(--on-dark-muted); font-family:'Inter',sans-serif;
    letter-spacing:.01em; white-space:nowrap;
  }
  /* ---------- SECTION HEADS ---------- */
  .sec-head{max-width:640px; margin-bottom:56px;}
  .sec-head h2{font-size:clamp(28px,3.4vw,42px); margin-top:16px; color:var(--ink);}
  .sec-head p{color:var(--muted); margin-top:16px; font-size:15.5px; max-width:560px;}
  #servicos .sec-head h2{color:var(--on-dark);}
  #servicos .sec-head p{color:var(--on-dark-muted);}

  /* ---------- NOSSA HISTÓRIA (v4) ---------- */
  /* Light section with a real photo beside the text — mirrors the Hero's
     and Empresa's split pattern instead of standing alone as a dark block. */
  #origem{background:var(--paper);}
  .origem-grid{
    display:grid; grid-template-columns:1.05fr .95fr; gap:60px; align-items:center;
  }
  .story-eyebrow{margin-bottom:18px;}
  .story-quote{
    font-family:'Fraunces',serif; font-style:italic; font-weight:400;
    font-size:clamp(24px,2.6vw,32px); line-height:1.4; color:var(--brand-3);
    margin-bottom:22px;
  }
  .story-p{
    font-family:'Fraunces',serif; font-weight:300; font-size:17px; line-height:1.72;
    color:var(--muted); margin:0 0 18px; max-width:520px;
  }
  .story-p:last-child{margin-bottom:0;}
  .story-p-strong{
    color:var(--ink); padding-top:20px; margin-top:2px;
    border-top:1px solid var(--line);
  }
  .origem-visual img{width:100%; display:block;}

  /* ---------- SOBRE (como trabalhamos) ---------- */
  #sobre{background:var(--paper-2);}
  #sobre .sec-head{max-width:820px;}
  .quality-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px; margin-top:48px;}
  .quality-card{
    display:flex; align-items:center; gap:20px;
    background:var(--paper);
    border:1px solid var(--line); border-radius:var(--radius-md);
    padding:30px 26px;
    transition:transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  }
  .quality-card:hover{
    transform:translateY(-4px); border-color:var(--gold);
    box-shadow:0 26px 48px -30px rgba(46,15,89,.25);
  }
  .q-ic{
    width:50px; height:50px; flex-shrink:0; border-radius:50%;
    border:1px solid var(--line-strong); background:rgba(46,15,89,.03);
    display:flex; align-items:center; justify-content:center;
    transition:border-color .3s ease;
  }
  .q-ic svg{width:21px; height:21px;}
  .quality-card:hover .q-ic{border-color:var(--gold);}
  .quality-card p{
    font-family:'Fraunces',serif; font-weight:400; font-size:15px;
    color:var(--muted); line-height:1.5;
  }

  /* ---------- SERVIÇOS ---------- */
  /* bg-servicos.jpg is the same kind of pre-tinted mood texture as bg-origem —
     used full-bleed behind opaque, self-contained cards so the grid always
     reads clearly regardless of the photo underneath. */
  #servicos{
    background:
      linear-gradient(180deg, rgba(46,15,89,.5) 0%, rgba(46,15,89,.35) 40%, rgba(46,15,89,.55) 100%),
      url("../images/bg-servicos.jpg");
    background-size:cover; background-position:center;
  }
  .services-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
  .service-card{
    position:relative; overflow:hidden;
    background:var(--paper-2);
    border:1px solid var(--line); border-radius:var(--radius-md);
    padding:0;
    transition:transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  }
  .service-card::before{
    content:""; position:absolute; top:0; left:0; right:0; height:3px;
    background:var(--gold); transform:scaleX(0); transform-origin:left;
    transition:transform .35s ease; z-index:2;
  }
  .service-card:hover{
    transform:translateY(-4px); border-color:var(--line-strong);
    box-shadow:0 24px 44px -28px rgba(46,15,89,.22);
  }
  .service-card:hover::before{transform:scaleX(1);}
  .s-img{width:100%; aspect-ratio:5/3; object-fit:cover; display:block;}
  .s-body{padding:22px 22px 26px;}
  .service-card h3{font-size:17px; color:var(--ink); font-weight:500; margin-bottom:9px;}
  .service-card p{font-size:14px; color:var(--muted); line-height:1.6;}
  .services-cta{text-align:center; margin-top:44px;}

  /* ---------- COMO FUNCIONA — connected timeline ---------- */
  #como-funciona{background:var(--paper-2);}
  .timeline{display:grid; grid-template-columns:repeat(4,1fr); gap:28px; margin-top:64px;}
  .tl-item{position:relative; text-align:center;}
  .tl-item::before{
    content:""; position:absolute; top:27px; left:-50%; width:100%; height:2px;
    background:var(--purple); opacity:.3;
  }
  .tl-item:first-child::before{content:none;}
  .tl-num{
    position:relative; z-index:2;
    display:flex; align-items:center; justify-content:center;
    width:56px; height:56px; border-radius:50%; margin:0 auto 22px;
    background:var(--paper); border:2px solid var(--purple); color:var(--purple);
    font-family:'IBM Plex Mono',monospace; font-size:14px; font-weight:600;
  }
  .tl-item p{
    font-family:'Fraunces',serif; font-weight:400; font-size:16px;
    color:var(--muted); line-height:1.6; max-width:220px; margin:0 auto;
  }

  /* ---------- SOBRE A VÉRTICELAB (empresa) ---------- */
  #empresa{background:var(--paper);}
  .about-grid{display:grid; grid-template-columns:1fr 1fr; gap:70px; align-items:center;}
  #empresa h2{font-size:clamp(28px,3.2vw,38px); margin-top:16px; color:var(--ink); max-width:520px;}
  .about-p{color:var(--muted); font-size:16px; line-height:1.7; max-width:480px; margin-top:18px;}
  .about-tags{display:flex; flex-wrap:wrap; gap:10px; margin-top:28px;}
  .tag-pill{
    font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--gold);
    border:1px solid var(--line-strong); border-radius:999px; padding:9px 16px;
    background:var(--paper-2); white-space:nowrap;
  }
  .about-btn{margin-top:34px;}
  .about-visual{aspect-ratio:4/5;}

  /* ---------- CONTATO (dark bookend) ---------- */
  #contato{
    background:
      radial-gradient(ellipse 780px 520px at 88% 15%, rgba(61,23,115,.45), transparent 62%),
      linear-gradient(160deg, var(--brand-2) 0%, var(--brand-1) 100%);
    color:var(--on-dark);
    padding-bottom:0;
  }
  #contato .eyebrow{color:var(--gold-light);}
  #contato .eyebrow::before{background:var(--gold-light);}
  #contato h2{font-size:clamp(30px,4vw,46px); margin-top:16px; color:var(--on-dark);}
  #contato > .wrap > .contact-grid > div:first-child > p{color:var(--on-dark-muted); margin-top:18px; max-width:460px; font-size:16px;}
  .contact-grid{display:grid; grid-template-columns:1.1fr .9fr; gap:60px; align-items:stretch;}
  /* Light paper panels floating on the dark bookend — reads much clearer
     than a translucent-on-dark treatment. */
  .contact-cards{
    display:flex; flex-direction:column; gap:1px; margin-top:36px;
    background:var(--line); border:1px solid var(--line); border-radius:var(--radius-md); overflow:hidden;
    box-shadow:0 30px 60px -30px rgba(0,0,0,.5);
  }
  .contact-card{
    background:var(--paper); padding:22px 24px; display:flex; align-items:center; gap:16px;
    transition:background .25s ease;
  }
  .contact-card:hover{background:var(--paper-2);}
  .contact-card > div:last-child{min-width:0; flex:1;}
  .contact-card .ic{
    width:40px; height:40px; border-radius:50%; border:1px solid var(--line-strong);
    display:flex; align-items:center; justify-content:center; flex-shrink:0; color:var(--gold);
  }
  .contact-card .ic svg{width:17px; height:17px;}
  .contact-card .meta{font-size:11px; text-transform:uppercase; letter-spacing:.1em; color:var(--muted-2); font-family:'IBM Plex Mono',monospace;}
  .contact-card .val{font-size:15.5px; color:var(--ink); margin-top:3px; font-family:'Fraunces',serif; overflow-wrap:break-word; word-break:break-word;}

  .contact-grid > div:last-child{display:flex; flex-direction:column;}
  .contact-form{
    display:flex; flex-direction:column; flex:1;
    background:var(--paper);
    border:1px solid var(--line); border-radius:var(--radius-md); padding:36px 32px;
    box-shadow:0 30px 60px -30px rgba(0,0,0,.5);
  }
  .form-row{margin-bottom:22px;}
  .form-row-split{display:grid; grid-template-columns:1fr 1fr; gap:18px;}
  .form-row-grow{display:flex; flex-direction:column; flex:1; margin-bottom:26px;}
  .contact-form label{
    display:block; font-family:'IBM Plex Mono',monospace; font-size:11px;
    text-transform:uppercase; letter-spacing:.1em; color:var(--muted-2); margin-bottom:9px;
  }
  .contact-form label .optional{text-transform:none; letter-spacing:0; opacity:.7;}
  .contact-form input, .contact-form textarea{
    width:100%; background:var(--paper-2); border:1px solid var(--line-strong);
    border-radius:8px; padding:13px 14px; color:var(--ink); font-family:'Inter',sans-serif;
    font-size:14.5px; transition:border-color .2s ease, background .2s ease, box-shadow .2s ease;
  }
  .contact-form input::placeholder, .contact-form textarea::placeholder{color:var(--muted-2);}
  .contact-form input:focus, .contact-form textarea:focus{
    outline:none; border-color:var(--gold); background:#fff;
    box-shadow:0 0 0 3px rgba(169,121,61,.18);
  }
  .form-row-grow textarea{flex:1; height:100%; min-height:110px; resize:none;}
  .form-submit{width:100%; justify-content:center; margin-top:4px; border:none; cursor:pointer;}
  .form-submit:disabled{opacity:.6; cursor:default;}
  .form-status{margin-top:14px; font-size:13px; text-align:center; min-height:1em;}
  .form-status.success{color:var(--gold-light);}
  .form-status.error{color:#e08585;}

  footer{margin-top:90px; border-top:1px solid var(--line-on-dark); padding:40px 0;}
  .footer-grid{display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:20px;}
  .footer-brand{display:flex; align-items:center; gap:12px;}
  .footer-brand img{height:26px; width:auto;}
  .footer-tag{font-size:12px; color:var(--on-dark-muted); font-family:'IBM Plex Mono',monospace; letter-spacing:.04em;}
  .footer-copy{font-size:12px; color:var(--on-dark-muted);}

  /* ---------- reveal on scroll ---------- */
  .reveal{opacity:1; transform:none;}
  html.js .reveal{opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease;}
  html.js .reveal.in{opacity:1; transform:translateY(0);}

  @media (prefers-reduced-motion: reduce){
    html{scroll-behavior:auto;}
    .reveal{opacity:1; transform:none; transition:none;}
  }

  /* ---------- RESPONSIVE ---------- */
  @media (max-width:980px){
    .hero-grid{grid-template-columns:1fr; gap:40px;}
    #inicio .hero-grid{padding-top:130px; padding-bottom:64px;}
    .hero-photo{aspect-ratio:3/2;}
    .origem-grid{grid-template-columns:1fr; gap:32px;}
    .origem-visual{max-width:460px; margin:0 auto;}
    .quality-grid{grid-template-columns:repeat(2,1fr);}
    .about-grid{grid-template-columns:1fr; gap:36px;}
    .about-visual{order:-1; max-width:480px; margin:0 auto; aspect-ratio:16/10;}
    .services-grid{grid-template-columns:repeat(2,1fr);}
    .timeline{grid-template-columns:repeat(2,1fr); row-gap:44px;}
    .tl-item:nth-child(3)::before{content:none;}
    .contact-grid{grid-template-columns:1fr;}
    nav ul{display:none;}
    .nav-toggle{display:block;}
    .hero-actions{gap:12px;}
    .hero-actions .btn{padding:13px 18px; font-size:12px; gap:8px;}
    .hero-actions .btn-ic{width:14px; height:14px;}
  }
  @media (max-width:600px){
    section{padding:80px 0;}
    #inicio{
      background:linear-gradient(180deg, var(--brand-4) 0%, var(--brand-3) 55%, var(--brand-1) 100%);
    }
    .hero-grid{gap:36px;}
    #inicio .hero-grid{padding-top:120px; padding-bottom:60px;}
    .hero-photo{aspect-ratio:3/2; border-radius:var(--radius-md);}
    .hero-eyebrow{margin-bottom:16px;}
    .hero-badge{border-radius:14px; text-align:left;}
    .hero-sub{margin-top:16px;}
    .hero-actions{margin-top:26px; gap:14px; flex-direction:column; align-items:center;}
    .hero-actions .btn{width:min(100%,320px); justify-content:center;}
    .hero-checks{
      display:grid; grid-template-columns:1fr 1fr; gap:14px 16px;
      margin-top:28px; padding-top:20px; max-width:100%;
    }
    .check-item span{white-space:normal;}
    .wrap{padding:0 20px;}
    .services-grid{grid-template-columns:1fr;}
    .quality-grid{grid-template-columns:1fr;}
    .timeline{grid-template-columns:1fr; gap:34px;}
    .tl-item::before{content:none !important;}
    .brand img{height:30px;}
    .nav-cta{display:none;}
    .nav-cta-icons{display:flex;}
    .cta-full{display:none;}
    nav.wrap{gap:10px;}
    .tag-pill{white-space:normal; max-width:100%;}
    h1.hero-title{max-width:100%;}
    .hero-sub{max-width:100%;}
  }

  /* ---------- WHATSAPP FLOAT ---------- */
  .wa-float{
    position:fixed; right:24px; bottom:24px; z-index:200;
    width:58px; height:58px; border-radius:50%;
    background:#25D366;
    display:flex; align-items:center; justify-content:center;
    box-shadow:0 10px 26px -8px rgba(0,0,0,.45);
    transition:transform .25s ease, box-shadow .25s ease;
  }
  .wa-float img{width:32px; height:32px; display:block;}
  .wa-float:hover{transform:translateY(-3px) scale(1.04); box-shadow:0 14px 32px -8px rgba(0,0,0,.5);}
  @media (max-width:600px){
    .wa-float{right:16px; bottom:16px; width:52px; height:52px;}
    .wa-float img{width:28px; height:28px;}
  }
