/*
Theme Name: Orange Powder Coat
Theme URI: https://www.orangepowdercoat.com
Author: Orange Powder Coat
Author URI: https://www.orangepowdercoat.com
Description: Custom industrial business theme for Orange Powder Coat - premium powder coating & sandblasting in Orange NSW. Includes a self-serve project gallery (custom post type with category filtering and lightbox).
Version: 1.3.2
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: orange-powder-coat
*/

/* =============================================
   ORANGE POWDER COAT — SHARED STYLESHEET
============================================= */
:root {
  --red: #E31E24;
  --red-dark: #b81519;
  --blue: #1B4F9B;
  --yellow: #F5C518;
  --green: #2E8B57;
  --charcoal: #1a1a1a;
  --charcoal-mid: #2d2d2d;
  --charcoal-light: #3f3f3f;
  --white: #ffffff;
  --off-white: #f5f4f2;
  --light-gray: #e8e6e1;
  --mid-gray: #9a9a9a;
  --text-dark: #1a1a1a;
  --text-mid: #555555;
  --nav-h: 76px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.18);
  --shadow-red: 0 8px 32px rgba(227,30,36,0.25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Barlow', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 24px); }
img { max-width: 100%; height: auto; }
* { -webkit-tap-highlight-color: transparent; }
.section { padding: 100px 0; }

/* Brand stripe */
.stripe-divider {
  height: 6px;
  background: linear-gradient(90deg,
    var(--red) 0%, var(--red) 25%,
    var(--blue) 25%, var(--blue) 50%,
    var(--yellow) 50%, var(--yellow) 75%,
    var(--green) 75%, var(--green) 100%);
}

/* Section headers */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--red);
}
.section-label.centered { justify-content: center; }
.section-label.centered::before { display: none; }
.section-label.centered::after {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--red);
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--charcoal);
  text-transform: uppercase;
}
.section-title span { color: var(--red); }

.section-sub {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 620px;
  margin-top: 16px;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: var(--transition);
}
.btn:hover::after { opacity: 1; }
.btn-primary { background: var(--red); color: var(--white); box-shadow: var(--shadow-red); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 12px 40px rgba(227,30,36,0.35); }
.btn-outline { border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--charcoal); transform: translateY(-2px); }
.btn-dark { background: var(--charcoal); color: var(--white); }
.btn-dark:hover { background: var(--charcoal-mid); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline-dark { border: 2px solid var(--charcoal); color: var(--charcoal); }
.btn-outline-dark:hover { background: var(--charcoal); color: var(--white); transform: translateY(-2px); }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* =============================================
   NAVBAR
============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(26,26,26,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}
#navbar.scrolled { height: 64px; box-shadow: 0 4px 30px rgba(0,0,0,0.3); }
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-logo-img {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  transition: var(--transition);
}
.nav-logo:hover .nav-logo-img { transform: scale(1.05); }
.nav-logo-icon {
  width: 44px; height: 44px; background: var(--red); border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 20px; color: white; letter-spacing: -1px;
}
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 18px; color: var(--white); text-transform: uppercase; letter-spacing: 1px; }
.nav-logo-tagline { font-size: 10px; color: var(--mid-gray); letter-spacing: 2px; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.75); padding: 8px 14px; border-radius: 2px;
  transition: var(--transition); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 4px; left: 14px; right: 14px; height: 2px;
  background: var(--red); transform: scaleX(0); transition: var(--transition); transform-origin: left;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-phone { font-family: 'Oswald', sans-serif; font-size: 14px; font-weight: 600; color: var(--yellow); letter-spacing: 0.5px; display: flex; align-items: center; gap: 6px; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--charcoal); padding: 20px 24px 32px; z-index: 999;
  border-top: 3px solid var(--red); flex-direction: column; gap: 4px; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Oswald', sans-serif; font-size: 18px; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.8); padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08); transition: var(--transition);
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--red); padding-left: 8px; }
.mobile-menu .btn { margin-top: 16px; justify-content: center; }

/* =============================================
   HERO (HOME) — FIXED LAYOUT
============================================= */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 64px;
}
/* When the viewport is too short to center everything, switch to top-aligned
   so the description, buttons and stats can never overlap. */
