/*
Theme Name:  Hello Elementor Child
Template:    hello-elementor
Description: Child theme for Spot On Panel Beaters
Version:     1.1.7
*/

/* =========================================================
   DESIGN TOKENS
   Dark mode design. All hex values live ONLY here.
   Use var() everywhere else.
   ========================================================= */

:root {

  /* --- Brand --- */
  --color-primary:      #F3002D;   /* Brand Red — buttons, CTAs, accents */
  --color-primary-dark: #C0001F;   /* Darker red for hover states */

  /* --- Backgrounds --- */
  --color-bg:      #000000;        /* Main page background */
  --color-bg-card: #141414;        /* Cards, section backgrounds, footer */
  --color-border:  #646464;        /* Borders, dividers */

  /* --- Text --- */
  --color-text:        #FAFAFA;    /* Primary text — off-white on dark bg */
  --color-text-muted:  rgba(255, 255, 255, 0.60);

  /* --- Overlays (used for nav, badge backgrounds) --- */
  --color-overlay-nav:   rgba(255, 255, 255, 0.12);
  --color-overlay-badge: rgba(255, 255, 255, 0.20);

  /* --- CTA Section --- */
  --color-cta-red: #FF0029;

  /* --- Utility --- */
  --color-white:            #FFFFFF;
  --color-black:            #000000;
  --color-near-black:       #110B09;         /* Label text on light/white surfaces */
  --color-near-black-muted: rgba(17, 11, 9, 0.6); /* Muted text on light surfaces */
  --color-white-hover:      #ececec;         /* Hover tint for white buttons */
  --color-star:             #F9AB00;         /* Google review star / gold rating */
  --color-google:           #4285F4;         /* Google branding (review badge) */

  /* --- Typography --- */
  --font-heading: 'Figtree', sans-serif;
  --font-body:    'Figtree', sans-serif;

  /* --- Font Sizes --- */
  --font-size-xs:   12px;   /* labels, badges */
  --font-size-sm:   16px;   /* body small */
  --font-size-base: 20px;   /* body normal */
  --font-size-lg:   31px;   /* feature headings */
  --font-size-xl:   39px;   /* hero subheading */
  --font-size-2xl:  49px;   /* section headings */
  --font-size-3xl:  61px;   /* hero primary heading */

  /* --- Line Heights --- */
  --line-height-tight:   1.15;   /* large display headings */
  --line-height-heading: 1.20;   /* section headings */
  --line-height-body:    1.60;   /* body text */

  /* --- Spacing Scale --- */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 80px;

  /* --- Layout --- */
  --max-width: 1140px;

  /* --- Base Font Size --- */
  --font-size-body: 16px;           /* browser/body base — overrides Hello Elementor default */

  /* --- Border Radius --- */
  --border-radius-sm: 4px;
  --border-radius:    8px;
  --border-radius-lg: 12px;

  /* --- Shadow --- */
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.50);

}

/* =========================================================
   BASE OVERRIDES
   ========================================================= */

html,
body {
  font-size: 16px;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}

/* Elementor e-parent containers get max-width: 100%, but e-child containers
   don't. At viewports between 768px and the content width (~1140px), e-child
   containers sized by --container-max-width overflow their parent.
   This caps all containers to their parent width. */
.e-con {
  max-width: 100%;
}

/* =========================================================
   HOME — HERO SECTION (Section 1)
   ========================================================= */

/* Section badge pill */
.so-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--color-white);
  border: none;
  border-radius: 100px;
  padding: 8px 18px;
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--color-near-black);
  letter-spacing: 0.02em;
}

.so-badge--dark {
  background: var(--color-overlay-badge);
  color: var(--color-text);
}

/* Red dot via ::before — targets heading titles, paragraphs, and bare spans
   (dynamic Post Terms tags on Text Editor widgets render as a direct <span>). */
