/*
Theme Name: MC Engineering
Theme URI: https://mcesltd.co.uk/
Author: MC Engineering
Description: Custom WordPress theme for MC Engineering Ltd, built with Bootstrap 5. Recreated design for food-grade stainless steel fabrication company.
Version: 1.0
Requires PHP: 7.4
Text Domain: mces
*/

/* ==========================================================================
   Brand variables
   ========================================================================== */
:root {
  --mces-orange: #f2911c;
  --mces-orange-dark: #d97b0e;
  --mces-black: #111111;
  --mces-dark: #1a1a1a;
  --mces-gray-text: #6c757d;
  --mces-font: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  font-family: var(--mces-font);
  color: #222;
}

a {
  text-decoration: none;
}

/* ==========================================================================
   Top info bar
   ========================================================================== */
.mces-topbar {
  padding: 18px 0;
  border-bottom: 1px solid #eee;
}

.mces-topbar .logo img {
  max-height: 55px;
  width: auto;
}

.mces-topbar .info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.mces-topbar .info-item .icon {
  color: var(--mces-orange);
  margin-top: 3px;
}

.mces-topbar .info-item .label {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 2px;
  display: block;
}

.mces-topbar .info-item .value {
  font-weight: 600;
  color: #111;
  font-size: 0.95rem;
}

/* ==========================================================================
   Main navigation
   ========================================================================== */
.mces-navbar {
  background-color: var(--mces-black);
  padding: 0;
}

.mces-navbar .navbar-nav .nav-link {
  color: #fff;
  padding: 22px 18px;
  font-weight: 500;
  position: relative;
}

.mces-navbar .navbar-nav .nav-link.active,
.mces-navbar .navbar-nav .nav-link:hover {
  color: var(--mces-orange);
}

.mces-navbar .navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  height: 2px;
  background: var(--mces-orange);
}

.mces-navbar .search-toggle {
  color: #fff;
  border: none;
  background: transparent;
  padding: 10px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.mces-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 110px 0 90px;
  color: #fff;
}

.mces-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.72);
}

.mces-hero .container {
  position: relative;
  z-index: 2;
}

.mces-hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.mces-hero .eyebrow .bar {
  width: 40px;
  height: 3px;
  background: var(--mces-orange);
  display: inline-block;
}

.mces-hero h1 {
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 25px;
}

.mces-hero p.lead {
  max-width: 650px;
  color: #e6e6e6;
  margin-bottom: 35px;
}