@media (max-height: 860px) {
  #hero { justify-content: flex-start; }
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('assets/images/signage-1000-red.webp');
  background-size: cover; background-position: center;
  transform: scale(1.05); animation: heroZoom 12s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(10,10,10,0.93) 0%, rgba(10,10,10,0.80) 45%, rgba(10,10,10,0.55) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-content { max-width: 760px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(227,30,36,0.15); border: 1px solid rgba(227,30,36,0.4); border-radius: 2px;
  padding: 8px 16px; margin-bottom: 28px; animation: fadeInDown 0.8s ease 0.2s both;
}
.hero-badge span { font-family: 'Oswald', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.9); }
.hero-badge-dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{ opacity: 1; transform: scale(1);} 50%{ opacity: .5; transform: scale(1.4);} }
.hero-title {
  font-family: 'Barlow Condensed', sans-serif; font-size: clamp(48px, 8.5vw, 104px); font-weight: 900;
  line-height: 0.92; text-transform: uppercase; color: var(--white); margin-bottom: 8px;
  animation: fadeInUp 0.9s ease 0.3s both;
}
.hero-title .outline { -webkit-text-stroke: 2px var(--white); color: transparent; }
.hero-title .red { color: var(--red); }
.hero-sub {
  font-family: 'Barlow Condensed', sans-serif; font-size: clamp(18px, 2.5vw, 26px); font-weight: 400;
  letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 20px;
  animation: fadeInUp 0.9s ease 0.45s both;
}
.hero-desc {
  font-size: 17px; color: rgba(255,255,255,0.75); max-width: 540px; line-height: 1.7; margin-bottom: 36px;
  animation: fadeInUp 0.9s ease 0.6s both;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeInUp 0.9s ease 0.75s both; }

/* Stats sit in normal flow below content — clear:both guarantees no overlap */
.hero-stats { margin-top: 40px; clear: both; animation: fadeInUp 0.9s ease 0.9s both; }
.hero-stats-inner {
  display: flex; gap: 0; border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 28px; max-width: 640px; flex-wrap: wrap;
}
.hero-stat { flex: 1; min-width: 140px; }
.hero-stat + .hero-stat { border-left: 1px solid rgba(255,255,255,0.14); padding-left: 32px; }
.hero-stat-num { font-family: 'Barlow Condensed', sans-serif; font-size: 44px; font-weight: 900; color: var(--white); line-height: 1; }
.hero-stat-num .suffix { color: var(--red); }
.hero-stat-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-top: 6px; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

/* =============================================
   PAGE HERO (interior pages)
============================================= */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 80px) 0 80px;
  background: var(--charcoal);
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-size: cover; background-position: center; opacity: 0.18;
}
.page-hero.bg-about::before { background-image: url('assets/images/lacework-verandah.webp'); }
.page-hero.bg-services::before { background-image: url('assets/images/ute-tray-black.webp'); }
.page-hero.bg-gallery::before { background-image: url('assets/images/wire-chair-red.webp'); }
.page-hero.bg-contact::before { background-image: url('assets/images/birdcages-black.webp'); }
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(20,20,20,0.92), rgba(20,20,20,0.7));
}
.page-hero-inner { position: relative; z-index: 2; }
.page-hero h1 {
  font-family: 'Barlow Condensed', sans-serif; font-size: clamp(40px, 6vw, 72px); font-weight: 900;
  text-transform: uppercase; color: var(--white); line-height: 1; margin-bottom: 16px;
}
.page-hero h1 span { color: var(--red); }
.page-hero p { font-size: 17px; color: rgba(255,255,255,0.65); max-width: 560px; }
.breadcrumb { display: flex; gap: 10px; align-items: center; margin-bottom: 24px; font-family: 'Oswald', sans-serif; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.breadcrumb a { color: rgba(255,255,255,0.5); transition: var(--transition); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: var(--red); }
.breadcrumb .sep { color: rgba(255,255,255,0.3); }

/* =============================================
   FEATURES
============================================= */
.bg-offwhite { background: var(--off-white); }
.features-header { text-align: center; margin-bottom: 64px; }
.features-header .section-sub { margin: 16px auto 0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  background: var(--white); border-radius: 4px; padding: 40px 32px; border: 1px solid var(--light-gray);
  position: relative; overflow: hidden; transition: var(--transition);
}
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--red); transform: scaleX(0); transition: var(--transition); transform-origin: left; }
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:nth-child(2)::before { background: var(--blue); }
.feature-card:nth-child(3)::before { background: var(--yellow); }
.feature-card:nth-child(4)::before { background: var(--green); }
.feature-icon { width: 56px; height: 56px; border-radius: 3px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; background: rgba(227,30,36,0.08); color: var(--red); transition: var(--transition); }
.feature-card:nth-child(2) .feature-icon { background: rgba(27,79,155,0.08); color: var(--blue); }
.feature-card:nth-child(3) .feature-icon { background: rgba(245,197,24,0.12); color: #c9a000; }
.feature-card:nth-child(4) .feature-icon { background: rgba(46,139,87,0.08); color: var(--green); }
.feature-card:hover .feature-icon { transform: scale(1.1); }
.feature-title { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--charcoal); margin-bottom: 12px; }
.feature-desc { font-size: 15px; color: var(--text-mid); line-height: 1.65; }

