/* Final visual tuning loaded after the main theme stylesheet. */
:root {
  color-scheme: light;
  --tune-ink: #0b1714;
  --tune-muted: #5b6f68;
  --tune-accent: #00a878;
  --tune-accent-dark: #007e69;
  --tune-line: rgba(7, 45, 36, 0.14);
  --tune-shadow: 0 22px 64px rgba(12, 64, 49, 0.12);
}

body {
  background:
    linear-gradient(rgba(255, 255, 255, 0.78), rgba(247, 252, 249, 0.96) 620px),
    radial-gradient(circle at 18% 16%, rgba(0, 168, 120, 0.13), transparent 26rem),
    radial-gradient(circle at 82% 22%, rgba(24, 111, 214, 0.1), transparent 28rem),
    linear-gradient(135deg, #ffffff 0%, #eef8f4 54%, #f8fbf7 100%) !important;
  color: var(--tune-ink) !important;
}

.site-header {
  min-height: 68px !important;
  border-color: rgba(7, 45, 36, 0.12) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 18px 56px rgba(22, 61, 49, 0.12) !important;
}

.brand-mark {
  border-color: rgba(0, 126, 105, 0.38) !important;
  background:
    linear-gradient(145deg, rgba(0, 168, 120, 0.16), rgba(24, 111, 214, 0.08)),
    #ffffff !important;
  color: #064336 !important;
}

.brand-logo {
  display: block;
  width: 34px;
  height: 34px;
}

.brand strong,
h1,
h2,
h3,
.visual-card strong,
.feature-points strong,
.contact-panel strong,
.post-card h3 a {
  color: var(--tune-ink) !important;
}

.brand small,
.lead,
.feature-copy p,
.contact-copy p,
.service-card p,
.timeline p,
.post-card p,
.article-meta,
.entry-content,
.feature-points span,
.metrics dd,
.visual-card span {
  color: var(--tune-muted) !important;
}

.nav {
  color: #12231f !important;
}

.site-header .nav-heading {
  font-size: 0.94rem !important;
  line-height: 1 !important;
}

.header-call {
  min-height: 42px !important;
  border-color: rgba(0, 126, 105, 0.28) !important;
  background: #e7f7f2 !important;
  color: #006c5a !important;
}

.hero {
  min-height: min(780px, calc(100dvh - 88px)) !important;
  padding-top: clamp(2.7rem, 5vw, 4.2rem) !important;
  padding-bottom: clamp(2.4rem, 5vw, 4rem) !important;
}

h1 {
  max-width: 760px !important;
  font-size: clamp(2.3rem, 3.55vw, 3.3rem) !important;
  line-height: 1.12 !important;
  letter-spacing: 0 !important;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.82rem) !important;
  line-height: 1.14 !important;
  letter-spacing: 0 !important;
}

.lead {
  max-width: 680px !important;
  font-size: clamp(1rem, 1.18vw, 1.1rem) !important;
}

.btn.primary,
.wp-block-search__button,
.comment-form input[type="submit"] {
  background: var(--tune-accent) !important;
  color: #fff !important;
  box-shadow: 0 16px 38px rgba(0, 126, 105, 0.22) !important;
}

.btn.secondary {
  background: #fff !important;
  color: #10201b !important;
}

.metrics,
.service-card,
.project-card,
.post-card,
.timeline article,
.contact-panel,
.feature-points > div,
.comment-body,
.widget,
.wp-block-search,
.content-wrap article,
.no-results {
  border-color: var(--tune-line) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 252, 249, 0.94)),
    #fff !important;
  box-shadow: var(--tune-shadow) !important;
}

.metrics dt {
  color: var(--tune-accent-dark) !important;
}

.hero-visual {
  min-height: 500px !important;
  border-color: rgba(7, 45, 36, 0.16) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(235, 248, 243, 0.78)),
    radial-gradient(circle at 70% 28%, rgba(0, 168, 120, 0.16), transparent 14rem),
    #f9fdfb !important;
}

.visual-card {
  border-color: rgba(7, 45, 36, 0.14) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 18px 50px rgba(22, 61, 49, 0.13) !important;
}

.service-card,
.project-card,
.post-card {
  min-height: 190px !important;
}

@media (max-width: 1100px) {
  .hero {
    min-height: 0 !important;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0.72rem !important;
  }

  .brand small {
    display: block !important;
    max-width: 19em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 0.7rem !important;
  }

  .header-call {
    min-height: 44px !important;
    font-size: 0.98rem !important;
  }

  .nav {
    gap: 0.78rem !important;
    font-size: 0.9rem !important;
  }

  .hero {
    padding-top: 2.6rem !important;
  }

  h1 {
    max-width: 11em !important;
    font-size: clamp(1.82rem, 7.8vw, 2.25rem) !important;
    line-height: 1.14 !important;
  }

  h2 {
    font-size: clamp(1.65rem, 7vw, 2.2rem) !important;
  }

  .lead {
    font-size: 0.98rem !important;
    line-height: 1.74 !important;
  }

  .hero-visual {
    min-height: 340px !important;
  }
}
