/*
Theme Name: SKAPA Engenharia
Theme URI: https://skapaengenharia.com.br
Author: SKAPA Soluções em Engenharia
Author URI: https://skapaengenharia.com.br
Description: Tema institucional responsivo para a SKAPA, especializado em engenharia hospitalar, projetos e consultorias.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: skapa
*/

:root {
  --skapa-navy: #062f55;
  --skapa-navy-deep: #03213d;
  --skapa-blue: #145c91;
  --skapa-sky: #87b4d0;
  --skapa-ice: #eaf1f5;
  --skapa-paper: #f7f9fa;
  --skapa-white: #ffffff;
  --skapa-ink: #10283d;
  --skapa-muted: #526979;
  --skapa-line: rgba(6, 47, 85, .14);
  --skapa-shadow: 0 24px 60px rgba(5, 42, 74, .12);
  --skapa-radius: 22px;
  --skapa-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--skapa-ink);
  background: var(--skapa-white);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -120px;
  z-index: 9999;
  padding: 12px 18px;
  color: var(--skapa-white);
  background: var(--skapa-navy);
  border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.container { width: min(calc(100% - 40px), var(--skapa-container)); margin-inline: auto; }
.section { padding: 108px 0; position: relative; }
.section--soft { background: var(--skapa-paper); }
.section--navy { color: var(--skapa-white); background: var(--skapa-navy); }
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--skapa-blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.section-kicker::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.section--navy .section-kicker { color: #a9d2ea; }
.section-title {
  max-width: 800px;
  margin: 0 0 28px;
  color: var(--skapa-navy);
  font-size: clamp(2.15rem, 4vw, 4.35rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}
.section--navy .section-title { color: var(--skapa-white); }
.section-lead { max-width: 760px; margin: 0; color: var(--skapa-muted); font-size: 1.16rem; }
.section--navy .section-lead { color: rgba(255,255,255,.78); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: 82px;
  color: var(--skapa-white);
  background: rgba(3, 33, 61, .82);
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.header-inner { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; flex-direction: column; line-height: 1; }
.brand__name { font-size: 1.48rem; font-weight: 850; letter-spacing: .08em; }
.brand__tag { margin-top: 7px; font-size: .57rem; letter-spacing: .08em; opacity: .78; }
.custom-logo { max-height: 54px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 27px; }
.site-nav a { position: relative; font-size: .88rem; font-weight: 700; }
.site-nav a:not(.button)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: #9dd4f2; transition: right .25s ease; }
.site-nav a:not(.button):hover::after, .site-nav a:not(.button):focus-visible::after { right: 0; }
.nav-toggle { display: none; border: 0; color: white; background: none; width: 46px; height: 46px; cursor: pointer; }
.nav-toggle__line, .nav-toggle::before, .nav-toggle::after { content: ""; display: block; width: 26px; height: 2px; margin: 6px auto; background: currentColor; transition: transform .25s ease; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--skapa-white);
  color: var(--skapa-navy);
  font-size: .9rem;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(0,0,0,.16); }
.button--primary { color: var(--skapa-white); background: var(--skapa-blue); }
.button--outline { color: var(--skapa-white); background: transparent; border-color: rgba(255,255,255,.48); }
.button--small { min-height: 43px; padding: 9px 17px; font-size: .8rem; }

.hero {
  min-height: 780px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--skapa-white);
  background: var(--skapa-navy-deep);
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,33,61,.98) 0%, rgba(3,33,61,.9) 48%, rgba(3,33,61,.1) 100%); z-index: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 40%, rgba(104,190,237,.28), transparent 35%); z-index: 1; }
.hero__image { position: absolute; inset: 0 0 0 auto; width: 58%; height: 100%; object-fit: cover; object-position: center; opacity: .92; }
.hero__inner { position: relative; z-index: 2; width: 100%; padding-top: 92px; }
.hero__content { max-width: 780px; }
.hero__eyebrow { margin: 0 0 22px; color: #a9d2ea; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .76rem; }
.hero h1 { margin: 0; max-width: 760px; font-size: clamp(3rem, 6.4vw, 6.25rem); line-height: .95; letter-spacing: -.055em; }
.hero__lead { max-width: 650px; margin: 30px 0 0; color: rgba(255,255,255,.82); font-size: clamp(1.08rem, 1.8vw, 1.34rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 54px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.2); }
.proof-item { display: flex; flex-direction: column; }
.proof-item strong { font-size: 1.28rem; }
.proof-item span { color: rgba(255,255,255,.65); font-size: .8rem; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 90px; align-items: center; }
.media-frame { position: relative; }
.media-frame img { width: 100%; min-height: 520px; object-fit: cover; border-radius: var(--skapa-radius); box-shadow: var(--skapa-shadow); }
.media-frame::after { content: ""; position: absolute; right: -22px; bottom: -22px; width: 42%; height: 42%; border-right: 2px solid var(--skapa-sky); border-bottom: 2px solid var(--skapa-sky); border-radius: 0 0 28px; pointer-events: none; }
.copy p { color: var(--skapa-muted); }
.copy p:first-of-type { color: var(--skapa-ink); font-size: 1.18rem; }
.feature-note { margin-top: 35px; padding: 24px 26px; border-left: 3px solid var(--skapa-blue); background: var(--skapa-ice); border-radius: 0 16px 16px 0; }

.purpose { overflow: hidden; }
.purpose::before { content: ""; position: absolute; inset: auto -10% -55% auto; width: 600px; height: 600px; border: 1px solid var(--skapa-line); border-radius: 50%; }
.purpose__grid { display: grid; grid-template-columns: .7fr 1.3fr; align-items: center; gap: 70px; }
.purpose__visual { min-height: 400px; display: grid; place-items: center; border-radius: 50%; background: #b8cede; }
.purpose__visual img { width: 90%; max-height: 370px; object-fit: contain; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.service-card { min-height: 330px; padding: 34px 30px; border: 1px solid var(--skapa-line); border-radius: var(--skapa-radius); background: var(--skapa-white); box-shadow: 0 10px 34px rgba(5,42,74,.06); transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-7px); box-shadow: var(--skapa-shadow); }
.service-card__number { display: block; margin-bottom: 36px; color: var(--skapa-sky); font-size: .78rem; font-weight: 900; letter-spacing: .12em; }
.service-card h3 { margin: 0 0 15px; color: var(--skapa-navy); font-size: 1.28rem; line-height: 1.2; }
.service-card p { margin: 0; color: var(--skapa-muted); font-size: .94rem; }

.technical { overflow: hidden; }
.technical__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .09; mix-blend-mode: screen; }
.technical .container { position: relative; z-index: 1; }
.technical-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 55px; }
.technical-card { padding: 32px; border: 1px solid rgba(255,255,255,.16); border-radius: 18px; background: rgba(255,255,255,.07); backdrop-filter: blur(10px); }
.technical-card h3 { margin: 0 0 14px; font-size: 1.15rem; }
.technical-card p { margin: 0; color: rgba(255,255,255,.7); font-size: .92rem; }