.so-badge .elementor-heading-title::before,
.so-badge p:not(.elementor-heading-title)::before,
.so-badge > span::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-primary);
  margin-right: 8px;
  vertical-align: middle;
}

.so-badge--on-red .elementor-heading-title::before,
.so-badge--on-red p:not(.elementor-heading-title)::before,
.so-badge--on-red > span::before {
  background-color: var(--color-white);
}

/* Legacy span dot — hidden, dot now comes from CSS */
.so-badge__dot {
  display: none;
}

.so-badge--red {
  background: var(--color-primary);
  color: var(--color-white);
}


/* Reusable red text link — used inside widget descriptions */
.so-link--primary { color: var(--color-primary); font-weight: 600; text-decoration: none; }
.so-link--primary:hover { color: var(--color-primary-dark); }

/* Ghost / outline button — _css_classes goes on widget wrapper, so target inner button */
.so-btn--ghost .elementor-button {
  background: transparent;
  border: 2px solid var(--color-white);
}
.so-btn--ghost .elementor-button:hover {
  background: var(--color-white);
  color: var(--color-black);
}

/* Hero heading */
.so-hero__heading {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  line-height: var(--line-height-tight);
  color: var(--color-text);
  margin: 0;
}

.so-hero__heading--red {
  color: var(--color-primary);
}

.so-hero__heading span {
  color: var(--color-cta-red);
}

/* Hero subtext */
.so-hero__subtext {
  font-size: var(--font-size-sm);
  font-weight: 400;
  line-height: var(--line-height-body);
  color: var(--color-text);
  margin: 0;
}

/* Combined trust badge pill */
.so-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-overlay-badge);
  border-radius: 100px;
  padding: 14px 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.so-trust-badge__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
}

.so-trust-badge__item svg {
  flex-shrink: 0;
}

.so-trust-badge__sep {
  color: rgba(255, 255, 255, 0.40);
  font-size: 14px;
  line-height: 1;
  user-select: none;
}

/* Phone CTA */
.so-phone-cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
}

.so-phone-cta__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-white);
  border: none;
  flex-shrink: 0;
  text-decoration: none;
}

.so-phone-cta__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.so-phone-cta__label {
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5rem;
}

.so-phone-cta__number {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

.so-phone-cta:hover .so-phone-cta__number {
  color: var(--color-primary);
}

.so-phone-cta:hover .so-phone-cta__icon {
  background: var(--color-primary);
}

.so-phone-cta:hover .so-phone-cta__icon svg path {
  fill: var(--color-white);
}

/* ---- Mobile ---- */
@media (max-width: 767px) {
  .so-hero__heading {
    font-size: 36px;
  }

  .so-trust-badge {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
  }

  .so-trust-badge__sep {
    display: none;
  }
}

/* White button — for use on red background sections (Why Choose Us, CTA Strip, etc.) */
.so-btn--white .elementor-button {
  background-color: var(--color-white);
  color: var(--color-near-black);
  border: none;
  border-radius: 9999px;
}
.so-btn--white .elementor-button:hover {
  background-color: var(--color-white-hover);
  color: var(--color-near-black);
}


/* =========================================================
   HOME — SECTION 2: Workshop Photos Strip
   4 images edge-to-edge, 300px tall, no gaps (Swiper / Elementor 4.x)
   ========================================================= */

/* Images fill their slide cell, fixed 300px height, crop to cover */
.so-photos-strip .swiper-slide img,
.so-photos-strip .swiper-slide-image {
  display: block;
  width: 100%;
  height: 300px !important;
  max-height: 300px !important;
  object-fit: cover;
  object-position: center;
}

/* Hide pagination on desktop */
.so-photos-strip .swiper-pagination {
  display: none !important;
}

/* ---- Mobile: 1 slide, dot navigation ---- */
@media (max-width: 767px) {
  .so-photos-strip .swiper-slide img,
  .so-photos-strip .swiper-slide-image {
    height: 240px !important;
    max-height: 240px !important;
  }

  .so-photos-strip .swiper-pagination {
    display: block !important;
    position: relative;
    bottom: auto;
    padding: 12px 0 4px;
  }

  .so-photos-strip .swiper-pagination-bullet {
    background: var(--color-text);
    opacity: 0.5;
  }

  .so-photos-strip .swiper-pagination-bullet-active {
    background: var(--color-primary);
    opacity: 1;
  }
}

/* =========================================================
   HOME — SECTION 3: About / Story Intro
   ========================================================= */

.so-about__heading--red {
  color: var(--color-primary);
}

/* =========================================================
   HOME — CTA SECTION (Pre-Footer)
   ========================================================= */

.so-cta__badge-wrap {
  display: flex;
  justify-content: center;
}

.so-cta-section {
  position: relative;
  overflow: hidden;
}

.e-con.so-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/wp-content/uploads/2026/05/Pattern.png');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  pointer-events: none;
}

