/*
Theme Name: MLTX Engenharia
Author: MLTX Reformas
Description: Tema institucional de alta conversão para serviços de fachadas e impermeabilização.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mltx-engenharia
*/

:root {
  --ink: #061522;
  --ink-soft: #0d2538;
  --blue: #0798dc;
  --blue-bright: #3cc7ff;
  --blue-pale: #dff5ff;
  --orange: #ff6b35;
  --paper: #f4f7f8;
  --white: #ffffff;
  --muted: #60717f;
  --line: rgba(6, 21, 34, 0.12);
  --shadow: 0 24px 70px rgba(2, 18, 32, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--white);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  color: var(--white);
  background: rgba(4, 17, 28, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(16px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(4, 17, 28, 0.96);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--white);
  text-decoration: none;
}

.brand a { color: inherit; text-decoration: none; }
.brand-mark, .brand-copy { flex: 0 0 auto; }

.brand img, .custom-logo {
  width: auto;
  height: 52px;
  object-fit: contain;
}

.brand-copy { display: grid; line-height: 1.08; }
.brand-name { font-size: 1.08rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-tag { margin-top: 4px; color: #9ddfff; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  transition: color 150ms ease;
}

.site-nav a:hover, .site-nav a:focus-visible { color: var(--white); }

.site-nav .nav-cta {
  padding: 11px 18px;
  color: var(--ink);
  background: var(--blue-bright);
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
}

.menu-toggle span, .menu-toggle::before, .menu-toggle::after {
  display: block;
  width: 19px;
  height: 2px;
  margin: 5px auto;
  content: "";
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  min-height: 780px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 26%, rgba(20, 177, 241, 0.28), transparent 24%),
    linear-gradient(116deg, #051421 0%, #071c2c 54%, #0a3550 100%);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(77, 199, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 199, 255, 0.15) 1px, transparent 1px);
  background-size: 84px 84px;
  transform: perspective(700px) rotateX(8deg) scale(1.08);
  transform-origin: center bottom;
}

.hero::after {
  position: absolute;
  right: -12%;
  bottom: -35%;
  width: 750px;
  height: 750px;
  content: "";
  border: 1px solid rgba(59, 199, 255, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 90px rgba(59, 199, 255, 0.025), 0 0 0 180px rgba(59, 199, 255, 0.02);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 74px;
  align-items: center;
  padding-block: 150px 94px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--blue-bright);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 2px;
  content: "";
  background: currentColor;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.hero h1 em {
  color: var(--blue-bright);
  font-style: normal;
}

.hero-lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  color: var(--ink);
  background: var(--blue-bright);
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(33, 185, 247, 0.18);
  transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.button:hover, .button:focus-visible {
  background: #73d8ff;
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(33, 185, 247, 0.26);
}

.button svg { width: 19px; height: 19px; }

.button-secondary {
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow: none;
}

.button-secondary:hover, .button-secondary:focus-visible {
  color: var(--white);
  background: rgba(255, 255, 255, 0.09);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.69);
  font-size: 0.84rem;
  font-weight: 650;
}

.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust li::before { width: 7px; height: 7px; content: ""; background: var(--blue-bright); border-radius: 50%; box-shadow: 0 0 0 4px rgba(60, 199, 255, 0.11); }

.facade-visual {
  position: relative;
  min-height: 480px;
  filter: drop-shadow(0 40px 55px rgba(0, 0, 0, 0.28));
}

.facade-building {
  position: absolute;
  top: 4%;
  right: 2%;
  width: 82%;
  height: 92%;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(23, 117, 163, 0.78), rgba(3, 20, 33, 0.86));
  border: 1px solid rgba(110, 217, 255, 0.42);
  border-radius: 8px 72px 8px 8px;
  transform: perspective(900px) rotateY(-8deg) rotateX(2deg);
}

.facade-building::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(122, 220, 255, 0.34) 2px, transparent 2px),
    linear-gradient(90deg, rgba(122, 220, 255, 0.34) 2px, transparent 2px);
  background-size: 100% 72px, 84px 100%;
}

