:root {
  --bg: #f4f4f5;
  --surface: #ffffff;
  --surface-soft: #f7f7f8;
  --ink: #08080a;
  --muted: #58585f;
  --line: rgba(8, 8, 10, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);
  --accent: #e30613;
  --accent-dark: #b6000a;
  --accent-soft: #fff0f1;
  --shadow: 0 18px 50px rgba(8, 8, 10, 0.12);
  --max-width: 1180px;
  --reading-width: 760px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(8, 8, 10, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(8, 8, 10, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px;
}

body.admin-bar .site-header {
  top: 32px;
}

.site-frame {
  position: fixed;
  inset: 0;
  pointer-events: none;
  border-top: 4px solid var(--accent);
  z-index: 100;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.site-header .nav-shell {
  width: min(calc(100% - 32px), 1320px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 16px 0;
  background: linear-gradient(180deg, rgba(244, 244, 245, 0.96), rgba(244, 244, 245, 0.78));
  backdrop-filter: blur(12px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(8, 8, 10, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 38px rgba(8, 8, 10, 0.08);
  transition: padding 180ms ease, box-shadow 180ms ease;
}

.site-header.is-compact .nav-shell {
  padding: 8px 12px;
  box-shadow: 0 12px 28px rgba(8, 8, 10, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex: 0 0 auto;
  transition: width 180ms ease, height 180ms ease;
}

.site-header.is-compact .brand-logo {
  width: 48px;
  height: 48px;
}

.brand-text {
  display: grid;
  gap: 1px;
  min-width: 0;
  max-width: 230px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand-text span,
.brand-text strong {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  line-height: 1.06;
}

.brand-text span {
  overflow-wrap: anywhere;
  font-size: 0.78rem;
  font-weight: 900;
}

.brand-text strong {
  color: var(--accent);
  font-size: 0.72rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 850;
  color: rgba(8, 8, 10, 0.7);
  white-space: nowrap;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header.is-menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  background: #ffffff;
  border-color: var(--line);
  color: var(--ink);
}

.hero {
  position: relative;
}

.hero-home {
  min-height: 86vh;
  display: grid;
  align-items: center;
  padding: 34px 0 68px;
  background:
    linear-gradient(135deg, rgba(8, 8, 10, 0.98), rgba(23, 23, 28, 0.94)),
    #08080a;
  color: #ffffff;
  overflow: hidden;
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, transparent 0 46px, rgba(227, 6, 19, 0.18) 46px 50px),
    linear-gradient(90deg, rgba(227, 6, 19, 0.18), transparent 44%);
  opacity: 0.55;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 34px;
  align-items: center;
  padding-top: 80px;
}

.hero-copy {
  max-width: 780px;
}

.eyebrow,
.card-index {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Arial Black", Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: none;
  font-size: clamp(3rem, 7vw, 6.1rem);
  line-height: 0.92;
}

.hero-copy h1 {
  max-width: 12ch;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
}

h3 {
  font-size: 1.42rem;
  line-height: 1.1;
}

.lead {
  max-width: 58ch;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
}

.page-hero-copy .lead,
.section-head p,
.service-card p,
.service-detail p,
.project-body p,
.contact-card p,
.post-card p {
  color: var(--muted);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-side {
  display: grid;
  gap: 14px;
}

.scaffold-visual {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
  background: #111114;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.scaffold-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.visual-page img {
  min-height: 360px;
}

.quick-card,
.service-card,
.service-detail,
.timeline-card,
.stat-box,
.project-card,
.contact-card,
.contact-form-shell,
.post-card,
.cta-band {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.quick-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  color: var(--ink);
}

.quick-card strong {
  color: var(--accent);
  font-size: 1.26rem;
  white-space: nowrap;
}

.quick-card span {
  color: var(--muted);
}

.section {
  padding: 64px 0;
}

.section-head {
  max-width: var(--reading-width);
  margin-bottom: 28px;
}

.section-head p {
  margin: 18px 0 0;
}

.card-grid,
.service-detail-grid,
.timeline-grid,
.stats-grid,
.contact-grid {
  display: grid;
  gap: 18px;
}

.card-grid-3,
.service-detail-grid,
.timeline-grid,
.stats-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-card,
.service-detail,
.timeline-card,
.stat-box,
.contact-card,
.post-card {
  padding: 28px;
}

.service-card {
  position: relative;
  min-height: 240px;
}

.service-card::after,
.service-detail::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 74px;
  height: 74px;
  background:
    linear-gradient(45deg, transparent 42%, rgba(227, 6, 19, 0.9) 42% 48%, transparent 48%),
    linear-gradient(-45deg, transparent 42%, rgba(8, 8, 10, 0.22) 42% 48%, transparent 48%);
  opacity: 0.55;
}

.service-detail {
  position: relative;
  min-height: 230px;
}

.section-dark {
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.035) 0 44px, rgba(227, 6, 19, 0.14) 44px 48px),
    #08080a;
  color: #ffffff;
}

.section-dark .section-copy,
.section-dark .stat-box,
.section-dark .timeline-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-dark);
  color: #ffffff;
}

.section-dark p,
.section-dark li {
  color: rgba(255, 255, 255, 0.78);
}

.split-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: stretch;
}

.section-copy {
  padding: 34px;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
}

.check-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  background: var(--accent);
}

.stat-box strong,
.timeline-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 1.7rem;
  font-weight: 950;
}

