:root {
  --color-primary: #2b5077;
  --color-secondary: #e0582a;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-gray: #e9ecef;
  --color-gray-trans: rgba(40, 40, 40, 0.14);
  --color-text: #2b5077;
  --color-text-muted: rgba(43, 80, 119, 0.72);
  --color-text-soft: rgba(43, 80, 119, 0.58);
  --color-white: #ffffff;
  --color-primary-rgb: 43, 80, 119;
  --color-secondary-rgb: 224, 88, 42;
  --color-white-rgb: 255, 255, 255;
  --color-bg-alt-rgb: 248, 249, 250;
  --color-gray-rgb: 233, 236, 239;

  --color-navy-drk: var(--color-primary);
  --color-navy-med: var(--color-primary);
  --color-background-alt: var(--color-bg-alt);
  --color-text-light: var(--color-text-muted);
  --color-gray-dark: var(--color-gray);

  --font-main: "Inter", sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  --shadow-soft: 0 5px 15px rgba(43, 80, 119, 0.075);
  --shadow-card: 0 5px 15px rgba(43, 80, 119, 0.09);
  --shadow-card-hover: 0 9px 25px rgba(43, 80, 119, 0.16);
  --shadow-button: 0 5px 15px rgba(224, 88, 42, 0.28);
  --shadow-button-hover: 0 9px 25px rgba(224, 88, 42, 0.36);
  --shadow-primary-button: 0 5px 15px rgba(43, 80, 119, 0.22);
  --shadow-primary-button-hover: 0 9px 25px rgba(43, 80, 119, 0.30);

  --card-bg: #ffffff;
  --card-border: rgba(43, 80, 119, 0.12);
  --card-radius: var(--radius-lg);
  --card-padding: 2.5rem;
  --card-shadow: var(--shadow-card);
  --card-shadow-hover: var(--shadow-card-hover);
  --card-title-size: 1.4rem;
  --card-copy-size: 0.95rem;
  --card-copy-color: var(--color-text-muted);
  --card-icon-bg: linear-gradient(135deg, rgba(43, 80, 119, 0.10), rgba(248, 249, 250, 0.96));

  --transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 20px;
  background-color: var(--color-bg);
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #2b5077;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
}
h2 {
  font-size: 2.8rem;
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.8rem;
}
p {
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}



/* Wider containers on large screens */

.container {
  width: min(calc(100% - 40px), 1320px);
  margin-inline: auto;
}

@media (min-width: 1400px) {
  .container {
    width: min(calc(100% - 40px), 1360px);
  }
}

@media (min-width: 1600px) {
  .container {
    width: min(calc(100% - 40px), 1560px);
  }
}

@media (min-width: 1700px) {
  .container {
    width: min(calc(100% - 40px), 1660px);
  }
}

@media (min-width: 1800px) {
  .container {
    width: min(calc(100% - 40px), 1760px);
  }
}

@media (min-width: 1900px) {
  .container {
    width: min(calc(100% - 40px), 1860px);
  }
}

@media (max-width: 600px) {
  .container {
    width: calc(100% - 30px);
  }
}




.site-header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(43, 80, 119, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  line-height: 0;
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.85; }
.logo img {
  height: 60px;
  width: auto;
  display: block;
  max-height: 60px;
}

.main-nav ul {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.main-nav a {
  font-weight: 600;
  color: #2b5077; /* var(--color-primary) */
  position: relative;
  padding-bottom: 5px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--color-secondary);
  transition: var(--transition);
}

.main-nav a.btn::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0px;
  bottom: 0;
  left: 0;
  background-color: transparent;
  transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--color-primary);
  transition: var(--transition);
  border-radius: 3px;
}






/*
.hero {
  background: linear-gradient(135deg, #2b5077 0%, #2b5077 100%);
  padding: 10rem 0 8rem;
  position: relative;
  overflow: hidden;
}
*/

.hero {
  background-color: #ffffff;
  background-image: image-set(
    url("https://www.searchgurus.ca/assets/images/hero-home-founders-v5-xl.webp") type("image/webp"),
    url("https://www.searchgurus.ca/assets/images/hero-home-founders-v5-xl.jpg") type("image/jpeg")
  );
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  min-height: clamp(640px, 72vh, 860px);
  padding: clamp(7rem, 8vw, 10rem) 0 clamp(5.5rem, 6vw, 8rem);
  position: relative;
  overflow: hidden;
}

/* JPG fallback for browsers that do not support image-set */
@supports not (background-image: image-set(url("x.webp") type("image/webp"))) {
  .hero {
    background-image: url("https://www.searchgurus.ca/assets/images/hero-home-founders-v5-xl.jpg");
  }
}

/* Bottom fade: transparent through the upper hero, then fades to white from the lower third down */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0) 58%,
    rgba(255,255,255,0.34) 70%,
    rgba(255,255,255,0.76) 86%,
    #ffffff 100%
  );
}

/* Former right-side founders image removed because the full hero now uses the founders image as the background */
.hero::after {
  display: none;
}

.site-header {
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.site-header.is-compact {
  box-shadow: 0 4px 30px rgba(43, 80, 119, 0.10);
}

/* The old CSS blob animations are replaced by the hero background image */

.hero .container {
  display: flex;
  align-items: center;
  min-height: inherit;
  position: relative;
  z-index: 2;
}

.hero-content {
  width: min(100%, 920px);
  animation: fadeInUp 1s ease-out;
}

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

.hero h1 {
  font-size: clamp(3.15rem, 4.45vw, 5.25rem);
  line-height: 1.16;
  margin-bottom: 1.35rem;
  color: rgba(255,255,255,0.975);
  text-shadow: 0 1px 14px rgba(48,82,143, 0.75);
}

.hero-accent-red {
  color: #e0582a;
  font-style: italic;
}

.hero-accent-gold {
  color: #e0582a;
  font-weight: 900;
  text-shadow: 0 1px 14px rgba(255,255,255,0.30);
}

.hero-accent-translucent {
  color: #f8f9fa;
  font-weight: 900;
}

.hero-accent-red-translucent {
  color: rgba(230,48,39, 0.30);
  font-weight: 900;
  -webkit-text-stroke: 1px rgba(255,255,255, 0.85);
  text-shadow:
    1px 0 0 rgba(255,255,255, 0.85),
   -1px 0 0 rgba(255,255,255, 0.85),
    0 1px 0 rgba(255,255,255, 0.85),
    0 -1px 0 rgba(255,255,255, 0.85);
}

.hero-subheadline {
  max-width: 820px;
  font-size: clamp(1.16rem, 1.25vw, 1.4rem);
  line-height: 1.55;
  margin-bottom: 2.35rem;
  color: #2b5077;
  font-weight: 600;
  text-shadow: 0 1px 5px rgba(255,255,255,0.25);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

@media (min-width: 1600px) {
  .hero-content {
    width: min(100%, 1024px);
  }
}

@media (max-width: 1320px) {
  .hero {
    background-position: 66% center;
  }

  .hero-content {
    width: min(100%, 800px);
  }
}

@media (max-width: 1100px) {
  .hero {
    min-height: 610px;
    background-position: 61% center;
    padding: 7.25rem 0 5.75rem;
  }

  .hero-content {
    width: min(100%, 720px);
  }

  .hero h1 {
    font-size: clamp(2.75rem, 5.2vw, 3.65rem);
    line-height: 1.18;
  }

  .hero-subheadline {
    max-width: 650px;
    font-size: 1.14rem;
    line-height: 1.58;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 560px;
    background-position: 58% center;
    padding: 6.75rem 0 5.25rem;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.56) 48%, rgba(255,255,255,0.16) 76%),
      linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 54%, rgba(255,255,255,0.82) 88%, #ffffff 100%);
  }

  .hero-content {
    width: min(100%, 650px);
  }

  .hero h1 {
    font-size: clamp(2.35rem, 6vw, 3.1rem);
    line-height: 1.16;
    color: #ffffff;
  }

  .hero-subheadline {
    max-width: 570px;
    font-size: 1.08rem;
    line-height: 1.62;
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 6.25rem 0 4.75rem;
    text-align: center;
    background-position: 62% top;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(13,48,90,0.28) 0%, rgba(255,255,255,0.35) 42%, rgba(255,255,255,0.82) 78%, #ffffff 100%);
  }

  .hero .container {
    justify-content: center;
    min-height: 0;
  }

  .hero-content {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 9vw, 3rem);
    line-height: 1.13;
    margin-bottom: 1.05rem;
    text-shadow: 0 2px 14px rgba(28,51,77,0.68);
  }

  .hero-subheadline {
    max-width: 560px;
    margin: 0 auto 1.75rem;
    font-size: clamp(1rem, 4vw, 1.12rem);
    line-height: 1.55;
    color: #2b5077;
    text-shadow: 0 1px 4px rgba(255,255,255,0.6);
  }

  .hero-actions {
    justify-content: center;
    gap: 0.85rem;
  }

  .hero-actions .btn {
    width: min(100%, 360px);
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 5.4rem 0 4rem;
    background-position: 68% top;
    background-size: auto 100%;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(18,53,88,0.34) 0%, rgba(255,255,255,0.52) 36%, rgba(255,255,255,0.9) 72%, #ffffff 100%);
  }

  .hero h1 {
    font-size: clamp(2.02rem, 10.8vw, 2.58rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
  }

  .hero-subheadline {
    font-size: 1rem;
    line-height: 1.52;
    margin-bottom: 1.45rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn-large {
    min-height: 54px;
    padding: 14px 20px;
    font-size: 1rem;
  }
}

@media (max-width: 390px) {
  .hero {
    padding-top: 5rem;
    background-position: 72% top;
  }

  .hero h1 {
    font-size: 1.94rem;
  }

  .hero-subheadline {
    font-size: 0.96rem;
  }
}





.services {
  padding: 6rem 0;
  background-color: white;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  position: relative;
  display: inline-block;
}

.section-header > h2::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 4px;
  background-color: var(--color-secondary);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.section-header p {
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

/* ===== Unified Card System ===== */
.service-card,
.service-full-card,
.ai-service-card,
.benefit-item,
.insight-card,
.testimonial-card,
.location-card,
.review-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  position: relative;
}

.service-card,
.service-full-card,
.ai-service-card,
.review-card {
  display: flex;
  flex-direction: column;
}

.service-card,
.service-full-card {
  overflow: hidden;
}

.service-card:hover,
.service-full-card:hover,
.ai-service-card:hover,
.benefit-item:hover,
.location-card:hover {
  transform: translateY(-5px);
  border-color: rgba(224, 88, 42, 0.30);
  box-shadow: var(--card-shadow-hover);
}

.service-card::before,
.service-full-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before,
.service-full-card:hover::before {
  transform: scaleX(1);
}

.service-card .icon,
.service-full-card .icon,
.ai-card-icon,
.insight-icon,
.location-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  border-radius: 50%;
  background: var(--card-icon-bg);
  font-size: 2.5rem;
  line-height: 1;
  text-align: center;
}

.service-card .icon {
  font-size: 3.5rem;
}

.service-card h3,
.service-full-card h3,
.ai-service-card h3,
.benefit-item h3,
.insight-card h3,
.location-card-name,
.review-author-name {
  color: var(--color-primary);
  font-size: var(--card-title-size);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-card p,
.service-full-card p,
.ai-service-card p,
.benefit-item p,
.insight-card p,
.review-card p {
  color: var(--card-copy-color);
  font-size: var(--card-copy-size);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-card p,
.service-full-card p,
.review-card p {
  flex-grow: 1;
}

.service-full-card ul,
.ai-service-card ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1.25rem;
}

.service-full-card ul li,
.ai-service-card ul li {
  color: rgba(10, 37, 64, 0.65);
  font-size: 0.88rem;
  line-height: 1.6;
  padding: 0.2rem 0 0.2rem 1.05rem;
  position: relative;
}

.service-full-card ul li::before,
.ai-service-card ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-secondary);
  font-weight: 700;
}


.service-cta {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.service-cta::after {
  content: "→";
  transition: transform 0.3s ease;
}

.service-card:hover .service-cta::after {
  transform: translateX(5px);
}

.why-us {
  background: #ffffff;
  padding: 3.5rem 0 0 0;
  position: relative;
}

.why-us-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.benefit-item {
  --card-padding: 2rem;
}

.benefit-item h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.benefit-item p {
  margin-top: 0.75rem;
}

.why-us-cta {
  margin-top: 3rem;
  text-align: center;
}

.region-section {
  background-color: var(--color-bg-alt);
  padding: 4.75rem 0;
  border: 1px solid #e9ecef;
  border-radius: 10px;
}

.region-section .city-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin: 3rem auto 0;
  max-width: 800px;
}

.region-section-action {
  margin-top: 2.5rem;
  text-align: center;
}

.city-link {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.city-link:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

.testimonials {
  padding: 3.5rem 0;
  text-align: center;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.testimonial-card {
  --card-bg: var(--color-bg-alt);
  --card-padding: 3rem 2rem;
  text-align: left;
}

.testimonial-card::before {
  content: '"';
  font-size: 6rem;
  color: rgba(43, 80, 119, 0.10);
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: serif;
  line-height: 1;
}

.testimonial-card p {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.client-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), #2b5077);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
}

.client-details h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--color-text);
}

.client-details span {
  font-size: 0.9rem;
  color: rgba(43, 80, 119, 0.62);
}

.stars {
  color: #e0582a;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.cta-section {
  background: linear-gradient(135deg, var(--color-secondary) 0%, #e0582a 100%);
  color: white;
  padding: 5.5rem 0 5rem 0;
  text-align: center;
}

.cta-section h2 {
  color: white;
  font-size: 3rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.cta-section p {
  font-size: 1.4rem;
  margin-bottom: 2.25rem;
  opacity: 0.95;
}

.cta-section .btn-primary {
  background: white;
  color: var(--color-secondary);
  box-shadow: 0 5px 15px rgba(43, 80, 119, 0.10);
}

.cta-section .btn-primary:hover {
  background: var(--color-bg-alt);
  transform: translateY(-5px);
  box-shadow: 0 9px 25px rgba(0, 0, 0, 0.15);
}




/******* FOOTER *******/


.site-footer {
  background: linear-gradient(135deg, var(--color-navy-drk), var(--color-navy-med));
  color: rgba(255,255,255,0.75);
  padding: 5.5rem 0 2rem;
  border-top: 4px solid #e0582a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.85fr 1.6fr;
  gap: 3.5rem;
  align-items: start;
  margin-bottom: 2.25rem;
}

.footer-col {
  min-width: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.15rem;
  line-height: 0;
}

.footer-brand img {
  display: block;
  height: 80px;
  width: auto;
  max-width: 100%;
  opacity: 0.90;
}

.footer-desc {
  max-width: 420px;
  color: rgba(255,255,255,0.72);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
}

.site-footer h4 {
  color: rgba(255,255,255,0.96);
  font-size: 1.15rem;
  line-height: 1.35;
  margin-bottom: 1.35rem;
  letter-spacing: -0.01em;
}
.site-footer h4.h4-sm {
  font-size: 1.0rem;
}

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

.site-footer ul li {
  margin-bottom: 0.78rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
  padding-left: 3px;
}

/* Quick links */
.footer-links-col ul li a {
  color: rgba(255,255,255,0.72);
  font-size: 0.98rem;
}

.footer-links-col ul li a:hover {
  color: #ffffff;
}

/* Contact list with custom translucent white icons */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.82rem;
  margin-top: 2.0rem !important;
}

.footer-contact-list li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 0;
  color: rgba(255,255,255,0.76);
  font-size: 0.96rem;
  line-height: 1.45;
}

.footer-contact-list strong {
  display: block;
  color: rgba(255,255,255,0.92);
  font-size: 0.72rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.16rem;
}

.footer-contact-list a {
  color: rgba(255,255,255,0.76);
}

.footer-contact-list a:hover {
  color: #ffffff;
  padding-left: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.075);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.footer-contact-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Utility navigation row */
.footer-utility-row {
  display: flex;
  justify-content: center; /* flex-end */
  padding: 0.6rem 0 1.4rem;
}

.footer-utility-nav {
  display: flex;
  align-items: center;
  justify-content: center; /* flex-end */
  gap: 1.35rem;
  flex-wrap: wrap;
}

.footer-utility-nav a {
  color: rgba(255,255,255,0.62);
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-utility-nav a:hover {
  color: #ffffff;
  padding-left: 0;
}

/* Footer bottom row with larger social icons */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.6rem;
  font-size: 1rem;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255,255,255,0.68);
}

.footer-bottom-social {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.footer-bottom-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.11);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  letter-spacing: 0;
}

.footer-bottom-icon:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.25);
  color: #ffffff;
  transform: translateY(-2px);
  padding-left: 0;
}

/* Previous large social column no longer used */
.footer-social-col,
.footer-social-icons,
.social-icon-btn,
.footer-social-tagline {
  display: none;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .footer-contact-col {
    grid-column: 1 / -1;
  }

  .footer-utility-row {
    justify-content: flex-start;
  }

  .footer-utility-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .site-footer {
    padding: 4rem 0 6rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-brand img {
    height: 74px;
  }

  .footer-contact-list li {
    grid-template-columns: 36px 1fr;
  }

  .footer-utility-row {
    justify-content: center;
    text-align: center;
  }

  .footer-utility-nav {
    justify-content: center;
    gap: 1rem;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .footer-bottom-social {
    justify-content: center;
  }
}










/* Reviews grid/cards */
.reviews-section {
  padding: 60px 0;
}

.reviews-heading {
  color: #2b5077;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.review-card {
  --card-padding: 1.5rem;
}

.review-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  background: var(--review-avatar-bg, #2b5077);
}

.review-author-name {
  color: #2b5077;
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
}

.review-date {
  color: rgba(43, 80, 119, 0.62);
  font-size: 0.8rem;
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 0.75rem;
}

.review-stars svg {
  width: 16px;
  height: 16px;
  fill: #e0582a;
}

.review-card p.review-text {
  color: rgba(43, 80, 119, 0.72);
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
}

.review-reply {
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 0.8rem;
}

.review-reply-title {
  display: block;
  color: #2b5077;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.review-reply p {
  color: rgba(43, 80, 119, 0.72);
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  position: relative;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 20px 40px rgba(43, 80, 119, 0.20);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: rgba(43, 80, 119, 0.45);
  transition: var(--transition);
  line-height: 1;
}

.close-modal:hover {
  color: var(--color-text);
}

.modal-content h3 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.modal-content p {
  color: rgba(43, 80, 119, 0.62);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: rgba(43, 80, 119, 0.72);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color-gray);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(43, 80, 119, 0.10);
}

.mobile-floating-actions {
    display: none;
}

@media (max-width: 768px) {
  body {
    font-size: 18px;
    padding-bottom: 70px; /* Space for mobile floating buttons */
  }
  h1 {
    font-size: 2.8rem;
  }
  h2 {
    font-size: 2.2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(43, 80, 119, 0.10);
    display: none;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 1.5rem;
  }

  .main-nav.open {
    display: block;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-floating-actions {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -4px 20px rgba(43, 80, 119, 0.10);
    z-index: 1000;
    padding: 10px;
    gap: 10px;
  }

  .floating-btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    gap: 8px;
    font-size: 1rem;
  }

  .call-btn {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2b5077 100%);
  }

  .msg-btn {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #e0582a 100%);
  }
}

/* ----- SERVICES PAGE STYLES ----- */

.all-services-section {
    padding: 3.5rem 0;
}

.all-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 100%;
    margin: 0 auto;
}

.service-full-card {
    height: 100%;
}

.service-full-card h3 {
    font-size: 1.5rem;
}

.service-full-card.feature-aeo::before,
.service-full-card.feature-aio::before,
.service-full-card.feature-geo::before {
    transform: scaleX(1);
}

.service-full-card.feature-aeo { --feature-color: #e0582a; }
.service-full-card.feature-aio { --feature-color: #2b5077; }
.service-full-card.feature-geo { --feature-color: #e0582a; }

.service-full-card.feature-aeo::before,
.service-full-card.feature-aio::before,
.service-full-card.feature-geo::before {
    background: var(--feature-color);
}


.service-pricing {
    background: var(--color-background-alt);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.service-pricing .price-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
    font-weight: 500;
}

.service-pricing .price-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
}

.service-pricing .price-period {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.service-pricing.free .price-amount {
    color: var(--color-secondary);
}

.service-full-card .btn {
    width: 100%;
    text-align: center;
}

/* ----- GET A QUOTE STYLES ----- */
.quote-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--color-background-alt) 0%, #f8f9fa 100%);
    color: var(--color-text);
    padding: 4rem 2rem;
    position: relative;
}

.quote-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 100%;
    background: white;
    padding: 4rem 3rem;
    border-radius: 20px;
    box-shadow: 0 9px 25px rgba(43, 80, 119, 0.15);
}

.quote-container h1 {
    color: var(--color-primary);
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.quote-container p.subtitle {
    text-align: center;
    color: rgba(43, 80, 119, 0.62);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.quote-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.full-width {
    grid-column: 1 / -1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: rgba(43, 80, 119, 0.72);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-gray-dark);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(43, 80, 119, 0.10);
}

.submit-btn {
    width: 100%;
    padding: 18px;
    font-size: 1.3rem;
    border-radius: 12px;
    margin-top: 2rem;
    box-shadow: 0 10px 20px rgba(43, 80, 119, 0.20);
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 2rem;
    color: rgba(43, 80, 119, 0.62);
    font-weight: 600;
    text-decoration: none;
}
.back-link:hover {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .quote-grid {
        grid-template-columns: 1fr;
    }
    .quote-container {
        padding: 2.5rem 1.5rem;
    }
}

/* ----- AUDIT PAGE STYLES ----- */
.audit-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, #2b5077 100%);
    color: white;
    text-align: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Re-using floating orbs for consistency */
.audit-page::before, .audit-page::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.5;
    animation: floatOrbs 20s infinite alternate ease-in-out;
}
.audit-page::before {
    width: 800px;
    height: 800px;
    background: rgba(255, 255, 255, 0.2);
    top: -200px;
    left: -200px;
}
.audit-page::after {
    width: 600px;
    height: 600px;
    background: var(--color-secondary);
    bottom: -200px;
    right: -100px;
    animation-delay: -5s;
}