.so-cta__heading {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  line-height: var(--line-height-tight);
  color: var(--color-text);
  margin: 0;
  text-align: center;
}

.so-cta__subtext {
  font-size: var(--font-size-sm);
  font-weight: 400;
  line-height: var(--line-height-body);
  color: var(--color-text);
  margin: 0;
  text-align: center;
}

/* On red background, hover turns dark instead of red (red-on-red is invisible) */
.so-cta-section .so-phone-cta:hover .so-phone-cta__icon {
  background: var(--color-near-black);
}

.so-cta-section .so-phone-cta:hover .so-phone-cta__number {
  color: var(--color-near-black);
}

@media (max-width: 767px) {
  .so-cta__heading {
    font-size: var(--font-size-lg);
  }
}

/* =========================================================
   FOOTER — Global (Theme Builder)
   ========================================================= */

.so-footer__tagline {
  font-size: var(--font-size-sm);
  font-weight: 400;
  line-height: var(--line-height-body);
  color: var(--color-text-muted);
}

.so-footer__col-heading {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 var(--space-md);
}

.so-footer__nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.so-footer__nav a {
  font-size: var(--font-size-sm);
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
  line-height: 1.5;
}

.so-footer__nav a:hover {
  color: var(--color-primary);
}

.so-footer__contact-group {
  margin-bottom: var(--space-lg);
}

.so-footer__contact-group:last-child {
  margin-bottom: 0;
}

.so-footer__contact-label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-primary);
  display: block;
  margin-bottom: 4px;
}

.so-footer__contact-text {
  font-size: var(--font-size-sm);
  font-weight: 400;
  color: var(--color-text);
  line-height: var(--line-height-body);
}

.so-footer__contact-text a {
  color: var(--color-text);
  text-decoration: none;
}

.so-footer__contact-text a:hover {
  color: var(--color-primary);
}

.so-footer__map iframe {
  display: block;
  width: 100%;
  height: 200px;
  border: 0;
  border-radius: var(--border-radius);
}

.so-footer__copyright {
  font-size: var(--font-size-xs);
  font-weight: 400;
  color: var(--color-text-muted);
  margin: 0;
}

.so-footer__scroll-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-white);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
  transition: background 0.2s ease;
}

.so-footer__scroll-top:hover {
  background: var(--color-primary);
}

.so-footer__scroll-top:hover svg path {
  fill: var(--color-white);
}

/* =========================================================
   HOME — SECTION 7: Our Location / Find Us
   ========================================================= */

.so-location-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.so-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary);
  border: none;
  border-radius: 100px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-white);
  white-space: nowrap;
}

.so-location-form {
  display: flex;
  width: 100%;
  max-width: 480px;
  border-radius: 100px;
  overflow: hidden;
  border: none;
  background: var(--color-bg-card);
}

.so-location-form__input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding: 0 18px;
  background: var(--color-bg-card);
  min-width: 0;
}