/* =============================================
   ABOUT
============================================= */
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-image-wrap { position: relative; }
.about-img-main { width: 100%; height: 560px; object-fit: cover; border-radius: 4px; }
.about-img-accent { position: absolute; bottom: -32px; right: -32px; width: 220px; height: 180px; object-fit: cover; border-radius: 4px; border: 6px solid var(--white); box-shadow: var(--shadow-lg); }
.about-badge { position: absolute; top: 32px; left: -24px; background: var(--red); color: var(--white); padding: 20px 24px; border-radius: 3px; box-shadow: var(--shadow-red); text-align: center; }
.about-badge-num { font-family: 'Barlow Condensed', sans-serif; font-size: 52px; font-weight: 900; line-height: 1; }
.about-badge-text { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; opacity: 0.85; line-height: 1.3; margin-top: 4px; }
.about-content { padding-right: 20px; }
.about-services { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 28px 0 36px; }
.about-service-item { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--text-mid); padding: 10px 0; border-bottom: 1px solid var(--light-gray); }
.about-service-item::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex-shrink: 0; }

/* Values cards (about page) */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.value-card { background: var(--white); border: 1px solid var(--light-gray); border-radius: 4px; padding: 36px; transition: var(--transition); }
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.value-num { font-family: 'Barlow Condensed', sans-serif; font-size: 40px; font-weight: 900; color: var(--red); line-height: 1; margin-bottom: 12px; }
.value-title { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 700; text-transform: uppercase; color: var(--charcoal); margin-bottom: 10px; }
.value-desc { font-size: 15px; color: var(--text-mid); line-height: 1.65; }

/* =============================================
   COUNTER STRIP
============================================= */
.counter-strip { background: var(--charcoal); padding: 60px 0; position: relative; overflow: hidden; }
.counter-strip::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--red) 0%, var(--red) 25%, var(--blue) 25%, var(--blue) 50%, var(--yellow) 50%, var(--yellow) 75%, var(--green) 75%, var(--green) 100%); }
.counters-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.counter-item { text-align: center; padding: 20px 24px; position: relative; }
.counter-item + .counter-item::before { content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px; background: rgba(255,255,255,0.1); }
.counter-num { font-family: 'Barlow Condensed', sans-serif; font-size: 64px; font-weight: 900; color: var(--white); line-height: 1; display: flex; justify-content: center; align-items: baseline; gap: 2px; }
.counter-num .suffix { color: var(--red); font-size: 40px; }
.counter-label { font-family: 'Oswald', sans-serif; font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-top: 8px; }

/* =============================================
   SERVICES
============================================= */
.services-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; gap: 24px; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card { background: var(--white); border-radius: 4px; overflow: hidden; border: 1px solid var(--light-gray); transition: var(--transition); position: relative; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card-img { height: 200px; overflow: hidden; position: relative; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .service-card-img img { transform: scale(1.08); }
.service-card-img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,26,26,0.6), transparent); }
.service-card-icon { position: absolute; bottom: 16px; left: 20px; width: 44px; height: 44px; background: var(--red); border-radius: 3px; display: flex; align-items: center; justify-content: center; color: white; }
.service-card-body { padding: 28px; }
.service-card-title { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 700; text-transform: uppercase; color: var(--charcoal); margin-bottom: 10px; }
.service-card-desc { font-size: 14px; color: var(--text-mid); line-height: 1.65; margin-bottom: 20px; }
.service-card-link { font-family: 'Oswald', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--red); display: inline-flex; align-items: center; gap: 6px; transition: var(--transition); }
.service-card-link:hover { gap: 10px; }

