:root {
  --erc-red: #c31319;
  --erc-red-dark: #9f0f14;
  --erc-black: #111111;
  --erc-charcoal: #1f2328;
  --erc-text: #2a2a2a;
  --erc-muted: #6e737a;
  --erc-bg: #f6f3ef;
  --erc-panel: #ffffff;
  --erc-border: rgba(17,17,17,.08);
  --erc-shadow: 0 18px 50px rgba(0,0,0,.09);
  --erc-shadow-soft: 0 12px 30px rgba(0,0,0,.07);
  --erc-radius: 22px;
  --erc-radius-sm: 16px;
  --erc-container: 1220px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--erc-text);
  background: #fff;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--erc-red); }
img { max-width: 100%; display: block; height: auto; }
.container { width: min(100% - 32px, var(--erc-container)); margin: 0 auto; }
.narrow-container { width: min(100% - 32px, 860px); margin: 0 auto; }
.section-space { padding: 88px 0; }
.section-space-sm { padding: 68px 0; }
.center { text-align: center; }
.text-center { text-align: center; }

.topbar {
  background: var(--erc-black);
  color: rgba(255,255,255,.82);
  font-size: 13px;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  align-items: center;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.dot { width: 4px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.5); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 16px 0;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
}
.default-logo, .custom-logo {
  width: 82px;
  height: auto;
  border-radius: 12px;
}
.brand-text strong {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}
.brand-text small {
  display: block;
  color: var(--erc-muted);
  margin-top: 4px;
  font-size: .84rem;
}
.main-navigation { justify-self: center; }
.menu-list {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
}
.menu-list li { list-style: none; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: .22s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--erc-red), #e4232a);
  color: #fff;
  box-shadow: 0 12px 24px rgba(195,19,25,.26);
}
.btn-primary:hover { color: #fff; background: linear-gradient(135deg, var(--erc-red-dark), var(--erc-red)); }
.btn-outline {
  border-color: rgba(17,17,17,.12);
  background: #fff;
}
.btn-outline:hover { border-color: var(--erc-red); background: #fff5f5; }
.btn-sm { padding: 10px 16px; font-size: .92rem; }
.btn-full { width: 100%; }
.text-link {
  font-weight: 700;
  color: var(--erc-red);
}
.section-head {
  margin-bottom: 28px;
}
.section-head h2 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}
.section-head p {
  margin: 0;
  color: var(--erc-muted);
  font-size: 1.02rem;
}
.section-head.light h2,
.section-head.light p { color: #fff; }
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(195,19,25,.08);
  color: var(--erc-red);
  padding: 8px 14px;
  font-weight: 800;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.hero-section {
  padding: 48px 0 64px;
  background:
    radial-gradient(circle at top left, rgba(195,19,25,.10), transparent 30%),
    linear-gradient(180deg, #fff, #fbf7f3 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 28px;
  align-items: center;
}
.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  line-height: .98;
  margin: 16px 0 18px;
  max-width: 10ch;
}
.hero-text {
  max-width: 62ch;
  color: var(--erc-muted);
  font-size: 1.08rem;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
  max-width: 540px;
}
.hero-highlights span,
.about-points span {
  display: inline-flex;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--erc-border);
  box-shadow: var(--erc-shadow-soft);
  font-weight: 700;
}
.hero-visual {
  position: relative;
}
.hero-visual img {
  border-radius: 28px;
  box-shadow: var(--erc-shadow);
  min-height: 350px;
  object-fit: cover;
}
.card-grid {
  display: grid;
  gap: 22px;
}
.four-col { grid-template-columns: repeat(4, minmax(0,1fr)); }
.three-col { grid-template-columns: repeat(3, minmax(0,1fr)); }
.feature-card,
.blog-card,
.content-card,
.list-card,
.mini-card,
.icon-box {
  background: var(--erc-panel);
  border-radius: var(--erc-radius);
  border: 1px solid var(--erc-border);
  box-shadow: var(--erc-shadow-soft);
}
.feature-card {
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover,
.project-card:hover,
.blog-card:hover,
.mini-card:hover { transform: translateY(-4px); box-shadow: var(--erc-shadow); }
.feature-card-image img {
  width: 100%;
  height: 270px;
  object-fit: cover;
}
.feature-card-content {
  padding: 22px 22px 24px;
}
.feature-card-content h3,
.blog-body h3,
.mini-card-body h3 { margin: 0 0 10px; font-size: 1.22rem; }
.feature-card-content p,
.blog-body p,
.list-body p,
.icon-box p { color: var(--erc-muted); margin: 0 0 14px; }

.showcase-grid,
.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}
.showcase-image img,
.contact-map iframe,
.about-image-stack .image-main,
.about-image-stack .image-card,
.single-thumb img,
.blog-thumb img,
.list-thumb img {
  width: 100%;
  border-radius: var(--erc-radius);
  box-shadow: var(--erc-shadow);
}
.contact-map iframe {
  min-height: 560px;
  border: 0;
}
.showcase-text h2,
.about-text h2,
.contact-content h2,
.page-header h1,
.entry-title {
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  line-height: 1.08;
  margin: 12px 0 14px;
}
.check-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.check-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-weight: 600;
}
.dark-section {
  background: linear-gradient(180deg, #121212, #1a1a1a 100%);
}
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--erc-radius);
  min-height: 360px;
  box-shadow: var(--erc-shadow-soft);
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.85));
  color: #fff;
}
.project-overlay h3 { margin: 0 0 14px; font-size: 1.2rem; }
.icon-box-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 16px;
}
.icon-box { padding: 24px 20px; }
.icon-box strong { display: block; margin-bottom: 8px; font-size: 1.08rem; }
.compact-cards .mini-card { overflow: hidden; }
.compact-cards img { width: 100%; height: 220px; object-fit: cover; }
.mini-card-body { padding: 16px 18px 20px; }
.about-image-stack {
  position: relative;
  min-height: 660px;
}
.about-image-stack .image-main {
  height: 100%;
  object-fit: cover;
}
.about-image-stack .image-card {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 44%;
  border: 8px solid #fff;
}
.about-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.quick-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 26px;
}
.lead-form {
  padding: 26px;
  background: #fff;
  border-radius: var(--erc-radius);
  box-shadow: var(--erc-shadow);
  border: 1px solid var(--erc-border);
}
.form-row { margin-bottom: 14px; }
.form-row.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.lead-form input,
.lead-form textarea,
.search-form input,
.search-form button {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(17,17,17,.12);
  padding: 14px 16px;
  font: inherit;
}
.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: rgba(195,19,25,.45);
  box-shadow: 0 0 0 4px rgba(195,19,25,.08);
}
.form-notice {
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 16px;
  font-weight: 700;
}
.form-notice.success { background: #eaf7ea; color: #166534; }
.form-notice.error { background: #fef2f2; color: #991b1b; }
.blog-grid,
.blog-list { margin-top: 18px; }
.blog-card,
.list-card,
.content-card { overflow: hidden; }
.blog-thumb img,
.list-thumb img { height: 240px; object-fit: cover; }
.blog-body,
.list-body,
.entry-content,
.content-card .entry-header { padding: 22px 24px; }
.meta { color: var(--erc-muted); font-size: .92rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.page-shell,
.archive-shell { background: linear-gradient(180deg, #fff, #fbf7f3 100%); }
.pagination-wrap { margin-top: 28px; }

.site-footer {
  background: #111;
  color: rgba(255,255,255,.84);
  padding-top: 70px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap: 30px;
  padding-bottom: 34px;
}
.site-footer h2,
.site-footer h3 { color: #fff; margin-top: 0; }
.footer-socials,
.footer-links ul,
.footer-contact ul {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.footer-links ul,
.footer-contact ul { display: block; }
.footer-links li,
.footer-contact li { margin-bottom: 10px; }
.footer-bottom {
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.mobile-cta-bar {
  position: fixed;
  inset: auto 0 0;
  display: none;
  grid-template-columns: repeat(3,1fr);
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.1);
  box-shadow: 0 -8px 24px rgba(0,0,0,.08);
  z-index: 70;
}
.mobile-cta-bar a {
  text-align: center;
  padding: 14px 10px;
  font-weight: 800;
}
.mobile-cta-bar a:nth-child(2) { background: var(--erc-red); color: #fff; }
.menu-toggle {
  display: none;
  padding: 0;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(17,17,17,.1);
  background: #fff;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #111;
}

@media (max-width: 1180px) {
  .four-col { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .three-col { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .icon-box-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 920px) {
  .topbar { display: none; }
  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }
  .menu-toggle { display: inline-flex; }
  .main-navigation {
    grid-column: 1 / -1;
    width: 100%;
    display: none;
  }
  .main-navigation.is-open { display: block; }
  .menu-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--erc-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--erc-shadow-soft);
  }
  .header-actions { display: none; }
  .hero-grid,
  .showcase-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual img { min-height: 420px; }
  .about-image-stack { min-height: auto; }
  .about-image-stack .image-card {
    position: static;
    width: 100%;
    margin-top: 16px;
    border-width: 0;
  }
  .contact-map iframe { min-height: 420px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section-space { padding: 64px 0; }
  .section-space-sm { padding: 52px 0; }
  .four-col,
  .three-col,
  .icon-box-grid,
  .form-row.two,
  .hero-highlights { grid-template-columns: 1fr; }
  .container { width: min(100% - 22px, var(--erc-container)); }
  .hero-content h1 { max-width: none; }
  .feature-card-image img,
  .compact-cards img { height: 220px; }
  .project-card { min-height: 300px; }
  .lead-form { padding: 18px; }
  .quick-links { flex-direction: column; }
  .mobile-cta-bar { display: grid; }
  .site-footer { padding-bottom: 72px; }
}