.btn-mces-primary {
  background-color: var(--mces-orange);
  border-color: var(--mces-orange);
  color: #fff;
  font-weight: 600;
  padding: 14px 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-mces-primary:hover {
  background-color: var(--mces-orange-dark);
  border-color: var(--mces-orange-dark);
  color: #fff;
}

.btn-mces-outline {
  background: transparent;
  border: 2px solid var(--mces-orange);
  color: var(--mces-orange);
  font-weight: 600;
  padding: 12px 28px;
  display: inline-block;
}

.btn-mces-outline:hover {
  background: var(--mces-orange);
  color: #fff;
}

/* ==========================================================================
   Feature cards (overlapping hero)
   ========================================================================== */
.mces-feature-cards {
  margin-top: -110px;
  position: relative;
  z-index: 3;
}

.mces-feature-card {
  background: #fff;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  height: 100%;
}

.mces-feature-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.mces-feature-card .card-body {
  padding: 35px 30px;
  text-align: center;
}

.mces-feature-card h3 {
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.mces-feature-card p {
  color: var(--mces-gray-text);
  font-size: 0.95rem;
  line-height: 1.7;
}

.mces-feature-card .learn-more {
  color: var(--mces-orange);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ==========================================================================
   Intro / about section
   ========================================================================== */
.mces-section {
  padding: 100px 0;
}

.mces-section-heading {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 60px;
}

.mces-section-heading .eyebrow-text {
  color: var(--mces-orange);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.mces-section-heading h2 {
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.mces-underline-bar {
  width: 50px;
  height: 3px;
  background: var(--mces-orange);
  margin-bottom: 20px;
}

.mces-product-img img {
  width: 100%;
  height: auto;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.mces-intro-text h3 {
  font-weight: 700;
  margin-bottom: 20px;
}

.mces-intro-text p {
  color: var(--mces-gray-text);
  margin-bottom: 25px;
}

/* ==========================================================================
   Clients carousel
   ========================================================================== */
.mces-clients {
  background: #fafafa;
  padding: 90px 0;
}

.mces-clients h2 {
  font-weight: 700;
  margin-bottom: 20px;
}

.mces-clients p {
  color: var(--mces-gray-text);
}

.mces-client-logo {
  background: #fff;
  border: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  padding: 20px;
}

.mces-client-logo img {
  max-width: 100%;
  max-height: 60px;
}

.mces-clients .carousel-indicators [data-bs-target] {
  background-color: var(--mces-orange);
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

/* ==========================================================================
   CTA strip
   ========================================================================== */
.mces-cta {
  background: var(--mces-black);
  color: #fff;
  padding: 55px 0;
}

.mces-cta h3 {
  font-weight: 600;
  margin-bottom: 0;
}

.mces-cta .btn-mces-primary {
  white-space: nowrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.mces-footer {
  background: var(--mces-dark);
  color: #bbb;
  padding-top: 70px;
}

.mces-footer .logo img {
  max-height: 45px;
  margin-bottom: 20px;
}

.mces-footer h4 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 25px;
  font-size: 1.05rem;
}

.mces-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mces-footer ul li {
  margin-bottom: 14px;
}

.mces-footer ul li a {
  color: #bbb;
}

.mces-footer ul li a:hover {
  color: var(--mces-orange);
}

.mces-footer .contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #333;
}

.mces-footer .contact-item .icon {
  color: var(--mces-orange);
  margin-top: 3px;
}

.mces-footer-bottom {
  border-top: 1px solid #333;
  margin-top: 50px;
  padding: 22px 0;
  font-size: 0.85rem;
  color: #888;
}

.mces-back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 48px;
  height: 48px;
  background: var(--mces-orange);
  color: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.mces-back-to-top:hover {
  background: var(--mces-orange-dark);
  color: #fff;
}

/* Paste this at the very bottom of style.css */

/* ==========================================================================
   Page banner (About Us, and other inner pages)
   ========================================================================== */
.mces-page-banner {
  padding: 60px 0 50px;
  text-align: center;
  background: #fff;
}

.mces-page-banner h1 {
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  margin-bottom: 15px;
}

.mces-page-banner .mces-underline-bar {
  margin-left: auto;
  margin-right: auto;
}

.mces-page-banner .breadcrumb {
  color: var(--mces-gray-text);
  font-size: 0.95rem;
}

.mces-page-banner .breadcrumb a {
  color: var(--mces-gray-text);
}

.mces-page-banner .breadcrumb a:hover {
  color: var(--mces-orange);
}

/* ==========================================================================
   About - content blocks
   ========================================================================== */
.mces-about-block img {
  width: 100%;
  height: auto;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.mces-about-block h2 {
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  margin-bottom: 20px;
}

.mces-about-block p {
  color: var(--mces-gray-text);
  margin-bottom: 20px;
}

.mces-about-block p a {
  color: var(--mces-orange);
  font-weight: 600;
}

/* Section on tinted background (turnkey / accreditations) */
.mces-section-tinted {
  background: #f7f7f7;
  padding: 90px 0;
}

/* Video / image with play button overlay */
.mces-video-block {
  position: relative;
  overflow: hidden;
}

.mces-video-block img {
  width: 100%;
  height: auto;
  display: block;
}

.mces-video-block .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid #fff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
}

.mces-video-block .play-btn:hover {
  background: var(--mces-orange);
  border-color: var(--mces-orange);
}

.mces-video-caption {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 0.9rem;
  z-index: 2;
}

.mces-video-caption .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.mces-testimonials {
  padding: 90px 0;
  text-align: center;
}

.mces-testimonial-quote {
  background: #eef0f2;
  border-radius: 6px;
  padding: 45px;
  max-width: 900px;
  margin: 40px auto 0;
  position: relative;
}

.mces-testimonial-quote p {
  font-style: italic;
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 0;
}

.mces-testimonial-quote::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 14px 14px 0;
  border-style: solid;
  border-color: #eef0f2 transparent transparent;
}

.mces-testimonial-author {
  color: var(--mces-orange);
  font-weight: 600;
  margin-top: 30px;
  display: block;
}

.mces-testimonials .carousel-control-prev,
.mces-testimonials .carousel-control-next {
  width: 5%;
  color: #aaa;
  opacity: 1;
}

.mces-testimonials .carousel-indicators [data-bs-target] {
  background-color: #ccc;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.mces-testimonials .carousel-indicators .active {
  background-color: var(--mces-black);
}

/* ==========================================================================
   Accreditations
   ========================================================================== */
.mces-accreditation-logo {
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 170px;
  padding: 25px;
}

.mces-accreditation-logo img {
  max-width: 100%;
  max-height: 100px;
  filter: grayscale(100%);
  opacity: 0.75;
}

/* Paste this at the very bottom of style.css */

/* ==========================================================================
   Contact Us page
   ========================================================================== */
.mces-contact-intro h2 {
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 20px;
}

.mces-contact-intro p {
  color: var(--mces-gray-text);
  margin-bottom: 25px;
}

.mces-contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--mces-orange);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.mces-contact-detail a {
  color: var(--mces-orange);
}

.mces-contact-detail i {
  font-size: 1rem;
}

.mces-contact-form-wrap {
  background: #fff;
}

.mces-contact-form-wrap .wpcf7-form-control {
  width: 100%;
  border: 1px solid #e2e2e2;
  padding: 14px 18px;
  font-family: var(--mces-font);
  margin-bottom: 20px;
}

.mces-contact-form-wrap textarea.wpcf7-form-control {
  min-height: 160px;
  resize: vertical;
}

.mces-contact-form-wrap .wpcf7-form-control:focus {
  outline: none;
  border-color: var(--mces-orange);
}

.mces-contact-form-wrap .wpcf7-submit {
  background-color: var(--mces-orange);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 14px 40px;
  margin-bottom: 0;
}

.mces-contact-form-wrap .wpcf7-submit:hover {
  background-color: var(--mces-orange-dark);
}

.mces-contact-form-wrap .wpcf7-spinner {
  margin-left: 15px;
}

.mces-contact-form-wrap .wpcf7-not-valid-tip {
  color: #d9534f;
  font-size: 0.85rem;
  margin-top: -15px;
  margin-bottom: 15px;
  display: block;
}

.mces-contact-form-wrap .wpcf7-response-output {
  margin-top: 20px;
  padding: 15px 20px;
  border-radius: 4px;
}

/* Leaflet map */
#mces-map {
  width: 100%;
  height: 450px;
  z-index: 1;
}

/* Desaturate + lighten the OSM tiles so the map reads as minimal/white
   without relying on a keyed basemap provider like CARTO or Stadia. */
#mces-map .leaflet-tile-pane {
  filter: grayscale(100%) brightness(1.12) contrast(0.85);
}

/* Keep the marker + popup at full colour so the pin still stands out */
#mces-map .leaflet-marker-pane,
#mces-map .leaflet-popup-pane {
  filter: none;
}

.mces-map-popup strong {
  display: block;
  margin-bottom: 4px;
  color: var(--mces-black);
}

/* ==========================================================================
   Projects & Consultancy page
   ========================================================================== */
.mces-intro-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.mces-intro-logo img {
  max-width: 100%;
  height: auto;
}

.mces-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}