/* Detailed services list (services page) */
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-bottom: 100px; }
.service-detail:last-child { margin-bottom: 0; }
.service-detail.reverse .service-detail-img { order: 2; }
.service-detail-img img { width: 100%; height: 420px; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow-md); }
.service-detail-num { font-family: 'Barlow Condensed', sans-serif; font-size: 80px; font-weight: 900; color: var(--light-gray); line-height: 0.8; margin-bottom: 8px; }
.service-detail h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 36px; font-weight: 800; text-transform: uppercase; color: var(--charcoal); margin-bottom: 16px; }
.service-detail p { font-size: 16px; color: var(--text-mid); line-height: 1.75; margin-bottom: 24px; }
.service-detail ul { display: flex; flex-direction: column; gap: 10px; }
.service-detail ul li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-mid); }
.service-detail ul li::before { content: ''; width: 8px; height: 8px; background: var(--red); border-radius: 50%; flex-shrink: 0; }

/* =============================================
   GALLERY
============================================= */
.bg-charcoal { background: var(--charcoal); }
.bg-charcoal .section-title { color: var(--white); }
.bg-charcoal .section-sub { color: rgba(255,255,255,0.55); }
.gallery-header { margin-bottom: 48px; }
.gallery-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; }
.filter-btn { font-family: 'Oswald', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; padding: 9px 20px; border: 1px solid rgba(255,255,255,0.2); border-radius: 2px; color: rgba(255,255,255,0.6); transition: var(--transition); background: transparent; }
.filter-btn:hover, .filter-btn.active { background: var(--red); border-color: var(--red); color: var(--white); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 3px; cursor: pointer; aspect-ratio: 1; transition: var(--transition); }
.gallery-item:nth-child(1), .gallery-item:nth-child(5) { grid-column: span 2; aspect-ratio: 2/1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item-overlay { position: absolute; inset: 0; background: rgba(227,30,36,0.78); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; opacity: 0; transition: var(--transition); padding: 20px; text-align: center; }
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay svg { width: 36px; height: 36px; fill: white; }
.gallery-item-overlay .gallery-label { font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: white; }
.gallery-item.hidden { display: none; }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.92); align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox-content { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-content img { max-width: 90vw; max-height: 78vh; object-fit: contain; border-radius: 3px; }
.lightbox-caption { text-align: center; color: white; font-family: 'Oswald', sans-serif; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; margin-top: 16px; }
.lightbox-close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 20px; transition: var(--transition); }
.lightbox-close:hover { background: var(--red); }
.lightbox-nav { position: absolute; top: 40%; transform: translateY(-50%); width: 48px; height: 48px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 22px; transition: var(--transition); }
.lightbox-nav:hover { background: var(--red); }
.lightbox-prev { left: -64px; }
.lightbox-next { right: -64px; }