.audit-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 100%;
    background: white;
    padding: 5rem 3rem;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(43, 80, 119, 0.30);
    color: var(--color-text);
}

.audit-container h1 {
    color: var(--color-primary);
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.audit-form input {
    width: 100%;
    font-size: 2.2rem;
    font-weight: 600;
    padding: 1.5rem;
    border: 3px solid #2b5077;
    border-radius: 16px;
    margin: 3rem 0;
    text-align: center;
    transition: var(--transition);
    color: var(--color-text);
}

.audit-form input::placeholder {
    color: #cbced1;
    font-weight: 400;
}

.audit-form input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 8px rgba(43, 80, 119, 0.10);
}

@media (max-width: 768px) {
    .audit-container {
        padding: 3rem 1.5rem;
    }
    .audit-container h1 {
        font-size: 2.5rem;
    }
    .audit-form input {
        font-size: 1.5rem;
        padding: 1rem;
    }
}

/* ----- CONTACT PAGE STYLES ----- */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.contact-info-block h2,
.contact-form-block h2 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.contact-tagline {
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.contact-detail-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    background: var(--color-background-alt);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-detail-item strong {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
    margin-bottom: 2px;
}

.contact-detail-item a,
.contact-detail-item span {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

.contact-detail-item a:hover {
    color: var(--color-primary);
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.call-btn .btn-emoji {
    filter: brightness(0) invert(1);
    display: inline-block;
}

/* ===== CITY / LOCATION PAGE STYLES ===== */

.city-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2b5077 100%);
    padding: clamp(4.5rem, 7vw, 5.75rem) 0 clamp(3.75rem, 5vw, 4.75rem);
    position: relative;
    overflow: hidden;
    color: white;
}

.city-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.city-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.city-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.city-hero h1 {
    font-size: 2.8rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: white;
    background: none;
    -webkit-text-fill-color: white;
    filter: none;
}

.city-hero p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
    max-width: 680px;
}

/* Stat Bar */
.city-stat-bar {
    background: white;
    box-shadow: 0 5px 15px rgba(43, 80, 119, 0.15);
    padding: 28px 0;
    position: relative;
    z-index: 2;
}

.stat-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 4px;
    max-width: 200px;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: #e9ecef;
}

/* City Insight Section */
.city-insight-section {
    /* padding: 1.5rem 1.5rem 1.5rem 1.5rem;
    background: var(--color-background-alt);
	border-radius: 16px; */
}

.city-insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin: 0 auto;
}

.insight-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.insight-card h3 {
    font-size: 1.25rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--color-background-alt);
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid rgba(43, 80, 119, 0.15);
}

.industry-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.industry-list li {
    padding: 5px 0;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* City Why Section */
.city-why-section {
    padding: 3.5rem 0;
    margin: 1.5rem 0;
}

.city-why-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: start;
    margin: 0 auto;
}

.city-why-services h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.service-pill-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.service-pill {
    background: var(--color-background-alt);
    border: 1px solid rgba(43, 80, 119, 0.10);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
}

/* Landmarks Bar */
.city-landmarks-bar {
    background: var(--color-primary);
	border-radius: 16px 16px 0 0;
    padding: 2.5rem 1.0rem 2.0rem 1.0rem;
    color: white;
    text-align: center;
}

.city-landmarks-bar p {
    font-size: 1.0rem;
	font-weight:600;
    color: rgba(255,255,255,0.9);
    margin: 0;
}

.city-landmarks-bar strong {
    color: white;
}

/* City CTA */
.city-cta-section {
    background: linear-gradient(135deg, var(--color-secondary), #e0582a);
	border-radius: 0 0 16px 16px;
    padding: 4.0rem 1.0rem;
    text-align: center;
    color: white;
}

.city-cta-section h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.city-cta-section p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.9);
    max-width: 650px;
    margin: 0 auto;
}

/* Interactive Ontario Map (locations.php) - Leaflet + OpenStreetMap */
.ontario-map-container {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

.ontario-leaflet {
    width: 100%;
    height: 600px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(43, 80, 119, 0.15);
    border: 2px solid rgba(43, 80, 119, 0.15);
    z-index: 1;
}

/* Leaflet Customizations */
.leaflet-container {
    font-family: 'Inter', sans-serif;
    background: #f8f9fa;
}

/* Custom Map Markers */
.custom-leaflet-marker {
    background: transparent !important;
    border: none !important;
}

.marker-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}

.marker-container:hover {
    transform: scale(1.1) translateY(-5px);
    z-index: 1000 !important;
}

.marker-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(43, 80, 119, 0.30));
    transition: all 0.3s ease;
    line-height: 1;
}

.marker-container:hover .marker-icon {
    filter: drop-shadow(0 4px 8px rgba(224, 88, 42, 0.40));
}

.marker-container.major-city .marker-icon {
    font-size: 2.5rem;
}

.marker-container.hq-city .marker-icon {
    filter: drop-shadow(0 2px 6px rgba(76,175,80,0.5));
}

.marker-title {
    background: white;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #2b5077;
    white-space: nowrap;
    box-shadow: 0 2px 7px rgba(43, 80, 119, 0.15);
    margin-top: -2px;
    border: 1px solid rgba(43, 80, 119, 0.20);
}