.so-location-form__input {
  flex: 1;
  background: transparent;
  border: 0 !important;
  outline: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text);
  padding: 0 !important;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.so-location-form__btn {
  background: var(--color-white);
  color: var(--color-near-black);
  border: none;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
  border-radius: 50px;
}

.so-location-form__btn:hover {
  background: var(--color-text);
  color: var(--color-near-black);
}

@media (max-width: 767px) {
  .so-location-badges {
    gap: 8px;
  }
  .so-location-badge {
    font-size: 13px;
    padding: 8px 14px;
  }
}

/* =========================================================
   HOME — SECTION 8: Insurance Partners
   ========================================================= */

/* Insurance logo tiles — 80px wide, height proportional
   Width is enforced via Elementor's native widget width setting (80px) on each widget.
   Border-radius applied via widget-container for consistent rounded look. */
.so-insurance-logo .elementor-widget-container {
  border-radius: 8px;
  overflow: hidden;
}

/* Wave decoration on red left column — same pattern as CTA section */
.e-con.so-insurance__left-col {
  position: relative;
  overflow: hidden;
}

.e-con.so-insurance__left-col::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/wp-content/uploads/2026/05/Pattern.png');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  pointer-events: none;
}

/* =========================================================
   HOME — SECTION 9: How It Works (Process Steps)
   ========================================================= */

.so-process__image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--border-radius);
  display: block;
}

.so-process__steps {
  border-radius: var(--border-radius);
  overflow: hidden;
}

.so-process__card {
  border-right: 1px solid var(--color-border);
}

.so-process__card:last-child {
  border-right: none;
}

.so-process__steps .elementor-heading-title {
  color: var(--color-text);
}

.so-process__steps .elementor-widget-text-editor p {
  color: var(--color-text-muted);
}

@media (max-width: 767px) {
  .so-process__steps {
    flex-direction: column;
  }
  .so-process__card {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }
  .so-process__card:last-child {
    border-bottom: none;
  }
  .so-footer__copyright {
    text-align: center;
  }
}

/* =========================================================
   SUB-PAGE HERO BANNER — .sub-banner
   Used on all location/service sub-pages. Template: SubPageHero.
   ========================================================= */

.sub-banner {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Subtle diagonal grid overlay — pseudo element */
.sub-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1600' height='400' viewBox='0 0 1600 400'><defs><pattern id='p' width='80' height='80' patternUnits='userSpaceOnUse'><path d='M0 80 L80 0' stroke='%23ffffff' stroke-opacity='0.025' stroke-width='1'/></pattern></defs><rect width='100%' height='100%' fill='url(%23p)'/></svg>");
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

/* Ensure all direct content sits above the overlay */
.sub-banner > .e-con {
  position: relative;
  z-index: 1;
}

/* Breadcrumb navigation row */
.so-subbanner__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-bottom: 22px;
  list-style: none;
  padding: 0;
}

.so-subbanner__breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.so-subbanner__breadcrumb a:hover {
  color: var(--color-primary);
}

.so-subbanner__breadcrumb-sep {
  opacity: 0.4;
  font-size: 14px;
}

.so-subbanner__breadcrumb-current {
  color: var(--color-primary);
}

/* Breadcrumb widget — single post template */
.breadcrumb_last {
  color: var(--color-primary);
}

#breadcrumbs span {
    display: flex;
    gap: 10px;
}

/* H1 red accent span — used inside Text Editor widget */
.so-subbanner__accent {
  color: var(--color-primary);
}

/* Lede paragraph */
.so-subbanner__lede {
  max-width: 720px;
  line-height: 1.55;
}

/* Meta pills row — wrapping flex row of info pills */
.so-subbanner__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

/* Individual meta pill (location, hours, etc.) */
.so-subbanner__meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
}