/* =============================================
   TESTIMONIALS
============================================= */
.testimonials-header { text-align: center; margin-bottom: 64px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial-card { background: var(--off-white); border-radius: 4px; padding: 40px 36px; position: relative; border: 1px solid var(--light-gray); transition: var(--transition); }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-quote { font-size: 64px; font-family: Georgia, serif; line-height: 0.8; color: var(--red); margin-bottom: 16px; opacity: 0.3; }
.testimonial-stars { display: flex; gap: 3px; margin-bottom: 16px; }
.star { color: var(--yellow); font-size: 18px; }
.testimonial-text { font-size: 15px; line-height: 1.75; color: var(--text-mid); margin-bottom: 28px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--light-gray); padding-top: 20px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.testimonial-name { font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 700; text-transform: uppercase; color: var(--charcoal); }
.testimonial-role { font-size: 12px; color: var(--mid-gray); letter-spacing: 1px; }

/* =============================================
   CTA BANNER
============================================= */
.cta-banner { background: var(--red); padding: 72px 0; position: relative; overflow: hidden; }
.cta-banner::after { content: 'OPC'; position: absolute; right: 40px; top: 50%; transform: translateY(-50%); font-family: 'Barlow Condensed', sans-serif; font-size: 200px; font-weight: 900; color: rgba(255,255,255,0.08); pointer-events: none; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; z-index: 2; flex-wrap: wrap; }
.cta-text h2 { font-family: 'Barlow Condensed', sans-serif; font-size: clamp(32px, 4vw, 48px); font-weight: 900; text-transform: uppercase; color: white; line-height: 1; }
.cta-text p { color: rgba(255,255,255,0.85); font-size: 17px; margin-top: 8px; }
.cta-banner .btn { background: white; color: var(--red); }
.cta-banner .btn:hover { background: var(--charcoal); color: white; }

/* =============================================
   CONTACT
============================================= */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.bg-charcoal.contact-section { position: relative; overflow: hidden; }
.bg-charcoal.contact-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--red) 0%, var(--red) 25%, var(--blue) 25%, var(--blue) 50%, var(--yellow) 50%, var(--yellow) 75%, var(--green) 75%, var(--green) 100%); }
.bg-charcoal .section-label { color: rgba(255,255,255,0.6); }
.bg-charcoal .section-label::before { background: rgba(255,255,255,0.3); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-family: 'Oswald', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.form-group input, .form-group textarea { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 2px; padding: 14px 18px; font-family: 'Barlow', sans-serif; font-size: 15px; color: var(--white); transition: var(--transition); outline: none; resize: none; }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--red); background: rgba(227,30,36,0.05); }
.form-group textarea { height: 140px; }
.form-error { font-size: 12px; color: var(--yellow); display: none; }
.form-group.has-error input, .form-group.has-error textarea { border-color: var(--yellow); }
.form-group.has-error .form-error { display: block; }
.form-success { display: none; background: rgba(46,139,87,0.15); border: 1px solid rgba(46,139,87,0.4); border-radius: 2px; padding: 16px 20px; color: #6fcf97; font-size: 14px; font-weight: 500; margin-top: 8px; }
.contact-info { display: flex; flex-direction: column; }
.contact-info-title { font-family: 'Barlow Condensed', sans-serif; font-size: 32px; font-weight: 700; text-transform: uppercase; color: var(--white); margin-bottom: 32px; }
.contact-info-items { display: flex; flex-direction: column; margin-bottom: 36px; }
.contact-info-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.06); align-items: flex-start; }
.contact-info-icon { width: 40px; height: 40px; background: rgba(227,30,36,0.15); border-radius: 3px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-info-label { font-family: 'Oswald', sans-serif; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 4px; }
.contact-info-value { font-size: 15px; color: rgba(255,255,255,0.85); line-height: 1.5; }
.contact-info-value a { color: rgba(255,255,255,0.85); transition: var(--transition); }
.contact-info-value a:hover { color: var(--red); }
.hours-grid { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 4px; padding: 24px; margin-bottom: 32px; }
.hours-title { font-family: 'Oswald', sans-serif; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.hours-row { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.hours-row:last-child { border-bottom: none; }
.hours-day { color: rgba(255,255,255,0.6); }
.hours-time { color: var(--white); font-weight: 500; }
.hours-time.closed { color: var(--mid-gray); }
.map-placeholder { border-radius: 4px; overflow: hidden; height: 220px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); position: relative; }
.map-placeholder iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; filter: grayscale(80%) invert(90%); }

/* =============================================
   FOOTER
============================================= */
footer { background: #0f0f0f; padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer-logo-img {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.footer-logo-icon { width: 44px; height: 44px; background: var(--red); border-radius: 3px; display: flex; align-items: center; justify-content: center; font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 20px; color: white; }
.footer-logo-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 20px; color: var(--white); text-transform: uppercase; }
.footer-brand-desc { font-size: 14px; color: rgba(255,255,255,0.4); line-height: 1.7; margin-bottom: 24px; }
.footer-socials { display: flex; gap: 10px; }
.footer-social { width: 36px; height: 36px; background: rgba(255,255,255,0.06); border-radius: 3px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); transition: var(--transition); border: 1px solid rgba(255,255,255,0.08); }
.footer-social:hover { background: var(--red); border-color: var(--red); color: white; }
.footer-col-title { font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.35); transition: var(--transition); display: flex; align-items: center; gap: 8px; }
.footer-links a::before { content: '—'; color: var(--red); font-size: 12px; opacity: 0.6; transition: var(--transition); }
.footer-links a:hover { color: rgba(255,255,255,0.8); }
.footer-links a:hover::before { opacity: 1; }
.footer-contact-list { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-list li { font-size: 14px; color: rgba(255,255,255,0.35); line-height: 1.5; }
.footer-contact-list a { color: rgba(255,255,255,0.35); transition: var(--transition); }
.footer-contact-list a:hover { color: var(--red); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; gap: 16px; flex-wrap: wrap; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.2); }
.footer-stripe { height: 3px; background: linear-gradient(90deg, var(--red) 0%, var(--red) 25%, var(--blue) 25%, var(--blue) 50%, var(--yellow) 50%, var(--yellow) 75%, var(--green) 75%, var(--green) 100%); }

