/*
 * S1 Ferramentas — high-fidelity native recreation.
 * Built from the visual assets and Elementor CSS supplied with the original page.
 * No Elementor runtime dependency.
 */
:root {
  --s1-yellow: #FFCD0C;
  --s1-yellow-hover: #B9E901;
  --s1-black: #000000;
  --s1-charcoal: #1B1B1B;
  --s1-graphite: #222222;
  --s1-panel: #333333;
  --s1-paper: #F5F5F5;
  --s1-white: #FFFFFF;
  --s1-muted: #D1D1D1;
  --s1-dark-muted: #666A6D;
  --s1-radius: 50px;
  --s1-shell: 1450px;
}
html { scroll-behavior: smooth; background: #000; }
body.s1-replica-page { margin:0; background:#000; color:#fff; font-family:"Kanit", Arial, sans-serif; font-weight:300; overflow-x:hidden; }
body.s1-replica-page * { box-sizing:border-box; }
body.s1-replica-page img { max-width:100%; height:auto; }
body.s1-replica-page a { color:inherit; text-decoration:none; }
body.s1-replica-page button, body.s1-replica-page input { font:inherit; }
body.s1-replica-page h1, body.s1-replica-page h2, body.s1-replica-page h3, body.s1-replica-page p { margin-top:0; }
.s1-shell { width:min(calc(100% - 48px), var(--s1-shell)); margin-inline:auto; }
.s1-skip { position:fixed; left:20px; top:-100px; z-index:9999; background:var(--s1-yellow); color:#000; padding:10px 14px; border-radius:4px; font-weight:500; }
.s1-skip:focus { top:16px; }

/* Header: direct translation of the original three-column black navigation block. */
.s1-header { position:relative; z-index:30; background:#000; min-height:120px; display:flex; align-items:center; }
.s1-header-grid { min-height:120px; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:28px; }
.s1-brand { width:170px; height:76px; display:flex; align-items:center; overflow:hidden; }
.s1-brand img { width:170px; height:170px; max-width:none; object-fit:contain; object-position:center; transform:scale(1.7); }
.s1-nav { display:flex; align-items:center; justify-content:center; gap:34px; }
.s1-nav a { position:relative; color:#f5f5f5; font-size:15px; font-weight:400; line-height:1; padding:14px 0; }
.s1-nav a::after { content:""; position:absolute; left:0; right:100%; bottom:5px; height:2px; background:var(--s1-yellow); transition:right .28s ease; }
.s1-nav a:hover, .s1-nav a:focus-visible { color:var(--s1-yellow); }
.s1-nav a:hover::after, .s1-nav a:focus-visible::after { right:0; }
.s1-header-action { display:flex; justify-content:flex-end; align-items:center; gap:14px; }
.s1-button { min-height:42px; display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:8px 14px; border:1px solid transparent; border-radius:4px; font-family:"Kanit", Arial, sans-serif; font-size:17px; font-weight:400; transition:background-color .3s ease, color .3s ease, border-color .3s ease, transform .3s ease; }
.s1-button:hover { transform:translateY(-2px); }
.s1-button-yellow { background:var(--s1-yellow); color:#181818; }
.s1-button-yellow:hover, .s1-button-yellow:focus-visible { background:var(--s1-yellow-hover); color:#202020; }
.s1-button-black { background:#000; color:#fff; }
.s1-button-black:hover, .s1-button-black:focus-visible { background:#222; color:var(--s1-yellow); }
.s1-button-outline { color:var(--s1-yellow); background:#141313; border-color:var(--s1-yellow); min-width:230px; }
.s1-button-outline:hover, .s1-button-outline:focus-visible { background:#fff; border-color:#fff; color:#2a2a2a; }
.s1-text-link { display:inline-flex; align-items:center; gap:8px; color:#fff; font-weight:400; border-bottom:1px solid rgba(255,255,255,.35); padding-bottom:3px; }
.s1-text-link:hover, .s1-text-link:focus-visible { color:var(--s1-yellow); border-color:var(--s1-yellow); }
.s1-menu-toggle { display:none; width:46px; height:42px; border:0; border-radius:4px; background:var(--s1-yellow); cursor:pointer; padding:0; position:relative; }
.s1-menu-toggle span { position:absolute; width:21px; height:2px; background:#000; left:12px; transition:transform .25s ease, top .25s ease; }
.s1-menu-toggle span:first-child { top:16px; }
.s1-menu-toggle span:last-child { top:24px; }

/* Hero: original page used ~93vh, a 50px radius and a dark industrial background. */
.s1-page { background:#000; }
.s1-hero { min-height:93vh; margin-top:-120px; padding-top:120px; background:#000; }
.s1-hero .s1-shell { min-height:93vh; display:flex; align-items:stretch; }
.s1-hero-card { min-height:93vh; width:100%; position:relative; overflow:hidden; border-radius:var(--s1-radius); background:
  radial-gradient(circle at 78% 24%, rgba(255,205,12,.16), transparent 23%),
  linear-gradient(90deg, #313131 0%, #252525 52%, rgba(18,18,18,.72) 100%);
  display:flex; align-items:center; isolation:isolate;
}
.s1-hero-card::before { content:""; position:absolute; inset:0; z-index:-3; background-image:url('../images/s1-original/electrical-panel.png'); background-size:cover; background-position:center; opacity:.19; filter:grayscale(.3) contrast(1.08); }
.s1-hero-card::after { content:""; position:absolute; inset:0; z-index:-2; background:linear-gradient(90deg, rgba(30,30,30,.98) 0%, rgba(31,31,31,.90) 46%, rgba(0,0,0,.32) 100%); }
.s1-hero-watermark { position:absolute; z-index:-1; width:min(720px,48vw); right:-38px; top:50%; transform:translateY(-50%); opacity:.16; pointer-events:none; }
.s1-hero-watermark img { width:100%; display:block; }
.s1-hero-copy { width:min(850px,67%); padding:92px 76px 78px; position:relative; z-index:3; }
.s1-kicker { margin-bottom:18px; color:var(--s1-yellow); font-family:"Kanit", Arial, sans-serif; font-size:13px; font-weight:400; letter-spacing:.19em; text-transform:uppercase; }
.s1-kicker.dark { color:#575757; }
.s1-hero h1 { margin-bottom:28px; font-family:"Syne", Arial, sans-serif; font-size:clamp(62px,6.2vw,95px); line-height:.95; letter-spacing:-.052em; font-weight:500; }
.s1-hero h1 span, .s1-hero h1 strong { display:block; }
.s1-hero h1 span { color:#fff; }
.s1-hero h1 strong { color:var(--s1-yellow); font-weight:500; }
.s1-hero-copy > p:not(.s1-kicker) { max-width:760px; margin-bottom:14px; padding-right:80px; color:#dfdfdf; font-size:16px; line-height:1.75; font-weight:300; }
.s1-actions { display:flex; flex-wrap:wrap; align-items:center; gap:22px; margin-top:30px; }
.s1-hero-photo { position:absolute; right:42px; bottom:44px; width:330px; border-radius:28px; overflow:hidden; border:1px solid rgba(255,205,12,.42); box-shadow:0 26px 70px rgba(0,0,0,.55); transform:rotate(-2deg); }
.s1-hero-photo img { display:block; width:100%; }

/* Light block — mirrors the original F5F5F5 container with 50px radius and deep lower spacing. */
.s1-about-wrap { padding-top:54px; background:#000; }
.s1-about-card { min-height:44vh; background:var(--s1-paper); color:var(--s1-graphite); border-radius:var(--s1-radius); padding:70px 72px 150px; opacity:0; transform:translateY(22px); transition:opacity .65s ease, transform .65s ease; }
.s1-about-card.s1-visible { opacity:1; transform:none; }
.s1-about-grid { display:grid; grid-template-columns:1.06fr .94fr; gap:80px; align-items:start; }
.s1-about-card h2 { font-family:"Syne", Arial, sans-serif; font-size:clamp(34px,3.1vw,48px); line-height:1.03; letter-spacing:-.04em; font-weight:700; color:#222; }
.s1-about-copy p { max-width:620px; color:#555d61; font-size:17px; line-height:1.8; margin-bottom:30px; }

/* Image spacer / parallax-equivalent block. */
.s1-image-break { background:#000; margin-top:-108px; position:relative; z-index:2; }
.s1-image-break-card { min-height:420px; position:relative; overflow:hidden; border-radius:var(--s1-radius); opacity:0; transform:translateY(22px); transition:opacity .65s ease, transform .65s ease; background:#111; }
.s1-image-break-card.s1-visible { opacity:1; transform:none; }
.s1-image-break-card > img { width:100%; min-height:420px; height:100%; object-fit:cover; object-position:center 52%; display:block; filter:saturate(.9) contrast(1.02) brightness(.74); }
.s1-image-break-card::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.05) 62%, rgba(0,0,0,.35)); }
.s1-image-break-logo { position:absolute; z-index:2; left:56px; bottom:28px; width:255px; height:130px; overflow:hidden; }
.s1-image-break-logo img { width:250px; height:250px; max-width:none; object-fit:contain; transform:scale(1.8); }

/* Dark solution section — derived from the original 48vh #1F1F1F card. */
.s1-solutions { background:#000; padding:58px 0; }
.s1-solutions-card { min-height:48vh; border-radius:var(--s1-radius); background:#1f1f1f; padding:64px 72px 76px; opacity:0; transform:translateY(22px); transition:opacity .65s ease, transform .65s ease; }
.s1-solutions-card.s1-visible { opacity:1; transform:none; }
.s1-section-heading { text-align:center; max-width:900px; margin:0 auto 52px; }
.s1-section-heading h2 { color:var(--s1-yellow); font-family:"Syne", Arial, sans-serif; font-size:clamp(38px,3.8vw,55px); line-height:1.02; letter-spacing:-.04em; font-weight:700; margin-bottom:18px; }
.s1-section-heading > p:last-child { color:#e2e2e2; max-width:720px; margin:0 auto; font-size:16px; line-height:1.7; }
.s1-solution-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:0; border-top:1px solid #3e3e3e; border-left:1px solid #3e3e3e; }
.s1-solution-grid article { min-height:210px; padding:30px 32px; border-right:1px solid #3e3e3e; border-bottom:1px solid #3e3e3e; position:relative; }
.s1-mini-number { display:inline-flex; min-width:42px; height:30px; align-items:center; justify-content:center; margin-bottom:25px; border:1px solid var(--s1-yellow); border-radius:999px; color:var(--s1-yellow); font-size:12px; font-weight:500; letter-spacing:.08em; }
.s1-solution-grid h3 { margin-bottom:10px; color:#fff; font-family:"Syne", Arial, sans-serif; font-size:18px; line-height:1.2; font-weight:600; }
.s1-solution-grid p { margin:0; color:#e2e2e2; font-size:14px; line-height:1.65; }

/* Second F5F5F5 section — original page used a 3x2 grid and larger image-box artwork. */
.s1-differentials-wrap { background:#000; padding-bottom:58px; }
.s1-differentials-card { min-height:44vh; border-radius:var(--s1-radius); background:var(--s1-paper); color:#222; padding:62px 72px 155px; opacity:0; transform:translateY(22px); transition:opacity .65s ease, transform .65s ease; }
.s1-differentials-card.s1-visible { opacity:1; transform:none; }
.s1-center-heading { text-align:center; max-width:920px; margin:0 auto 54px; }
.s1-center-heading h2 { margin-bottom:16px; font-family:"Syne", Arial, sans-serif; font-size:clamp(38px,3.6vw,52px); line-height:1.04; letter-spacing:-.042em; font-weight:700; color:#222; }
.s1-center-heading > p:last-child { color:#62686c; font-size:16px; line-height:1.65; }
.s1-number-grid { display:grid; grid-template-columns:repeat(3,1fr); grid-template-rows:repeat(2,1fr); gap:28px; }
.s1-number-grid article { min-height:270px; padding:28px 26px 30px; background:#fff; border:1px solid #e2e2e2; text-align:center; border-radius:28px; transition:transform .28s ease, box-shadow .28s ease; }
.s1-number-grid article:hover { transform:translateY(-6px); box-shadow:0 20px 40px rgba(0,0,0,.07); }
.s1-number-grid img { width:30%; max-width:112px; min-width:78px; margin:0 auto 22px; display:block; }
.s1-number-grid h3 { margin-bottom:9px; color:#475054; font-family:"Roboto Condensed", "Arial Narrow", Arial, sans-serif; font-size:21px; font-weight:600; }
.s1-number-grid p { margin:0 auto; max-width:340px; color:#697176; font-size:14px; line-height:1.65; }

/* Contact background — based on the supplied original industrial artwork. */
.s1-contact { position:relative; z-index:2; margin-top:-105px; padding:0 0 58px; background:#000; }
.s1-contact-card { min-height:520px; position:relative; overflow:hidden; border-radius:var(--s1-radius); background:#111 url('../images/s1-original/electrical-panel.png') center/cover no-repeat; opacity:0; transform:translateY(22px); transition:opacity .65s ease, transform .65s ease; display:flex; align-items:center; }
.s1-contact-card.s1-visible { opacity:1; transform:none; }
.s1-contact-overlay { position:absolute; inset:0; background:linear-gradient(90deg, rgba(0,0,0,.91) 0%, rgba(0,0,0,.74) 44%, rgba(0,0,0,.19) 100%); }
.s1-contact-copy { position:relative; z-index:2; width:min(760px,64%); padding:60px 66px; }
.s1-contact h2 { margin-bottom:20px; font-family:"Syne", Arial, sans-serif; font-size:clamp(43px,4.8vw,68px); line-height:.98; letter-spacing:-.05em; font-weight:600; color:#fff; }
.s1-contact-copy > p:not(.s1-kicker) { max-width:650px; color:#dedede; font-size:16px; line-height:1.7; }

/* Footer: 44vh dark rounded card, mirroring the original proportions. */
.s1-footer { background:#000; padding:0 0 28px; }
.s1-footer-card { min-height:44vh; border-radius:var(--s1-radius); background:var(--s1-charcoal); padding:46px 42px 26px; color:#d1d1d1; }
.s1-footer-top { display:grid; grid-template-columns:1.2fr .8fr; gap:70px; min-height:300px; }
.s1-footer-brand > img { width:180px; height:120px; object-fit:contain; object-position:center; transform:scale(1.45); transform-origin:left center; margin-left:-14px; }
.s1-footer-brand p { max-width:520px; padding-right:90px; font-size:15px; line-height:1.7; color:#d1d1d1; }
.s1-socials { display:flex; gap:10px; margin-top:22px; }
.s1-socials a { width:36px; height:36px; display:grid; place-items:center; border:1px solid #fff; border-radius:4px; color:#fff; font-size:12px; font-weight:600; }
.s1-socials a:hover, .s1-socials a:focus-visible { background:var(--s1-yellow-hover); border-color:var(--s1-yellow-hover); color:#333; }
.s1-footer-links { display:grid; grid-template-columns:1fr 1fr; gap:34px; }
.s1-footer-links h2 { color:#fff; font-family:"Syne", Arial, sans-serif; font-size:18px; font-weight:700; margin-bottom:18px; }
.s1-footer-links a { display:block; width:max-content; max-width:100%; margin-bottom:13px; color:#d1d1d1; font-size:16px; font-weight:400; }
.s1-footer-links a:hover, .s1-footer-links a:focus-visible { color:var(--s1-yellow); }
.s1-footer-bottom { border-top:1px solid #454545; padding-top:20px; display:flex; justify-content:space-between; gap:30px; font-size:13px; color:#d1d1d1; }
.s1-password { min-height:70vh; background:#f5f5f5; color:#222; padding:90px 0; }

@media (max-width: 1180px) {
  .s1-shell { width:min(calc(100% - 36px), var(--s1-shell)); }
  .s1-header-grid { grid-template-columns:180px 1fr auto; }
  .s1-nav { gap:20px; }
  .s1-nav a { font-size:14px; }
  .s1-hero-copy { width:72%; padding:82px 54px 70px; }
  .s1-hero-copy > p:not(.s1-kicker) { padding-right:60px; }
  .s1-hero-photo { width:280px; right:28px; }
  .s1-about-card, .s1-solutions-card, .s1-differentials-card { padding-left:48px; padding-right:48px; }
  .s1-about-grid { gap:50px; }
}

@media (max-width: 900px) {
  .s1-header { min-height:100px; }
  .s1-header-grid { min-height:100px; grid-template-columns:1fr auto; }
  .s1-brand { width:145px; height:66px; }
  .s1-brand img { width:145px; height:145px; }
  .s1-menu-toggle { display:block; }
  .s1-header-action > .s1-button { display:none; }
  .s1-nav { display:none; position:absolute; left:18px; right:18px; top:88px; z-index:50; flex-direction:column; align-items:stretch; gap:0; padding:16px; border-radius:18px; background:#111; border:1px solid #343434; box-shadow:0 18px 50px rgba(0,0,0,.55); }
  .s1-nav a { padding:14px 12px; border-bottom:1px solid #292929; }
  .s1-nav a:last-child { border-bottom:0; }
  .s1-menu-open .s1-nav { display:flex; }
  .s1-menu-open .s1-menu-toggle span:first-child { top:20px; transform:rotate(45deg); }
  .s1-menu-open .s1-menu-toggle span:last-child { top:20px; transform:rotate(-45deg); }

  .s1-hero { margin-top:-100px; padding-top:100px; }
  .s1-hero, .s1-hero .s1-shell, .s1-hero-card { min-height:820px; }
  .s1-hero-card { align-items:flex-start; }
  .s1-hero-copy { width:100%; padding:90px 42px 330px; }
  .s1-hero h1 { font-size:clamp(55px,9vw,75px); }
  .s1-hero-copy > p:not(.s1-kicker) { padding-right:130px; }
  .s1-hero-photo { right:42px; left:42px; bottom:40px; width:auto; max-height:255px; transform:none; border-radius:24px; }
  .s1-hero-photo img { width:100%; height:255px; object-fit:cover; }
  .s1-hero-watermark { width:470px; right:-120px; top:38%; }

  .s1-about-grid { grid-template-columns:1fr; gap:20px; }
  .s1-about-card { padding-bottom:135px; }
  .s1-image-break-card, .s1-image-break-card > img { min-height:360px; }
  .s1-solution-grid { grid-template-columns:repeat(2,1fr); }
  .s1-number-grid { grid-template-columns:repeat(2,1fr); grid-template-rows:auto; }
  .s1-contact-copy { width:80%; }
  .s1-footer-top { grid-template-columns:1fr; gap:36px; }
  .s1-footer-brand p { padding-right:0; max-width:680px; }
}

@media (max-width: 620px) {
  :root { --s1-radius: 32px; }
  .s1-shell { width:min(calc(100% - 24px), var(--s1-shell)); }
  .s1-header, .s1-header-grid { min-height:84px; }
  .s1-brand { width:125px; height:56px; }
  .s1-brand img { width:125px; height:125px; }
  .s1-nav { top:76px; left:12px; right:12px; }
  .s1-hero { margin-top:-84px; padding-top:84px; }
  .s1-hero, .s1-hero .s1-shell, .s1-hero-card { min-height:790px; }
  .s1-hero-card { border-radius:30px; }
  .s1-hero-copy { padding:64px 25px 300px; }
  .s1-kicker { font-size:11px; }
  .s1-hero h1 { font-size:clamp(39px,12vw,58px); margin-bottom:22px; }
  .s1-hero-copy > p:not(.s1-kicker) { padding-right:0; font-size:15px; line-height:1.68; }
  .s1-actions { gap:14px; margin-top:24px; align-items:flex-start; flex-direction:column; }
  .s1-button { font-size:15px; }
  .s1-hero-photo { left:20px; right:20px; bottom:22px; max-height:230px; }
  .s1-hero-photo img { height:230px; }
  .s1-hero-watermark { width:360px; right:-145px; top:33%; }

  .s1-about-wrap { padding-top:32px; }
  .s1-about-card, .s1-solutions-card, .s1-differentials-card { padding-left:24px; padding-right:24px; }
  .s1-about-card { padding-top:48px; padding-bottom:118px; }
  .s1-about-card h2 { font-size:31px; }
  .s1-about-copy p { font-size:15px; }
  .s1-image-break { margin-top:-82px; }
  .s1-image-break-card, .s1-image-break-card > img { min-height:300px; }
  .s1-image-break-logo { left:24px; bottom:12px; width:190px; }
  .s1-image-break-logo img { width:190px; height:190px; }

  .s1-solutions { padding:34px 0; }
  .s1-solutions-card { padding-top:48px; padding-bottom:52px; }
  .s1-section-heading { margin-bottom:34px; }
  .s1-section-heading h2 { font-size:31px; }
  .s1-solution-grid { grid-template-columns:1fr; }
  .s1-solution-grid article { min-height:0; padding:24px; }
  .s1-differentials-card { padding-top:48px; padding-bottom:120px; }
  .s1-center-heading { margin-bottom:34px; }
  .s1-center-heading h2 { font-size:31px; }
  .s1-number-grid { grid-template-columns:1fr; gap:18px; }
  .s1-number-grid article { min-height:0; padding:24px; }
  .s1-number-grid img { max-width:92px; }

  .s1-contact { margin-top:-82px; padding-bottom:34px; }
  .s1-contact-card { min-height:510px; background-position:67% center; }
  .s1-contact-overlay { background:rgba(0,0,0,.72); }
  .s1-contact-copy { width:100%; padding:42px 25px; }
  .s1-contact h2 { font-size:39px; }

  .s1-footer-card { padding:34px 24px 22px; }
  .s1-footer-links { grid-template-columns:1fr 1fr; gap:20px; }
  .s1-footer-links h2 { font-size:17px; }
  .s1-footer-links a { font-size:14px; }
  .s1-footer-bottom { flex-direction:column; gap:7px; font-size:12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  .s1-about-card, .s1-image-break-card, .s1-solutions-card, .s1-differentials-card, .s1-contact-card { opacity:1; transform:none; transition:none; }
  .s1-nav a::after, .s1-button, .s1-menu-toggle span, .s1-number-grid article { transition:none; }
}
