/* =============================================================
   Bishops Performance — modernisation layer
   Loaded after style.css. Overrides only; no markup changes.
   Revert: remove the <link> to this file from head.php.
   ============================================================= */

:root{
  --bp-ink:        #0b0c0e;   /* base surface, replaces patterned black */
  --bp-ink-2:      #14161a;   /* raised surface */
  --bp-ink-3:      #1c1f24;   /* cards, inputs */
  --bp-line:       #2a2e35;   /* hairlines */
  --bp-paper:      #f2f4f6;   /* primary text on dark */
  --bp-mute:       #98a0ab;   /* secondary text */
  --bp-green:      #8ede4a;   /* refined brand green, was #81b961 */
  --bp-green-dim:  #6fbf37;
  --bp-amber:      #ffc21f;   /* one amber, replaces three */
  --bp-radius:     4px;
  --bp-ease:       cubic-bezier(.2,.7,.3,1);
}

/* ---------- 1. Typography ------------------------------------
   The site shipped five families, two of them handwriting scripts
   (Caveat, Dancing Script) on a supercar garage. Collapse to a
   single grotesque with a real scale. -------------------------- */

body,
p, li, td, th, label, input, textarea, select, button,
.text-white, .text-white-50{
  font-family: "Signika Negative", "Roboto", system-ui, -apple-system,
               "Segoe UI", Arial, sans-serif;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4{
  font-family: "Signika Negative", "Roboto", system-ui, sans-serif !important;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.08;
  text-wrap: balance;
}

/* kill the script faces wherever they were applied */
[style*="Caveat"], [style*="Dancing"],
.caveat, .dancing, .script, .handwriting{
  font-family: "Signika Negative", "Roboto", sans-serif !important;
  font-style: normal !important;
}

h1, .h1{ font-size: clamp(2.1rem, 5.2vw, 4rem); }
h2, .h2{ font-size: clamp(1.6rem, 3.4vw, 2.6rem); margin-bottom: .6em; }
h3, .h3{ font-size: clamp(1.2rem, 2.2vw, 1.6rem); }

p{ line-height: 1.7; }
p, li{ font-size: 1.02rem; }
.lead{ font-size: 1.15rem; line-height: 1.65; color: var(--bp-mute); }

/* uppercase labels need air */
.text-uppercase{ letter-spacing: .09em; }

/* ---------- 2. Surfaces --------------------------------------
   Replace the tiled carbon/leaf patterns with flat, quiet
   surfaces. The photography carries the character instead. ----- */

body{ background: var(--bp-ink); color: var(--bp-paper); }

[class*="pattern"],
section[style*="pattern-black"],
section[style*="pattern-green"],
section[style*="red-leaf"]{
  background-image: none !important;
}

.services, .content, .review, .gallery, .gallery-1, .reg-number, .long-cta{
  background-image: none !important;
  background-color: var(--bp-ink) !important;
  border-top: 1px solid var(--bp-line);
}
.services, .review{ background-color: var(--bp-ink-2) !important; }

/* ---------- 3. Banner ---------------------------------------- */

.banner{ position: relative; }
.banner::before{
  background:
    radial-gradient(90% 62% at 50% 34%,
              rgba(6,7,9,.88) 0%,
              rgba(6,7,9,.74) 55%,
              rgba(6,7,9,.34) 100%),
    linear-gradient(180deg,
              rgba(6,7,9,.86) 0%,
              rgba(6,7,9,.58) 34%,
              rgba(6,7,9,.62) 62%,
              rgba(6,7,9,.92) 100%) !important;
}
.banner h1{
  text-shadow: 0 2px 26px rgba(0,0,0,.75), 0 1px 3px rgba(0,0,0,.6);
  max-width: 20ch;
  margin-inline: auto;
}
.banner aside span{ letter-spacing: .16em; font-size: .78rem; }

/* мелкая надстрочная подпись живёт поверх видео — ей нужен свой фон */
.banner .text-red,
.banner span.text-uppercase,
.banner aside span{
  text-shadow: 0 1px 12px rgba(0,0,0,.9), 0 0 4px rgba(0,0,0,.8);
  font-weight: 600;
}

/* marque grid: flat cells, no heavy chrome */
.banner aside .make-card,
.make-card{
  background: rgba(10,11,13,.58) !important;
  backdrop-filter: blur(3px) saturate(120%);
  border: 1px solid var(--bp-line) !important;
  border-radius: var(--bp-radius);
  box-shadow: none !important;
  transition: background .25s var(--bp-ease), border-color .25s var(--bp-ease);
}
.make-card:hover{
  background: rgba(10,11,13,.78) !important;
  border-color: var(--bp-green) !important;
}
.make-card img{
  filter: grayscale(1) brightness(1.9) contrast(1.15);
  opacity: .95;
  transition: filter .25s var(--bp-ease), opacity .25s var(--bp-ease);
}
.make-card:hover img{ filter: none; opacity: 1; }

/* ---------- 4. Buttons --------------------------------------- */

.btn{
  border-radius: var(--bp-radius);
  font-weight: 600;
  letter-spacing: .04em;
  padding: .78rem 1.6rem;
  transition: background .2s var(--bp-ease), border-color .2s var(--bp-ease),
              color .2s var(--bp-ease);
  box-shadow: none !important;
}
.btn-primary, .btn-success, .btn-green{
  background: var(--bp-green) !important;
  border-color: var(--bp-green) !important;
  color: #0b0c0e !important;
}
.btn-primary:hover, .btn-success:hover, .btn-green:hover{
  background: var(--bp-green-dim) !important;
  border-color: var(--bp-green-dim) !important;
}
.btn-outline-light, .btn-outline-secondary{
  border-color: var(--bp-line) !important;
  color: var(--bp-paper) !important;
  background: transparent !important;
}
.btn-outline-light:hover, .btn-outline-secondary:hover{
  border-color: var(--bp-paper) !important;
  background: rgba(255,255,255,.06) !important;
}

/* ---------- 5. Colour corrections ---------------------------- */

.text-red{ color: var(--bp-amber) !important; }         /* was three ambers */
.text-white-50{ color: var(--bp-mute) !important; }
a{ color: var(--bp-green); text-underline-offset: .18em; }
a:hover{ color: var(--bp-green-dim); }
hr{ border-color: var(--bp-line); opacity: 1; }

/* ---------- 6. Cards, lists ---------------------------------- */

.card, .list-group-item{
  background-color: var(--bp-ink-3) !important;
  border: 1px solid var(--bp-line) !important;
  border-radius: var(--bp-radius) !important;
  box-shadow: none !important;
}
.list-group-item{ padding: .85rem 1rem; }
.bi-chevron-double-right::before{ color: var(--bp-green); }

/* ---------- 7. Forms ----------------------------------------- */

.form-control, .form-select, input[type=text], input[type=email],
input[type=tel], textarea, select{
  background-color: var(--bp-ink-3) !important;
  border: 1px solid var(--bp-line) !important;
  color: var(--bp-paper) !important;
  border-radius: var(--bp-radius) !important;
  padding: .8rem .9rem !important;
  box-shadow: none !important;
}
.form-control::placeholder, textarea::placeholder{ color: #6d747e; }
.form-control:focus, .form-select:focus, textarea:focus, input:focus{
  border-color: var(--bp-green) !important;
  outline: 2px solid rgba(142,222,74,.28) !important;
  outline-offset: 0;
}
.form-check-input:checked{
  background-color: var(--bp-green) !important;
  border-color: var(--bp-green) !important;
}
label{ color: var(--bp-mute); font-size: .92rem; }

/* consent block added for the contact form */
.bp-consent{
  display: flex; gap: .7rem; align-items: flex-start;
  font-size: .88rem; color: var(--bp-mute); margin: 1.1rem 0;
}
.bp-consent input{ margin-top: .25rem; flex: 0 0 auto; }
.bp-consent a{ color: var(--bp-green); }

/* ---------- 8. Header / navigation --------------------------- */

header, .navbar, nav.main-nav{
  background: rgba(11,12,14,.9) !important;
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--bp-line);
  background-image: none !important;
}
.dropdown-menu{
  background: var(--bp-ink-2);
  border: 1px solid var(--bp-line);
  border-radius: var(--bp-radius);
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
}
.dropdown-item{ color: var(--bp-paper); }
.dropdown-item:hover{ background: rgba(255,255,255,.06); color: var(--bp-green); }

/* ---------- 9. Rhythm ---------------------------------------- */

section{ padding-block: clamp(2.5rem, 6vw, 5rem); }
section > .container, section > .container-fluid{ max-width: 1220px; }
.py-md-5{ padding-block: clamp(2.5rem, 6vw, 5rem) !important; }

img{ border-radius: var(--bp-radius); }
.img-fluid{ height: auto; }

/* ---------- 10. Footer --------------------------------------- */

footer{
  background: #08090b !important;
  background-image: none !important;
  border-top: 1px solid var(--bp-line);
  color: var(--bp-mute);
}
footer a{ color: var(--bp-mute); text-decoration: none; }
footer a:hover{ color: var(--bp-paper); }

/* ---------- 11. Accessibility & motion ----------------------- */

:focus-visible{ outline: 2px solid var(--bp-green); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- 12. Mobile --------------------------------------- */

@media (max-width: 768px){
  h1, .h1{ line-height: 1.12; }
  .banner h1{ max-width: 100%; }
  .make-card{ padding: .6rem !important; }
  section{ padding-block: 2.2rem; }
  .btn{ width: 100%; justify-content: center; }
  .btn + .btn{ margin-top: .6rem; margin-left: 0 !important; }
}

/* ---------- 13. Light panels ---------------------------------
   The contact card ships on a light surface with borderless,
   icon-prefixed inputs. Section 7 painted every input dark,
   which clashed there. Restore light inputs inside light panels
   while keeping the improved focus states. -------------------- */

.contact-detail-info{
  background: #f4f6f8 !important;
  border: 1px solid #e2e6ea;
  border-radius: var(--bp-radius);
  box-shadow: none !important;
}
.contact-detail-info h2,
.contact-detail-info h3,
.contact-detail-info label,
.contact-detail-info p{ color: #14161a !important; }

.contact-detail-info .form-control,
.contact-detail-info input[type=text],
.contact-detail-info input[type=email],
.contact-detail-info input[type=tel],
.contact-detail-info textarea,
.contact-detail-info select{
  background-color: #fff !important;
  color: #14161a !important;
  border: 1px solid #d9dee4 !important;
}
.contact-detail-info .form-control::placeholder,
.contact-detail-info textarea::placeholder{ color: #8c949e !important; }
.contact-detail-info .input-group-text{
  background: #fff !important;
  border: 1px solid #d9dee4 !important;
  border-right: 0 !important;
  color: var(--bp-green-dim) !important;
}
.contact-detail-info .input-group > .form-control{ border-left: 0 !important; }
.contact-detail-info .form-control:focus{
  border-color: var(--bp-green-dim) !important;
  outline: 2px solid rgba(111,191,55,.25) !important;
}

/* consent block sits on the light card */
.contact-detail-info .bp-consent{ color: #4a525c; }
.contact-detail-info .bp-consent a{ color: #3f8f14; font-weight: 600; }

/* submit button: the site's red utility class, modernised */
.bg-red{ background: var(--bp-green) !important; color: #0b0c0e !important; }
.bg-red:hover{ background: var(--bp-green-dim) !important; }
button.bg-red{ border-radius: var(--bp-radius) !important; font-weight: 600; letter-spacing: .04em; }