/* =============================================
   BACK TO TOP
============================================= */
#backToTop { position: fixed; bottom: 32px; right: 32px; width: 48px; height: 48px; background: var(--red); border-radius: 3px; display: flex; align-items: center; justify-content: center; color: white; z-index: 500; opacity: 0; transform: translateY(20px); transition: var(--transition); box-shadow: var(--shadow-red); }
#backToTop.visible { opacity: 1; transform: translateY(0); }
#backToTop:hover { background: var(--red-dark); transform: translateY(-4px); }

/* =============================================
   RESPONSIVE
============================================= */
/* =============================================
   RESPONSIVE  —  desktop ≥1025 / tablet ≤1024 / large phone ≤768 / phone ≤480 / small ≤360
============================================= */

/* ---- Large desktop: widen container a touch ---- */
@media (min-width: 1440px) {
  .container { max-width: 1320px; }
}

/* ---- TABLET (≤1024px) ---- */
@media (max-width: 1024px) {
  .section { padding: 84px 0; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 60px; }
  .about-image-wrap { order: -1; max-width: 640px; }
  .about-img-main { height: clamp(360px, 50vw, 520px); }
  .about-img-accent { width: 160px; height: 130px; right: -16px; bottom: -20px; }
  .about-badge { left: 16px; }
  .about-content { padding-right: 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-item:nth-child(1) { grid-column: span 2; }
  .gallery-item:nth-child(5) { grid-column: span 1; aspect-ratio: 1; }
  .counters-grid { grid-template-columns: repeat(2, 1fr); gap: 8px 0; }
  .counter-item:nth-child(3)::before { display: none; }
  .service-detail { grid-template-columns: 1fr; gap: 32px; margin-bottom: 64px; }
  .service-detail-img { order: -1; }
  .service-detail.reverse .service-detail-img { order: -1; }
  .service-detail-img img { height: clamp(280px, 45vw, 420px); }
}

/* ---- LARGE PHONE / SMALL TABLET (≤768px) ---- */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .section { padding: 64px 0; }

  /* Nav → hamburger */
  .nav-links, .nav-cta .btn, .nav-phone { display: none; }
  .hamburger { display: flex; }

  /* Single / paired column layouts */
  .features-grid, .services-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-item:nth-child(1), .gallery-item:nth-child(5) { grid-column: span 2; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: span 2; }

  /* Hero stats */
  .hero-stats-inner { gap: 0; }
  .hero-stat { min-width: 100px; }
  .hero-stat + .hero-stat { padding-left: 20px; }
  .hero-stat-num { font-size: 34px; }

  .services-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .counters-grid { grid-template-columns: repeat(2, 1fr); }
  .counter-item::before { display: none !important; }

  /* Lightbox controls move inside the viewport on touch screens */
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-content { max-width: 94vw; }
  .lightbox-close { top: 8px; right: 8px; }

  .cta-inner { flex-direction: column; align-items: flex-start; gap: 24px; }

  /* Comfortable tap targets */
  .btn { padding: 14px 26px; }
  .mobile-menu a { padding: 16px 0; }
}

/* ---- PHONE (≤480px) ---- */
@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:nth-child(1), .gallery-item:nth-child(5) { grid-column: span 1; aspect-ratio: 4/3; }
  .gallery-item { aspect-ratio: 4/3; }
  .counters-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }

  /* Stack hero buttons full-width */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; width: 100%; }

  /* Stack hero stats vertically */
  .hero-stats-inner { flex-direction: column; }
  .hero-stat { min-width: 0; }
  .hero-stat + .hero-stat { border-left: none; padding-left: 0; border-top: 1px solid rgba(255,255,255,0.14); padding-top: 18px; margin-top: 18px; }

  .about-img-accent { width: 120px; height: 100px; }
  .about-services { grid-template-columns: 1fr; }
  .contact-form .btn { width: 100%; justify-content: center; }
  .gallery-filters { gap: 6px; }
  .filter-btn { padding: 8px 14px; font-size: 11px; }
}