.marker-container.major-city .marker-title {
    font-size: 0.85rem;
    padding: 6px 14px;
    background: linear-gradient(135deg, #2b5077, #2b5077);
    color: white;
    border-color: #2b5077;
}

.leaflet-badge {
    position: absolute;
    top: -5px;
    right: 5px;
    background: #e0582a;
    color: white;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 50px;
    text-transform: uppercase;
    box-shadow: 0 2px 7px rgba(224, 88, 42, 0.40);
}

/* Popup Styles */
.city-popup {
    text-align: center;
    min-width: 180px;
    padding: 5px;
}

.city-popup h4 {
    margin: 0 0 5px 0;
    color: #2b5077;
    font-size: 1.1rem;
}

.city-popup .city-label {
    display: inline-block;
    background: #e0582a;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 50px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.city-popup p {
    margin: 0 0 10px 0;
    color: rgba(43, 80, 119, 0.72);
    font-size: 0.85rem;
}

.popup-btn {
    display: inline-block;
    background: linear-gradient(135deg, #2b5077, #2b5077);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43, 80, 119, 0.30);
}

.leaflet-popup-content-wrapper {
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(43, 80, 119, 0.15);
}

.leaflet-popup-content {
    margin: 12px 16px;
    font-family: 'Inter', sans-serif;
}

.leaflet-popup-tip {
    background: white;
}

/* Map Legend */
.ontario-map-container .map-legend {
    position: absolute;
    bottom: 40px;
    left: 40px;
    background: rgba(255,255,255,0.95);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(43, 80, 119, 0.15);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8rem;
    z-index: 400;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-primary {
    background: var(--color-primary);
}

.dot-secondary {
    background: rgba(0,86,179,0.4);
}

.legend-line {
    width: 20px;
    height: 3px;
    background: rgba(255,107,0,0.5);
    border-radius: 2px;
}

/* Responsive Map */
@media (max-width: 768px) {
    .ontario-leaflet {
        height: 450px;
    }

    .ontario-map-container .map-legend {
        bottom: 20px;
        left: 20px;
        font-size: 0.7rem;
        padding: 0.75rem 1rem;
    }

    .marker-title {
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    .marker-icon {
        font-size: 1.5rem;
    }

    .marker-container.major-city .marker-icon {
        font-size: 1.8rem;
    }
}

/* Map Water Bodies */
.map-lake {
    position: absolute;
    background: linear-gradient(135deg, #e9ecef 0%, #e9ecef 100%);
    border-radius: 50% 50% 45% 55%;
    opacity: 0.6;
}

.lake-ontario {
    width: 35%;
    height: 45%;
    bottom: 10%;
    right: -5%;
    border-radius: 60% 40% 50% 50%;
}

.lake-erie {
    width: 30%;
    height: 25%;
    bottom: -5%;
    right: 15%;
    border-radius: 50% 50% 40% 60%;
}

.lake-huron {
    width: 20%;
    height: 35%;
    top: 20%;
    left: -5%;
    border-radius: 45% 55% 50% 50%;
}

.georgian-bay {
    position: absolute;
    width: 18%;
    height: 25%;
    top: 5%;
    left: 15%;
    background: linear-gradient(135deg, #e9ecef 0%, #e9ecef 100%);
    border-radius: 40% 60% 60% 40%;
    opacity: 0.6;
}

/* Highway Connectors */
.map-connector {
    position: absolute;
    background: linear-gradient(90deg, rgba(224, 88, 42, 0.30), rgba(224, 88, 42, 0.10));
    height: 4px;
    border-radius: 2px;
}

.connector-401 {
    width: 65%;
    top: 58%;
    left: 5%;
    transform: rotate(-2deg);
}

.connector-qew {
    width: 40%;
    top: 72%;
    left: 25%;
    transform: rotate(25deg);
}

/* Map Regions (Cities) */
.map-region {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: white;
    border: 2px solid rgba(43, 80, 119, 0.15);
    border-radius: 16px;
    padding: 0.75rem 1rem;
    min-width: 90px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 5px 15px rgba(43, 80, 119, 0.10);
    cursor: pointer;
    z-index: 10;
}

.map-region::before {
    content: '📍';
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    filter: grayscale(0.3);
    transition: all 0.3s ease;
}

.map-region:hover {
    transform: translateY(-8px) scale(1.08);
    border-color: var(--color-primary);
    box-shadow: 0 9px 25px rgba(43, 80, 119, 0.25);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    z-index: 20;
}

.map-region:hover::before {
    filter: grayscale(0);
    transform: scale(1.2);
}

.region-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-primary);
    text-align: center;
    line-height: 1.2;
}

.region-label {
    font-size: 0.65rem;
    color: var(--color-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.15rem;
}

.region-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--color-secondary);
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 50px;
    text-transform: uppercase;
    box-shadow: 0 2px 7px rgba(224, 88, 42, 0.40);
}

/* Region Positions (Golden Horseshoe & GTA) */
.region-toronto {
    top: 48%;
    left: 52%;
    transform: translate(-50%, -50%);
    padding: 1.25rem 1.5rem;
    min-width: 120px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-color: var(--color-primary);
    z-index: 15;
}

.region-toronto .region-name {
    font-size: 1.1rem;
}

.region-mississauga {
    top: 52%;
    left: 42%;
}

.region-brampton {
    top: 45%;
    left: 40%;
}

.region-vaughan {
    top: 42%;
    left: 48%;
}

.region-markham {
    top: 46%;
    left: 62%;
}

.region-oshawa {
    top: 50%;
    left: 72%;
}

/* West GTA */
.region-oakville {
    top: 58%;
    left: 35%;
}

.region-burlington {
    top: 62%;
    left: 30%;
}

/* Hamilton/Niagara */
.region-hamilton {
    top: 68%;
    left: 38%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-color: rgba(224, 88, 42, 0.30);
}

.region-grimsby {
    top: 72%;
    left: 45%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-color: rgba(76,175,80,0.3);
}

.region-stcatharines {
    top: 78%;
    left: 42%;
}

.region-niagarafalls {
    top: 82%;
    left: 48%;
}

/* Waterloo Region */
.region-kitchener {
    top: 62%;
    left: 20%;
}

.region-waterloo {
    top: 58%;
    left: 22%;
}

.region-cambridge {
    top: 68%;
    left: 25%;
}

.region-guelph {
    top: 55%;
    left: 28%;
}

/* Southwestern */
.region-london {
    top: 75%;
    left: 12%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-color: var(--color-primary);
}

.region-windsor {
    top: 88%;
    left: 5%;
}

/* Central/North */
.region-barrie {
    top: 22%;
    left: 45%;
}

/* Map Legend */
.map-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255,255,255,0.95);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(43, 80, 119, 0.15);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-primary {
    background: var(--color-primary);
}

.dot-secondary {
    background: rgba(0,86,179,0.4);
}

.legend-line {
    width: 20px;
    height: 3px;
    background: rgba(255,107,0,0.5);
    border-radius: 2px;
}

/* Responsive Map */
@media (max-width: 768px) {
    .ontario-map {
        aspect-ratio: 3 / 4;
    }

    .map-region {
        padding: 0.5rem 0.75rem;
        min-width: 70px;
    }

    .region-name {
        font-size: 0.7rem;
    }

    .region-toronto {
        padding: 0.75rem 1rem;
        min-width: 90px;
    }

    .region-toronto .region-name {
        font-size: 0.85rem;
    }

    .map-legend {
        font-size: 0.7rem;
        padding: 0.75rem 1rem;
        bottom: 10px;
        left: 10px;
    }
}

/* Hover tooltip effect */
.map-region::after {
    content: attr(data-city);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: var(--color-primary);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.map-region:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* Old Locations Grid (kept for fallback) */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.location-card {
    --card-padding: 1.75rem 1.25rem;
    align-items: center;
    text-align: center;
    text-decoration: none;
}

.location-card-icon {
    width: 56px;
    height: 56px;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.location-card-name {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.location-card-label {
    font-size: 0.78rem;
    color: var(--color-text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .city-hero {
        padding: clamp(3.75rem, 7vw, 4.75rem) 0 clamp(3.25rem, 5vw, 4.25rem);
    }
    .city-hero h1 {
        font-size: 2rem;
    }
    .stat-bar-inner {
        gap: 1.5rem;
    }
    .stat-divider {
        display: none;
    }
    .city-why-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .service-pill-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Compact city chips for "Also Serving" section */
.city-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.city-chip {
    display: inline-block;
    background: var(--color-background-alt);
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 50px;
    text-decoration: none;
    border: 1px solid rgba(43, 80, 119, 0.12);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.city-chip:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}















/* ===== ABOUT PAGE ===== */

/*
  About page hybrid reset:
  - Keeps the preferred original founders image and simpler page opening.
  - Restores the stronger older middle presentation: experience panel,
    narrative card, feature cards, and callout.
*/

.page-about .page-with-sidebar {
  align-items: start;
}

.page-about .page-main-content {
  margin-top: 2.75rem;
}

.about-main-section {
  display: grid;
  gap: clamp(1.6rem, 3vw, 2.75rem);
  padding: 0 0 clamp(3.25rem, 5vw, 5rem);
  background: #ffffff;
}

.about-main-section > .about-founders-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(43, 80, 119, 0.14);
  box-shadow: var(--shadow-card);
  object-fit: cover;
  object-position: center center;
}

.about-main-section h2 {
  color: var(--color-primary);
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0;
}

.about-main-section h3 {
  color: var(--color-primary);
  font-size: clamp(1.3rem, 1.85vw, 1.68rem);
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
}

.about-main-section p {
  color: var(--color-text);
  font-size: clamp(1rem, 1.1vw, 1.08rem);
  line-height: 1.78;
  margin-bottom: 0;
}

.about-main-section .about-lead {
  color: rgba(43, 80, 119, 0.92);
  font-size: clamp(1.05rem, 1.25vw, 1.16rem);
  line-height: 1.75;
}

.about-main-section a:not(.btn) {
  color: var(--color-primary);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(43, 80, 119, 0.28);
}

.about-main-section a:not(.btn):hover {
  color: var(--color-secondary);
  text-decoration-color: rgba(224, 88, 42, 0.55);
}

.about-stats-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: center;
  padding: clamp(1.55rem, 3vw, 2.35rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary));
  border: 1px solid rgba(224, 88, 42, 0.2);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}

.about-stats-panel::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -90px;
  top: -110px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.about-stats-intro {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.about-stats-intro h3 {
  color: #ffffff;
  font-size: clamp(1.35rem, 2.1vw, 1.95rem);
  margin: 0;
}

.about-stats-icon,
.about-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 1;
}

.about-stats-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 2rem;
}

.about-stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.about-stat {
  min-width: 0;
  padding: 1rem 0.85rem;
  text-align: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.about-stat-number {
  color: #ffffff;
  font-size: clamp(1.85rem, 3.6vw, 2.9rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 0.35rem;
}

.about-stat-label {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.85rem;
  line-height: 1.35;
  font-weight: 750;
}

.about-narrative-card {
  display: grid;
  grid-template-columns: minmax(230px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(1.4rem, 3vw, 2.75rem);
  align-items: start;
  border-radius: var(--radius-lg);
  padding: clamp(1.55rem, 3vw, 2.5rem);
  border: 1px solid rgba(43, 80, 119, 0.14);
  box-shadow: var(--shadow-card);
}

.about-narrative-card-dark {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary));
}

.about-narrative-card-dark h3,
.about-narrative-card-dark p {
  color: #ffffff;
}

.about-narrative-card-dark p:not(.section-eyebrow) {
  color: rgba(255, 255, 255, 0.75);
}

.about-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.about-feature-card {
  background: #ffffff;
  border: 1px solid rgba(43, 80, 119, 0.14);
  border-radius: var(--radius-lg);
  padding: clamp(1.45rem, 2.5vw, 2.15rem);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.about-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(224, 88, 42, 0.26);
}

.about-feature-card-accent {
  background: var(--color-bg-alt);
}

.about-feature-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 1.1rem;
  border-radius: 16px;
  background: rgba(43, 80, 119, 0.08);
  color: var(--color-primary);
  font-size: 1.9rem;
}

.about-feature-card p {
  font-size: 0.98rem;
  line-height: 1.72;
}

.about-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  padding: clamp(1.35rem, 2.6vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  border: 1px solid rgba(43, 80, 119, 0.14);
  box-shadow: var(--shadow-card);
}

.about-callout p {
  margin: 0.22rem 0;
  font-size: 1rem;
  line-height: 1.55;
}

.about-callout .about-callout-title {
  color: var(--color-primary);
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.3;
  font-weight: 850;
  margin-bottom: 0.55rem;
}

.about-callout a:not(.btn) {
  color: var(--color-primary);
  font-weight: 850;
  text-decoration: none;
}

.about-callout a:not(.btn):hover {
  color: var(--color-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-ai-section {
  padding: clamp(3.5rem, 5vw, 5rem) clamp(1rem, 3vw, 1.5rem);
  border-radius: var(--radius-lg);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  overflow: hidden;
}

.about-ai-section::before {
  border-radius: var(--radius-lg);
}

.about-ai-section .ai-section-header {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.about-ai-section .ai-section-header h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.about-ai-section .ai-section-header p {
  color: rgba(43, 80, 119, 0.82);
  font-size: 1rem;
}

.about-ai-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-ai-grid .ai-service-card {
  --card-padding: 2rem;
  --card-title-size: 1.2rem;
  --card-copy-size: 0.88rem;
}

.page-about .cta-section p {
  color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 1180px) {
  .about-stats-panel,
  .about-narrative-card {
    grid-template-columns: 1fr;
  }

  .about-ai-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .page-about .page-main-content {
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .page-about .page-main-content {
    margin-top: 1.5rem;
  }

  .about-main-section {
    gap: 1.45rem;
    padding-bottom: 3.25rem;
  }

  .about-main-section > .about-founders-image {
    border-radius: 14px;
  }

  .about-main-section p {
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .about-stats-intro {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .about-stats-grid,
  .about-feature-grid {
    grid-template-columns: 1fr;
  }

  .about-callout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-callout .btn {
    width: min(100%, 320px);
    margin: 0 auto;
  }

  .about-ai-section {
    padding: 3.5rem 1rem;
    border-radius: 14px;
  }

  .about-ai-section::before {
    border-radius: 14px;
  }
}

@media (max-width: 420px) {
  .about-main-section > .about-founders-image,
  .about-stats-panel,
  .about-narrative-card,
  .about-feature-card,
  .about-callout {
    border-radius: 12px;
  }

  .about-stats-panel,
  .about-narrative-card,
  .about-feature-card,
  .about-callout {
    padding: 1.25rem;
  }

  .about-stat {
    padding: 0.95rem 0.75rem;
  }

  .about-ai-section {
    padding: 3rem 0.85rem;
  }
}


/* ===== PAGE LAYOUT WITH STICKY SIDEBAR ===== */
.page-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1.5rem;
    align-items: start;
}

.page-with-sidebar > .page-main-content {
    min-width: 0;
	margin-top: 3.5rem;
}

.contact-sidebar {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
	padding: 0 1.0em;
    overflow-y: auto;
}

.contact-sidebar-inner {
    background: white;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    box-shadow: 0 5px 15px rgba(43, 80, 119, 0.15);
    overflow: hidden;
	margin-top:3.5rem;
	margin-bottom:3.5rem;
}

@media (max-width: 1024px) {
	.contact-sidebar-inner {
		margin-top:0rem;
		margin-bottom:3.0rem;
	}
}

.cs-geo-badge {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #e0582a;
    padding: 0.75rem 1.25rem;
    font-size: 0.82rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cs-geo-pin {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cs-form {
    padding: 0 1.75rem 1.5rem;
}

.cs-field {
    margin-bottom: 1rem;
}

.cs-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #2b5077;
    margin-bottom: 4px;
    letter-spacing: 0.02em;
}

.cs-req {
    color: #e0582a;
}

.cs-field input,
.cs-field textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.92rem;
    font-family: inherit;
    color: #2b5077;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
}

.cs-field input::placeholder,
.cs-field textarea::placeholder {
    color: rgba(43, 80, 119, 0.45);
}

.cs-field input:focus,
.cs-field textarea:focus {
    outline: none;
    border-color: #2b5077;
    background: white;
    box-shadow: 0 0 0 3px rgba(0,58,122,0.1);
}

.cs-field textarea {
    resize: vertical;
    min-height: 70px;
}

.cs-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #e0582a 0%, #e0582a 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 5px 15px rgba(224, 88, 42, 0.30);
}

.cs-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 25px rgba(224, 88, 42, 0.40);
}

.cs-arrow {
    transition: transform 0.2s;
}

.cs-submit:hover .cs-arrow {
    transform: translateX(4px);
}

.cs-footer {
    padding: 1rem 1.75rem 1.25rem;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.cs-footer p {
    color: rgba(43, 80, 119, 0.45);
    font-size: 0.78rem;
    margin: 0 0 0.5rem;
}

.cs-phone {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2b5077;
}

.cs-phone a {
    color: inherit;
    text-decoration: none;
}

.cs-phone a:hover {
    text-decoration: underline;
}

.cs-success {
    padding: 3rem 2rem;
    text-align: center;
}

.cs-success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cs-success h3 {
    color: #2b5077;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.cs-success p {
    color: rgba(43, 80, 119, 0.62);
    font-size: 0.95rem;
}

@media (max-width: 1024px) {
    .page-with-sidebar {
        grid-template-columns: 1fr;
    }

    .contact-sidebar {
        position: relative;
        top: 0;
        max-height: none;
    }
}

/* ===== AI SECTION STYLES ===== */
.ai-revolution-section {
    background: #ffffff;
    /* padding: 4.75rem 1.5em; */
    position: relative;
}

.ai-revolution-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,37,64,0.02) 0%, transparent 100%);
	border: 1px solid #e9ecef;
	border-radius: 10px;
}

.ai-section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.ai-section-header h2 {
    color: #2b5077;
    font-size: 2.8rem;
    margin-bottom: 2rem;
}

.ai-section-header p {
    color: rgba(10,37,64,0.7);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
}

.ai-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.ai-service-card {
    --card-padding: 2.5rem 2rem;
}

.ai-card-icon {
    margin-bottom: 1rem;
}

.ai-service-card h3 {
    margin-bottom: 0.5rem;
}

.ai-badge,
.service-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--badge-color, #e0582a);
    background: var(--badge-bg, rgba(249, 115, 22, 0.12));
    padding: 2px 10px;
    border-radius: 20px;
    vertical-align: middle;
    margin-left: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-purple {
    --badge-color: #2b5077;
    --badge-bg: rgba(139, 92, 246, 0.1);
}

.badge-cyan {
    --badge-color: #e0582a;
    --badge-bg: rgba(6, 182, 212, 0.1);
}

.ai-service-card p {
    margin-bottom: 1.25rem;
}

.ai-cta-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

/* ── Trusted / Brands We Work With ── */
.trusted-section {
    padding: 3.5rem 0;
    background: #ffffff;
}

.trusted-section .brand-accent {
    color: #e0582a;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0 0 1.0rem 0;
    margin-top: -1.5rem;
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(90deg, #ffffff 20%, transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(-90deg, #ffffff 20%, transparent);
}

.marquee-content {
    display: flex;
    animation: marqueeScroll 140s linear infinite;
    width: max-content;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marquee-item img {
    height: 180px;
    opacity: 0.85;
    filter: grayscale(70%);
    transition: opacity 0.3s ease, filter 0.3s ease;
    margin: 0 40px;
}

.marquee-item:hover img {
    opacity: 0.95;
    filter: grayscale(15%);
}

@keyframes marqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== HOME PAGE REBUILD 2026-06-02 ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 0 1.0rem;
  margin-top: 0 !important;
  color: var(--color-secondary);
  font-size: 0.80rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.section-eyebrow-light {
  color: rgba(255, 255, 255, 0.75) !important;
}

.section-action {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.hero-home .hero-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 1rem;
  padding: 0.48rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: #2b5077;
  box-shadow: 0 9px 25px rgba(28, 51, 77, 0.12);
  font-size: 0.82rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.home-trust-strip {
  position: relative;
  z-index: 3;
  margin-top: -2.4rem;
  padding: 0 0 2.5rem;
}

.home-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.home-trust-item {
  background: #f8f9fa;
  border: 1px solid rgba(10, 37, 64, 0.3);
  border-radius: 16px;
  padding: 1.25rem 1.15rem;
  box-shadow: 0 8px 18px rgba(10, 37, 64, 0.125);
}

.home-trust-item strong {
  display: block;
  color: var(--color-primary);
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 850;
  margin-bottom: 0.35rem;
}

.home-trust-item span {
  display: block;
  color: rgba(10, 37, 64, 0.68);
  font-size: 0.85rem;
  line-height: 1.45;
}

.home-content-shell {
  align-items: start;
  padding-top: 1.5rem;
}

.page-home .page-with-sidebar {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2.5rem;
}

.page-home .page-main-content > section {
  scroll-margin-top: 110px;
}

.home-services-section,
.home-proof-section,
.home-audit-section,
.home-ai-section,
.home-faq-section {
  padding: 5.25rem 0;
}

.page-home .section-header {
  max-width: 860px;
  margin-bottom: 2.5rem;
}

.page-home .section-header h2 {
  color: #2b5077;
  font-size: clamp(2rem, 3.1vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.page-home .section-header p {
  color: rgba(10, 37, 64, 0.68);
  font-size: 1.08rem;
  line-height: 1.75;
}

.page-home .section-header h2::after {
  bottom: -18px;
}

.home-services-section {
  background: #ffffff;
}

.home-services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.home-services-grid .service-card {
  min-height: 100%;
}

.home-proof-section {
  background: #ffffff;
  border-top: 0;
  border-bottom: 0;
}

.proof-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3.25rem;
}

.proof-card,
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.proof-card {
  padding: 1.75rem;
}

.proof-card:hover,
.faq-item:hover {
  border-color: rgba(255, 107, 0, 0.25);
  box-shadow: var(--card-shadow-hover);
}

.proof-card h3 {
  color: var(--color-primary);
  font-size: 1.15rem;
  line-height: 1.25;
  margin-bottom: 0.65rem;
}

.proof-card p {
  color: var(--card-copy-color);
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
}

.home-audit-section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.home-audit-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid rgba(0, 86, 179, 0.14);
  border-radius: 22px;
  padding: clamp(2.5rem, 4vw, 3.5rem);
  box-shadow: 0 18px 54px rgba(10, 37, 64, 0.11);
}

.home-audit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 28px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 1px solid rgba(0, 86, 179, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  font-size: 3.8rem;
}

.home-audit-content h2 {
  color: #2b5077;
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.home-audit-content > p:not(.section-eyebrow) {
  color: rgba(10, 37, 64, 0.68);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 820px;
  margin-bottom: 1.5rem;
}

.audit-form-row {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  max-width: 680px;
  margin: 0;
}

.audit-form-row input {
  flex: 1;
  min-width: 0;
  padding: 16px 18px;
  font-size: 1rem;
  font-family: inherit;
  color: #2b5077;
  background: #ffffff;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.audit-form-row input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.11);
}

.audit-form-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 1.55rem;
  color: #ffffff;
  background: linear-gradient(135deg, #2b5077, var(--color-primary));
  border: 0;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 58, 122, 0.20);
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.audit-form-row button:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 25px rgba(0, 58, 122, 0.35);
}

.audit-form-row button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.audit-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  margin-top: 1.35rem;
  color: rgba(43, 80, 119, 0.62);
  font-size: 0.84rem;
  line-height: 1.35;
  font-weight: 650;
}

.home-ai-section {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.home-ai-section .ai-section-header {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.home-ai-section .ai-section-header h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.13;
  letter-spacing: -0.025em;
}

.home-ai-section .ai-section-header p {
  max-width: 760px;
  line-height: 1.7;
}

.home-faq-section {
  background: #ffffff;
}

.faq-list {
  display: grid;
  gap: 0.9rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.45rem;
  color: #2b5077;
  cursor: pointer;
  font-size: 1.02rem;
  line-height: 1.35;
  font-weight: 800;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--color-primary);
  background: rgba(0, 86, 179, 0.08);
  font-size: 1.2rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 1.45rem 1.25rem;
}

.faq-answer p {
  color: rgba(10, 37, 64, 0.68);
  font-size: 0.96rem;
  line-height: 1.7;
  margin: 0;
}

.home-final-cta h2 {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.home-final-cta p:not(.section-eyebrow) {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Homepage refinement: keep testimonial CTA buttons evenly spaced when they wrap/stack. */
.testimonials a.btn + a.btn,
.page-home .testimonials a.btn + a.btn {
  margin-left: 1rem;
}


@media (max-width: 1180px) {
  .page-home .page-with-sidebar {
    grid-template-columns: 1fr;
  }

  .page-home .contact-sidebar {
    position: relative;
    top: 0;
    max-height: none;
    padding: 0;
  }
	/*
	  .page-home .contact-sidebar-inner {
		margin-top: 0;
	  }
	*/
}

@media (max-width: 1024px) {
  .home-trust-grid,
  .home-services-grid,
  .proof-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-services-grid .service-card:last-child,
  .proof-card-grid .proof-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .hero-home .hero-kicker {
    justify-content: center;
    color: #ffffff;
    background: rgba(28, 51, 77, 0.28);
    font-size: 0.72rem;
  }

  .home-trust-strip {
    margin-top: -1.25rem;
    padding-bottom: 1.25rem;
  }

  .home-trust-grid,
  .home-services-grid,
  .proof-card-grid {
    grid-template-columns: 1fr;
  }

  .home-services-grid .service-card:last-child,
  .proof-card-grid .proof-card:last-child {
    grid-column: auto;
  }

  .home-services-section,
  .home-proof-section,
  .home-audit-section,
  .home-ai-section,
  .home-faq-section {
    padding: 3.75rem 0;
  }

  .page-home .section-header {
    margin-bottom: 2.65rem;
  }

  .page-home .section-header p {
    font-size: 1rem;
  }

  .home-audit-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    text-align: center;
  }

  .home-audit-icon {
    width: 82px;
    height: 82px;
    margin: 0 auto;
    font-size: 3rem;
  }

  .home-audit-content > p:not(.section-eyebrow) {
    margin-left: auto;
    margin-right: auto;
  }

  .audit-form-row {
    max-width: none;
    flex-direction: column;
  }

  .audit-form-row button,
  .audit-form-row input {
    width: 100%;
  }

  .audit-feature-list {
    justify-content: center;
  }

  .faq-item summary {
    align-items: flex-start;
    padding: 1.15rem 1.2rem;
    font-size: 0.98rem;
  }

  .faq-answer {
    padding: 0 1.2rem 1.15rem;
  }

  .testimonials a.btn,
  .page-home .testimonials a.btn {
    display: flex;
    width: min(100%, 360px);
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .testimonials a.btn + a.btn,
  .page-home .testimonials a.btn + a.btn {
    margin-top: 0.9rem !important;
  }

  .home-final-cta h2 {
    max-width: 680px;
    font-size: clamp(1.85rem, 7vw, 2.35rem);
    line-height: 1.14;
  }
}

@media (max-width: 560px) {
  .home-trust-item,
  .proof-card {
    padding: 1.15rem;
  }

  .home-audit-card {
    padding: 1.5rem 1.15rem;
    border-radius: 18px;
  }

  .audit-feature-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .home-ai-section {
    padding-left: 0;
    padding-right: 0;
  }

  .home-final-cta h2 {
    font-size: clamp(1.6rem, 7.8vw, 2.02rem);
    line-height: 1.16;
  }
}

/* ===== Refinement pass: 2026-06-02-d ===== */

/* Keep the pale-gray Modern Search Visibility panel/card area contained on smaller screens */
@media (max-width: 768px) {
  .home-ai-section {
    overflow: hidden;
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: 0;
    margin-right: 0;
  }

  .home-ai-section::before {
    left: 0;
    right: 0;
    border-radius: 12px;
  }

  .home-ai-section .ai-services-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    gap: 1.25rem;
  }

  .home-ai-section .ai-service-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 1.75rem 1.35rem;
  }

  .home-final-cta h2 {
    font-size: clamp(2rem, 8vw, 2.55rem);
    line-height: 1.12;
  }

  .home-final-cta p:not(.section-eyebrow) {
    font-size: 1.04rem;
    line-height: 1.55;
  }
}

@media (max-width: 560px) {
  .home-ai-section {
    padding: 3.5rem 0.85rem;
    border-radius: 12px;
  }

  .home-ai-section .ai-section-header {
    margin-bottom: 2rem;
  }

  .home-ai-section .ai-section-header h2 {
    font-size: clamp(1.95rem, 8.5vw, 2.35rem);
  }

  .home-ai-section .ai-section-header p {
    font-size: 0.98rem;
  }

  .home-ai-section .ai-service-card {
    padding: 1.5rem 1.15rem;
  }

  .home-final-cta h2 {
    font-size: clamp(1.82rem, 8.2vw, 2.25rem);
    line-height: 1.12;
  }

  .home-final-cta p:not(.section-eyebrow) {
    font-size: 0.98rem;
  }
}

@media (max-width: 390px) {
  .home-ai-section {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  .home-ai-section .ai-service-card {
    padding: 1.35rem 1rem;
  }

  .home-final-cta h2 {
    font-size: 1.72rem;
  }
}

/* ===== Hero refinement pass: 2026-06-02-e ===== */

/*
  Softens the hero image overall while preserving the existing bottom fade to white.
  This overlay is intentionally layered on .hero::before so no template change is needed.
*/
.hero::before {
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0.30) 0%,
      rgba(255,255,255,0.24) 42%,
      rgba(255,255,255,0.18) 70%,
      rgba(255,255,255,0.14) 100%
    ),
    linear-gradient(
      180deg,
      rgba(255,255,255,0.06) 0%,
      rgba(255,255,255,0.12) 42%,
      rgba(255,255,255,0.40) 68%,
      rgba(255,255,255,0.82) 88%,
      #ffffff 100%
    );
}

/* Pull the founders image left sooner so both partners remain visible on mid-sized screens */
@media (max-width: 1320px) {
  .hero {
    background-position: 58% center;
  }

  .hero::before {
    background:
      linear-gradient(
        90deg,
        rgba(255,255,255,0.34) 0%,
        rgba(255,255,255,0.26) 44%,
        rgba(255,255,255,0.16) 75%,
        rgba(255,255,255,0.12) 100%
      ),
      linear-gradient(
        180deg,
        rgba(255,255,255,0.08) 0%,
        rgba(255,255,255,0.14) 45%,
        rgba(255,255,255,0.44) 70%,
        rgba(255,255,255,0.84) 88%,
        #ffffff 100%
      );
  }
}

@media (max-width: 1100px) {
  .hero {
    background-position: 53% center;
  }

  .hero::before {
    background:
      linear-gradient(
        90deg,
        rgba(255,255,255,0.42) 0%,
        rgba(255,255,255,0.30) 46%,
        rgba(255,255,255,0.16) 78%,
        rgba(255,255,255,0.12) 100%
      ),
      linear-gradient(
        180deg,
        rgba(255,255,255,0.10) 0%,
        rgba(255,255,255,0.18) 46%,
        rgba(255,255,255,0.50) 72%,
        rgba(255,255,255,0.86) 88%,
        #ffffff 100%
      );
  }
}

@media (max-width: 900px) {
  .hero {
    background-position: 50% center;
  }

  .hero::before {
    background:
      linear-gradient(
        90deg,
        rgba(255,255,255,0.72) 0%,
        rgba(255,255,255,0.48) 48%,
        rgba(255,255,255,0.22) 78%,
        rgba(255,255,255,0.16) 100%
      ),
      linear-gradient(
        180deg,
        rgba(255,255,255,0.10) 0%,
        rgba(255,255,255,0.18) 50%,
        rgba(255,255,255,0.60) 76%,
        rgba(255,255,255,0.88) 90%,
        #ffffff 100%
      );
  }
}

@media (max-width: 768px) {
  .hero {
    background-position: 51% top;
  }

  .hero::before {
    background:
      linear-gradient(
        180deg,
        rgba(255,255,255,0.26) 0%,
        rgba(255,255,255,0.50) 38%,
        rgba(255,255,255,0.86) 78%,
        #ffffff 100%
      );
  }
}

@media (max-width: 560px) {
  .hero {
    background-position: 54% top;
    background-size: auto 100%;
  }

  .hero::before {
    background:
      linear-gradient(
        180deg,
        rgba(255,255,255,0.34) 0%,
        rgba(255,255,255,0.62) 36%,
        rgba(255,255,255,0.92) 74%,
        #ffffff 100%
      );
  }
}

@media (max-width: 390px) {
  .hero {
    background-position: 56% top;
  }
}

/* ===== Hero responsive image swap: 2026-06-02-f ===== */

/*
  Desktop keeps the original -xl image.
  Tablet/smaller laptop viewports use the wider-safe -lg composition.
  Phone viewports use the -sm composition so the partners are not cropped off the right edge.
*/

@media (max-width: 1320px) {
  .hero {
    background-image: image-set(
      url("https://www.searchgurus.ca/assets/images/hero-home-founders-v5-lg.webp") type("image/webp"),
      url("https://www.searchgurus.ca/assets/images/hero-home-founders-v5-lg.jpg") type("image/jpeg")
    );
    background-position: center center;
    background-size: cover;
  }
}

@supports not (background-image: image-set(url("x.webp") type("image/webp"))) {
  @media (max-width: 1320px) {
    .hero {
      background-image: url("https://www.searchgurus.ca/assets/images/hero-home-founders-v5-lg.jpg");
    }
  }
}

@media (max-width: 1100px) {
  .hero {
    background-position: center center;
  }
}

@media (max-width: 900px) {
  .hero {
    background-position: center center;
  }
}

@media (max-width: 768px) {
  .hero {
    background-image: image-set(
      url("https://www.searchgurus.ca/assets/images/hero-home-founders-v5-sm.webp") type("image/webp"),
      url("https://www.searchgurus.ca/assets/images/hero-home-founders-v5-sm.jpg") type("image/jpeg")
    );
    background-position: center top;
    background-size: cover;
  }

  .hero::before {
    background:
      linear-gradient(
        180deg,
        rgba(255,255,255,0.34) 0%,
        rgba(255,255,255,0.58) 38%,
        rgba(255,255,255,0.88) 78%,
        #ffffff 100%
      );
  }
}

@supports not (background-image: image-set(url("x.webp") type("image/webp"))) {
  @media (max-width: 768px) {
    .hero {
      background-image: url("https://www.searchgurus.ca/assets/images/hero-home-founders-v5-sm.jpg");
    }
  }
}

@media (max-width: 560px) {
  .hero {
    background-position: center top;
    background-size: 100% auto;
  }

  .hero::before {
    background:
      linear-gradient(
        180deg,
        rgba(255,255,255,0.42) 0%,
        rgba(255,255,255,0.68) 36%,
        rgba(255,255,255,0.94) 74%,
        #ffffff 100%
      );
  }
}

@media (max-width: 390px) {
  .hero {
    background-position: center top;
    background-size: 108% auto;
  }
}

/* ===== Brands section eyebrow stacking fix: 2026-06-02-h ===== */

/*
  Prevents "Experience You Can See" from sitting inline with
  "Brands We've Worked With" in certain viewport widths.
*/
.trusted-section .section-eyebrow {
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0.75rem;
}

.trusted-section .section-header h2 {
  display: block;
}

.trusted-section .section-header {
  text-align: center;
}

/* ===== Search Gurus Consolidation Layer: 2026-06-10 ===== */

.schema-hidden,
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--color-text);
  background: var(--color-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
}

p {
  color: var(--color-text-muted);
}


/* Button system: primary, secondary, outline and light */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none !important;
  gap: 8px;
  min-height: 48px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  box-shadow: none;
}

.btn-primary,
.contact-submit-btn,
.cs-submit {
  background: linear-gradient(135deg, var(--color-secondary), rgba(224, 88, 42, 0.86));
  border: 2px solid rgba(224, 88, 42, 0.45);
  color: var(--color-white);
  box-shadow: var(--shadow-button);
}

.btn-primary:hover,
.contact-submit-btn:hover,
.cs-submit:hover {
  background: linear-gradient(135deg, rgba(224, 88, 42, 0.86), var(--color-secondary));
  border: 2px solid rgba(224, 88, 42, 0.45);
  color: var(--color-white);
  box-shadow: var(--shadow-button-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background:  var(--color-white);
  border: 2px solid var(--color-white);
  color: var(--color-primary);
  box-shadow: var(--shadow-button);
}

.btn-secondary:hover {
  background: var(--color-primary);
  border: 2px solid var(--color-white);
  color: var(--color-white);
  box-shadow: var(--shadow-button-hover);
  transform: translateY(-2px);
}

.btn-large {
  padding: 18px 36px;
  font-size: 1.2rem;
}

.btn-outline {
  color: var(--color-primary) !important;
  background: transparent;
  border-color: rgba(43, 80, 119, 0.28);
}

.btn-outline:hover {
  color: #ffffff !important;
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary-button-hover);
}

.btn-light,
.cta-light-btn,
.cta-section .cta-light-btn {
  color: var(--color-primary) !important;
  background: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.btn-light:hover,
.cta-light-btn:hover,
.cta-section .cta-light-btn:hover {
  color: var(--color-primary) !important;
  background: var(--color-bg-alt) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.btn-nav {
  min-height: 42px;
  padding: 10px 20px;
  font-size: 0.95rem;
}

.btn-block {
  width: 100%;
}

.nav-muted-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 15px;
  color: var(--color-text-soft) !important;
}

/* Unified cards and hover behavior */
.service-card,
.service-full-card,
.ai-service-card,
.benefit-item,
.insight-card,
.testimonial-card,
.location-card,
.review-card,
.proof-card,
.faq-item,
.contact-card,
.contact-form-wrapper,
.contact-sidebar-inner,
.home-trust-item,
.home-audit-card,
.about-founder-visual,
.about-feature-card,
.about-callout,
.about-narrative-card {
  box-shadow: var(--shadow-card);
  border-color: var(--card-border);
}

.service-card:hover,
.service-full-card:hover,
.ai-service-card:hover,
.benefit-item:hover,
.location-card:hover,
.review-card:hover,
.proof-card:hover,
.faq-item:hover,
.contact-card:hover,
.about-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(224, 88, 42, 0.26);
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 15px rgba(43, 80, 119, 0.07);
}

.logo img {
  height: 60px;
  max-height: 60px;
}

.main-nav a {
  color: var(--color-primary);
}

.main-nav a.btn::after,
.main-nav .nav-muted-link::after {
  display: none;
}






/* Page headers and section rhythm */
.page-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2b5077 100%);
    padding: clamp(4.0rem, 7vw, 5.0rem) 0 clamp(3.25rem, 5vw, 4.25rem);
    text-align: center;
    border-bottom: 4px solid #e0582a;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}

.page-header h1 {
    color: #ffffff;
    font-size: clamp(2.0rem, 4.2vw, 3.0rem);
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(43, 80, 119, 0.30);
}

.page-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
	font-weight:500;
    max-width: 1000px;
	margin: 0 auto;
}

.section-header p {
  color: var(--color-text-muted);
}

.section-header > h2::after {
  background-color: var(--color-secondary);
}

/* Homepage hero refinements */
.hero {
  min-height: clamp(640px, 72vh, 860px);
}

.hero h1 {
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 5px 15px rgba(43, 80, 119, 0.55);
}

.hero-accent-gold,
.hero-accent-red {
  color: var(--color-secondary);
}

.hero-accent-translucent {
  color: rgba(255, 255, 255, 0.78);
}

.hero-subheadline {
  color: var(--color-primary);
}

/* Sidebar CTA form */
.contact-sidebar {
  scrollbar-width: thin;
  scrollbar-color: rgba(43, 80, 119, 0.28) transparent;
}

.contact-sidebar-inner {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  overflow: hidden;
}

.contact-sidebar-intro {
  padding: 1.35rem 1.75rem 0;
  text-align: center;
}

.cs-intro-title {
  color: var(--color-primary);
  font-size: 1.12rem;
  line-height: 1.25;
  font-weight: 850;
  margin: 0 0 0.3rem;
}

.cs-intro-text {
  color: var(--color-text-muted);
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 0 0 1.05rem;
}

.cs-geo-badge {
  background: linear-gradient(135deg, rgba(224, 88, 42, 0.08), rgba(233, 236, 239, 0.55));
  color: var(--color-primary);
  border-bottom: 1px solid var(--card-border);
}

.cs-field label,
.form-group label {
  color: var(--color-primary);
}

.cs-field input,
.cs-field textarea,
.form-group input,
.form-group select,
.form-group textarea,
.contact-form-enhanced input,
.contact-form-enhanced textarea {
  color: var(--color-primary);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-gray);
}

