/* WordPress & Contact Form 7 integration. */
.admin-bar .header { top: 32px; }
.contact-form .wpcf7, .contact-form .wpcf7-form { width: 100%; }
.contact-form .wpcf7-form { display: grid; gap: 18px; }
.contact-form .wpcf7-form p { margin: 0; }
.contact-form .wpcf7-form label { width: 100%; }
.contact-form .wpcf7-form-control-wrap { display: block; width: 100%; }
.contact-form .wpcf7-submit { width: 100%; background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 700; cursor: pointer; }
.contact-form .wpcf7-submit:hover { background: var(--ink); border-color: var(--ink); color: white; }
.contact-form .wpcf7-not-valid { border-color: #b92d23; }
.contact-form .wpcf7-not-valid-tip { color: #b92d23; font-size: .85rem; margin-top: 4px; }
.contact-form .wpcf7-response-output { padding: 12px 14px; margin: 0 !important; font-size: .92rem; }
.contact-form .wpcf7-spinner { margin: 8px 0 0; }
.contact-form textarea { height: 145px; }
.entry-content p { margin: 1em 0; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content a { text-decoration: underline; }
#services .service-grid .overview-icon { margin-bottom: 24px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .header { top: 0; } }

/* Mobile navigation: desktop links stay untouched; no JS means visible links. */
.header .nav-toggle { display: none; }
.nav-toggle:focus-visible { outline: 3px solid #b92d23; outline-offset: 3px; }
.nav-toggle-icon { display: grid; gap: 5px; width: 22px; }
.nav-toggle-icon > span {
  display: block; width: 100%; height: 2px; background: currentColor;
  border-radius: 2px; transform-origin: center;
  transition: transform var(--ui-duration) var(--ui-easing), opacity var(--ui-duration) var(--ui-easing);
}
.nav-open .nav-toggle-icon > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-icon > span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-icon > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 767px) {
  html { scroll-padding-top: 95px; }
  .header .brand-copy { display: none; }
  .header.nav-enhanced { min-height: 74px; height: auto; flex-wrap: nowrap; gap: 12px; padding-block: 13px; }
  .header.nav-enhanced .brand { min-width: 0; }
  .header.nav-enhanced .nav-toggle {
    display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px;
    border: 1px solid var(--line); border-radius: 3px; color: var(--ink);
    background: transparent; cursor: pointer; padding: 0;
  }
  .header.nav-enhanced .nav-toggle:hover, .header.nav-open .nav-toggle {
    color: var(--ink); border-color: var(--accent); background: var(--accent);
  }
  .header.nav-enhanced #primary-navigation {
    position: absolute; top: 100%; left: 0; right: 0; width: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px clamp(20px, 4vw, 30px) 22px; flex-direction: column; align-items: stretch;
    justify-content: flex-start; gap: 0; font-size: 16px; box-shadow: 0 14px 24px #11111112;
    opacity: 0; transform: translateY(-8px); visibility: hidden; pointer-events: none;
    transition: opacity var(--ui-duration) var(--ui-easing), transform var(--ui-duration) var(--ui-easing), visibility 0s linear var(--ui-duration);
  }
  .header.nav-enhanced.nav-open #primary-navigation {
    opacity: 1; transform: translateY(0); visibility: visible; pointer-events: auto;
    transition-delay: 0s;
  }
  .header.nav-enhanced #primary-navigation > a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .header.nav-enhanced #primary-navigation > .nav-cta {
    margin-top: 12px; padding: 12px 16px; text-align: center;
    border: 1px solid var(--ink); border-radius: 3px;
  }
}
@media (min-width: 601px) and (max-width: 767px) { html:has(body.admin-bar) { scroll-padding-top: 140px; } }
@media (prefers-reduced-motion: reduce) {
  .header.nav-enhanced #primary-navigation, .nav-toggle-icon > span { transition: none !important; }
}