.so-subbanner__meta-pill svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* Actions row — button + phone side by side */
.so-subbanner__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .so-subbanner__breadcrumb {
    font-size: 12px;
    gap: 6px;
  }

  .so-subbanner__meta-pill {
    font-size: 12px;
    padding: 8px 12px;
  }

  .so-subbanner__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* =========================================================
   LOCATION PAGES — Section: Split Checklist + Map
   Template: SplitChecklistMap
   ========================================================= */

/* Checklist icon list — red circle tick */
.so-checklist .elementor-icon-list-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.so-checklist .elementor-icon-list-icon i,
.so-checklist .elementor-icon-list-icon svg {
  color: var(--color-white);
  font-size: 10px;
  margin: 0;
}

.so-checklist .elementor-icon-list-item {
  gap: 12px;
  align-items: center;
}

.so-checklist .elementor-icon-list-text {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.55;
}

/* Map placeholder block */
.so-map-placeholder {
  background: radial-gradient(circle at 50% 50%, #2a2a2a 0%, #0f0f0f 70%);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.so-map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.so-map-placeholder__pin {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50% 50% 50% 0;
  background: var(--color-primary);
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(243, 0, 45, 0.4);
}

.so-map-placeholder__pin::after {
  content: '';
  width: 14px;
  height: 14px;
  background: var(--color-white);
  border-radius: 50%;
}

@media (max-width: 1024px) {
  .so-map-placeholder {
    min-height: 280px;
  }
}

@media (max-width: 767px) {
  .so-map-placeholder {
    min-height: 240px;
  }
  .so-checklist .elementor-icon-list-text {
    font-size: 14px;
  }
}

/* =========================================================
   SERVICES CARD GRID — Template: ServicesCardGrid
   Used on: panel-beaters-takapuna and all location pages
   ========================================================= */

/* Card icon circle — shared across all s-card icon HTML widgets */
.so-scard__icon-wrap .so-scard__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

/* "Learn More" link button override — transparent background, red text */
.so-scard__link .elementor-button {
  background: transparent;
  color: var(--color-primary);
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: none;
  border: none;
}

.so-scard__link .elementor-button:hover {
  background: transparent;
  color: var(--color-primary-dark);
}

/* Eyebrow badge centering when used in centred section-head */
.so-services-grid-head .so-badge {
  display: flex;
  justify-content: center;
}

/* Mobile: center icon-box content inside service cards */
@media (max-width: 767px) {
  .so-services-grid .elementor-icon-box-wrapper {
    align-items: center !important;
  }
  .so-services-grid .elementor-icon-box-content {
    text-align: center !important;
  }
  .so-services-grid .elementor-icon {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ==========================================================
   WHY CHOOSE US — RED GRID (why-choose-us-red-grid)
   Template: WhyChooseUsRedGrid
   Used on: panel-beaters-takapuna (and future location pages)
   ========================================================== */

/* Eyebrow badge variant for red-background sections */
.so-badge--on-red {
  background: var(--color-overlay-nav);        /* rgba(255,255,255,0.12) */
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--color-white);
}

/* On-red badge dot is white (overrides default red dot) */
.so-badge--on-red .so-badge__dot {
  background-color: var(--color-white);
}

/* ==========================================================
   CONTACT US — INFO CARDS (Section 2)
   Used on: /contact-us
   ========================================================== */

.so-card__label p {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.0;
}

.so-card__value p {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  line-height: 1.3;
}

.so-card__subtext p {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================
   HOW IT WORKS — PROCESS STEPS
   Used on: /contact-us Section 3 (and homepage Section 8)
   ========================================================== */

.so-process__number .elementor-heading-title {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-text);
  font-size: 16px;
  font-weight: 700;
  margin: 0 auto;
}

.so-process__desc p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-near-black-muted);
  margin: 0;
}

/* Individual grid cells */
.so-why-cell {
  border-bottom: 1px solid var(--color-white);
  border-right: 1px solid var(--color-white);
  min-height: 230px;
}