.cs-field input:focus,
.cs-field textarea:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.contact-form-enhanced input:focus,
.contact-form-enhanced textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(43, 80, 119, 0.10);
}

.cs-success {
  display: none;
  padding: 3rem 2rem;
  text-align: center;
}

.cs-phone,
.cs-phone a {
  color: var(--color-primary);
}

/* Contact page styles moved out of contact.php */
.contact-section-enhanced {
  padding: clamp(4rem, 7vw, 6.25rem) 0 clamp(4.5rem, 8vw, 7.5rem);
}

.contact-layout-enhanced {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1.2fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

.contact-info-enhanced {
  padding-top: 2rem;
}

.contact-info-enhanced h2,
.contact-form-header h2 {
  color: var(--color-primary);
}

.contact-tagline-enhanced {
  color: var(--color-text-muted);
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--color-gray);
}

.contact-cards {
  display: grid;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.45rem;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
}

.contact-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary), rgba(43, 80, 119, 0.86));
  color: #ffffff;
  font-size: 1.45rem;
}

.contact-card-content strong {
  display: block;
  color: var(--color-primary);
  font-size: 0.84rem;
  line-height: 1.25;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.contact-card-content a,
.contact-card-content span {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  font-weight: 650;
}

.contact-card-content a:hover {
  color: var(--color-secondary);
}

.contact-form-wrapper {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 4vw, 3rem);
}

.contact-form-wrapper::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 110px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--color-secondary), rgba(224, 88, 42, 0.72));
}

.contact-form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-form-header p,
.contact-form-footer p {
  color: var(--color-text-soft);
  margin-bottom: 0;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-submit-btn {
  width: 100%;
  min-height: 58px;
  padding: 18px 32px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 800;
}

.contact-form-footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  text-align: center;
  border-top: 1px solid var(--color-gray);
}

/* Testimonials/reviews */
.testimonial-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.testimonial-score-value {
  color: var(--color-primary);
  font-size: 2.5rem;
  line-height: 1;
  font-weight: 900;
}

.testimonial-score-meta span {
  display: block;
  color: var(--color-text-soft);
  font-size: 0.86rem;
}

.testimonial-stars,
.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 0.35rem;
}

.testimonial-star {
  display: block;
  width: 18px;
  height: 18px;
  fill: var(--color-secondary);
}

.testimonial-score .testimonial-star {
  width: 20px;
  height: 20px;
}

.testimonial-carousel {
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 8px 48px 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.testimonial-track::-webkit-scrollbar {
  display: none;
}

.testimonial-slide {
  flex: 0 0 340px;
  scroll-snap-align: start;
}

.testimonial-nav {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: #ffffff;
  color: var(--color-primary);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  font-size: 1.35rem;
  transform: translateY(-50%);
  transition: var(--transition);
}

.testimonial-nav:hover {
  color: #ffffff;
  background: var(--color-primary);
  box-shadow: var(--shadow-card-hover);
}

.testimonial-prev { left: 0; }
.testimonial-next { right: 0; }

.testimonial-actions {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

.review-avatar {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.review-reply {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-gray);
}

.review-reply-title {
  color: var(--color-primary);
}

/* Why us and regions */
.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.65em;
  height: 1.65em;
  line-height: 1;
}

.region-section {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-gray);
  border-radius: var(--radius-md);
}

.region-section .city-grid,
.region-section .city-chip-grid {
  gap: 0.7rem;
  max-width: 980px;
}

.region-section .city-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.42rem 0.9rem;
  border: 1px solid rgba(43, 80, 119, 0.14);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--color-primary);
  font-size: 0.88rem;
  line-height: 1.2;
  font-weight: 750;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.region-section .city-link:hover,
.region-section .city-link:focus-visible {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

/* Service page */
.page-services .services-ai-section {
  padding: clamp(3rem, 5vw, 4.5rem) clamp(1.0rem, 3vw, 1.5rem);
  margin-bottom: 1.0rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.page-services .services-section-inner {
  position: relative;
  z-index: 1;
  max-width: 100%;
  width: 100%;
}

.page-services .services-ai-header {
  max-width: 760px;
  margin: 0 auto clamp(2.25rem, 4vw, 3rem);
}

.page-services .services-ai-section .ai-services-grid {
  max-width: 1180px;
  margin: 0 auto;
  gap: clamp(1.25rem, 2.2vw, 2rem);
}

.page-services .service-card-title-link,
.page-services .service-inline-link {
  color: inherit;
  text-decoration: none;
}

.page-services .service-inline-link {
  border-bottom: 1px dotted rgba(43, 80, 119, 0.35);
}

.page-services .service-card-title-link:hover,
.page-services .service-inline-link:hover {
  color: var(--color-secondary);
  border-bottom-color: var(--color-secondary);
}

/* Mobile floating actions */
.floating-msg-btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.call-btn {
  background: linear-gradient(135deg, var(--color-primary), rgba(43, 80, 119, 0.86));
}

.msg-btn {
  background: linear-gradient(135deg, var(--color-secondary), rgba(224, 88, 42, 0.86));
}

.mobile-floating-actions {
  box-shadow: 0 -5px 15px rgba(43, 80, 119, 0.10);
}

/* Modal */
.modal-overlay {
  background: rgba(43, 80, 119, 0.62);
}

.modal-content {
  box-shadow: var(--shadow-card-hover);
}

/* Responsive master adjustments */
@media (max-width: 1180px) {
  .page-with-sidebar,
  .page-home .page-with-sidebar {
    grid-template-columns: 1fr;
  }

  .contact-sidebar {
    position: relative;
    top: 0;
    max-height: none;
    padding: 0;
  }
}

@media (max-width: 999px) {
  .site-header .container {
    position: relative;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    display: none;
    padding: 1.4rem;
    background: #ffffff;
    border-top: 1px solid var(--color-gray);
    box-shadow: var(--shadow-card);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 900px) {
  .contact-layout-enhanced {
    grid-template-columns: 1fr;
  }

  .contact-info-enhanced {
    padding-top: 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 18px;
  }

  .page-header {
    padding: 4rem 0 3.25rem;
  }

  .page-header h1 {
    font-size: clamp(2.1rem, 9vw, 2.85rem);
  }

  .btn-large {
    min-height: 54px;
    padding: 14px 22px;
    font-size: 1rem;
  }

  .services-grid,
  .all-services-grid,
  .ai-services-grid,
  .benefits-list,
  .testimonial-grid,
  .home-trust-grid,
  .home-services-grid,
  .proof-card-grid,
  .about-feature-grid,
  .about-stats-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-track {
    padding-left: 44px;
    padding-right: 44px;
  }

  .testimonial-slide {
    flex-basis: min(82vw, 340px);
  }

  .testimonial-actions .btn {
    width: min(100%, 360px);
  }

  .contact-card {
    padding: 1.2rem;
  }

  .contact-form-wrapper {
    padding: 2rem 1.35rem;
  }

  .region-section {
    padding: 3.75rem 1rem;
  }
}

@media (max-width: 560px) {
  .testimonial-score {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .testimonial-track {
    padding-left: 0;
    padding-right: 0;
  }

  .testimonial-nav {
    display: none;
  }

  .testimonial-slide {
    flex-basis: 100%;
  }

  .contact-card {
    align-items: flex-start;
  }

  .region-section .city-link {
    width: 100%;
    max-width: 260px;
  }
}

/* ===== Contrast correction pass: 2026-06-10-b ===== */

/*
  Corrects CTA/button contrast issues introduced by the consolidation pass.
  These rules intentionally sit at the end of the stylesheet so they win over
  older page-specific button rules without requiring template changes.
*/
.btn-primary,
.btn-primary:visited,
.contact-submit-btn,
.cs-submit,
.audit-form-row button,
.submit-btn,
.floating-btn,
.call-btn,
.msg-btn {
  color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus-visible,
.contact-submit-btn:hover,
.contact-submit-btn:focus-visible,
.cs-submit:hover,
.cs-submit:focus-visible,
.audit-form-row button:hover,
.audit-form-row button:focus-visible,
.submit-btn:hover,
.submit-btn:focus-visible,
.floating-btn:hover,
.floating-btn:focus-visible,
.call-btn:hover,
.call-btn:focus-visible,
.msg-btn:hover,
.msg-btn:focus-visible {
  color: #ffffff !important;
}

.btn-secondary:hover,
.btn-secondary:focus-visible,
.btn-outline:hover,
.btn-outline:focus-visible,
.btn-nav:hover,
.btn-nav:focus-visible {
  color: #ffffff !important;
}

.btn-light,
.btn-light:visited,
.cta-light-btn,
.cta-light-btn:visited,
.cta-section .cta-light-btn,
.cta-section .cta-light-btn:visited {
  color: var(--color-primary) !important;
  background: #ffffff !important;
}

.btn-light:hover,
.btn-light:focus-visible,
.cta-light-btn:hover,
.cta-light-btn:focus-visible,
.cta-section .cta-light-btn:hover,
.cta-section .cta-light-btn:focus-visible {
  color: var(--color-primary) !important;
  background: var(--color-bg-alt) !important;
}

/*
  When a primary button appears inside a dark/gradient CTA section, make it a
  light CTA button by default unless a more specific button class overrides it.
*/
.cta-section .btn-primary:not(.cta-light-btn),
.city-cta-section .btn-primary:not(.cta-light-btn) {
  color: var(--color-primary) !important;
  background: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.86);
}

.cta-section .btn-primary:not(.cta-light-btn):hover,
.cta-section .btn-primary:not(.cta-light-btn):focus-visible,
.city-cta-section .btn-primary:not(.cta-light-btn):hover,
.city-cta-section .btn-primary:not(.cta-light-btn):focus-visible {
  color: var(--color-primary) !important;
  background: var(--color-bg-alt) !important;
}

/* Final homepage CTA text contrast correction. */
.cta-section p:not(.section-eyebrow),
.home-final-cta p:not(.section-eyebrow) {
  color: rgba(255, 255, 255, 0.95);
}

.cta-section .section-eyebrow-light,
.home-final-cta .section-eyebrow-light {
  color: rgba(255, 255, 255, 0.75);
}



/* ===== Glossary page: anchor offset + cleanup: 2026-06-10-e ===== */

/*
  Offsets the glossary alphabet anchors so sticky-header jumps land below
  the header instead of hiding the selected letter.
*/
.page-glossary {
  scroll-padding-top: 75px;
}

.page-glossary .page-main-content {
  margin-top: 2.75rem;
}

.glossary-section {
  padding: clamp(2.5rem, 4vw, 3.5rem) 0 clamp(4rem, 6vw, 5.5rem);
}

.glossary-jump-label {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.glossary-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(2.25rem, 4vw, 3rem);
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--color-gray);
}

.glossary-index a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 36px;
  padding: 0.3rem 0.7rem;
  background: var(--color-bg-alt);
  border: 1px solid rgba(43, 80, 119, 0.14);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  font-size: 0.9rem;
  line-height: 1;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(43, 80, 119, 0.05);
}

.glossary-index a:hover,
.glossary-index a:focus-visible {
  color: #ffffff;
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  outline: none;
}

.glossary-list {
  max-width: 100%;
  margin: 0 auto;
}

.glossary-letter,
.glossary-term {
  scroll-margin-top: 120px;
}

.glossary-letter {
  color: var(--color-primary);
  font-size: clamp(1.65rem, 2.4vw, 2rem);
  line-height: 1.15;
  margin-bottom: 0.25rem;
  padding-top: 0.25rem;
}

.glossary-term {
  padding: 2.65rem 0 2.25rem 0;
  border-bottom: 1px solid var(--color-gray-trans);
}

.glossary-term:last-child {
  border-bottom: none;
}

.glossary-term h3 {
  color: var(--color-primary);
  font-size: 1.1rem;
  line-height: 1.35;
  margin: 0 0 0.5rem;
}

.glossary-term h3 code {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-size: 0.9rem;
}

.glossary-term p {
  color: var(--color-text-muted);
  font-size: clamp(0.98rem, 1.05vw, 1.06rem);
  line-height: 1.7;
  margin: 0;
}

.glossary-term .tag {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  line-height: 1.25;
  font-weight: 750;
  vertical-align: middle;
}

.tag-seo {
  background: rgba(43, 80, 119, 0.1);
  border: 1px solid rgba(43, 80, 119, 0.2);
  color: var(--color-primary);

}

.tag-aeo {
  background: rgba(224, 88, 42, 0.10);
  border: 1px solid rgba(224, 88, 42, 0.2);
  color: var(--color-secondary);
}

.tag-ai {
  background: rgba(224, 88, 42, 0.70);
  border: 1px solid rgba(224, 88, 42, 0.9);
  color: var(--color-white);
}

.tag-tech {
  background: rgba(43, 80, 119, 0.7);
  border: 1px solid rgba(43, 80, 119, 0.9);
  color: var(--color-white);
}

@media (max-width: 768px) {
  .page-glossary {
    scroll-padding-top: 115px;
  }

  .page-glossary .page-main-content {
    margin-top: 1.5rem;
  }

  .glossary-section {
    padding-top: 2rem;
  }

  .glossary-letter,
  .glossary-term {
    scroll-margin-top: 115px;
  }

  .glossary-index {
    justify-content: center;
  }

  .glossary-index a {
    min-width: 36px;
    min-height: 34px;
    padding: 0.28rem 0.58rem;
    font-size: 0.86rem;
  }
}

/* ===== Header navigation quote button refinement: 2026-06-10-g ===== */

/*
  Dedicated nav-only CTA button for the header quote link.
  This avoids using the larger global button sizing inside the primary nav.
*/
.main-nav .header-nav-quote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  height: 40px;
  padding: 0 1.05rem;
  border: 2px solid rgba(224, 88, 42, 0.34);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-secondary), rgba(224, 88, 42, 0.88));
  color: #ffffff !important;
  box-shadow: 0 5px 15px rgba(224, 88, 42, 0.20);
  font-size: 1.0rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  padding-bottom: 0;
  white-space: nowrap;
  transform: translateY(0);
}

.main-nav .header-nav-quote-btn::after {
  display: none !important;
}

.main-nav .header-nav-quote-btn:hover,
.main-nav .header-nav-quote-btn:focus-visible,
.main-nav .header-nav-quote-btn.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(224, 88, 42, 0.90), var(--color-secondary));
  border-color: rgba(224, 88, 42, 0.58);
  box-shadow: 0 9px 25px rgba(224, 88, 42, 0.28);
  transform: translateY(-2px);
  outline: none;
}

.main-nav .header-nav-quote-btn:focus-visible {
  box-shadow:
    0 9px 25px rgba(224, 88, 42, 0.28),
    0 0 0 4px rgba(224, 88, 42, 0.16);
}

@media (max-width: 999px) {
  .main-nav .header-nav-quote-btn {
    width: min(100%, 260px);
    min-height: 44px;
    height: 44px;
    font-size: 1rem;
  }
}

/* ===== Terms page content and list formatting: 2026-06-11-b ===== */

/*
  Refined Terms/Privacy-style legal content formatting.
  Scoped to .page-terms so global nav, footer, service cards, city grids,
  accordions and component lists are not affected.
*/
.page-terms .terms-section {
  padding: clamp(2.5rem, 4vw, 3.5rem) 0 clamp(4rem, 6vw, 5.5rem);
}

.page-terms .terms-content {
  max-width: 100%;
  margin: 0 auto;
}

.page-terms .terms-content > .glossary-letter {
  margin-bottom: 1.25rem;
}

.page-terms .terms-meta-card {
  padding: clamp(1.25rem, 2.4vw, 1.85rem);
  margin: clamp(1.25rem, 2.5vw, 2rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid rgba(43, 80, 119, 0.14);
  border-left: 5px solid var(--color-secondary);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffffff, var(--color-bg-alt));
  box-shadow: var(--shadow-card);
}

.page-terms .terms-meta-card p {
  color: var(--color-text-muted);
  font-size: clamp(0.98rem, 1.05vw, 1.06rem);
  line-height: 1.72;
  margin: 0;
}

.page-terms .terms-meta-card p + p {
  margin-top: 0.75rem;
}

.page-terms .terms-meta-card strong {
  color: var(--color-primary);
  font-weight: 850;
}

.page-terms .glossary-term {
  padding: 2.65rem 0 2.25rem 0;
  border-bottom: 1px solid var(--color-gray-trans);
  scroll-margin-top: 120px;
}

.page-terms .glossary-term:last-child {
  border-bottom: none;
}

.page-terms .glossary-term h3 {
  color: var(--color-primary);
  font-size: clamp(1.18rem, 1.35vw, 1.35rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin: 0 0 0.7rem;
}

.page-terms .glossary-term p {
  color: var(--color-text-muted);
  font-size: clamp(0.98rem, 1.05vw, 1.06rem);
  line-height: 1.74;
  margin: 0 0 1rem;
}

.page-terms .glossary-term p:last-child {
  margin-bottom: 0;
}

.page-terms .glossary-term a:not(.btn) {
  color: var(--color-primary);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(43, 80, 119, 0.28);
}

.page-terms .glossary-term a:not(.btn):hover,
.page-terms .glossary-term a:not(.btn):focus-visible {
  color: var(--color-secondary);
  text-decoration-color: rgba(224, 88, 42, 0.58);
}

.page-terms .glossary-term strong {
  color: var(--color-primary);
  font-weight: 850;
}

.page-terms .glossary-term ul,
.page-terms .glossary-term ol,
.page-terms .terms-content ul,
.page-terms .terms-content ol,
.page-terms .legal-content ul,
.page-terms .legal-content ol {
  display: grid;
  gap: 0.72rem;
  margin: 0.75rem 0 1.65rem;
  padding: 0;
}

.page-terms .glossary-term ul,
.page-terms .terms-content ul,
.page-terms .legal-content ul {
  list-style: none;
}

.page-terms .glossary-term ol,
.page-terms .terms-content ol,
.page-terms .legal-content ol {
  list-style: none;
  counter-reset: terms-counter;
}

.page-terms .glossary-term li,
.page-terms .terms-content li,
.page-terms .legal-content li {
  position: relative;
  color: var(--color-text-muted);
  font-size: clamp(0.97rem, 1.05vw, 1.05rem);
  line-height: 1.7;
}

.page-terms .glossary-term ul > li,
.page-terms .terms-content ul > li,
.page-terms .legal-content ul > li {
  padding-left: 1.55rem;
}

.page-terms .glossary-term ul > li::before,
.page-terms .terms-content ul > li::before,
.page-terms .legal-content ul > li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0.25rem;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(224, 88, 42, 0.11);
}