/* ---- SMALL PHONE (≤360px) ---- */
@media (max-width: 360px) {
  .container { padding: 0 14px; }
  .nav-logo-tagline { display: none; }
  .hero-badge span { font-size: 9px; letter-spacing: 2px; }
  .btn { padding: 13px 20px; font-size: 13px; }
}

/* ---- Touch devices: disable hover-only transforms that feel sticky ---- */
@media (hover: none) {
  .feature-card:hover, .service-card:hover, .testimonial-card:hover,
  .gallery-item:hover { transform: none; }
}

/* =============================================
   WORDPRESS INTEGRATION ADJUSTMENTS
   (added for the custom theme — keeps wp_nav_menu
   output and plugin forms on-brand)
============================================= */

/* Mobile menu: handle wp_nav_menu <li> wrappers as well as bare <a> */
.mobile-menu ul { list-style: none; margin: 0; padding: 0; width: 100%; }
.mobile-menu li { list-style: none; }
.mobile-menu li a { display: block; }

/* Primary nav: ensure wp_nav_menu <li> items match the original styling */
.nav-links { list-style: none; margin: 0; padding: 0; }
.nav-links li { list-style: none; }

/* Current-page highlight from WordPress body/menu classes */
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a { color: var(--red); }

/* WordPress admin bar offset so the fixed navbar clears it */
body.admin-bar #navbar { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar #navbar { top: 46px; }
}

/* Contact form placeholder (shown until WPForms shortcode is set) */
.contact-form-wrap { width: 100%; }
.contact-form-placeholder {
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 28px;
}
.contact-form-placeholder code {
  background: rgba(255,255,255,0.1);
  padding: 2px 6px; border-radius: 4px; font-size: 13px; color: #fff;
}

/* WPForms styling overrides so the plugin form matches the dark section */
.contact-form-wrap .wpforms-field-label {
  color: rgba(255,255,255,0.85) !important;
  font-family: 'Barlow', sans-serif !important;
  font-weight: 600 !important;
}
.contact-form-wrap .wpforms-field input[type=text],
.contact-form-wrap .wpforms-field input[type=email],
.contact-form-wrap .wpforms-field input[type=tel],
.contact-form-wrap .wpforms-field textarea {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 14px 16px !important;
}
.contact-form-wrap .wpforms-field input::placeholder,
.contact-form-wrap .wpforms-field textarea::placeholder { color: rgba(255,255,255,0.4) !important; }
.contact-form-wrap .wpforms-submit {
  background: var(--red) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 14px 30px !important;
  font-family: 'Oswald', sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background .2s ease !important;
}
.contact-form-wrap .wpforms-submit:hover { background: #b81519 !important; }

/* Generic WordPress content (page.php / index.php fallback) */
.opc-content { font-size: 17px; line-height: 1.8; color: var(--text-dark); }
.opc-content h2 { font-family: 'Barlow Condensed', sans-serif; font-size: 32px; margin: 32px 0 12px; }
.opc-content h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 24px; margin: 24px 0 10px; }
.opc-content p { margin-bottom: 18px; }
.opc-content img { border-radius: 10px; height: auto; }
.opc-content a { color: var(--red); text-decoration: underline; }

/* =============================================
   BLOCK-EDITOR CONTENT BRIDGING
   Makes core WordPress blocks (used in the editable
   page content) align with the theme's design classes.
   Uses high specificity + !important to override the
   default wp-block-group / layout styles that otherwise
   force everything into a single stacked column.
============================================= */

/* FEATURES GRID — works whether the saved content uses the new Columns block
   or the older Group block. Force the container into a flex row and each card
   to share the width, overriding WP's default full-width block behaviour. */
.opc-editable-wrap .features-grid,
.opc-editable-wrap .features-grid > .wp-block-group__inner-container {
  display: flex !important;
  flex-wrap: wrap !important;
  flex-direction: row !important;
  gap: 24px !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
}
/* When an inner-container exists (Group block), the outer element shouldn't flex */
.opc-editable-wrap .features-grid:has(> .wp-block-group__inner-container) {
  display: block !important;
}
/* Each card (whether wp-block-column or wp-block-group) shares the row evenly */
.opc-editable-wrap .features-grid > .feature-card,
.opc-editable-wrap .features-grid > .wp-block-group__inner-container > .feature-card,
.opc-editable-wrap .features-grid .feature-card {
  flex: 1 1 200px !important;
  width: auto !important;
  max-width: none !important;
  min-width: 200px;
  margin: 0 !important;
}