.mces-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-weight: 600;
  color: #222;
  padding: 12px 0;
  border-bottom: 1px solid #e8e8e8;
}

.mces-checklist li:first-child {
  padding-top: 0;
}

.mces-checklist li i {
  color: var(--mces-orange);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.mces-consultancy-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Our Services page
   ========================================================================== */
.mces-services-intro {
  padding: 0 0 50px;
  color: var(--mces-gray-text);
}

.mces-service-card {
  background: #fff;
  border: 1px solid #eee;
  height: 100%;
  text-align: center;
}

.mces-service-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.mces-service-card .card-body {
  padding: 25px 22px;
}

.mces-service-card h3 {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 15px;
}

.mces-service-card p {
  color: var(--mces-gray-text);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Black "start your project" CTA card that sits inline within the grid */
.mces-service-cta-card {
  background: var(--mces-black);
  color: #fff;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 25px;
}

.mces-service-cta-card i {
  color: var(--mces-orange);
  font-size: 1.8rem;
  margin-bottom: 15px;
}

a {color: var(--mces-orange); }

.mces-service-cta-card h3 {
  color: var(--mces-orange);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.mces-service-cta-card p {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 0;
}

.mces-service-cta-card a {
  text-decoration: underline;
}

.mces-service-cta-card a:hover {
  color: #fff;
}

/* ==========================================================================
   Generic content page (Privacy Policy, Terms, etc.)
   Styles the block editor output via the_content()
   ========================================================================== */
.mces-content-page {
  max-width: 900px;
  margin: 0 auto;
}

.mces-content-page h1 {
  font-weight: 700;
}

.mces-content-page h2 {
  font-weight: 700;
  font-size: 1.4rem;
  margin-top: 45px;
  margin-bottom: 18px;
  color: #111;
}

.mces-content-page h2:first-child {
  margin-top: 0;
}

.mces-content-page h3 {
  font-weight: 700;
  font-size: 1.15rem;
  margin-top: 30px;
  margin-bottom: 15px;
}

.mces-content-page p {
  color: var(--mces-gray-text);
  line-height: 1.8;
  margin-bottom: 20px;
}

.mces-content-page ul,
.mces-content-page ol {
  color: var(--mces-gray-text);
  line-height: 1.8;
  margin-bottom: 20px;
  padding-left: 22px;
}

.mces-content-page li {
  margin-bottom: 6px;
}

.mces-content-page a {
  color: var(--mces-orange);
}

.mces-content-page a:hover {
  color: var(--mces-orange-dark);
}

/* ==========================================================================
   Product Range page - category cards
   ========================================================================== */
.mces-product-category-card {
  display: block;
  text-align: left;
  color: inherit;
}

.mces-product-category-card img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  background: #fafafa;
  margin-bottom: 20px;
}

.mces-product-category-card h3 {
  color: var(--mces-orange);
  font-weight: 700;
  font-size: 1.3rem;
}

.mces-product-category-card h3 span {
  color: #111;
}

.mces-product-category-card:hover h3 {
  color: var(--mces-orange-dark);
}

/* Reuse the black CTA card style from Our Services, but allow it to fill
   the taller category-card column height on this page */
.mces-service-cta-card.h-100 {
  height: 100%;
  min-height: 380px;
}