.page-terms .glossary-term ol > li,
.page-terms .terms-content ol > li,
.page-terms .legal-content ol > li {
  counter-increment: terms-counter;
  padding-left: 2.15rem;
}

.page-terms .glossary-term ol > li::before,
.page-terms .terms-content ol > li::before,
.page-terms .legal-content ol > li::before {
  content: counter(terms-counter);
  position: absolute;
  top: 0.1em;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  color: #ffffff;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(43, 80, 119, 0.08);
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 850;
}

.page-terms .glossary-term ul ul,
.page-terms .glossary-term ol ol,
.page-terms .glossary-term ul ol,
.page-terms .glossary-term ol ul {
  gap: 0.5rem;
  margin: 0.55rem 0 0.35rem;
}

.page-terms .glossary-term ul ul > li::before,
.page-terms .terms-content ul ul > li::before,
.page-terms .legal-content ul ul > li::before {
  width: 0.38rem;
  height: 0.38rem;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(43, 80, 119, 0.08);
}

@media (max-width: 768px) {
  .page-terms .terms-section {
    padding-top: 2rem;
  }

  .page-terms .glossary-term {
    padding: 2.0rem 0 1.75rem 0;
    scroll-margin-top: 115px;
  }

  .page-terms .glossary-term ul,
  .page-terms .glossary-term ol,
  .page-terms .terms-content ul,
  .page-terms .terms-content ol {
    gap: 0.62rem;
    margin-bottom: 1.45rem;
  }

  .page-terms .glossary-term li,
  .page-terms .terms-content li,
  .page-terms .legal-content li {
    font-size: 0.96rem;
    line-height: 1.68;
  }

  .page-terms .glossary-term ul > li,
  .page-terms .terms-content ul > li,
  .page-terms .legal-content ul > li {
    padding-left: 1.38rem;
  }

  .page-terms .glossary-term ol > li,
  .page-terms .terms-content ol > li,
  .page-terms .legal-content ol > li {
    padding-left: 2rem;
  }
}

/* ===== Privacy page content and list formatting: 2026-06-11-c ===== */

/*
  Refined Terms/Privacy-style legal content formatting.
  Scoped to .page-privacy so global nav, footer, service cards, city grids,
  accordions and component lists are not affected.
*/
.page-privacy .terms-section {
  padding: clamp(2.5rem, 4vw, 3.5rem) 0 clamp(4rem, 6vw, 5.5rem);
}

.page-privacy .terms-content {
  max-width: 100%;
  margin: 0 auto;
}

.page-privacy .terms-content > .glossary-letter {
  margin-bottom: 1.25rem;
}

.page-privacy .terms-meta-card {
  padding: clamp(1.25rem, 2.4vw, 1.85rem);
  margin: clamp(1.25rem, 2.5vw, 2rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid rgba(43, 80, 119, 0.14);
  border-left: 5px solid var(--color-secondary);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffffff, var(--color-bg-alt));
  box-shadow: var(--shadow-card);
}

.page-privacy .terms-meta-card p {
  color: var(--color-text-muted);
  font-size: clamp(0.98rem, 1.05vw, 1.06rem);
  line-height: 1.72;
  margin: 0;
}

.page-privacy .terms-meta-card p + p {
  margin-top: 0.75rem;
}

.page-privacy .terms-meta-card strong {
  color: var(--color-primary);
  font-weight: 850;
}

.page-privacy .glossary-term {
  padding: 2.65rem 0 2.25rem 0;
  border-bottom: 1px solid var(--color-gray-trans);
  scroll-margin-top: 120px;
}

.page-privacy .glossary-term:last-child {
  border-bottom: none;
}

.page-privacy .glossary-term h3 {
  color: var(--color-primary);
  font-size: clamp(1.18rem, 1.35vw, 1.35rem);
  line-height: 1.28;
  letter-spacing: -0.01em;
  margin: 0 0 0.7rem;
}

.page-privacy .glossary-term p {
  color: var(--color-text-muted);
  font-size: clamp(0.98rem, 1.05vw, 1.06rem);
  line-height: 1.74;
  margin: 0 0 1rem;
}

.page-privacy .glossary-term p:last-child {
  margin-bottom: 0;
}

.page-privacy .glossary-term a:not(.btn) {
  color: var(--color-primary);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(43, 80, 119, 0.28);
}

.page-privacy .glossary-term a:not(.btn):hover,
.page-privacy .glossary-term a:not(.btn):focus-visible {
  color: var(--color-secondary);
  text-decoration-color: rgba(224, 88, 42, 0.58);
}

.page-privacy .glossary-term strong {
  color: var(--color-primary);
  font-weight: 850;
}

.page-privacy .glossary-term ul,
.page-privacy .glossary-term ol,
.page-privacy .terms-content ul,
.page-privacy .terms-content ol,
.page-privacy .legal-content ul,
.page-privacy .legal-content ol {
  display: grid;
  gap: 0.72rem;
  margin: 0.25rem 0 0.75rem;
  padding: 0;
}

.page-privacy .glossary-term ul,
.page-privacy .terms-content ul,
.page-privacy .legal-content ul {
  list-style: none;
}

.page-privacy .glossary-term ol,
.page-privacy .terms-content ol,
.page-privacy .legal-content ol {
  list-style: none;
  counter-reset: terms-counter;
}

.page-privacy .glossary-term li,
.page-privacy .terms-content li,
.page-privacy .legal-content li {
  position: relative;
  color: var(--color-text-muted);
  font-size: clamp(0.97rem, 1.05vw, 1.05rem);
  line-height: 1.7;
}

.page-privacy .glossary-term ul > li,
.page-privacy .terms-content ul > li,
.page-privacy .legal-content ul > li {
  padding-left: 1.55rem;
}

.page-privacy .glossary-term ul > li::before,
.page-privacy .terms-content ul > li::before,
.page-privacy .legal-content ul > li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0.25rem;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(224, 88, 42, 0.11);
}

.page-privacy .glossary-term ol > li,
.page-privacy .terms-content ol > li,
.page-privacy .legal-content ol > li {
  counter-increment: terms-counter;
  padding-left: 2.15rem;
}

.page-privacy .glossary-term ol > li::before,
.page-privacy .terms-content ol > li::before,
.page-privacy .legal-content ol > li::before {
  content: counter(terms-counter);
  position: absolute;
  top: 0.1em;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  color: #ffffff;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(43, 80, 119, 0.08);
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 850;
}

.page-privacy .glossary-term ul ul,
.page-privacy .glossary-term ol ol,
.page-privacy .glossary-term ul ol,
.page-privacy .glossary-term ol ul {
  gap: 0.5rem;
  margin: 0.55rem 0 0.35rem;
}

.page-privacy .glossary-term ul ul > li::before,
.page-privacy .terms-content ul ul > li::before,
.page-privacy .legal-content ul ul > li::before {
  width: 0.38rem;
  height: 0.38rem;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(43, 80, 119, 0.08);
}

@media (max-width: 768px) {
  .page-privacy .terms-section {
    padding-top: 2rem;
  }

  .page-privacy .glossary-term {
    padding: 2.0rem 0 1.75rem 0;
    scroll-margin-top: 115px;
  }

  .page-privacy .glossary-term ul,
  .page-privacy .glossary-term ol,
  .page-privacy .terms-content ul,
  .page-privacy .terms-content ol {
    gap: 0.62rem;
    margin-bottom: 1.45rem;
  }

  .page-privacy .glossary-term li,
  .page-privacy .terms-content li,
  .page-privacy .legal-content li {
    font-size: 0.96rem;
    line-height: 1.68;
  }

  .page-privacy .glossary-term ul > li,
  .page-privacy .terms-content ul > li,
  .page-privacy .legal-content ul > li {
    padding-left: 1.38rem;
  }

  .page-privacy .glossary-term ol > li,
  .page-privacy .terms-content ol > li,
  .page-privacy .legal-content ol > li {
    padding-left: 2rem;
  }
}

.page-privacy .privacy-meta-card {
  border-left-color: var(--color-primary);
}

/* ===== Sitemap page layout: 2026-06-11-d ===== */

.page-sitemap .sitemap-section {
  padding: 0.25rem 0 3.5rem 0; /* clamp(2.5rem, 4vw, 3.5rem) 0 clamp(4rem, 6vw, 5.5rem); */
}

.page-sitemap .sitemap-content {
  display: grid;
  gap: clamp(2rem, 4vw, 3.25rem);
}

.page-sitemap .sitemap-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border: 1px solid rgba(43, 80, 119, 0.14);
  border-left: 5px solid var(--color-secondary);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #ffffff, var(--color-bg-alt));
  box-shadow: var(--shadow-card);
}

.page-sitemap .sitemap-hero-card h2 {
  color: var(--color-primary);
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 0.8rem;
}

.page-sitemap .sitemap-hero-card p:not(.section-eyebrow) {
  color: var(--color-text-muted);
  font-size: clamp(1rem, 1.1vw, 1.08rem);
  line-height: 1.7;
  max-width: 760px;
  margin: 0;
}

.page-sitemap .sitemap-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: flex-end;
}

.page-sitemap .sitemap-jump-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem;
  border: 1px solid rgba(43, 80, 119, 0.12);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 92px;
  z-index: 10;
}

.page-sitemap .sitemap-jump-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.42rem 0.95rem;
  border: 1px solid rgba(43, 80, 119, 0.14);
  border-radius: var(--radius-pill);
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-size: 0.88rem;
  line-height: 1.2;
  font-weight: 800;
  text-decoration: none;
}

.page-sitemap .sitemap-jump-nav a:hover,
.page-sitemap .sitemap-jump-nav a:focus-visible {
  color: #ffffff;
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  outline: none;
}

.page-sitemap .sitemap-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.page-sitemap .sitemap-feature-card {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  min-height: 100%;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  border: 1px solid rgba(43, 80, 119, 0.14);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  text-decoration: none;
}

.page-sitemap .sitemap-feature-card:hover,
.page-sitemap .sitemap-feature-card:focus-visible,
.page-sitemap .sitemap-link-card:hover,
.page-sitemap .sitemap-link-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(224, 88, 42, 0.28);
  box-shadow: var(--shadow-card-hover);
  outline: none;
}

.page-sitemap .sitemap-feature-card-primary {
  background: linear-gradient(135deg, var(--color-primary), rgba(43, 80, 119, 0.9));
  border-color: rgba(43, 80, 119, 0.2);
}

.page-sitemap .sitemap-feature-card-primary strong,
.page-sitemap .sitemap-feature-card-primary span {
  color: #ffffff;
}

.page-sitemap .sitemap-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 0.4rem;
  border-radius: 16px;
  background: rgba(43, 80, 119, 0.08);
  color: var(--color-primary);
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 900;
}

.page-sitemap .sitemap-feature-card-primary .sitemap-feature-icon {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.page-sitemap .sitemap-feature-label {
  color: var(--color-secondary);
  font-size: 0.76rem;
  line-height: 1.25;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.page-sitemap .sitemap-feature-card strong {
  color: var(--color-primary);
  font-size: clamp(1.18rem, 1.4vw, 1.35rem);
  line-height: 1.24;
}

.page-sitemap .sitemap-feature-card span:last-child {
  color: var(--color-text-muted);
  font-size: 0.94rem;
  line-height: 1.62;
}

.page-sitemap .sitemap-feature-card-primary span:last-child,
.page-sitemap .sitemap-feature-card-primary .sitemap-feature-label {
  color: rgba(255, 255, 255, 0.78);
}

.page-sitemap .sitemap-group {
  scroll-margin-top: 125px;
  display: grid;
  gap: clamp(1.35rem, 3vw, 2rem);
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid rgba(43, 80, 119, 0.10);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.page-sitemap .sitemap-group-highlight {
  background: linear-gradient(180deg, var(--color-bg-alt), #ffffff);
}

.page-sitemap .sitemap-group-header {
  max-width: 880px;
}

.page-sitemap .sitemap-group-header h2 {
  color: var(--color-primary);
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.7rem;
}

.page-sitemap .sitemap-group-header p:not(.section-eyebrow) {
  color: var(--color-text-muted);
  font-size: clamp(0.98rem, 1.05vw, 1.06rem);
  line-height: 1.7;
  margin: 0;
}

.page-sitemap .sitemap-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.page-sitemap .sitemap-card-grid-main,
.page-sitemap .sitemap-card-grid-legal {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-sitemap .sitemap-location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 0.75rem;
}

.page-sitemap .sitemap-link-card {
  display: grid;
  gap: 0.35rem;
  min-height: 100%;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(43, 80, 119, 0.12);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: 0 5px 15px rgba(43, 80, 119, 0.055);
  text-decoration: none;
}

.page-sitemap .sitemap-link-card-compact {
  align-content: center;
  min-height: 58px;
  padding: 0.78rem 0.9rem;
  border-radius: var(--radius-pill);
  text-align: center;
}

.page-sitemap .sitemap-link-title {
  color: var(--color-primary);
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 850;
}

.page-sitemap .sitemap-link-card-compact .sitemap-link-title {
  font-size: 0.9rem;
}

.page-sitemap .sitemap-link-desc {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.page-sitemap .sitemap-link-card:hover .sitemap-link-title,
.page-sitemap .sitemap-link-card:focus-visible .sitemap-link-title {
  color: var(--color-secondary);
}

.page-sitemap .sitemap-bottom-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-secondary), rgba(224, 88, 42, 0.92));
  box-shadow: var(--shadow-card);
}

.page-sitemap .sitemap-bottom-cta h2 {
  color: #ffffff;
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
  line-height: 1.14;
  margin: 0 0 0.65rem;
}

.page-sitemap .sitemap-bottom-cta p:not(.section-eyebrow) {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  max-width: 720px;
}

@media (max-width: 1180px) {
  .page-sitemap .sitemap-hero-card,
  .page-sitemap .sitemap-bottom-cta {
    grid-template-columns: 1fr;
  }

  .page-sitemap .sitemap-hero-actions {
    justify-content: flex-start;
  }

  .page-sitemap .sitemap-card-grid-main,
  .page-sitemap .sitemap-card-grid-legal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .page-sitemap .sitemap-feature-grid,
  .page-sitemap .sitemap-card-grid,
  .page-sitemap .sitemap-card-grid-main,
  .page-sitemap .sitemap-card-grid-legal {
    grid-template-columns: 1fr;
  }

  .page-sitemap .sitemap-jump-nav {
    position: relative;
    top: auto;
  }
}

@media (max-width: 768px) {
  .page-sitemap .sitemap-section {
    padding-top: 2rem;
  }

  .page-sitemap .sitemap-hero-card,
  .page-sitemap .sitemap-group,
  .page-sitemap .sitemap-bottom-cta {
    border-radius: var(--radius-lg);
  }

  .page-sitemap .sitemap-hero-actions .btn,
  .page-sitemap .sitemap-bottom-cta .btn {
    width: min(100%, 340px);
  }

  .page-sitemap .sitemap-location-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .page-sitemap .sitemap-location-grid {
    grid-template-columns: 1fr;
  }

  .page-sitemap .sitemap-jump-nav {
    justify-content: stretch;
  }

  .page-sitemap .sitemap-jump-nav a {
    width: 100%;
  }
}

/* ===== SEO Audit service page layout: 2026-06-11-e ===== */

.page-seo-audit .seo-audit-section {
  display: grid;
  gap: clamp(2rem, 4vw, 3.25rem);
  padding: 0; /* clamp(2.5rem, 4vw, 3.5rem) 0 clamp(4rem, 6vw, 5.5rem) */
}

.page-seo-audit .seo-audit-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.45rem);
  border: 1px solid rgba(43, 80, 119, 0.14);
  border-left: 5px solid var(--color-secondary);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #ffffff, var(--color-bg-alt));
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}

.page-seo-audit .seo-audit-hero-card::after {
  content: "";
  position: absolute;
  right: -110px;
  top: -120px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(224, 88, 42, 0.09);
  pointer-events: none;
}

.page-seo-audit .seo-audit-hero-content,
.page-seo-audit .seo-audit-score-card {
  position: relative;
  z-index: 1;
}

.page-seo-audit .seo-audit-hero-card h2,
.page-seo-audit .seo-audit-content-block h2,
.page-seo-audit .seo-audit-section-header h2,
.page-seo-audit .seo-audit-rich-card h2,
.page-seo-audit .seo-audit-pricing-card h2 {
  color: var(--color-primary);
  font-size: clamp(1.85rem, 2.8vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 0.9rem;
}

.page-seo-audit .seo-audit-hero-card p:not(.section-eyebrow),
.page-seo-audit .seo-audit-content-block p,
.page-seo-audit .seo-audit-rich-card p,
.page-seo-audit .seo-audit-pricing-card p {
  color: var(--color-text-muted);
  font-size: clamp(1rem, 1.08vw, 1.07rem);
  line-height: 1.72;
  margin: 0;
}

.page-seo-audit .seo-audit-hero-card p + p,
.page-seo-audit .seo-audit-content-block p + p,
.page-seo-audit .seo-audit-rich-card p + p {
  margin-top: 1rem;
}

.page-seo-audit .seo-audit-hero-actions,
.page-seo-audit .seo-audit-pricing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.55rem;
}

.page-seo-audit .seo-audit-score-card {
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-primary), rgba(43, 80, 119, 0.9));
  box-shadow: var(--shadow-card);
}

.page-seo-audit .seo-audit-score-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-bottom: 0.25rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
}

.page-seo-audit .seo-audit-score-card strong {
  color: #ffffff;
  font-size: 1.24rem;
  line-height: 1.25;
}

.page-seo-audit .seo-audit-score-card span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.6;
}

.page-seo-audit .seo-audit-intro-grid,
.page-seo-audit .seo-audit-split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.page-seo-audit .seo-audit-intro-card,
.page-seo-audit .seo-audit-rich-card {
  padding: clamp(1.35rem, 2.6vw, 2.1rem);
  border: 1px solid rgba(43, 80, 119, 0.14);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.page-seo-audit .seo-audit-intro-card {
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.page-seo-audit .seo-audit-intro-card-featured {
  background: linear-gradient(180deg, var(--color-bg-alt), #ffffff);
  border-top: 4px solid var(--color-secondary);
}

.page-seo-audit .seo-audit-card-kicker {
  color: var(--color-secondary);
  font-size: 0.75rem;
  line-height: 1.25;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-seo-audit .seo-audit-intro-card h3,
.page-seo-audit .seo-audit-module-card h3 {
  color: var(--color-primary);
  font-size: clamp(1.22rem, 1.45vw, 1.4rem);
  line-height: 1.24;
  margin: 0;
}

.page-seo-audit .seo-audit-intro-card p,
.page-seo-audit .seo-audit-module-card p {
  color: var(--color-text-muted);
  font-size: 0.96rem;
  line-height: 1.68;
  margin: 0;
}

.page-seo-audit .seo-audit-intro-card ul {
  display: grid;
  gap: 0.55rem;
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
}

.page-seo-audit .seo-audit-intro-card li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.page-seo-audit .seo-audit-intro-card li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0.18rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(224, 88, 42, 0.11);
}

.page-seo-audit .seo-audit-content-block {
  padding: clamp(1.45rem, 2.8vw, 2.25rem);
  border: 1px solid rgba(43, 80, 119, 0.12);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.page-seo-audit .seo-audit-modules-panel {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.1rem);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-primary), rgba(43, 80, 119, 0.92));
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}

.page-seo-audit .seo-audit-modules-panel::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -150px;
  top: -170px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.page-seo-audit .seo-audit-modules-header,
.page-seo-audit .seo-audit-module-grid {
  position: relative;
  z-index: 1;
}

.page-seo-audit .seo-audit-modules-header {
  max-width: 860px;
}

.page-seo-audit .seo-audit-modules-header h2 {
  color: #ffffff;
  font-size: clamp(1.85rem, 2.8vw, 2.65rem);
  line-height: 1.13;
  letter-spacing: -0.025em;
  margin: 0 0 0.75rem;
}

.page-seo-audit .seo-audit-modules-header p:not(.section-eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

.page-seo-audit .seo-audit-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.page-seo-audit .seo-audit-module-card {
  min-height: 100%;
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.page-seo-audit .seo-audit-module-card h3,
.page-seo-audit .seo-audit-module-card p {
  color: #ffffff;
}

.page-seo-audit .seo-audit-module-card p {
  color: rgba(255, 255, 255, 0.74);
}

.page-seo-audit .seo-audit-module-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1;
}

.page-seo-audit .seo-audit-process-section {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.8rem);
}

.page-seo-audit .seo-audit-process-list {
  list-style: none;
  counter-reset: audit-process;
  display: grid;
  gap: 0.95rem;
  margin: 0;
  padding: 0;
}

.page-seo-audit .seo-audit-process-list li {
  counter-increment: audit-process;
  position: relative;
  display: grid;
  gap: 0.3rem;
  padding: 1.25rem 1.25rem 1.25rem 4.1rem;
  border: 1px solid rgba(43, 80, 119, 0.12);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.page-seo-audit .seo-audit-process-list li::before {
  content: counter(audit-process);
  position: absolute;
  top: 1.18rem;
  left: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 50%;
  color: #ffffff;
  background: var(--color-secondary);
  box-shadow: 0 0 0 6px rgba(224, 88, 42, 0.10);
  font-size: 0.85rem;
  line-height: 1;
  font-weight: 900;
}

.page-seo-audit .seo-audit-process-list strong {
  color: var(--color-primary);
  font-size: 1.04rem;
  line-height: 1.35;
}

.page-seo-audit .seo-audit-process-list span {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.62;
}

.page-seo-audit .seo-audit-rich-card-alt {
  background: var(--color-bg-alt);
}

.page-seo-audit .seo-audit-tool-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.page-seo-audit .seo-audit-tool-cloud span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(43, 80, 119, 0.14);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--color-primary);
  font-size: 0.82rem;
  line-height: 1.25;
  font-weight: 800;
}