/* Remove right border from cells in the last column (3rd, 6th…) */
.so-why-cell--no-right {
  border-right: 0;
}

/* Tablet: 2-column layout */
@media (max-width: 1024px) and (min-width: 768px) {
  .e-con.so-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* In 2-col layout every 2nd cell loses its right border */
  .so-why-cell--no-right {
    border-right: 1px solid var(--color-white);
  }
  .so-why-cell:nth-child(2n) {
    border-right: 0;
  }
}

/* Mobile: single column, no right borders needed */
@media (max-width: 767px) {
  .e-con.so-why-grid {
    grid-template-columns: 1fr;
  }
  .so-why-cell,
  .so-why-cell--no-right {
    border-right: 0;
  }
  .so-why-cell {
    --min-height: auto;
    --padding-top: 0px;
    --padding-bottom: 0px;
    min-height: auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}

/* =========================================================
   LOCATION PAGES — SECTION 5: Also Serving (Area Links Grid)
   Template: AreaLinksGrid
   ========================================================= */

/* Area card link — used inside HTML widgets */
.so-area-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

/* Area links buttons row — Elementor button widget style overrides */
.so-area-links .elementor-button {
  border: none !important;
  transition: none !important;
  width: 100%;
}
.so-area-links .elementor-button:hover {
  transform: none !important;
  border: none !important;
}
.so-area-links .elementor-button-content-wrapper {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  gap: 8px;
}
.so-area-links .elementor-button-icon,
.so-area-links .elementor-button-icon i,
.so-area-links .elementor-button-icon svg {
  color: var(--color-primary) !important;
  fill: var(--color-primary) !important;
  font-size: 12px !important;
}

.so-area-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.so-area-card__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
}

.so-area-card__arrow {
  font-size: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
  line-height: 1;
}

/* Widget wrapper — ensures HTML widget fills the flex cell */
.so-area-card-wrap .elementor-widget-container {
  display: block;
  width: 100%;
}

/* =========================================================
   CTA STRIP — Rounded red card (location pages, reusable template)
   ========================================================= */

/* The CTA card container itself */
.e-con.so-cta-strip {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--color-cta-red);
  text-align: center;
}

/* Wave SVG overlay (decorative lines on the red card) */
.e-con.so-cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='200' viewBox='0 0 600 200'><path d='M0 100 Q150 40 300 100 T 600 100' stroke='white' stroke-opacity='0.12' fill='none' stroke-width='1'/><path d='M0 130 Q150 70 300 130 T 600 130' stroke='white' stroke-opacity='0.08' fill='none' stroke-width='1'/></svg>");
  background-size: cover;
  background-position: center;
  pointer-events: none;
  z-index: 0;
}

/* Ensure all direct children stack above the ::before overlay */
.e-con.so-cta-strip > .e-con-inner,
.e-con.so-cta-strip > * {
  position: relative;
  z-index: 1;
}

/* Phone CTA label override — white/translucent on red background */
.so-cta-strip .so-phone-cta__label {
  color: rgba(255, 255, 255, 0.85);
}

/* Phone CTA hover overrides — use near-black instead of red (red-on-red invisible) */
.so-cta-strip .so-phone-cta:hover .so-phone-cta__icon {
  background: var(--color-near-black);
}
.so-cta-strip .so-phone-cta:hover .so-phone-cta__number {
  color: var(--color-near-black);
}

/* =========================================================
   COLLISION REPAIR — SECTION 3: The Process (Dark card list)
   Each checklist item gets a dark card background.
   Last item gets a red border outline per the design.
   ========================================================= */

.so-process-list .elementor-icon-list-items {
  gap: 8px;
}

.so-process-list .elementor-icon-list-item {
  background: var(--color-bg-card);
  border-radius: 10px;
  padding: 16px 20px;
}