.facade-building::after {
  position: absolute;
  top: 0;
  left: 21%;
  width: 17%;
  height: 100%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(139, 228, 255, 0.22), transparent);
  transform: skewX(-10deg);
}

.rope {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 28%;
  width: 2px;
  height: 72%;
  background: linear-gradient(var(--blue-bright), rgba(60, 199, 255, 0.2));
  box-shadow: 0 0 14px rgba(60, 199, 255, 0.8);
}

.worker {
  position: absolute;
  z-index: 4;
  top: 44%;
  right: calc(28% - 20px);
  width: 42px;
  height: 88px;
}

.worker::before {
  position: absolute;
  top: 0;
  left: 10px;
  width: 23px;
  height: 23px;
  content: "";
  background: var(--orange);
  border: 3px solid rgba(255, 255, 255, 0.82);
  border-radius: 50% 50% 42% 42%;
}

.worker::after {
  position: absolute;
  top: 25px;
  left: 5px;
  width: 34px;
  height: 50px;
  content: "";
  background: #dcebf2;
  border-radius: 12px 12px 8px 8px;
  transform: rotate(9deg);
  box-shadow: -12px 35px 0 -8px #dcebf2, 13px 32px 0 -8px #dcebf2;
}

.visual-card {
  position: absolute;
  z-index: 7;
  bottom: 2%;
  left: -3%;
  width: 260px;
  padding: 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.visual-card strong { display: block; margin-bottom: 5px; font-size: 1rem; }
.visual-card span { display: block; color: var(--muted); font-size: 0.8rem; line-height: 1.45; }
.visual-card .signal { width: 38px; height: 5px; margin-bottom: 14px; background: linear-gradient(90deg, var(--blue), var(--orange)); border-radius: 99px; }

.services {
  position: relative;
  padding: 110px 0;
  background: var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 48px;
}

.section-kicker {
  margin: 0 0 13px;
  color: #007fbb;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading h2, .contact-copy h2 {
  margin: 0;
  font-size: clamp(2.35rem, 4.4vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.section-heading > p {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 38px;
  color: var(--white);
  background: var(--ink-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.service-card:nth-child(2) { background: #0c77a8; }

.service-card::after {
  position: absolute;
  right: -80px;
  bottom: -90px;
  width: 280px;
  height: 280px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 46px rgba(255,255,255,0.025), 0 0 0 92px rgba(255,255,255,0.02);
}

.service-number {
  position: relative;
  z-index: 2;
  color: var(--blue-bright);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.service-card:nth-child(2) .service-number { color: #d8f5ff; }

.service-card h3 {
  position: relative;
  z-index: 2;
  max-width: 440px;
  margin: 34px 0 14px;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.service-card p { position: relative; z-index: 2; max-width: 500px; margin: 0; color: rgba(255,255,255,0.72); }

.service-list {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 24px;
  margin: 34px 0 0;
  padding: 25px 0 0;
  border-top: 1px solid rgba(255,255,255,0.16);
  list-style: none;
  color: rgba(255,255,255,0.88);
  font-size: 0.88rem;
  font-weight: 650;
}

.service-list li { display: flex; align-items: flex-start; gap: 9px; }
.service-list li::before { flex: 0 0 auto; width: 6px; height: 6px; margin-top: 8px; content: ""; background: var(--blue-bright); border-radius: 50%; }
.service-card:nth-child(2) .service-list li::before { background: var(--white); }

.method {
  margin-top: 24px;
  padding: 38px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.method-title { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.method-title h3 { margin: 0; font-size: 1.3rem; letter-spacing: -0.025em; }
.method-title p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.method-steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.method-step {
  counter-increment: step;
  min-height: 135px;
  padding: 22px;
  background: var(--paper);
}

.method-step::before {
  display: block;
  margin-bottom: 20px;
  color: #0087c5;
  content: "0" counter(step);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.method-step strong { display: block; font-size: 0.98rem; line-height: 1.25; }
.method-step span { display: block; margin-top: 7px; color: var(--muted); font-size: 0.8rem; line-height: 1.45; }

.contact {
  position: relative;
  overflow: hidden;
  padding: 110px 0;
  color: var(--white);
  background: #061522;
}

.contact::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.27;
  background-image: linear-gradient(90deg, transparent 49.8%, rgba(73, 198, 255, 0.18) 50%, transparent 50.2%);
  background-size: 90px 100%;
}

.contact-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.83fr 1.17fr;
  gap: 78px;
  align-items: start;
}

.contact-copy { position: sticky; top: 120px; }
.contact-copy > p:not(.section-kicker) { max-width: 480px; margin: 23px 0 0; color: rgba(255,255,255,0.67); font-size: 1.06rem; }

.contact-details {
  display: grid;
  gap: 15px;
  margin-top: 34px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 13px;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
}

.contact-detail svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--blue-bright); }
.contact-detail strong { color: var(--white); }

.director-note {
  margin-top: 34px;
  padding: 18px 20px;
  color: rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.055);
  border-left: 3px solid var(--blue-bright);
  border-radius: 0 12px 12px 0;
  font-size: 0.9rem;
}

.lead-form {
  padding: 38px;
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.lead-form h3 { margin: 0 0 6px; font-size: 1.55rem; letter-spacing: -0.03em; }
.lead-form > p { margin: 0 0 28px; color: var(--muted); font-size: 0.9rem; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-field { display: grid; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.8rem; font-weight: 800; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--ink);
  background: #f6f8f9;
  border: 1px solid #d8e0e5;
  border-radius: 11px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.form-field textarea { min-height: 116px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { background: var(--white); border-color: var(--blue); box-shadow: 0 0 0 4px rgba(7, 152, 220, 0.12); }
.form-field input::placeholder, .form-field textarea::placeholder { color: #8a98a2; }

.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 24px;
}

.form-note { max-width: 300px; margin: 0; color: var(--muted); font-size: 0.72rem; line-height: 1.45; }
.lead-form .button { flex: 0 0 auto; }

.form-alert {
  margin: 0 0 22px;
  padding: 14px 16px;
  border-radius: 11px;
  font-size: 0.88rem;
  font-weight: 700;
}

.form-alert.success { color: #075b3a; background: #daf8e9; border: 1px solid #96e2bd; }
.form-alert.error { color: #852c1b; background: #ffebe5; border: 1px solid #ffc2b1; }

.site-footer {
  padding: 28px 0;
  color: rgba(255,255,255,0.58);
  background: #030d14;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.79rem;
}

.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-inner p { margin: 0; }
.footer-inner a { color: rgba(255,255,255,0.8); text-decoration: none; }

.whatsapp-float {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #20bd68;
  border-radius: 50%;
  box-shadow: 0 16px 38px rgba(0,0,0,0.25);
  transition: transform 150ms ease;
}

.whatsapp-float:hover, .whatsapp-float:focus-visible { transform: translateY(-3px) scale(1.03); }
.whatsapp-float svg { width: 29px; height: 29px; }

.content-page { min-height: 70vh; padding: 150px 0 80px; }
.content-page article { max-width: 820px; }
.content-page h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -0.05em; }

.archive-hero,
.detail-hero,
.article-hero {
  position: relative;
  overflow: hidden;
  padding: 165px 0 88px;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 18%, rgba(60, 199, 255, 0.2), transparent 25%),
    linear-gradient(118deg, #061522, #0b3048);
}

.archive-hero::after,
.detail-hero::after,
.article-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(60, 199, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 199, 255, 0.18) 1px, transparent 1px);
  background-size: 76px 76px;
}

.archive-hero-inner,
.detail-hero-grid,
.article-heading { position: relative; z-index: 2; }

.archive-hero-inner { max-width: 930px; }
.archive-hero h1,
.detail-hero h1,
.article-hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 6.8vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.archive-hero-inner > p:last-child,
.detail-lead,
.article-heading > p:not(.section-kicker) {
  max-width: 720px;
  margin: 25px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.12rem;
}

.archive-hero-projects { background: linear-gradient(118deg, #071522, #17384b); }

.listing-section { padding: 90px 0 110px; }

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.content-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 14px 45px rgba(2, 18, 32, 0.075);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.content-card:hover { transform: translateY(-5px); box-shadow: 0 22px 55px rgba(2, 18, 32, 0.13); }

.content-card-media {
  aspect-ratio: 16 / 10;
  display: grid;
  overflow: hidden;
  place-items: center;
  color: var(--blue-bright);
  background:
    linear-gradient(rgba(60, 199, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 199, 255, 0.13) 1px, transparent 1px),
    var(--ink-soft);
  background-size: 52px 52px;
  text-decoration: none;
}

.content-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 280ms ease; }
.content-card:hover .content-card-media img { transform: scale(1.035); }

.media-placeholder { font-size: 0.82rem; font-weight: 850; letter-spacing: 0.15em; text-transform: uppercase; }
.content-card-body { padding: 26px; }
.card-label { color: #0083bf; font-size: 0.68rem; font-weight: 850; letter-spacing: 0.13em; text-transform: uppercase; }
.content-card h2 { margin: 12px 0 11px; font-size: 1.45rem; line-height: 1.12; letter-spacing: -0.035em; }
.content-card h2 a { text-decoration: none; }
.content-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.text-link { display: inline-flex; gap: 8px; margin-top: 23px; color: #007eb8; font-size: 0.85rem; font-weight: 850; text-decoration: none; }
.text-link:hover span { transform: translateX(3px); }
.text-link span { transition: transform 150ms ease; }
.archive-link-row { display: flex; justify-content: flex-end; margin: 22px 4px 0; }

.portfolio-preview { margin-top: 78px; }
.preview-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 28px; }
.preview-heading h3 { max-width: 650px; margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.02; letter-spacing: -0.05em; }
.portfolio-preview .content-card h3 { margin: 12px 0 11px; font-size: 1.35rem; line-height: 1.12; letter-spacing: -0.035em; }
.portfolio-preview .content-card h3 a { text-decoration: none; }

.empty-state { padding: 55px; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.empty-state h2 { margin: 0; font-size: 2rem; }
.empty-state p { margin: 10px 0 0; color: var(--muted); }

.nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 42px; }
.nav-links a, .nav-links span { min-width: 42px; min-height: 42px; display: grid; place-items: center; padding: 8px 13px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.nav-links .current { color: var(--white); background: var(--ink); }

.compact-cta { padding: 52px 0; color: var(--white); background: #087fae; }
.compact-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.compact-cta span { color: #cdefff; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.compact-cta h2 { margin: 5px 0 0; font-size: clamp(1.8rem, 4vw, 3.1rem); line-height: 1; letter-spacing: -0.045em; }
.compact-cta .button { background: var(--white); box-shadow: none; }

.detail-hero { padding-bottom: 76px; }
.detail-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr); gap: 70px; align-items: center; }
.detail-hero h1 { font-size: clamp(2.8rem, 5.8vw, 5.25rem); }
.detail-hero .button { margin-top: 30px; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 35px; color: rgba(255,255,255,0.62); font-size: 0.78rem; }
.breadcrumbs a { color: rgba(255,255,255,0.82); text-decoration: none; }
.breadcrumbs a:hover { color: var(--white); }

.detail-media {
  aspect-ratio: 4 / 3;
  display: grid;
  overflow: hidden;
  place-items: center;
  color: var(--blue-bright);
  background:
    linear-gradient(rgba(60, 199, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 199, 255, 0.14) 1px, transparent 1px),
    rgba(255,255,255,0.06);
  background-size: 60px 60px;
  border: 1px solid rgba(255,255,255,0.17);
  border-radius: var(--radius-lg);
  box-shadow: 0 35px 70px rgba(0,0,0,0.28);
}

.detail-media img { width: 100%; height: 100%; object-fit: cover; }

.detail-layout,
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 70px;
  align-items: start;
  padding-block: 85px 110px;
}

.entry-content { min-width: 0; font-size: 1.06rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin: 2.2em 0 0.7em; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.08; letter-spacing: -0.04em; }
.entry-content h3 { margin: 1.8em 0 0.65em; font-size: 1.45rem; line-height: 1.18; }
.entry-content p, .entry-content li { color: #394d5c; }
.entry-content img { border-radius: 16px; }
.entry-content blockquote { margin: 32px 0; padding: 22px 26px; background: var(--blue-pale); border-left: 4px solid var(--blue); border-radius: 0 14px 14px 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.entry-content th, .entry-content td { padding: 12px; border: 1px solid var(--line); text-align: left; }

.detail-sidebar {
  position: sticky;
  top: 112px;
  padding: 28px;
  color: var(--white);
  background: var(--ink-soft);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.detail-sidebar > span { color: var(--blue-bright); font-size: 0.7rem; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.detail-sidebar h2 { margin: 10px 0 12px; font-size: 1.65rem; line-height: 1.06; letter-spacing: -0.04em; }
.detail-sidebar p { margin: 0; color: rgba(255,255,255,0.65); font-size: 0.88rem; }
.detail-sidebar .button { width: 100%; margin-top: 23px; padding-inline: 15px; }

.article-hero { padding-bottom: 70px; }
.article-heading { max-width: 900px; }
.article-hero h1 { font-size: clamp(2.75rem, 5.7vw, 5.3rem); }
.article-date { display: block; margin-top: 26px; color: rgba(255,255,255,0.55); font-size: 0.76rem; }
.article-image { position: relative; z-index: 3; margin-top: -35px; }
.article-image img { width: 100%; max-height: 600px; object-fit: cover; border: 8px solid var(--paper); border-radius: 24px; }

@media (max-width: 960px) {
  .content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-hero-grid { grid-template-columns: 1fr; }
  .detail-media { max-width: 650px; }
  .detail-layout, .article-layout { grid-template-columns: 1fr; gap: 42px; }
  .detail-sidebar { position: static; }
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 50px; padding-top: 140px; }
  .hero { min-height: auto; }
  .hero-copy { max-width: 760px; }
  .facade-visual { min-height: 390px; width: min(100%, 570px); margin-inline: auto; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .method-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-inner { grid-template-columns: 1fr; gap: 46px; }
  .contact-copy { position: static; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 70px; }
  .brand img, .custom-logo { height: 45px; }
  .brand-tag { display: none; }
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 70px 0 auto;
    display: grid;
    gap: 0;
    padding: 12px 20px 24px;
    background: #061522;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transform: translateY(-130%);
    transition: transform 190ms ease;
  }
  .site-nav.is-open { transform: translateY(0); }
  .site-nav a { padding: 15px 8px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .site-nav .nav-cta { margin-top: 12px; padding: 13px 18px; text-align: center; border: 0; }
  .hero-inner { padding-block: 125px 72px; }
  .hero h1 { font-size: clamp(2.75rem, 14vw, 4.4rem); }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .facade-visual { min-height: 320px; }
  .visual-card { left: 0; width: 230px; }
  .services, .contact { padding: 78px 0; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 390px; padding: 28px; }
  .method { padding: 24px; }
  .method-title { display: block; }
  .method-title p { margin-top: 8px; }
  .method-steps { grid-template-columns: 1fr; }
  .lead-form { padding: 25px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .form-footer { display: grid; }
  .form-note { max-width: none; }
  .footer-inner { display: grid; text-align: center; justify-content: center; }
  .archive-hero, .detail-hero, .article-hero { padding: 130px 0 65px; }
  .archive-hero h1, .detail-hero h1, .article-hero h1 { font-size: clamp(2.55rem, 13vw, 4.2rem); }
  .listing-section { padding: 65px 0 78px; }
  .content-grid { grid-template-columns: 1fr; }
  .compact-cta-inner { display: grid; }
  .compact-cta .button { width: 100%; }
  .detail-layout, .article-layout { padding-block: 60px 78px; }
  .empty-state { padding: 35px 22px; }
  .preview-heading { display: grid; }
}

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