.page-seo-audit .seo-audit-pricing-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.45rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-secondary), rgba(224, 88, 42, 0.92));
  box-shadow: var(--shadow-card);
  margin-bottom: 3.5rem
}

.page-seo-audit .seo-audit-pricing-card h2,
.page-seo-audit .seo-audit-pricing-card p,
.page-seo-audit .seo-audit-pricing-card .section-eyebrow {
  color: #ffffff;
}

.page-seo-audit .seo-audit-pricing-card p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 760px;
}

.page-seo-audit .seo-audit-pricing-actions {
  justify-content: flex-end;
  margin-top: 0;
}

@media (max-width: 1180px) {
  .page-seo-audit .seo-audit-hero-card,
  .page-seo-audit .seo-audit-pricing-card {
    grid-template-columns: 1fr;
  }

  .page-seo-audit .seo-audit-pricing-actions {
    justify-content: flex-start;
  }

  .page-seo-audit .seo-audit-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .page-seo-audit .seo-audit-intro-grid,
  .page-seo-audit .seo-audit-split-grid,
  .page-seo-audit .seo-audit-module-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-seo-audit .seo-audit-section {
    padding-top: 2rem;
  }

  .page-seo-audit .seo-audit-hero-card,
  .page-seo-audit .seo-audit-content-block,
  .page-seo-audit .seo-audit-modules-panel,
  .page-seo-audit .seo-audit-rich-card,
  .page-seo-audit .seo-audit-pricing-card {
    border-radius: var(--radius-lg);
  }

  .page-seo-audit .seo-audit-hero-actions .btn,
  .page-seo-audit .seo-audit-pricing-actions .btn {
    width: min(100%, 340px);
  }

  .page-seo-audit .seo-audit-process-list li {
    padding: 1.15rem 1.05rem 1.15rem 3.75rem;
  }

  .page-seo-audit .seo-audit-process-list li::before {
    left: 1.05rem;
  }
}

@media (max-width: 520px) {
  .page-seo-audit .seo-audit-hero-actions .btn,
  .page-seo-audit .seo-audit-pricing-actions .btn {
    width: 100%;
  }

  .page-seo-audit .seo-audit-process-list li {
    padding-left: 1.05rem;
    padding-top: 4rem;
  }

  .page-seo-audit .seo-audit-process-list li::before {
    top: 1.1rem;
  }
}

/* ===== Service detail page redesign system: 2026-06-12-a ===== */

/*
  Shared layout system for individual service pages redesigned from the
  SEO Audit presentation style. Scoped to .page-service-redesign so existing
  cards, legal pages, sitemap, glossary and location pages are not affected.
*/
.page-service-redesign .service-detail-section {
  display: grid;
  gap: clamp(2rem, 4vw, 3.25rem);
  /* padding: clamp(2.5rem, 4vw, 3.5rem) 0 clamp(4rem, 6vw, 5.5rem); */
}

.page-service-redesign .service-detail-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.38fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
  padding: clamp(1.5rem, 3vw, 2.45rem);
  border: 1px solid rgba(43, 80, 119, 0.14);
  border-left: 5px solid var(--color-secondary);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #ffffff, var(--color-bg-alt));
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}

.page-service-redesign .service-detail-hero-card::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(224, 88, 42, 0.08);
  pointer-events: none;
}

.page-service-redesign .service-detail-hero-content,
.page-service-redesign .service-detail-summary-card {
  position: relative;
  z-index: 1;
}

.page-service-redesign .service-detail-hero-card h2 {
  color: var(--color-primary);
  font-size: clamp(2rem, 3vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.page-service-redesign .service-detail-copy p {
  color: var(--color-text-muted);
  font-size: clamp(0.98rem, 1.05vw, 1.06rem);
  line-height: 1.74;
  margin: 0 0 1rem;
}

.page-service-redesign .service-detail-copy p:last-child {
  margin-bottom: 0;
}

.page-service-redesign .service-detail-copy strong {
  color: var(--color-primary);
  font-weight: 850;
}

.page-service-redesign .service-detail-copy a:not(.btn) {
  color: var(--color-primary);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(43, 80, 119, 0.28);
}

.page-service-redesign .service-detail-copy a:not(.btn):hover,
.page-service-redesign .service-detail-copy a:not(.btn):focus-visible {
  color: var(--color-secondary);
  text-decoration-color: rgba(224, 88, 42, 0.58);
}

.page-service-redesign .service-detail-copy ul,
.page-service-redesign .service-detail-copy ol {
  display: grid;
  gap: 0.66rem;
  margin: 0.75rem 0 1.4rem;
  padding: 0;
  list-style: none;
}

.page-service-redesign .service-detail-copy li {
  position: relative;
  color: var(--color-text-muted);
  font-size: clamp(0.96rem, 1.02vw, 1.03rem);
  line-height: 1.68;
}

.page-service-redesign .service-detail-copy ul > li {
  padding-left: 1.55rem;
}

.page-service-redesign .service-detail-copy ul > li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0.25rem;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(224, 88, 42, 0.11);
}

.page-service-redesign .service-detail-copy ol {
  counter-reset: service-detail-counter;
}

.page-service-redesign .service-detail-copy ol > li {
  counter-increment: service-detail-counter;
  padding-left: 2.15rem;
}

.page-service-redesign .service-detail-copy ol > li::before {
  content: counter(service-detail-counter);
  position: absolute;
  top: 0.12em;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  color: #ffffff;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(43, 80, 119, 0.08);
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 850;
}

.page-service-redesign .service-detail-hero-actions,
.page-service-redesign .service-detail-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.65rem;
}

.page-service-redesign .service-detail-summary-card {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-primary), rgba(43, 80, 119, 0.92));
  box-shadow: var(--shadow-card);
  min-height: 100%;
}

.page-service-redesign .service-detail-summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-bottom: 0.35rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
}

.page-service-redesign .service-detail-summary-card strong {
  color: #ffffff;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.page-service-redesign .service-detail-summary-card span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  line-height: 1.62;
}

.page-service-redesign .service-detail-focus-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.page-service-redesign .service-detail-focus-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.28rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.74rem;
  line-height: 1.2;
  font-weight: 800;
}

.page-service-redesign .service-detail-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.25rem);
}

.page-service-redesign .service-detail-quick-card,
.page-service-redesign .service-detail-section-card {
  border: 1px solid rgba(43, 80, 119, 0.14);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.page-service-redesign .service-detail-quick-card {
  display: grid;
  gap: 0.4rem;
  padding: clamp(1.15rem, 2vw, 1.55rem);
  min-height: 100%;
}

.page-service-redesign .service-detail-quick-card:hover,
.page-service-redesign .service-detail-section-card:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 88, 42, 0.28);
  box-shadow: var(--shadow-card-hover);
}

.page-service-redesign .service-detail-quick-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 0.35rem;
  border-radius: 12px;
  background: rgba(224, 88, 42, 0.1);
  color: var(--color-secondary);
  font-size: 0.82rem;
  font-weight: 900;
}

.page-service-redesign .service-detail-quick-card h3 {
  color: var(--color-primary);
  font-size: 1.08rem;
  line-height: 1.25;
  margin: 0;
}

.page-service-redesign .service-detail-quick-card p {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.58;
  margin: 0;
}

.page-service-redesign .service-detail-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.58rem;
  justify-content: center;
  padding: 0.95rem;
  border: 1px solid rgba(43, 80, 119, 0.12);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.page-service-redesign .service-detail-jump-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(43, 80, 119, 0.14);
  border-radius: var(--radius-pill);
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-size: 0.82rem;
  line-height: 1.2;
  font-weight: 800;
  text-decoration: none;
}

.page-service-redesign .service-detail-jump-nav a:hover,
.page-service-redesign .service-detail-jump-nav a:focus-visible {
  color: #ffffff;
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  outline: none;
}

.page-service-redesign .service-detail-process-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3vw, 2.45rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-primary), rgba(43, 80, 119, 0.92));
  box-shadow: var(--shadow-card);
}

.page-service-redesign .service-detail-process-header h2 {
  color: #ffffff;
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin: 0;
}

.page-service-redesign .service-detail-process-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: service-process;
}

.page-service-redesign .service-detail-process-list li {
  counter-increment: service-process;
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1rem 1rem 3.15rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  position: relative;
}

.page-service-redesign .service-detail-process-list li::before {
  content: counter(service-process);
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  color: var(--color-primary);
  background: #ffffff;
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 900;
}

.page-service-redesign .service-detail-process-list strong {
  color: #ffffff;
  font-size: 0.98rem;
  line-height: 1.3;
}

.page-service-redesign .service-detail-process-list span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
  line-height: 1.55;
}

.page-service-redesign .service-detail-content-stack {
  display: grid;
  gap: clamp(1.1rem, 2.5vw, 1.6rem);
}

.page-service-redesign .service-detail-section-card {
  padding: clamp(1.35rem, 2.8vw, 2.25rem);
  scroll-margin-top: 125px;
}

.page-service-redesign .service-detail-section-card h2 {
  color: var(--color-primary);
  font-size: clamp(1.55rem, 2.3vw, 2.15rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin: 0 0 0.85rem;
}

.page-service-redesign .service-detail-section-card-accent {
  border-left: 5px solid var(--color-secondary);
  background: linear-gradient(135deg, #ffffff, var(--color-bg-alt));
}

.page-service-redesign .service-detail-final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.45rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-secondary), rgba(224, 88, 42, 0.92));
  box-shadow: var(--shadow-card);
  margin-bottom: 3.5rem;
}

.page-service-redesign .service-detail-final-cta h2 {
  color: #ffffff;
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin: 0 0 0.65rem;
}

.page-service-redesign .service-detail-final-cta p:not(.section-eyebrow) {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  max-width: 760px;
}

@media (max-width: 1180px) {
  .page-service-redesign .service-detail-hero-card,
  .page-service-redesign .service-detail-process-panel,
  .page-service-redesign .service-detail-final-cta {
    grid-template-columns: 1fr;
  }

  .page-service-redesign .service-detail-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-service-redesign .service-detail-final-actions {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .page-service-redesign .service-detail-section {
    padding-top: 2rem;
  }

  .page-service-redesign .service-detail-quick-grid {
    grid-template-columns: 1fr;
  }

  .page-service-redesign .service-detail-hero-card,
  .page-service-redesign .service-detail-summary-card,
  .page-service-redesign .service-detail-process-panel,
  .page-service-redesign .service-detail-section-card,
  .page-service-redesign .service-detail-final-cta {
    border-radius: var(--radius-lg);
  }

  .page-service-redesign .service-detail-jump-nav {
    justify-content: stretch;
  }

  .page-service-redesign .service-detail-jump-nav a {
    width: 100%;
  }

  .page-service-redesign .service-detail-hero-actions .btn,
  .page-service-redesign .service-detail-final-actions .btn {
    width: min(100%, 360px);
  }

  .page-service-redesign .service-detail-section-card {
    scroll-margin-top: 115px;
  }
}

@media (max-width: 420px) {
  .page-service-redesign .service-detail-hero-card,
  .page-service-redesign .service-detail-summary-card,
  .page-service-redesign .service-detail-process-panel,
  .page-service-redesign .service-detail-section-card,
  .page-service-redesign .service-detail-final-cta {
    padding: 1.2rem;
  }

  .page-service-redesign .service-detail-process-list li {
    padding-left: 2.8rem;
  }
}

/* ===== About page redesign system: 2026-06-12-c ===== */

/*
  Redesigned About page presentation in the same visual language as the
  service detail and sitemap pages. Scoped to .page-about-redesign so the
  older About styles can remain safely in the stylesheet without affecting
  other pages.
*/

.page-about-redesign .about-redesign-section {
  display: grid;
  gap: clamp(2rem, 4vw, 3.25rem);
  padding: /* clamp(2.5rem, 4vw, 3.5rem) */ 0 /* clamp(4rem, 6vw, 5.5rem) */ ;
}

.page-about-redesign .about-redesign-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
  padding: clamp(1.5rem, 3vw, 2.45rem);
  border: 1px solid rgba(43, 80, 119, 0.14);
  border-left: 5px solid var(--color-secondary);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #ffffff, var(--color-bg-alt));
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}

.page-about-redesign .about-redesign-hero-card::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  background: rgba(224, 88, 42, 0.08);
  pointer-events: none;
}

.page-about-redesign .about-redesign-hero-content,
.page-about-redesign .about-redesign-founder-card {
  position: relative;
  z-index: 1;
}

.page-about-redesign .about-redesign-hero-card h2 {
  color: var(--color-primary);
  font-size: clamp(2rem, 3vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.page-about-redesign .about-redesign-lead {
  color: rgba(43, 80, 119, 0.92);
  font-size: clamp(1.04rem, 1.18vw, 1.15rem);
  line-height: 1.74;
  margin-bottom: 1rem;
}

.page-about-redesign .about-redesign-hero-content p:not(.section-eyebrow):not(.about-redesign-lead),
.page-about-redesign .about-redesign-philosophy-copy p,
.page-about-redesign .about-redesign-feature-card p:not(.section-eyebrow),
.page-about-redesign .about-redesign-evolution-intro p,
.page-about-redesign .about-redesign-ai-header p,
.page-about-redesign .about-redesign-callout p:not(.section-eyebrow) {
  color: var(--color-text-muted);
  font-size: clamp(0.98rem, 1.05vw, 1.06rem);
  line-height: 1.74;
  margin: 0 0 1rem;
}

.page-about-redesign .about-redesign-hero-actions,
.page-about-redesign .about-redesign-callout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.65rem;
}

.page-about-redesign .about-redesign-founder-card {
  display: grid;
  min-height: 100%;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-primary), rgba(43, 80, 119, 0.92));
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.page-about-redesign .about-redesign-founder-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
  object-position: center center;
}

.page-about-redesign .about-redesign-founder-caption {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 1.25rem 1.25rem;
  background: linear-gradient(135deg, var(--color-primary), rgba(43, 80, 119, 0.94));
}

.page-about-redesign .about-redesign-founder-caption span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  line-height: 1.25;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-about-redesign .about-redesign-founder-caption strong {
  color: #ffffff;
  font-size: 0.96rem;
  line-height: 1.45;
  font-weight: 800;
}

.page-about-redesign .about-redesign-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.25rem);
}

.page-about-redesign .about-redesign-stat-card,
.page-about-redesign .about-redesign-feature-card,
.page-about-redesign .about-redesign-ai-card {
  border: 1px solid rgba(43, 80, 119, 0.14);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.page-about-redesign .about-redesign-stat-card {
  display: grid;
  gap: 0.35rem;
  align-content: center;
  min-height: 135px;
  padding: clamp(1.1rem, 2vw, 1.55rem);
  text-align: center;
}

.page-about-redesign .about-redesign-stat-card:hover,
.page-about-redesign .about-redesign-feature-card:hover,
.page-about-redesign .about-redesign-ai-card:hover,
.page-about-redesign .about-redesign-ai-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(224, 88, 42, 0.28);
  box-shadow: var(--shadow-card-hover);
  outline: none;
}

.page-about-redesign .about-redesign-stat-card-accent {
  background: linear-gradient(135deg, var(--color-secondary), rgba(224, 88, 42, 0.9));
  border-color: rgba(224, 88, 42, 0.28);
}

.page-about-redesign .about-redesign-stat-number {
  color: var(--color-primary);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.page-about-redesign .about-redesign-stat-label {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
  font-weight: 750;
}

.page-about-redesign .about-redesign-stat-card-accent .about-redesign-stat-number,
.page-about-redesign .about-redesign-stat-card-accent .about-redesign-stat-label {
  color: #ffffff;
}

.page-about-redesign .about-redesign-philosophy-panel {
  display: grid;
  grid-template-columns: minmax(250px, 0.56fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  padding: clamp(1.5rem, 3vw, 2.45rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-primary), rgba(43, 80, 119, 0.92));
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}

.page-about-redesign .about-redesign-philosophy-panel::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -150px;
  top: -170px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.page-about-redesign .about-redesign-philosophy-header,
.page-about-redesign .about-redesign-philosophy-copy {
  position: relative;
  z-index: 1;
}

.page-about-redesign .about-redesign-philosophy-header h2,
.page-about-redesign .about-redesign-callout h2 {
  color: #ffffff;
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin: 0;
}

.page-about-redesign .about-redesign-philosophy-copy p {
  color: rgba(255, 255, 255, 0.76);
}

.page-about-redesign .about-redesign-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.page-about-redesign .about-redesign-feature-card {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding: clamp(1.35rem, 2.6vw, 2.1rem);
}

.page-about-redesign .about-redesign-feature-card-accent {
  background: linear-gradient(180deg, var(--color-bg-alt), #ffffff);
  border-top: 4px solid var(--color-secondary);
}

.page-about-redesign .about-redesign-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-bottom: 0.25rem;
  border-radius: 18px;
  background: rgba(43, 80, 119, 0.08);
  color: var(--color-primary);
  font-size: 2rem;
  line-height: 1;
}

.page-about-redesign .about-redesign-feature-card h3 {
  color: var(--color-primary);
  font-size: clamp(1.28rem, 1.65vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

.page-about-redesign .about-redesign-feature-card a:not(.btn) {
  color: var(--color-primary);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(43, 80, 119, 0.28);
}

.page-about-redesign .about-redesign-feature-card a:not(.btn):hover,
.page-about-redesign .about-redesign-feature-card a:not(.btn):focus-visible {
  color: var(--color-secondary);
  text-decoration-color: rgba(224, 88, 42, 0.58);
}

.page-about-redesign .about-redesign-evolution-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.5fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3vw, 2.45rem);
  border: 1px solid rgba(43, 80, 119, 0.14);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #ffffff, var(--color-bg-alt));
  box-shadow: var(--shadow-card);
}

.page-about-redesign .about-redesign-evolution-intro h2,
.page-about-redesign .about-redesign-ai-header h2 {
  color: var(--color-primary);
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin: 0 0 0.8rem;
}

.page-about-redesign .about-redesign-evolution-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: about-evolution;
}

.page-about-redesign .about-redesign-evolution-list li {
  counter-increment: about-evolution;
  display: grid;
  gap: 0.22rem;
  padding: 1rem 1rem 1rem 3.15rem;
  border: 1px solid rgba(43, 80, 119, 0.12);
  border-radius: var(--radius-md);
  background: #ffffff;
  position: relative;
}

.page-about-redesign .about-redesign-evolution-list li::before {
  content: counter(about-evolution);
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  color: #ffffff;
  background: var(--color-secondary);
  box-shadow: 0 0 0 5px rgba(224, 88, 42, 0.1);
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 900;
}

.page-about-redesign .about-redesign-evolution-list strong {
  color: var(--color-primary);
  font-size: 0.98rem;
  line-height: 1.3;
}

.page-about-redesign .about-redesign-evolution-list span {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.page-about-redesign .about-redesign-ai-panel {
  display: grid;
  gap: clamp(1.35rem, 3vw, 2rem);
  padding: clamp(1.5rem, 3vw, 2.45rem);
  border: 1px solid rgba(43, 80, 119, 0.12);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.page-about-redesign .about-redesign-ai-header {
  max-width: 860px;
}

.page-about-redesign .about-redesign-ai-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.25rem);
}

.page-about-redesign .about-redesign-ai-card {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  min-height: 100%;
  padding: clamp(1.2rem, 2.2vw, 1.65rem);
  text-decoration: none;
}

.page-about-redesign .about-redesign-ai-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 0.35rem;
  border-radius: 16px;
  background: rgba(224, 88, 42, 0.1);
  color: var(--color-secondary);
  font-size: 1.55rem;
  line-height: 1;
}

.page-about-redesign .about-redesign-ai-card strong {
  color: var(--color-primary);
  font-size: 1.16rem;
  line-height: 1.25;
  font-weight: 900;
}

.page-about-redesign .about-redesign-ai-card span:last-child {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.58;
}

.page-about-redesign .about-redesign-ai-card:hover strong,
.page-about-redesign .about-redesign-ai-card:focus-visible strong {
  color: var(--color-secondary);
}

.page-about-redesign .about-redesign-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.45rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-secondary), rgba(224, 88, 42, 0.92));
  box-shadow: var(--shadow-card);
}

.page-about-redesign .about-redesign-callout p:not(.section-eyebrow) {
  color: rgba(255, 255, 255, 0.9);
  max-width: 760px;
}

.page-about-redesign .about-redesign-callout-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.page-about-redesign .about-final-cta p:not(.section-eyebrow) {
  color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 1180px) {
  .page-about-redesign .about-redesign-hero-card,
  .page-about-redesign .about-redesign-philosophy-panel,
  .page-about-redesign .about-redesign-evolution-panel,
  .page-about-redesign .about-redesign-callout {
    grid-template-columns: 1fr;
  }

  .page-about-redesign .about-redesign-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-about-redesign .about-redesign-callout-actions {
    justify-content: flex-start;
  }

  .page-about-redesign .about-redesign-founder-image {
    min-height: 420px;
  }
}