.method-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 64px; }
.method-step { position: relative; padding: 0 30px 0 0; }
.method-step:not(:last-child)::after { content: ""; position: absolute; top: 17px; left: 38px; right: 0; height: 1px; background: var(--skapa-line); }
.method-step__dot { position: relative; z-index: 1; width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 25px; border-radius: 50%; color: var(--skapa-white); background: var(--skapa-navy); font-size: .72rem; font-weight: 800; }
.method-step h3 { margin: 0 0 12px; color: var(--skapa-navy); font-size: 1.05rem; }
.method-step p { margin: 0; color: var(--skapa-muted); font-size: .88rem; }

.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 55px; }
.project-card { position: relative; overflow: hidden; min-height: 280px; padding: 34px; border: 1px solid var(--skapa-line); border-radius: 20px; background: var(--skapa-white); }
.project-card::after { content: attr(data-code); position: absolute; right: -10px; bottom: -35px; color: rgba(6,47,85,.045); font-size: 8rem; font-weight: 900; line-height: 1; }
.project-card h3 { margin: 0 0 16px; color: var(--skapa-blue); font-size: 1.55rem; }
.project-card p { position: relative; z-index: 1; margin: 0; color: var(--skapa-muted); font-size: .94rem; }

.reasons { overflow: hidden; }
.reasons__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .16; }
.reasons .container { position: relative; z-index: 1; }
.reasons-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; margin-top: 58px; }
.reason { padding-top: 24px; border-top: 1px solid rgba(255,255,255,.25); }
.reason__number { display: block; color: #a9d2ea; font-size: .84rem; font-weight: 900; }
.reason p { margin: 18px 0 0; color: rgba(255,255,255,.8); font-size: 1.08rem; }

.contact-card { display: grid; grid-template-columns: 1.35fr .65fr; gap: 60px; align-items: center; padding: 62px; border-radius: 28px; color: var(--skapa-white); background: var(--skapa-navy); box-shadow: var(--skapa-shadow); }
.contact-card h2 { margin: 0; font-size: clamp(2rem, 4vw, 4rem); line-height: 1.05; letter-spacing: -.04em; }
.contact-card p { max-width: 650px; color: rgba(255,255,255,.74); }
.contact-list { display: grid; gap: 13px; margin: 0 0 24px; padding: 0; list-style: none; }
.contact-list a { font-weight: 700; }
.contact-list a:hover { color: #a9d2ea; }

.site-footer { padding: 45px 0; color: rgba(255,255,255,.68); background: var(--skapa-navy-deep); font-size: .84rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--skapa-white); }

.content-area { min-height: 70vh; padding: 150px 0 90px; }
.content-area article { max-width: 820px; margin: 0 auto; }
.content-area h1 { color: var(--skapa-navy); font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1; }
.entry-content a { color: var(--skapa-blue); text-decoration: underline; }

@media (max-width: 980px) {
  .site-header, .header-inner { height: 72px; }
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 72px 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 20px; color: var(--skapa-white); background: var(--skapa-navy-deep); box-shadow: var(--skapa-shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 8px; }
  .site-nav .button { margin-top: 8px; }
  .split, .purpose__grid, .contact-card { grid-template-columns: 1fr; gap: 50px; }
  .purpose__visual { max-width: 560px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .method-steps { grid-template-columns: repeat(2, 1fr); gap: 44px 10px; }
  .method-step:nth-child(2)::after { display: none; }
  .contact-card { padding: 48px; }
}

@media (max-width: 680px) {
  body.admin-bar .site-header { top: 46px; }
  .container { width: min(calc(100% - 28px), var(--skapa-container)); }
  .section { padding: 78px 0; }
  .hero { min-height: 740px; }
  .hero::before { background: linear-gradient(180deg, rgba(3,33,61,.78), rgba(3,33,61,.98) 66%); }
  .hero__image { width: 100%; height: 55%; opacity: .55; }
  .hero__inner { align-self: flex-end; padding: 140px 0 62px; }
  .hero h1 { font-size: clamp(2.8rem, 14vw, 4.6rem); }
  .hero__proof { gap: 18px; }
  .proof-item { min-width: 40%; }
  .services-grid, .technical-grid, .projects-grid, .reasons-grid, .method-steps { grid-template-columns: 1fr; }
  .method-step::after { display: none; }
  .media-frame img { min-height: 390px; }
  .purpose__visual { min-height: 300px; }
  .contact-card { padding: 34px 25px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