.page-hero {
  padding: 96px 0 40px;
}

.page-hero-content {
  display: grid;
  grid-template-columns: 1fr 0.84fr;
  gap: 30px;
  align-items: center;
}

.page-hero-copy {
  max-width: var(--reading-width);
}

.page-hero-copy h1 {
  color: var(--ink);
}

.process-grid {
  display: grid;
  gap: 24px;
}

.project-grid {
  display: grid;
  gap: 18px;
}

.project-card {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  gap: 20px;
  align-items: stretch;
  padding: 18px;
}

.project-media {
  min-height: 230px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.08) 0 32px, rgba(227, 6, 19, 0.36) 32px 36px),
    #111114;
  color: #ffffff;
}

.project-media span {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 950;
  color: var(--accent);
}

.project-body {
  padding: 14px 8px;
}

.project-body p {
  max-width: 62ch;
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--accent);
  font-weight: 950;
  text-decoration: none;
}

.contact-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.contact-card h2 {
  color: var(--accent);
}

.contact-form-shell {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.contact-form-shell label {
  display: grid;
  gap: 8px;
  font-weight: 850;
}

.contact-form-shell input,
.contact-form-shell textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--ink);
  font: inherit;
}

.contact-form-shell textarea {
  resize: vertical;
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
}

.cta-band p {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  padding: 0 0 36px;
  background:
    linear-gradient(180deg, #111114 0%, #08080a 100%);
  color: #ffffff;
}

.footer-shell {
  display: grid;
  gap: 0;
}

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-cta h2 {
  max-width: 760px;
  color: #ffffff;
}

.footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.button-light {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.button-light:hover {
  background: rgba(255, 255, 255, 0.14);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(150px, 0.75fr));
  gap: 34px;
  padding: 42px 0 30px;
}

.footer-logo {
  width: 96px;
  height: auto;
  margin-bottom: 14px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 10px;
  color: #ffffff;
  font-weight: 950;
  text-transform: uppercase;
}

.footer-title {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer a,
.site-footer span,
.site-footer p {
  display: block;
  margin: 0 0 9px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.site-footer .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #ffffff;
  line-height: 1;
  text-align: center;
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-column a,
.footer-column span,
.footer-contact p {
  width: fit-content;
  max-width: 100%;
}

.footer-phone-link {
  color: #ffffff;
  font-size: 1.18rem;
  font-weight: 950;
}

.footer-bottom {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom a {
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-bottom a:nth-child(2) {
  text-align: center;
}

.footer-bottom a:nth-child(3) {
  text-align: right;
}

.post-list {
  display: grid;
  gap: 18px;
}

.post-card h2 a {
  text-decoration: none;
}

.single-post-main {
  padding: 72px 0;
}

.single-post-header {
  margin-bottom: 28px;
}

.single-post-header h1 {
  max-width: 900px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.single-post-content > *:not(.elementor) {
  width: min(calc(100% - 32px), 900px);
  margin-left: auto;
  margin-right: auto;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-parallax],
.parallax-soft,
.parallax-medium,
.parallax-strong,
.parallax-hero {
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

[class*="zoom-scroll"] {
  will-change: transform;
  transform-origin: center center;
}

.zoom-scroll-soft,
.zoom-scroll-medium,
.zoom-scroll-strong {
  transition: transform 180ms linear;
}

.elementor-page .site-main {
  overflow: hidden;
}

.alignwide {
  max-width: var(--max-width);
}

@media (max-width: 1080px) {
  .hero-content,
  .page-hero-content,
  .split-layout,
  .card-grid-3,
  .service-detail-grid,
  .timeline-grid,
  .stats-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-cta-actions {
    justify-content: flex-start;
  }

  .brand-text {
    max-width: none;
  }

  .brand-text span {
    font-size: 0.72rem;
    overflow-wrap: normal;
    white-space: nowrap;
  }

  .brand-text strong {
    font-size: 0.66rem;
    white-space: nowrap;
  }

  .site-header {
    padding: 10px 0;
  }

  .nav-shell {
    display: grid;
    grid-template-columns: minmax(170px, auto) minmax(210px, 1fr) 48px;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 30px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .nav-toggle {
    display: inline-flex;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
    border-radius: 18px;
    background: var(--surface-soft);
  }

  .site-header.is-menu-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 10px 12px;
    border-radius: var(--radius);
    background: #ffffff;
  }

  .site-nav a::after {
    display: none;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    min-width: 0;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .header-phone,
  .nav-button {
    min-height: 40px;
    padding: 0 10px;
    font-size: 0.84rem;
    min-width: 0;
  }

  .header-phone {
    flex: 0 0 auto;
  }

  .nav-button {
    flex: 0 0 auto;
  }
}

@media (max-width: 820px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .container {
    width: min(calc(100% - 22px), var(--max-width));
  }

  .site-header .nav-shell {
    width: min(calc(100% - 22px), 1320px);
  }

  .nav-shell {
    grid-template-columns: minmax(145px, auto) minmax(170px, 1fr) 48px;
    gap: 8px;
    padding: 8px 10px;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .brand-text {
    max-width: none;
  }

  .header-phone,
  .nav-button {
    min-height: 38px;
    padding: 0 8px;
    font-size: 0.8rem;
  }

  .header-phone {
    flex-basis: auto;
  }

  .nav-button {
    flex-basis: auto;
  }

  .hero-home {
    min-height: auto;
    padding: 28px 0 52px;
  }

  .hero-content {
    padding-top: 44px;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.55rem, 12vw, 4rem);
  }

  .scaffold-visual img {
    min-height: 300px;
  }

  .quick-card,
  .cta-band,
  .footer-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-media {
    min-height: 180px;
  }

  .section {
    padding: 48px 0;
  }

  .page-hero {
    padding: 56px 0 24px;
  }
}

@media (max-width: 520px) {
  .nav-shell {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .nav-toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .brand-text {
    max-width: min(210px, calc(100vw - 112px));
  }

  .brand-text span {
    font-size: 0.66rem;
    overflow-wrap: normal;
    white-space: nowrap;
  }

  .brand-text strong {
    display: block;
    font-size: 0.58rem;
    white-space: nowrap;
  }

  .header-actions {
    display: grid;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    justify-content: stretch;
    width: 100%;
    gap: 8px;
  }

  .site-nav {
    grid-row: 3;
  }

  .hero-actions,
  .cta-actions,
  .footer-cta-actions {
    flex-direction: column;
  }

  .hero-actions .button,
  .cta-actions .button,
  .footer-cta-actions .button {
    width: 100%;
  }

  .footer-cta-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    gap: 8px;
  }

  .footer-cta-actions .button {
    min-width: 0;
    padding: 0 8px;
    font-size: 0.84rem;
  }

  .footer-cta-actions .button:nth-child(3) {
    grid-column: 1 / -1;
  }

  .header-phone,
  .nav-button {
    flex: none;
    width: 100%;
    min-height: 40px;
    padding: 0 8px;
    font-size: 0.84rem;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-bottom a,
  .footer-bottom a:nth-child(2),
  .footer-bottom a:nth-child(3) {
    text-align: left;
  }

  .service-card,
  .service-detail,
  .timeline-card,
  .stat-box,
  .contact-card,
  .contact-form-shell,
  .post-card,
  .cta-band {
    padding: 22px;
  }
}