@media (max-width: 900px) {
  .page-about-redesign .about-redesign-feature-grid,
  .page-about-redesign .about-redesign-ai-grid {
    grid-template-columns: 1fr;
  }

  .page-about-redesign .about-redesign-founder-image {
    min-height: 360px;
  }
}

@media (max-width: 768px) {
  .page-about-redesign .page-main-content {
    margin-top: 1.5rem;
  }

  .page-about-redesign .about-redesign-section {
    padding-top: 2rem;
  }

  .page-about-redesign .about-redesign-hero-card,
  .page-about-redesign .about-redesign-founder-card,
  .page-about-redesign .about-redesign-philosophy-panel,
  .page-about-redesign .about-redesign-feature-card,
  .page-about-redesign .about-redesign-evolution-panel,
  .page-about-redesign .about-redesign-ai-panel,
  .page-about-redesign .about-redesign-callout {
    border-radius: var(--radius-lg);
  }

  .page-about-redesign .about-redesign-hero-actions .btn,
  .page-about-redesign .about-redesign-callout-actions .btn {
    width: min(100%, 360px);
  }

  .page-about-redesign .about-redesign-stats-grid {
    grid-template-columns: 1fr;
  }

  .page-about-redesign .about-redesign-stat-card {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .page-about-redesign .about-redesign-hero-card,
  .page-about-redesign .about-redesign-philosophy-panel,
  .page-about-redesign .about-redesign-feature-card,
  .page-about-redesign .about-redesign-evolution-panel,
  .page-about-redesign .about-redesign-ai-panel,
  .page-about-redesign .about-redesign-callout {
    padding: 1.2rem;
  }

  .page-about-redesign .about-redesign-founder-image {
    min-height: 280px;
  }

  .page-about-redesign .about-redesign-evolution-list li {
    padding-left: 2.85rem;
  }

  .page-about-redesign .about-redesign-hero-actions .btn,
  .page-about-redesign .about-redesign-callout-actions .btn {
    width: 100%;
  }
}

/* ===== Homepage redesign system: 2026-06-12-d ===== */

/*
  Homepage refinement layer using the newer Search Gurus visual system.
  Scoped primarily to .page-home-redesign and homepage-specific section
  classes so older sections remain safe for reuse elsewhere.
*/
.page-home-redesign .home-content-shell {
  align-items: start;
  padding-top: 0;
}

.page-home-redesign .page-main-content {
  margin-top: 0;
}

.page-home-redesign .hero-home-redesign .hero-subheadline {
  max-width: 880px;
}

.page-home-redesign .home-trust-strip-redesign {
  margin-top: -2.75rem;
  padding-bottom: clamp(2.25rem, 4vw, 3rem);
}

.page-home-redesign .home-trust-grid {
  position: relative;
  z-index: 3;
}

.page-home-redesign .home-trust-item {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  min-height: 100%;
  padding: clamp(1.05rem, 2vw, 1.45rem);
  border: 1px solid rgba(43, 80, 119, 0.14);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.page-home-redesign .home-trust-item:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 88, 42, 0.28);
  box-shadow: var(--shadow-card-hover);
}

.page-home-redesign .home-trust-item-accent {
  background: linear-gradient(135deg, var(--color-secondary), rgba(224, 88, 42, 0.9));
  border-color: rgba(224, 88, 42, 0.28);
}

.page-home-redesign .home-trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.15rem;
  border-radius: 13px;
  background: rgba(43, 80, 119, 0.08);
  color: var(--color-primary);
  font-size: 1.25rem;
  line-height: 1;
}

.page-home-redesign .home-trust-item-accent .home-trust-icon {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.page-home-redesign .home-trust-item strong {
  color: var(--color-primary);
  font-size: 1.08rem;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.015em;
}

.page-home-redesign .home-trust-item span:last-child {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.48;
}

.page-home-redesign .home-trust-item-accent strong,
.page-home-redesign .home-trust-item-accent span:last-child {
  color: #ffffff;
}

.page-home-redesign .home-visibility-section,
.page-home-redesign .home-audit-section-redesign,
.page-home-redesign .home-method-section,
.page-home-redesign .home-ai-gateway-section,
.page-home-redesign .home-proof-section-redesign,
.page-home-redesign .home-faq-section-redesign {
  padding: clamp(3.0rem, 6vw, 3.25rem) 0;
}

.page-home-redesign .home-visibility-section {
  padding-top: clamp(2.25rem, 4vw, 3.5rem);
}

.page-home-redesign .home-visibility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.page-home-redesign .home-visibility-card {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  min-height: 100%;
  padding: clamp(1.35rem, 2.6vw, 2.1rem);
  border: 1px solid rgba(43, 80, 119, 0.14);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.page-home-redesign .home-visibility-card:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 88, 42, 0.28);
  box-shadow: var(--shadow-card-hover);
}

.page-home-redesign .home-visibility-card-featured {
  background: linear-gradient(180deg, var(--color-bg-alt), #ffffff);
  border-top: 4px solid var(--color-secondary);
}

.page-home-redesign .home-visibility-icon,
.page-home-redesign .proof-card-icon,
.page-home-redesign .home-ai-gateway-icon,
.region-section-redesign .region-cluster-icon,
.why-us-redesign .benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  line-height: 1;
}

.page-home-redesign .home-visibility-icon,
.page-home-redesign .proof-card-icon,
.page-home-redesign .home-ai-gateway-icon,
.region-section-redesign .region-cluster-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: rgba(43, 80, 119, 0.08);
  color: var(--color-primary);
  font-size: 1.9rem;
}

.page-home-redesign .home-card-kicker {
  color: var(--color-secondary);
  font-size: 0.74rem;
  line-height: 1.25;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-home-redesign .home-visibility-card h3 {
  color: var(--color-primary);
  font-size: clamp(1.22rem, 1.55vw, 1.45rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 0;
}

.page-home-redesign .home-visibility-card p {
  color: var(--color-text-muted);
  font-size: 0.96rem;
  line-height: 1.68;
  margin: 0 0 0.65rem;
}

.page-home-redesign .home-audit-card {
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.38fr);
  border: 1px solid rgba(43, 80, 119, 0.14);
  border-left: 5px solid var(--color-secondary);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #ffffff, var(--color-bg-alt));
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.page-home-redesign .home-audit-card::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(224, 88, 42, 0.08);
  pointer-events: none;
}

.page-home-redesign .home-audit-content,
.page-home-redesign .home-audit-side-card {
  position: relative;
  z-index: 1;
}

.page-home-redesign .home-audit-side-card {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: clamp(1.35rem, 2.5vw, 2rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-primary), rgba(43, 80, 119, 0.92));
  box-shadow: var(--shadow-card);
}

.page-home-redesign .home-audit-side-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 0.2rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 2rem;
}

.page-home-redesign .home-audit-side-card strong {
  color: #ffffff;
  font-size: clamp(1.28rem, 1.8vw, 1.55rem);
  line-height: 1.2;
  font-weight: 900;
}

.page-home-redesign .home-audit-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.page-home-redesign .home-audit-chip-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.28rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.75rem;
  line-height: 1.2;
  font-weight: 800;
}

.page-home-redesign .home-method-panel {
  display: grid;
  grid-template-columns: minmax(250px, 0.54fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3vw, 2.45rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-primary), rgba(43, 80, 119, 0.92));
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}

.page-home-redesign .home-method-panel::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -150px;
  top: -170px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.page-home-redesign .home-method-intro,
.page-home-redesign .home-method-list {
  position: relative;
  z-index: 1;
}

.page-home-redesign .home-method-intro h2 {
  color: #ffffff;
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin: 0 0 0.85rem;
}

.page-home-redesign .home-method-intro p:not(.section-eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.68;
  margin: 0;
}

.page-home-redesign .home-method-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: home-method;
}

.page-home-redesign .home-method-list li {
  counter-increment: home-method;
  display: grid;
  gap: 0.22rem;
  padding: 1rem 1rem 1rem 3.15rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  position: relative;
}

.page-home-redesign .home-method-list li::before {
  content: counter(home-method);
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  color: var(--color-primary);
  background: #ffffff;
  font-size: 0.75rem;
  line-height: 1;
  font-weight: 900;
}

.page-home-redesign .home-method-list strong {
  color: #ffffff;
  font-size: 0.98rem;
  line-height: 1.3;
}

.page-home-redesign .home-method-list span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
  line-height: 1.55;
}

.page-home-redesign .home-ai-gateway-panel {
  display: grid;
  gap: clamp(1.35rem, 3vw, 2rem);
  padding: clamp(1.5rem, 3vw, 2.45rem);
  border: 1px solid rgba(43, 80, 119, 0.12);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.page-home-redesign .home-ai-gateway-header {
  max-width: 900px;
}

.page-home-redesign .home-ai-gateway-header h2 {
  color: var(--color-primary);
  font-size: clamp(1.8rem, 2.8vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 0.85rem;
}

.page-home-redesign .home-ai-gateway-header p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

.page-home-redesign .home-ai-gateway-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.25rem);
}

.page-home-redesign .home-ai-gateway-card {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  min-height: 100%;
  padding: clamp(1.2rem, 2.2vw, 1.65rem);
  border: 1px solid rgba(43, 80, 119, 0.14);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: var(--transition);
}

.page-home-redesign .home-ai-gateway-card:hover,
.page-home-redesign .home-ai-gateway-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(224, 88, 42, 0.28);
  box-shadow: var(--shadow-card-hover);
  outline: none;
}

.page-home-redesign .home-ai-gateway-card strong {
  color: var(--color-primary);
  font-size: 1.18rem;
  line-height: 1.25;
  font-weight: 900;
}

.page-home-redesign .home-ai-gateway-card span:last-child {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.58;
}

.page-home-redesign .home-ai-gateway-card:hover strong {
  color: var(--color-secondary);
}

.page-home-redesign .home-ai-gateway-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.page-home-redesign .home-proof-section-redesign {
  padding-left: 0;
  padding-right: 0;
  background: #ffffff;
}

.page-home-redesign .home-proof-section-redesign .marquee-item img {
  height: 150px;
}

.page-home-redesign .proof-card-grid {
  gap: clamp(1rem, 2vw, 1.25rem);
}

.page-home-redesign .proof-card {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
}

.page-home-redesign .proof-card h3 {
  margin-bottom: 0;
}

/* Why Us include redesign */

.why-us-redesign .why-us-panel {
  display: grid;
  grid-template-columns: minmax(270px, 0.38fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: stretch;
}

.why-us-redesign .why-us-intro-card {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-primary), rgba(43, 80, 119, 0.92));
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.why-us-redesign .why-us-intro-card::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -100px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.why-us-redesign .why-us-intro-card h2,
.why-us-redesign .why-us-intro-card p,
.why-us-redesign .why-us-intro-card a {
  position: relative;
  z-index: 1;
}

.why-us-redesign .why-us-intro-card h2 {
  color: #ffffff;
  font-size: clamp(1.65rem, 2.4vw, 2.18rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin: 0;
}

.why-us-redesign .why-us-intro-card p:not(.section-eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
  line-height: 1.68;
  margin: 0 0 0.65rem;
}

.why-us-redesign .benefits-list-redesign {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.25rem);
}

.why-us-redesign .benefit-item {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: clamp(1.15rem, 2.2vw, 1.55rem);
}

.why-us-redesign .benefit-icon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: rgba(224, 88, 42, 0.1);
  color: var(--color-secondary);
  font-size: 1.45rem;
}

.why-us-redesign .benefit-item h3 {
  display: block;
  color: var(--color-primary);
  font-size: 1.08rem;
  line-height: 1.26;
  margin: 0;
}

.why-us-redesign .benefit-item p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* Testimonial include redesign */