.so-process-list .elementor-icon-list-item:last-child {
  border: 1px solid var(--color-primary);
}

/* =========================================================
   COLLISION REPAIR — SECTION 4: Brand Pills
   Remove button border; keep red dot + pill shape.
   ========================================================= */

.so-brand-pills .elementor-button {
  border: none !important;
  border-radius: 100px;
}

/* =========================================================
   COLLISION REPAIR — GOOGLE REVIEW CARDS
   ========================================================= */

/* Avatar — Heading widget with css_class="so-review__avatar" */
.so-review__avatar .elementor-heading-title {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  line-height: 44px;
  font-size: 18px;
  font-weight: 700;
  display: block;
}

/* Meta column — grows to fill space between avatar and Google G */
.so-review__meta {
  flex: 1;
  min-width: 0;
}

/* Google G badge — Heading widget with css_class="so-review__google" */
.so-review__google .elementor-heading-title {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-google);
  text-align: center;
  line-height: 28px;
  font-size: 13px;
  font-weight: 700;
  display: block;
}

/* Reviewer name */
.so-review__name .elementor-heading-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

/* Review time */
.so-review__time .elementor-heading-title {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.3;
}

/* Star rating */
.so-review__stars .elementor-heading-title {
  color: var(--color-star);
  font-size: 16px;
  letter-spacing: 2px;
  line-height: 1;
}

/* =========================================================
   COLLISION REPAIR — AUTOMOTIVE GUIDES / ARTICLES
   ========================================================= */

.so-article__category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin: 0 0 8px;
}

.so-article__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.35;
  margin: 0 0 10px;
}

.so-article__excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0 0 16px;
}

/* Article card image — full-width, fixed height, cover crop */
.so-article-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* =========================================================
   BLOG — TAXONOMY FILTER
   ========================================================= */

.so-cat-filter .e-filter-item {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  cursor: pointer;
}

.so-cat-filter .e-filter-item:hover,
.so-cat-filter .e-filter-item.e-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* =========================================================
   BLOG — FEATURED POST SECTION
   ========================================================= */

.so-featured-post .elementor-loop-container {
  border-radius: 12px;
  overflow: hidden;
}

/* =========================================================
   BLOG — ARTICLE GRID
   ========================================================= */

.so-article-grid .elementor-loop-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .so-article-grid .elementor-loop-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 767px) {
  .so-article-grid .elementor-loop-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* =========================================================
   BLOG — ARTICLE CARD
   ========================================================= */

.so-article-card {
  background: var(--color-bg-card);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.so-article-card:hover {
  transform: translateY(-4px);
}

/* =========================================================
   SINGLE BLOG — POST CONTENT TYPOGRAPHY
   ========================================================= */

.so-post-content .elementor-widget-theme-post-content p {
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 1.2em;
}

.so-post-content .elementor-widget-theme-post-content h2 {
  color: var(--color-text);
  font-size: 28px;
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.so-post-content .elementor-widget-theme-post-content h3 {
  color: var(--color-text);
  font-size: 22px;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.4em;
}

.so-post-content .elementor-widget-theme-post-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* =========================================================
   SINGLE POST — AUTHOR / META BAR  [so_post_meta_bar]
   ========================================================= */

.so-meta-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 20px 0;
  border-top: 1px solid var(--color-bg-card);
  border-bottom: 1px solid var(--color-bg-card);
}

.so-meta-bar__author {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.so-meta-bar__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50px !important;
  object-fit: cover;
  flex-shrink: 0;
}

.so-meta-bar__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.so-meta-bar__name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.so-meta-bar__sub {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.so-meta-bar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

button.so-meta-bar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  outline: none;
  padding: 0;
  background: var(--color-overlay-badge);
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

button.so-meta-bar__btn:hover,
button.so-meta-bar__btn.is-copied {
  background: var(--color-primary);
  color: var(--color-white);
}

@media (max-width: 767px) {
  .so-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
