/*
 * WordPress-only additions. The original stylesheet (style.css) is loaded unchanged;
 * this file only covers markup that WordPress, Contact Form 7 or ACF add.
 */

/* wp_get_attachment_image() adds width/height attributes; keep the square mosaic. */
.about-mosaic img {
  height: auto
}

/* Optional ACF background image overrides (style="--section-bg:url(...)"). */
.projects[style*="--section-bg"]:before {
  background: linear-gradient(#080808df, #080808df), var(--section-bg) center/cover !important
}
.process[style*="--section-bg"]:before {
  background: linear-gradient(#101010eb, #101010eb), var(--section-bg) center/cover
}
.cta-banner[style*="--section-bg"] {
  background: linear-gradient(90deg, #000e, #0008), var(--section-bg) center/cover
}

/* Navigation menu markup from wp_nav_menu(). */
.navbar-nav {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0
}
.navbar-nav .dropdown-menu {
  border: 0;
  border-radius: 9px;
  box-shadow: 0 10px 25px #0002
}
.navbar-nav .dropdown-item {
  font-size: 14px;
  font-weight: 600
}
.navbar-nav .dropdown-item:active {
  background: var(--yellow);
  color: #111
}

/* Contact Form 7 inside the original form grid. */
.hero-form .wpcf7 form {
  margin: 0
}
.form-grid label .wpcf7-form-control-wrap {
  margin-bottom: 0
}
.form-grid .wpcf7-not-valid-tip {
  font-size: 11px;
  font-weight: 500;
  margin: 4px 0 0
}
.form-grid .wpcf7-not-valid {
  border-color: #dc3232
}
.enquiry-form .wpcf7-spinner {
  display: none
}
.enquiry-form.submitting .form-submit {
  opacity: .7;
  pointer-events: none
}
.enquiry-form .wpcf7-response-output {
  display: block !important;
  font-size: 12px;
  line-height: 1.8;
  margin: 8px 0 0 !important;
  padding: 0 !important;
  border: 0 !important
}
.enquiry-form.invalid .wpcf7-response-output, .enquiry-form.failed .wpcf7-response-output, .enquiry-form.aborted .wpcf7-response-output, .enquiry-form.spam .wpcf7-response-output, .enquiry-form.unaccepted .wpcf7-response-output {
  color: #b42318
}

/* Inner pages: dark banner under the transparent header, then readable content. */
.page-banner {
  padding-top: 230px !important;
  padding-bottom: 80px !important
}
.page-banner h1 {
  font-size: clamp(2.6rem, 5vw, 5rem);
  margin: 0
}
.page-content .entry-content {
  max-width: 900px
}
.page-content .entry-content + .entry-content {
  margin-top: 50px;
  padding-top: 50px;
  border-top: 1px solid #e5e3d3
}
.entry-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-top: 1.4em
}
.entry-content h3 {
  margin-top: 1.2em
}
.entry-content a:not(.btn) {
  color: #7b6b00;
  text-decoration: underline
}
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px
}
.entry-thumbnail {
  margin-bottom: 30px
}
.entry-meta {
  font-size: 13px;
  color: #777
}
.entry-title a {
  color: #111
}
.nav-links {
  display: flex;
  gap: 10px;
  margin-top: 40px
}
.nav-links .page-numbers {
  padding: 8px 14px;
  border: 1px solid #b7a536;
  border-radius: 8px;
  color: #111
}
.nav-links .page-numbers.current {
  background: #111;
  color: var(--yellow)
}
.inner-page .site-header:not(.is-scrolled) .navbar-brand {
  outline: 0 !important
}

/* Core alignment / accessibility classes. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important
}
.alignleft {
  float: left;
  margin: 0 1.5em 1em 0
}
.alignright {
  float: right;
  margin: 0 0 1em 1.5em
}
.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto
}
.wp-caption-text {
  font-size: 12px;
  color: #777
}

/* Logged-in admin bar: keep the fixed top bar/header below it. */
body.admin-bar .topbar {
  top: 32px
}
body.admin-bar .site-header {
  top: 32px !important
}
@media(max-width:782px) {
  body.admin-bar .topbar {
    top: 46px
  }
  body.admin-bar .site-header {
    top: 46px !important
  }
}
@media(max-width:600px) {
  body.admin-bar .site-header.is-scrolled {
    top: 0 !important
  }
}