.testimonials-redesign .testimonial-proof-panel {
  display: grid;
  grid-template-columns: minmax(270px, 0.38fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: stretch;
  padding: clamp(1.4rem, 3vw, 2.1rem);
  padding-right:0;
  border: 1px solid rgba(43, 80, 119, 0.12);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #ffffff, var(--color-bg-alt));
  box-shadow: var(--shadow-card);
}

.testimonials-redesign .testimonial-proof-intro {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.testimonials-redesign .testimonial-proof-intro h2 {
  color: var(--color-primary);
  font-size: clamp(1.65rem, 2.4vw, 2.18rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  margin: 0;
}

.testimonials-redesign .testimonial-proof-intro p:not(.section-eyebrow) {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.68;
  margin: 0;
}

.testimonials-redesign .testimonial-score {
  justify-content: flex-start;
  margin: 0.5rem 0;
}

.testimonials-redesign .testimonial-actions {
  justify-content: flex-start;
  margin-top: 0.7rem;
}

.testimonials-redesign .testimonial-carousel {
  min-width: 0;
  align-self: center;
}

.testimonials-redesign .testimonial-track {
  padding-top: 6px;
  padding-bottom: 14px;
}

.testimonials-redesign .review-card {
  background: #ffffff;
}

.testimonials-redesign .review-card p.review-text {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.62;
}

/* Region include redesign */
.region-section-redesign {
  padding: clamp(3.75rem, 6vw, 5.75rem) 0;
  background: #ffffff;
  border: 0;
  border-radius: 0;
}

.region-section-redesign .region-redesign-panel {
  display: grid;
  gap: clamp(1.35rem, 3vw, 2rem);
  padding: clamp(1.5rem, 3vw, 2.45rem);
  border: 1px solid rgba(43, 80, 119, 0.12);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.region-section-redesign .region-redesign-header {
  max-width: 900px;
}

.region-section-redesign .region-redesign-header h2 {
  color: var(--color-primary);
  font-size: clamp(1.8rem, 2.8vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 0.85rem;
}

.region-section-redesign .region-redesign-header p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}

.region-section-redesign .region-cluster-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.15rem);
}

.region-section-redesign .region-cluster-card {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  min-height: 100%;
  padding: 1.15rem;
  border: 1px solid rgba(43, 80, 119, 0.14);
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
}

.region-section-redesign .region-cluster-icon {
  width: 48px;
  height: 48px;
  font-size: 1.45rem;
  margin-bottom: 0.25rem;
}

.region-section-redesign .region-cluster-card h3 {
  color: var(--color-primary);
  font-size: 1.02rem;
  line-height: 1.25;
  margin: 0;
}

.region-section-redesign .region-cluster-card p {
  color: var(--color-text-muted);
  font-size: 0.86rem;
  line-height: 1.58;
  margin: 0;
}

.region-section-redesign .city-grid {
  margin-top: 0.25rem;
  max-width: 1120px;
}

.region-section-redesign .region-section-action {
  margin-top: 0.4rem;
}

/* FAQ polish */
.page-home-redesign .home-faq-section-redesign .faq-list {
  max-width: 980px;
}

.page-home-redesign .home-faq-section-redesign .faq-item {
  border-radius: var(--radius-lg);
}

/* Responsive */
@media (max-width: 1180px) {
  .page-home-redesign .home-visibility-grid,
  .page-home-redesign .home-ai-gateway-grid,
  .region-section-redesign .region-cluster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home-redesign .home-audit-card,
  .page-home-redesign .home-method-panel,
  .why-us-redesign .why-us-panel,
  .testimonials-redesign .testimonial-proof-panel {
    grid-template-columns: 1fr;
  }

  .why-us-redesign .why-us-intro-card {
    min-height: auto;
  }
}

@media (max-width: 900px) {
  .page-home-redesign .home-visibility-grid,
  .page-home-redesign .home-ai-gateway-grid,
  .why-us-redesign .benefits-list-redesign,
  .region-section-redesign .region-cluster-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-redesign .testimonial-score,
  .testimonials-redesign .testimonial-actions {
    justify-content: center;
  }

  .testimonials-redesign .testimonial-proof-intro {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-home-redesign .home-trust-strip-redesign {
    margin-top: -1.2rem;
  }

  .page-home-redesign .home-visibility-section,
  .page-home-redesign .home-audit-section-redesign,
  .page-home-redesign .home-method-section,
  .page-home-redesign .home-ai-gateway-section,
  .page-home-redesign .home-proof-section-redesign,
  .page-home-redesign .home-faq-section-redesign,
  .why-us-redesign,
  .testimonials-redesign,
  .region-section-redesign {
    padding: 3.25rem 0;
  }

  .page-home-redesign .home-audit-card,
  .page-home-redesign .home-method-panel,
  .page-home-redesign .home-ai-gateway-panel,
  .why-us-redesign .why-us-intro-card,
  .testimonials-redesign .testimonial-proof-panel,
  .region-section-redesign .region-redesign-panel {
    border-radius: var(--radius-lg);
  }

  .page-home-redesign .home-ai-gateway-actions .btn,
  .why-us-redesign .why-us-intro-card .btn,
  .testimonials-redesign .testimonial-actions .btn {
    width: min(100%, 360px);
  }

  .page-home-redesign .home-ai-gateway-actions,
  .testimonials-redesign .testimonial-actions {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .page-home-redesign .home-visibility-card,
  .page-home-redesign .home-audit-card,
  .page-home-redesign .home-audit-side-card,
  .page-home-redesign .home-method-panel,
  .page-home-redesign .home-ai-gateway-panel,
  .page-home-redesign .home-ai-gateway-card,
  .why-us-redesign .why-us-intro-card,
  .why-us-redesign .benefit-item,
  .testimonials-redesign .testimonial-proof-panel,
  .region-section-redesign .region-redesign-panel {
    padding: 1.2rem;
  }

  .page-home-redesign .home-method-list li {
    padding-left: 2.85rem;
  }
}

/* ===== Testimonials intro alignment refinement: 2026-06-12-e ===== */

/*
  Centers the complete left-side testimonial introduction:
  eyebrow, heading, description, rating, stars, review count and buttons.
*/
.testimonials-redesign .testimonial-proof-intro {
  text-align: center;
  justify-items: center;
}

.testimonials-redesign .testimonial-proof-intro > p:not(.section-eyebrow) {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.testimonials-redesign .testimonial-score {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  margin: 0.5rem auto 0.25rem auto;
  text-align: center;
}

.testimonials-redesign .testimonial-score-meta {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
}

.testimonials-redesign .testimonial-stars {
  justify-content: center;
  margin-bottom: 0;
}

.testimonials-redesign .testimonial-score-meta span {
  text-align: center;
}

.testimonials-redesign .testimonial-actions {
  justify-content: center;
  width: 100%;
  margin: 0.5rem 0;
}

@media (max-width: 560px) {
  .testimonials-redesign .testimonial-actions {
    flex-direction: column;
    align-items: center;
  }

  .testimonials-redesign .testimonial-actions .btn {
    width: min(100%, 360px);
  }
}

 .bg-pages {
  background: linear-gradient(180deg, #f0f4f8 0%, #ffffff 100%) !important;
}

.p-0 {
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
  margin: 0 0;
}


.mt-0 {
  margin-top: 0 !important;
}

.mt-05 {
  margin-top: 0.5rem;
}
.mt-1 {
  margin-top: 1rem;
}
.mt-15 {
  margin-top: 1.5rem;
}
.mt-2 {
  margin-top: 2rem;
}
.mt-25 {
  margin-top: 2.5rem;
}
.mt-3 {
  margin-top: 3rem;
}
.mt-35 {
  margin-top: 3.5rem;
}
.mt-4 {
  margin-top: 4rem;
}
.mt-45 {
  margin-top: 4.5rem;
}



.mb-05 {
  margin-bottom: 0.5rem;
}
.mb-1 {
  margin-bottom: 1rem;
}
.mb-15 {
  margin-bottom: 1.5rem;
}
.mb-2 {
  margin-bottom: 2rem;
}
.mb-25 {
  margin-bottom: 2.5rem;
}
.mb-3 {
  margin-bottom: 3rem;
}
.mb-35 {
  margin-bottom: 3.5rem;
}
.mb-4 {
  margin-bottom: 4rem;
}
.mb-45 {
  margin-bottom: 4.5rem;
}


.mt-n35 {
  margin-top: -3.5rem !important;
}


/* ===== Portfolio page refinement: 2026-06-19 ===== */

.page-portfolio {
  --portfolio-navy: #183858;
  --portfolio-ink: #17324e;
  --portfolio-line: rgba(43, 80, 119, 0.13);
}

.page-portfolio .portfolio-page-header {
  padding: clamp(5rem, 8vw, 7.25rem) 0 clamp(4.5rem, 7vw, 6.5rem);
  text-align: left;
  background:
    radial-gradient(circle at 82% 18%, rgba(224, 88, 42, 0.28), transparent 28%),
    radial-gradient(circle at 16% 84%, rgba(255, 255, 255, 0.08), transparent 32%),
    linear-gradient(135deg, #183858 0%, var(--color-primary) 52%, #1b426a 100%);
}

.page-portfolio .portfolio-page-header::before {
  opacity: 0.14;
}

.page-portfolio .portfolio-page-header .container {
  position: relative;
  z-index: 1;
}

.page-portfolio .portfolio-page-header h1 {
  max-width: 1080px;
  margin: 0 0 1.4rem;
  font-size: clamp(3rem, 5.2vw, 5.6rem);
  line-height: 0.99;
  letter-spacing: -0.055em;
  text-align: left;
}

.page-portfolio .portfolio-page-header h1 span {
  color: #f5b196;
}

.page-portfolio .portfolio-page-header > .container > p:not(.section-eyebrow) {
  max-width: 980px;
  margin: 0;
  font-size: clamp(1.08rem, 1.3vw, 1.28rem);
  line-height: 1.72;
  text-align: left;
}

.portfolio-hero-actions,
.portfolio-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.portfolio-page-shell {
  gap: clamp(1.5rem, 2.4vw, 2.5rem);
}

.page-portfolio .page-main-content {
  display: grid;
  gap: clamp(4rem, 7vw, 7rem);
  margin-top: clamp(3rem, 5vw, 4.5rem);
  margin-bottom: clamp(4.5rem, 7vw, 7rem);
}

.portfolio-intro {
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.75rem);
}

.portfolio-intro-copy {
  max-width: 900px;
}

.portfolio-intro-copy h2,
.portfolio-section-heading h2 {
  color: var(--color-primary);
  font-size: clamp(2.15rem, 3.2vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: -0.038em;
  margin: 0 0 1rem;
}

.portfolio-intro-copy > p:not(.section-eyebrow),
.portfolio-section-heading > p:not(.section-eyebrow),
.portfolio-section-heading-split > p {
  color: var(--color-text-muted);
  font-size: clamp(1rem, 1.08vw, 1.08rem);
  line-height: 1.74;
  margin: 0;
}

.portfolio-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.portfolio-proof-grid > div {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--portfolio-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffffff, var(--color-bg-alt));
  box-shadow: var(--shadow-card);
}

.portfolio-proof-grid strong {
  display: block;
  color: var(--color-primary);
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  line-height: 1;
  margin-bottom: 0.45rem;
}

.portfolio-proof-grid span {
  display: block;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  line-height: 1.42;
  font-weight: 650;
}

.portfolio-featured-stack,
.portfolio-secondary-section,
.portfolio-grid-section {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.portfolio-section-heading {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.portfolio-section-heading-split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
  text-align: left;
}

.portfolio-section-heading-split > div h2 {
  margin-bottom: 0;
}

.portfolio-feature-row {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: 580px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--portfolio-line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 12%, rgba(224, 88, 42, 0.10), transparent 24%),
    linear-gradient(135deg, #ffffff, #f7f9fb);
  box-shadow: 0 25px 70px rgba(43, 80, 119, 0.12);
  overflow: hidden;
}

.portfolio-feature-row-reverse {
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
}

.portfolio-feature-row-reverse .portfolio-feature-copy {
  order: 2;
}

.portfolio-feature-row-reverse .portfolio-device-stage {
  order: 1;
}

.portfolio-feature-topline {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.portfolio-project-number {
  color: rgba(43, 80, 119, 0.14);
  font-size: 3.5rem;
  line-height: 1;
  font-weight: 950;
}

.portfolio-project-industry {
  color: var(--color-secondary);
  font-size: 0.75rem;
  line-height: 1.35;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portfolio-feature-copy h3 {
  color: var(--color-primary);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
}

.portfolio-feature-copy > p {
  color: var(--color-text-muted);
  font-size: 1.03rem;
  line-height: 1.75;
  margin-bottom: 0;
}

.portfolio-client-logo {
  display: block;
  width: auto;
  max-width: 190px;
  height: auto;
  max-height: 66px;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 1rem;
}

.portfolio-client-logo-featured {
  max-width: 250px;
  max-height: 82px;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.35rem;
}

.portfolio-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.34rem 0.72rem;
  border: 1px solid rgba(43, 80, 119, 0.14);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--color-primary);
  font-size: 0.72rem;
  line-height: 1.25;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
}

.portfolio-project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.2rem;
  margin-top: 1.5rem;
}

.portfolio-text-link,
.portfolio-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-primary);
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 850;
  text-decoration: none;
}

.portfolio-text-link:hover,
.portfolio-text-link:focus-visible,
.portfolio-card-link:hover,
.portfolio-card-link:focus-visible {
  color: var(--color-secondary);
}

.portfolio-device-stage {
  position: relative;
  min-height: 500px;
}

.portfolio-desktop-frame,
.portfolio-card-desktop {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(43, 80, 119, 0.16);
  background: #ffffff;
  box-shadow: 0 24px 56px rgba(31, 57, 82, 0.2);
}

.portfolio-desktop-frame {
  position: absolute;
  top: 4%;
  left: 0;
  width: 88%;
  height: 80%;
  border-radius: 20px;
  transform: rotate(-1.2deg);
}

.portfolio-desktop-frame img,
.portfolio-card-desktop img {
  display: block;
  width: 100%;
  height: calc(100% - 34px);
  object-fit: cover;
  object-position: top;
}

.portfolio-mobile-frame,
.portfolio-card-mobile {
  overflow: hidden;
  margin: 0;
  border: 7px solid #152b40;
  border-radius: 28px;
  background: #152b40;
  box-shadow: 0 20px 42px rgba(31, 57, 82, 0.28);
}

.portfolio-mobile-frame {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: 31%;
  height: 70%;
  transform: rotate(3deg);
}

.portfolio-mobile-frame img,
.portfolio-card-mobile img {
  display: block;
  width: 100%;
  height: calc(100% - 15px);
  object-fit: cover;
  object-position: top;
  border-radius: 17px;
}

.portfolio-mobile-speaker {
  width: 38%;
  height: 6px;
  margin: 4px auto 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.portfolio-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  background: #eef1f4;
  border-bottom: 1px solid rgba(43, 80, 119, 0.1);
}

.portfolio-browser-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bdc8d2;
}

.portfolio-browser-bar i:nth-child(1) { background: #e0582a; }
.portfolio-browser-bar i:nth-child(2) { background: #efb155; }
.portfolio-browser-bar i:nth-child(3) { background: #5ca276; }

.portfolio-two-grid,
.portfolio-three-grid {
  display: grid;
  gap: clamp(1.25rem, 2.2vw, 2rem);
}

.portfolio-two-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portfolio-three-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-project-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--portfolio-line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.portfolio-project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(224, 88, 42, 0.28);
  box-shadow: var(--shadow-card-hover);
}

.portfolio-project-media {
  position: relative;
  min-height: 320px;
  padding: 1rem 1rem 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(224, 88, 42, 0.12), transparent 26%),
    linear-gradient(135deg, #eef2f5, #f8fafb);
}

.portfolio-card-desktop {
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 84%;
  height: 78%;
  border-radius: 15px;
}

.portfolio-card-mobile {
  position: absolute;
  right: 0.75rem;
  bottom: -0.6rem;
  z-index: 2;
  width: 27%;
  height: 67%;
  border-width: 5px;
  border-radius: 22px;
}

.portfolio-card-mobile img {
  border-radius: 13px;
}

.portfolio-industry-chip {
  position: absolute;
  left: 1.1rem;
  bottom: 1rem;
  z-index: 4;
  display: inline-flex;
  max-width: calc(100% - 2.2rem);
  padding: 0.42rem 0.72rem;
  border-radius: var(--radius-pill);
  background: rgba(23, 50, 78, 0.9);
  color: #ffffff;
  font-size: 0.68rem;
  line-height: 1.25;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.portfolio-project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.45rem;
}

.portfolio-project-body h3 {
  color: var(--color-primary);
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
}

.portfolio-project-body > p {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.portfolio-tags-compact {
  margin-top: 1rem;
}

.portfolio-tags-compact span {
  min-height: 28px;
  padding: 0.28rem 0.58rem;
  background: var(--color-bg-alt);
  font-size: 0.65rem;
}

.portfolio-card-link {
  margin-top: auto;
  padding-top: 1.25rem;
}

.portfolio-card-link-muted {
  color: var(--color-text-soft);
}

.portfolio-philosophy-section {
  display: grid;
  grid-template-columns: minmax(250px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 26px;
  background:
    radial-gradient(circle at 90% 10%, rgba(224, 88, 42, 0.24), transparent 28%),
    linear-gradient(135deg, #193856, var(--color-primary));
  box-shadow: 0 24px 60px rgba(43, 80, 119, 0.18);
}

.portfolio-philosophy-section h2 {
  color: #ffffff;
  font-size: clamp(2.2rem, 3.6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 0;
}

.portfolio-philosophy-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0;
}

.portfolio-philosophy-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.portfolio-philosophy-points span {
  padding: 0.82rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 800;
}

.portfolio-final-cta {
  padding: clamp(2.5rem, 5vw, 4.25rem);
  border: 1px solid rgba(224, 88, 42, 0.18);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(224, 88, 42, 0.10), #ffffff 55%);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.portfolio-final-cta h2 {
  max-width: 850px;
  margin: 0 auto 1rem;
  color: var(--color-primary);
  font-size: clamp(2.1rem, 3.3vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.portfolio-final-cta > p:not(.section-eyebrow) {
  max-width: 720px;
  margin: 0 auto;
  color: var(--color-text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.portfolio-cta-actions {
  justify-content: center;
}

@media (max-width: 1320px) {
  .portfolio-three-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .portfolio-feature-row,
  .portfolio-feature-row-reverse,
  .portfolio-philosophy-section {
    grid-template-columns: 1fr;
  }

  .portfolio-feature-row-reverse .portfolio-feature-copy,
  .portfolio-feature-row-reverse .portfolio-device-stage {
    order: initial;
  }

  .portfolio-device-stage {
    min-height: 470px;
  }

  .portfolio-section-heading-split {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .portfolio-three-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 999px) {
  .portfolio-two-grid,
  .portfolio-three-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .page-portfolio .portfolio-page-header {
    padding: 4.4rem 0 4rem;
    text-align: center;
  }

  .page-portfolio .portfolio-page-header h1,
  .page-portfolio .portfolio-page-header > .container > p:not(.section-eyebrow) {
    text-align: center;
  }

  .portfolio-hero-actions {
    justify-content: center;
  }

  .portfolio-hero-actions .btn,
  .portfolio-cta-actions .btn {
    width: min(100%, 360px);
  }

  .portfolio-proof-grid,
  .portfolio-two-grid,
  .portfolio-three-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-feature-row {
    min-height: 0;
    padding: 1.15rem;
    border-radius: 20px;
  }

  .portfolio-device-stage {
    min-height: 350px;
  }

  .portfolio-desktop-frame {
    width: 88%;
    height: 78%;
  }

  .portfolio-mobile-frame {
    width: 33%;
    height: 68%;
  }

  .portfolio-project-media {
    min-height: 310px;
  }

  .portfolio-philosophy-points {
    grid-template-columns: 1fr;
  }

  .portfolio-philosophy-section,
  .portfolio-final-cta {
    border-radius: 20px;
  }
}

@media (max-width: 520px) {
  .page-portfolio .portfolio-page-header h1 {
    font-size: clamp(2.45rem, 12vw, 3.25rem);
  }

  .portfolio-feature-copy h3 {
    font-size: 1.9rem;
  }

  .portfolio-device-stage {
    min-height: 280px;
  }

  .portfolio-desktop-frame {
    width: 90%;
    height: 76%;
    border-radius: 14px;
  }

  .portfolio-mobile-frame {
    width: 35%;
    height: 66%;
    border-width: 5px;
    border-radius: 22px;
  }

  .portfolio-project-media {
    min-height: 250px;
  }

  .portfolio-project-body {
    padding: 1.25rem;
  }

  .portfolio-client-logo {
    max-width: 165px;
    max-height: 58px;
  }
}

/* ===== Contact sidebar conversion panel: 2026-06-23-b ===== */
/*
  Scoped exclusively to the sidebar contact form so the contact page,
  quote page, audit form, modal form and other site forms are unchanged.
*/
.contact-sidebar .contact-sidebar-panel {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 92% 4%, rgba(224, 88, 42, 0.22), transparent 29%),
    linear-gradient(145deg, #183858 0%, var(--color-primary) 58%, #23486d 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 5px 15px rgba(31, 57, 82, 0.24);
}

.contact-sidebar .contact-sidebar-panel::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -85px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  pointer-events: none;
}

.contact-sidebar .contact-sidebar-intro {
  position: relative;
  z-index: 1;
  padding: 1.15rem 1.5rem 0.7rem;
  text-align: left;
}

.contact-sidebar .cs-intro-title {
  color: #ffffff;
  font-size: 1.2rem;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.015em;
  margin: 0 0 0.28rem;
}

.contact-sidebar .cs-intro-text {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0;
}

.contact-sidebar .cs-geo-badge {
  position: relative;
  z-index: 1;
  padding: 0.62rem 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.09);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.76rem;
  line-height: 1.35;
}

.contact-sidebar .cs-geo-badge strong {
  color: #ffffff;
}

.contact-sidebar .cs-geo-pin {
  font-size: 1rem;
}

.contact-sidebar .contact-sidebar-form {
  position: relative;
  z-index: 1;
  padding: 0.55rem 1.5rem 1.1rem;
}

.contact-sidebar .contact-sidebar-form .cs-field {
  margin-bottom: 0.72rem;
}

.contact-sidebar .contact-sidebar-form .cs-field label {
  margin-bottom: 0.24rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.74rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.025em;
}

.contact-sidebar .contact-sidebar-form .cs-req {
  color: #f5a080;
}

.contact-sidebar .contact-sidebar-form .cs-field input,
.contact-sidebar .contact-sidebar-form .cs-field textarea {
  width: 100%;
  padding: 0.62rem 0.78rem;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  box-shadow: inset 0 1px 2px rgba(31, 57, 82, 0.06);
  font-size: 0.84rem;
  line-height: 1.35;
}

.contact-sidebar .contact-sidebar-form .cs-field input::placeholder,
.contact-sidebar .contact-sidebar-form .cs-field textarea::placeholder {
  color: rgba(43, 80, 119, 0.48);
}

.contact-sidebar .contact-sidebar-form .cs-field input:focus,
.contact-sidebar .contact-sidebar-form .cs-field textarea:focus {
  outline: none;
  color: var(--color-primary);
  background: #ffffff;
  border-color: rgba(245, 160, 128, 0.95);
  box-shadow:
    0 0 0 3px rgba(224, 88, 42, 0.2),
    inset 0 1px 2px rgba(31, 57, 82, 0.04);
}

.contact-sidebar .contact-sidebar-form .cs-field textarea {
  min-height: 76px;
  resize: vertical;
}

.contact-sidebar .contact-sidebar-form .cs-submit {
  min-height: 46px;
  margin-top: 0.15rem;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9px;
  background: linear-gradient(135deg, var(--color-secondary), #ca4820);
  box-shadow: 0 8px 20px rgba(14, 30, 48, 0.24);
  font-size: 0.92rem;
  font-weight: 850;
}

.contact-sidebar .contact-sidebar-form .cs-submit:hover,
.contact-sidebar .contact-sidebar-form .cs-submit:focus-visible {
  background: linear-gradient(135deg, #ec673a, var(--color-secondary));
  box-shadow: 0 11px 26px rgba(14, 30, 48, 0.32);
  transform: translateY(-2px);
}

.contact-sidebar .cs-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1.5rem 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(11, 34, 56, 0.16);
  text-align: left;
}

.contact-sidebar .cs-footer p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.68rem;
  line-height: 1.35;
  margin: 0;
}

.contact-sidebar .cs-phone,
.contact-sidebar .cs-phone a {
  color: #ffffff;
  font-size: 0.8rem;
  line-height: 1.3;
  font-weight: 800;
  white-space: nowrap;
}

.contact-sidebar .cs-phone a:hover,
.contact-sidebar .cs-phone a:focus-visible {
  color: #f7b49c;
  text-decoration: none;
}

.contact-sidebar .cs-success {
  position: relative;
  z-index: 1;
  padding: 2rem 1.5rem;
  color: #ffffff;
  background: transparent;
}

.contact-sidebar .cs-success h3 {
  color: #ffffff;
}

.contact-sidebar .cs-success p {
  color: rgba(255, 255, 255, 0.76);
}

@media (max-width: 1180px) {
  .contact-sidebar .contact-sidebar-panel {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 560px) {
  .contact-sidebar .contact-sidebar-intro,
  .contact-sidebar .contact-sidebar-form,
  .contact-sidebar .cs-footer {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .contact-sidebar .cs-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }
}

/* ===== Blog landing page: 2026-06-24 ===== */

.page-blog .blog-page-header {
  padding: clamp(4.75rem, 7vw, 6.5rem) 0 clamp(4.25rem, 6vw, 5.75rem);
  text-align: left;
  background:
    radial-gradient(circle at 85% 18%, rgba(224, 88, 42, 0.25), transparent 27%),
    radial-gradient(circle at 12% 90%, rgba(255, 255, 255, 0.07), transparent 30%),
    linear-gradient(135deg, #183858 0%, var(--color-primary) 58%, #244d75 100%);
}

.page-blog .blog-page-header .container {
  position: relative;
  z-index: 1;
}

.page-blog .blog-page-header h1 {
  max-width: 1040px;
  margin: 0 0 1.25rem;
  color: #ffffff;
  font-size: clamp(2.75rem, 4.7vw, 5rem);
  line-height: 1.03;
  letter-spacing: -0.048em;
  text-align: left;
}

.page-blog .blog-page-header > .container > p:not(.section-eyebrow) {
  max-width: 900px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.05rem, 1.25vw, 1.22rem);
  line-height: 1.72;
  text-align: left;
}

.blog-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.page-blog .page-main-content {
  display: grid;
  gap: clamp(3.5rem, 6vw, 6rem);
  margin-bottom: clamp(4rem, 7vw, 6.5rem);
}

.blog-intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
}

.blog-intro-copy {
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border: 1px solid rgba(43, 80, 119, 0.12);
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.blog-intro-copy h2,
.blog-section-heading h2,
.blog-question-section h2 {
  color: var(--color-primary);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
}

.blog-intro-copy p:not(.section-eyebrow),
.blog-section-heading p:not(.section-eyebrow),
.blog-question-section p:not(.section-eyebrow) {
  color: var(--color-text-muted);
  font-size: clamp(0.98rem, 1.05vw, 1.06rem);
  line-height: 1.74;
}

.blog-intro-copy p:last-child,
.blog-launch-note p:last-child,
.blog-question-section p:last-child {
  margin-bottom: 0;
}

.blog-launch-note {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 100% 0%, rgba(224, 88, 42, 0.24), transparent 30%),
    linear-gradient(145deg, #183858, var(--color-primary));
  box-shadow: 0 20px 48px rgba(31, 57, 82, 0.2);
}

.blog-launch-note::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.blog-launch-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 0.42rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.72rem;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.blog-launch-note h3 {
  position: relative;
  z-index: 1;
  margin: 1.2rem 0 0.8rem;
  color: #ffffff;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.blog-launch-note p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.96rem;
  line-height: 1.7;
}

.blog-preview-section {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

.blog-section-heading {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.blog-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.blog-topic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(1.4rem, 2.6vw, 2rem);
  overflow: hidden;
  border: 1px solid rgba(43, 80, 119, 0.13);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.blog-topic-card:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 88, 42, 0.27);
  box-shadow: var(--shadow-card-hover);
}

.blog-topic-card-featured {
  background: linear-gradient(145deg, var(--color-bg-alt), #ffffff 62%);
  border-top: 4px solid var(--color-secondary);
}

.blog-topic-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(43, 80, 119, 0.1), rgba(224, 88, 42, 0.1));
  color: var(--color-primary);
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.blog-topic-label {
  color: var(--color-secondary);
  font-size: 0.72rem;
  line-height: 1.3;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.blog-topic-card h3 {
  margin: 0.65rem 0 0.8rem;
  color: var(--color-primary);
  font-size: clamp(1.25rem, 1.65vw, 1.55rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.blog-topic-card > p {
  flex: 1;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.68;
  margin-bottom: 1.2rem;
}

.blog-topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.blog-topic-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.28rem 0.62rem;
  border: 1px solid rgba(43, 80, 119, 0.12);
  border-radius: var(--radius-pill);
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-size: 0.68rem;
  line-height: 1.2;
  font-weight: 800;
}

.blog-principles-section {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 90% 5%, rgba(224, 88, 42, 0.2), transparent 25%),
    linear-gradient(135deg, #183858, var(--color-primary));
  box-shadow: 0 22px 52px rgba(31, 57, 82, 0.2);
}

.blog-principles-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.blog-principles-list {
  display: grid;
  gap: 0.8rem;
}

.blog-principles-list > div {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.07);
}

.blog-principles-list strong,
.blog-principles-list span {
  display: block;
}

.blog-principles-list strong {
  color: #ffffff;
  font-size: 0.98rem;
  line-height: 1.35;
  margin-bottom: 0.28rem;
}

.blog-principles-list span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  line-height: 1.58;
}

.blog-question-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  border: 1px solid rgba(224, 88, 42, 0.17);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(224, 88, 42, 0.09), #ffffff 58%);
  box-shadow: var(--shadow-card);
}

.blog-question-section h2 {
  font-size: clamp(1.75rem, 2.6vw, 2.45rem);
}

.blog-question-section .btn {
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .blog-intro-section,
  .blog-principles-section,
  .blog-question-section {
    grid-template-columns: 1fr;
  }

  .blog-question-section .btn {
    width: fit-content;
  }
}

@media (max-width: 768px) {
  .page-blog .blog-page-header {
    padding: 4rem 0 3.75rem;
    text-align: center;
  }

  .page-blog .blog-page-header h1,
  .page-blog .blog-page-header > .container > p:not(.section-eyebrow) {
    text-align: center;
  }

  .blog-hero-actions {
    justify-content: center;
  }

  .blog-hero-actions .btn,
  .blog-question-section .btn {
    width: min(100%, 360px);
  }

  .blog-topic-grid {
    grid-template-columns: 1fr;
  }

  .blog-intro-copy,
  .blog-launch-note,
  .blog-principles-section,
  .blog-question-section {
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 520px) {
  .page-blog .blog-page-header h1 {
    font-size: clamp(2.25rem, 11vw, 3rem);
  }

  .blog-intro-copy,
  .blog-launch-note,
  .blog-topic-card,
  .blog-principles-section,
  .blog-question-section {
    padding: 1.25rem;
  }
}