/* ABOUT / SERVICES COLUMNS — make core columns sit side by side and fill width */
.opc-editable-wrap .wp-block-columns {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  margin: 0 0 40px;
  max-width: 100%;
}
.opc-editable-wrap .wp-block-columns .wp-block-column {
  flex: 1 1 0 !important;
  min-width: 0;
}
/* Cap image height inside editable content so a mis-sized image can't blow out
   the layout or create huge gaps */
.opc-editable-wrap .wp-block-image { margin: 0; }
.opc-editable-wrap .wp-block-image img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* Make the editable wrapper span the section width (override constrained layout) */
.opc-editable-wrap > .wp-block-group__inner-container,
.opc-editable-wrap .entry-content { max-width: 100%; }

/* Prevent the last block's margin from collapsing through the section, which
   left the about-strip image flush against the next (counter) strip. The flex
   display on the container already stops collapse, but this is belt-and-braces. */
.opc-editable-wrap .container { display: flow-root; }
.opc-editable-wrap .wp-block-columns:last-child,
.opc-editable-wrap > .container > *:last-child { margin-bottom: 0 !important; }

/* Non-:has() fallback — if cards live inside an inner-container, make THAT the
   flex row directly (works in all browsers). */
.opc-editable-wrap .features-grid > .wp-block-group__inner-container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 24px !important;
  width: 100% !important;
}

/* Core (block editor) buttons styled to match the theme's .btn.
   The block outputs a wrapper <div class="wp-block-button btn btn-primary"> with
   an inner <a class="wp-block-button__link">. We must style the INNER link and
   strip any box-shadow/background from the wrapper, otherwise the theme's
   .btn-primary glow renders as a halo around (not on) the button. */
.opc-editable-wrap .wp-block-button,
.opc-editable-wrap .wp-block-button.btn,
.opc-editable-wrap .wp-block-button.btn-primary {
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}
.opc-editable-wrap .wp-block-button.btn::after,
.opc-editable-wrap .wp-block-button::after { display: none !important; content: none !important; }

.opc-editable-wrap .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff;
  font-family: 'Oswald', sans-serif; font-size: 14px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 14px 32px; border-radius: 2px;
  text-decoration: none; border: none;
  box-shadow: var(--shadow-red);
  transition: var(--transition);
}
.opc-editable-wrap .wp-block-button__link:hover,
.opc-editable-wrap .wp-block-button__link:focus {
  background: var(--red-dark); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(227,30,36,0.35);
  text-decoration: none;
}
/* Outline variant if used */
.opc-editable-wrap .wp-block-button.btn-outline .wp-block-button__link {
  background: transparent; border: 2px solid var(--red); color: var(--red);
  box-shadow: none;
}
.opc-editable-wrap .wp-block-button.btn-outline .wp-block-button__link:hover {
  background: var(--red); color: #fff;
}

/* Editor preview: keep a sensible max width so columns don't sprawl */
.editor-styles-wrapper .opc-editable-wrap { max-width: 1180px; margin: 0 auto; }

/* Images inside editable content keep rounded corners */
/* Services blocks spacing in the editable wrapper */
.opc-services-blocks .wp-block-columns { margin-bottom: 56px; }

/* Responsive */
@media (max-width: 1024px) {
  .opc-editable-wrap .features-grid .feature-card { flex-basis: calc(50% - 12px) !important; }
}
@media (max-width: 782px) {
  /* Force the editable feature grid AND the about/service columns to stack
     vertically on phones. WordPress's own column CSS and the inline 50% widths
     fight this, so we override forcefully. */
  .opc-editable-wrap .features-grid {
    flex-direction: column !important;
  }
  .opc-editable-wrap .features-grid .feature-card {
    flex-basis: 100% !important; width: 100% !important; max-width: 100% !important;
  }
  .opc-editable-wrap .wp-block-columns {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 28px !important;
    align-items: stretch !important;
  }
  .opc-editable-wrap .wp-block-columns > .wp-block-column {
    flex: 1 1 100% !important;
    flex-basis: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  /* Image sits cleanly above the text, never overlapping it */
  .opc-editable-wrap .wp-block-image img {
    max-height: 320px;
    height: auto !important;
  }
}
