/* SWG Theme — Git deployment test — v1.47.8 */
/* SWG Theme — Git deployment test — v1.47.8 */
/*
Theme Name:  Studio White Group
Theme URI:   https://studiowhitegroup.com
Author:      Studio White Group
Description: Boutique digital and experiential studio. Senior-led excellence in London, Shanghai, and Hong Kong since 2010.
Version:     1.56.7
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License:     Proprietary
Text Domain: swg
*/

/* ============================================================
   CSS CUSTOM PROPERTIES — Design Tokens
   Source: swg-home-page.tsx + all page TSX files
   ============================================================ */

:root {
  /* Brand colours */
  --swg-orange:        #DE8926;
  --swg-orange-hover:  #c9781e;
  --swg-near-black:    #221D1D;
  --swg-dark-navy:     #0F172A;  /* slate-900 */
  --swg-dark-950:      #020617;  /* slate-950 */

  /* Backgrounds */
  --swg-bg-white:      #FFFFFF;
  --swg-bg-off-white:  #F5F5F4;  /* slate-100 equiv */
  --swg-bg-hero:       #F8F7F4;  /* slate-50 */
  --swg-bg-orange-tint:#FEF8F0;  /* orange-tinted badge bg */
  --swg-bg-slate-50:   #F8FAFC;
  --swg-bg-slate-dark: #0F172A;  /* dark sections */

  /* Text */
  --swg-text-primary:  #0F172A;  /* slate-900 */
  --swg-text-body:     #475569;  /* slate-600 */
  --swg-text-muted:    #64748B;  /* slate-500 */
  --swg-text-hint:     #94A3B8;  /* slate-400 */
  --swg-text-white:    #FFFFFF;

  /* Borders */
  --swg-border-light:  #F1F5F9;  /* slate-100 */
  --swg-border-medium: #E2E8F0;  /* slate-200 */

  /* Typography */
  --swg-font-sans:     Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --swg-font-serif:    Georgia, 'Times New Roman', serif;

  /* Spacing — mirrors TSX section padding */
  --swg-section-sm:    clamp(3rem, 6vw, 6rem);     /* py-24 */
  --swg-section-md:    clamp(4rem, 8vw, 8rem);     /* py-32 */
  --swg-section-lg:    clamp(5rem, 10vw, 10rem);   /* py-40 */
  --swg-section-xl:    clamp(6rem, 12vw, 16rem);   /* py-64 */
  --swg-px:            clamp(1.5rem, 4vw, 3rem);   /* px-6 lg:px-12 */

  /* Layout */
  --swg-max-width:     1600px;
  --swg-content-width: 1280px;

  /* Nav */
  --swg-nav-height:    77px;

  /* Transitions */
  --swg-transition:    all 0.3s ease;
  --swg-transition-slow: all 0.5s ease;

  /* Radii */
  --swg-radius-sm:     0.5rem;   /* 8px */
  --swg-radius-md:     1rem;     /* 16px — rounded-2xl */
  --swg-radius-lg:     1.5rem;   /* 24px */
  --swg-radius-pill:   9999px;   /* rounded-full */
  --swg-radius-cta:    3rem;     /* 48px — CTA band */
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
}
/* Neutralise wp-block-library-inline-css :where([style*=border-*]) rules that
   force border-style:solid on any element whose inline style mentions border-color
   or border-width (incl. via `transition:border-color`), exposing phantom borders
   on sides that are not intentionally set. Matches the WP rule's (0,0,1) specificity
   via `html *`; source order wins because style.css loads after the WP inline block. */
html *, html *::before, html *::after {
  border-style: none;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip; /* prevent horizontal scroll from decorative elements */
}

body {
  margin: 0;
  overflow-x: clip; /* belt-and-suspenders for mobile overflow */
  font-family: var(--swg-font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--swg-text-primary);
  background: var(--swg-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

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

.swg-container--narrow {
  max-width: var(--swg-content-width);
  margin-inline: auto;
  padding-inline: var(--swg-px);
}

.swg-section {
  padding-block: var(--swg-section-sm);
}

.swg-section--md   { padding-block: var(--swg-section-md); }
.swg-section--lg   { padding-block: var(--swg-section-lg); }
.swg-section--xl   { padding-block: var(--swg-section-xl); }
.swg-section--dark { background: var(--swg-dark-navy); color: var(--swg-text-white); }
.swg-section--near-black  { background: var(--swg-near-black); color: var(--swg-text-white); }
.swg-section--brand-dark  { background: var(--swg-dark-950); color: var(--swg-text-white); }
.swg-section--off-white  { background: var(--swg-bg-off-white); }
.swg-section--slate-50   { background: var(--swg-bg-slate-50); }

/* Spacer utility (Trade Shows editorial spacing) */
.swg-spacer {
  height: clamp(6rem, 12vw, 16rem);
}

/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */

/* Eyebrow label — used above section headings site-wide */
.swg-eyebrow {
  display: inline-block;
  font-size: 0.6875rem;        /* ~11px */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--swg-orange);
}

.swg-eyebrow--badge {
  background: var(--swg-bg-orange-tint);
  border: 1px solid var(--swg-border-medium);
  color: var(--swg-text-primary);
  padding: 0.25rem 1rem;
  border-radius: var(--swg-radius-pill);
}

.swg-eyebrow--badge-dark {
  background: linear-gradient(135deg, var(--swg-orange), #E8A043);
  color: #fff;
  padding: 0.25rem 1rem;
  border-radius: var(--swg-radius-pill);
}

/* Accent word in headlines — italic serif, orange */
.swg-accent {
  font-style: italic;
  font-family: var(--swg-font-serif);
  font-weight: 400;
  color: var(--swg-orange);
}

/* Accent gradient text (hero headline) */
.swg-accent--gradient {
  font-style: italic;
  font-family: var(--swg-font-serif);
  font-weight: 400;
  background: linear-gradient(135deg, var(--swg-orange), #E8A043);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-right: 0.1em;
}

/* Hero headline scale */
.swg-h1-hero {
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

/* Editorial hero (Trade Shows style — much larger) */
.swg-h1-editorial {
  font-size: clamp(3.5rem, 8.5vw, 9rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.04em;
}

/* Dark hero headline (Branding/Photography — very large, vw-based) */
.swg-h1-immersive {
  font-size: clamp(4rem, 11vw, 13rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: #fff;
}

/* Section heading */
.swg-h2 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
}

/* Large editorial section heading */
.swg-h2-xl {
  font-size: clamp(3rem, 8vw, 10rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.03em;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.swg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--swg-radius-pill);
  font-family: var(--swg-font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: var(--swg-transition);
  cursor: pointer;
  white-space: nowrap;
}

/* Primary — orange filled */
.swg-btn--primary {
  background: var(--swg-orange);
  color: #fff;
  border: 2px solid var(--swg-orange);
}
.swg-btn--primary:hover {
  background: var(--swg-orange-hover);
  border-color: var(--swg-orange-hover);
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(222, 137, 38, 0.3);
}

/* Secondary — dark filled */
.swg-btn--dark {
  background: var(--swg-dark-navy);
  color: #fff;
  border: 2px solid var(--swg-dark-navy);
}
.swg-btn--dark:hover {
  background: var(--swg-orange);
  border-color: var(--swg-orange);
  transform: scale(1.03);
}

/* Outline — white border (on dark backgrounds) */
.swg-btn--outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
}
.swg-btn--outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

/* White filled (on dark/orange backgrounds) */
.swg-btn--white {
  background: #fff;
  color: var(--swg-dark-navy);
  border: 2px solid #fff;
}
.swg-btn--white:hover {
  background: var(--swg-orange);
  color: #fff;
  border-color: var(--swg-orange);
  transform: scale(1.03);
}

/* Large button size */
.swg-btn--lg {
  padding: 1.125rem 3rem;
  font-size: 1.0625rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

/* Header wrapper — zero height, nav is fixed so takes no document space */
.swg-site-header {
  height: 0;
  overflow: visible;
}

.swg-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent; /* default transparent — JS adds scrolled class */
  transition: background 0.5s ease, padding 0.5s ease, box-shadow 0.3s ease;
  padding-block: 0.75rem;
}

/* WordPress admin bar pushes everything down 32px (desktop) / 46px (mobile) */
.admin-bar .swg-nav {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .swg-nav {
    top: 46px;
  }
}

/* Admin bar offset for mega menu */
.admin-bar .swg-mega-menu {
  top: calc(var(--swg-nav-height) + 32px);
}

@media screen and (max-width: 782px) {
  .admin-bar .swg-mega-menu {
    top: calc(var(--swg-nav-height) + 46px);
  }
}

/* Admin bar offset for mobile menu */
.admin-bar .swg-mobile-menu {
  padding-top: 32px;
}

/* Transparent state (over hero) */
.swg-nav--transparent {
  background: transparent;
}

/* Scrolled state */
.swg-nav--scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--swg-border-light);
  padding-block: 0.625rem;
}

/* Dark hero: transparent with white elements */
body.dark-hero .swg-nav--transparent .swg-nav__link {
  color: #fff;
}
body.dark-hero .swg-nav--transparent .swg-nav__link:hover {
  color: var(--swg-orange);
}
body.dark-hero .swg-nav--transparent .swg-nav__logo path[fill="#221D1D"] {
  fill: #ffffff;
}
body.dark-hero .swg-nav--transparent .swg-nav__cta {
  background: #fff;
  color: var(--swg-dark-navy);
  border-color: #fff;
}
body.dark-hero .swg-nav--transparent .swg-nav__cta:hover {
  background: var(--swg-orange);
  color: #fff;
  border-color: var(--swg-orange);
}
body.dark-hero .swg-nav--transparent .swg-nav__menu-trigger {
  color: #fff;
}
body.dark-hero .swg-nav--transparent .swg-nav__what-we-do-btn {
  color: #fff;
}

body.dark-hero .swg-nav--transparent .swg-nav__what-we-do-btn.is-section-active,
body.dark-hero .swg-nav--scrolled .swg-nav__what-we-do-btn.is-section-active {
  color: var(--swg-orange) !important;
}
body.dark-hero .swg-nav--transparent .swg-nav__what-we-do-btn:hover {
  color: var(--swg-orange);
}

/* Inner nav wrapper */
.swg-nav__inner {
  max-width: var(--swg-max-width);
  margin-inline: auto;
  padding-inline: var(--swg-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 53px;
}

/* Logo */
.swg-nav__logo-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.swg-nav__logo {
  height: 36px; /* base/fallback */
  width: auto;
  display: block;
  transition: height 0.5s ease, width 0.5s ease;
  flex-shrink: 0;
}

/* Transparent state (before scroll) — light pages: 52px */
.swg-nav--transparent .swg-nav__logo {
  height: 52px !important;
}

/* Scrolled/sticky state — all pages: 36px */
.swg-nav--scrolled .swg-nav__logo {
  height: 36px !important;
}

/* Dark hero transparent state: 44px */
body.dark-hero .swg-nav--transparent .swg-nav__logo {
  height: 44px !important;
}

body.dark-hero .swg-nav--scrolled .swg-nav__logo {
  height: 36px !important;
}

/* Desktop nav links */
.swg-nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 1024px) {
  .swg-nav__links {
    display: flex;
  }
}

.swg-nav__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--swg-text-primary);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.swg-nav__link:hover,
.swg-nav__link--active {
  color: var(--swg-orange);
}

/* What We Do trigger */
.swg-nav__what-we-do-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--swg-text-primary);
  transition: color 0.2s ease;
  cursor: pointer;
  padding: 1rem 0;
  position: relative;
}

.swg-nav__what-we-do-btn:hover,
.swg-nav__what-we-do-btn.is-section-active {
  color: var(--swg-orange) !important;
}

.swg-nav__plus-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

/* is-section-active: no icon rotation — only mega-open state rotates icon */

/* Nav right — CTA + hamburger */
.swg-nav__right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.swg-nav__cta {
  display: none;
  padding: 0.625rem 1.75rem;
  border-radius: var(--swg-radius-pill);
  font-size: 0.875rem;
  font-weight: 700;
  background: var(--swg-orange);
  color: #fff;
  border: 2px solid var(--swg-orange);
  transition: var(--swg-transition);
  white-space: nowrap;
  cursor: pointer;
}

.swg-nav__cta:hover {
  background: var(--swg-orange-hover);
  border-color: var(--swg-orange-hover);
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(222, 137, 38, 0.35);
}

@media (min-width: 768px) {
  .swg-nav__cta {
    display: inline-flex;
    align-items: center;
  }
}

/* Hamburger */
.swg-nav__hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--swg-text-primary);
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.3s ease;
}

/* Dark hero pages: white hamburger when nav is transparent */
body.dark-hero .swg-nav--transparent .swg-nav__hamburger {
  color: #ffffff;
}

/* Once scrolled/sticky: always dark regardless of page type */
body.dark-hero .swg-nav--scrolled .swg-nav__hamburger {
  color: var(--swg-text-primary);
}

@media (min-width: 1024px) {
  .swg-nav__hamburger {
    display: none;
  }
}

/* ============================================================
   MEGA MENU
   ============================================================ */

.swg-mega-menu {
  position: fixed;
  top: 77px; /* JS overrides this immediately via updateMegaMenuPosition() */
  left: 0;
  right: 0;
  z-index: 99;
  background: #fff;
  border-bottom: 1px solid var(--swg-border-medium);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.swg-mega-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.swg-mega-menu__inner {
  max-width: var(--swg-max-width);
  margin-inline: auto;
  padding: 3rem var(--swg-px) 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr 320px;
  gap: 3rem;
}

.swg-mega-menu__services {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.swg-mega-menu__service-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: var(--swg-radius-md);
  transition: background 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.swg-mega-menu__service-item:hover {
  background: var(--swg-bg-slate-50);
}

.swg-mega-menu__service-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--swg-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--swg-border-medium);
  color: var(--swg-text-primary);
  transition: var(--swg-transition);
}

.swg-mega-menu__service-item:first-child .swg-mega-menu__service-icon {
  background: var(--swg-orange);
  border-color: var(--swg-orange);
  color: #fff;
}

.swg-mega-menu__service-item:hover .swg-mega-menu__service-icon {
  transform: scale(1.08);
}

.swg-mega-menu__service-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  transition: color 0.2s ease;
}

.swg-mega-menu__service-item:hover .swg-mega-menu__service-title {
  color: var(--swg-orange);
}

.swg-mega-menu__service-desc {
  font-size: 0.8125rem;
  color: var(--swg-text-muted);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.swg-mega-menu__service-tags {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.swg-mega-menu__service-tag {
  font-size: 0.6875rem;
  color: var(--swg-text-hint);
  letter-spacing: 0.02em;
}

.swg-mega-menu__service-tag::after {
  content: ' ·';
}

.swg-mega-menu__service-tag:last-child::after {
  content: '';
}

/* Right panel */
.swg-mega-menu__panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.swg-mega-menu__locations-card {
  background: var(--swg-dark-navy);
  color: #fff;
  padding: 2rem;
  border-radius: 1.5rem;
}

.swg-mega-menu__locations-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--swg-orange);
  margin-bottom: 1rem;
}

.swg-mega-menu__locations-title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.swg-mega-menu__location-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.swg-mega-menu__location-link:hover {
  color: var(--swg-orange);
}

.swg-mega-menu__cta-card {
  background: var(--swg-orange);
  color: #fff;
  padding: 2rem;
  border-radius: 1.5rem;
}

.swg-mega-menu__cta-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.swg-mega-menu__cta-desc {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.swg-mega-menu__cta-btn {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: #fff;
  color: var(--swg-dark-navy);
  border-radius: var(--swg-radius-pill);
  font-weight: 700;
  font-size: 0.9375rem;
  text-align: center;
  text-decoration: none;
  transition: var(--swg-transition);
}

.swg-mega-menu__cta-btn:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transform: scale(1.03);
}

.swg-mega-menu__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--swg-text-muted);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}

.swg-mega-menu__close:hover {
  background: var(--swg-bg-slate-50);
  color: var(--swg-text-primary);
}

/* ============================================================
   MOBILE MENU OVERLAY
   ============================================================ */

.swg-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.swg-mobile-menu.is-open {
  transform: translateX(0);
}

.swg-mobile-menu__header {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--swg-border-medium);
  padding: 1.25rem var(--swg-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--swg-nav-height);
  z-index: 10;
}

.swg-mobile-menu__close {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--swg-bg-slate-50);
  color: var(--swg-text-primary);
  cursor: pointer;
  transition: background 0.2s ease;
}

.swg-mobile-menu__close:hover {
  background: var(--swg-border-medium);
}

.swg-mobile-menu__body {
  padding: 2rem var(--swg-px) 8rem;
  flex: 1;
}

.swg-mobile-menu__section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--swg-orange);
  margin-bottom: 1rem;
}

.swg-mobile-menu__services {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2rem;
}

.swg-mobile-menu__service {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--swg-border-light);
  text-decoration: none;
  color: inherit;
}

.swg-mobile-menu__service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--swg-border-medium);
  color: var(--swg-text-primary);
  flex-shrink: 0;
}

/* Active service: orange icon — applied via PHP is_page() class on <a> element */
.swg-mobile-menu__service--active .swg-mobile-menu__service-icon {
  background: var(--swg-orange);
  border-color: var(--swg-orange);
  color: #fff;
}

.swg-mobile-menu__service-name {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.125rem;
}

.swg-mobile-menu__service-desc {
  font-size: 0.8125rem;
  color: var(--swg-text-muted);
}

.swg-mobile-menu__main-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2rem;
}

.swg-mobile-menu__main-link {
  display: block;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--swg-text-primary);
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--swg-border-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.swg-mobile-menu__main-link--active {
  color: var(--swg-orange);
}


.swg-mobile-menu__main-link:hover {
  color: var(--swg-orange);
}

.swg-mobile-menu__locations-card {
  background: var(--swg-dark-navy);
  color: #fff;
  padding: 1.5rem;
  border-radius: 1.25rem;
  margin-bottom: 1rem;
}

.swg-mobile-menu__cta {
  display: block;
  width: 100%;
  padding: 1rem;
  background: var(--swg-orange);
  color: #fff;
  border-radius: var(--swg-radius-pill);
  font-weight: 700;
  font-size: 1.0625rem;
  text-align: center;
  text-decoration: none;
  transition: var(--swg-transition);
}

.swg-mobile-menu__cta:hover {
  background: var(--swg-orange-hover);
}

/* ============================================================
   HERO SECTIONS
   ============================================================ */

/* --- Light hero (homepage, service pages with light bg) --- */
.swg-hero-light {
  position: relative;
  padding-top: calc(var(--swg-nav-height) + clamp(4rem, 8vw, 8rem));
  padding-bottom: clamp(4rem, 8vw, 8rem);
  padding-inline: var(--swg-px);
  background: var(--swg-bg-hero);
  overflow: hidden;
}

.swg-hero-light__inner {
  max-width: var(--swg-max-width);
  margin-inline: auto;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .swg-hero-light__inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.swg-hero-light__breadcrumb {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--swg-text-muted);
  margin-bottom: 1.5rem;
}

.swg-hero-light__breadcrumb a {
  color: var(--swg-text-muted);
  text-decoration: none;
}

.swg-hero-light__breadcrumb a:hover {
  color: var(--swg-orange);
}

.swg-hero-light__eyebrow {
  margin-bottom: 1.5rem;
}

.swg-hero-light__title {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.swg-hero-light__body {
  font-size: clamp(1.0625rem, 2vw, 1.3125rem);
  color: var(--swg-text-muted);
  line-height: 1.6;
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.swg-hero-light__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.swg-hero-light__image {
  position: relative;
  border-radius: var(--swg-radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.swg-hero-light__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Orange accent block */
.swg-hero-light__accent-block {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  width: 8rem;
  height: 8rem;
  background: var(--swg-orange);
  border-radius: var(--swg-radius-md);
  z-index: -1;
}

/* --- Dark/immersive hero --- */
.swg-hero-dark {
  position: relative;
  height: 92vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--swg-dark-950);
  padding-inline: var(--swg-px);
}

.swg-hero-dark--bottom-left {
  align-items: flex-end;
  justify-content: flex-start;
  padding-bottom: clamp(4rem, 8vw, 8rem);
}

.swg-hero-dark__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.swg-hero-dark__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: grayscale(100%);
}

.swg-hero-dark__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--swg-dark-950) 0%, rgba(2,6,23,0.2) 50%, rgba(2,6,23,0.4) 100%);
}

/* Slideshow images */
.swg-hero-dark__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.swg-hero-dark__slide.is-active {
  opacity: 1;
}

.swg-hero-dark__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.swg-hero-dark__inner {
  position: relative;
  z-index: 10;
  max-width: var(--swg-max-width);
  width: 100%;
  margin-inline: auto;
  text-align: center;
}

.swg-hero-dark--bottom-left .swg-hero-dark__inner {
  text-align: left;
}

.swg-hero-dark__eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--swg-orange);
  margin-bottom: 2rem;
}

.swg-hero-dark__title {
  margin-bottom: 2rem;
}

.swg-hero-dark__body {
  font-size: clamp(1.0625rem, 2vw, 1.5rem);
  color: rgba(255,255,255,0.85);
  font-weight: 300;
  line-height: 1.5;
  max-width: 48rem;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.swg-hero-dark--bottom-left .swg-hero-dark__body {
  margin-inline: 0;
}

.swg-hero-dark__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.swg-hero-dark--bottom-left .swg-hero-dark__ctas {
  justify-content: flex-start;
}

/* Slideshow dots */
.swg-hero-dark__dots {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.swg-hero-dark__dot {
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.25);
  transition: width 0.5s ease, background 0.5s ease;
  width: 1rem;
  cursor: pointer;
}

.swg-hero-dark__dot.is-active {
  width: 3rem;
  background: var(--swg-orange);
}

/* --- Editorial hero (Trade Shows style) --- */
.swg-hero-editorial {
  padding-top: calc(var(--swg-nav-height) + clamp(8rem, 20vw, 20rem));
  padding-bottom: clamp(8rem, 20vw, 20rem);
  padding-inline: var(--swg-px);
}

.swg-hero-editorial__inner {
  max-width: var(--swg-max-width);
  margin-inline: auto;
}

.swg-hero-editorial__title {
  font-size: clamp(3.5rem, 8.5vw, 9rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.04em;
  margin-bottom: 4rem;
}

.swg-hero-editorial__subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 300;
  color: var(--swg-text-muted);
  line-height: 1.4;
  max-width: 36rem;
}

/* ============================================================
   SECTION COMPONENTS
   ============================================================ */

/* --- Two-col text + image --- */
.swg-split {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .swg-split {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }

  /* Wide image: the IMAGE column is the wider one. Before v1.54.1 this widened the first column, i.e. the text,
     unless the split was reversed. */
  .swg-split--wide-image {
    grid-template-columns: 1fr 1.5fr;
  }

  .swg-split--wide-image.swg-split--reverse {
    grid-template-columns: 1.5fr 1fr;
  }

  .swg-split--reverse > *:first-child {
    order: 2;
  }

  .swg-split--reverse > *:last-child {
    order: 1;
  }
}

.swg-split__image {
  position: relative;
  overflow: hidden;
  border-radius: var(--swg-radius-sm);
}

.swg-split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.swg-split__image:hover img {
  transform: scale(1.04);
}

.swg-split__image--portrait {
  aspect-ratio: 4/5;
}

.swg-split__image--landscape {
  aspect-ratio: 4/3;
}

.swg-split__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--swg-orange);
  margin-bottom: 1.5rem;
  display: block;
}

.swg-split__title {
  font-size: clamp(2.25rem, 4vw, 4rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: var(--swg-near-black);
}

.swg-split__body {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--swg-text-muted);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.swg-split__body p {
  margin: 0 0 1.25em;
  font: inherit;
  color: inherit;
}

.swg-split__body p:last-child {
  margin-bottom: 0;
}

/* --- Dark CTA band (flat) --- */
.swg-cta-band {
  padding-block: var(--swg-section-xl);
  padding-inline: var(--swg-px);
  background: var(--swg-near-black);
  color: #fff;
  text-align: center;
}

.swg-cta-band__inner {
  max-width: 56rem;
  margin-inline: auto;
}

.swg-cta-band__title {
  font-size: clamp(3rem, 8vw, 9.5rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.03em;
  margin-bottom: 3rem;
}

.swg-cta-band__body {
  font-size: clamp(1.125rem, 2vw, 2rem);
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  max-width: 32rem;
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* --- CTA card (rounded, dark bg) — homepage "Let's build something that lasts" --- */
.swg-cta-card {
  padding-block: var(--swg-section-sm);
  padding-inline: var(--swg-px);
  background: var(--swg-bg-off-white);
}

.swg-cta-card__box {
  max-width: 64rem;
  margin-inline: auto;
  background: var(--swg-dark-navy);
  border-radius: var(--swg-radius-cta);
  padding: clamp(3rem, 6vw, 6rem);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.swg-cta-card__title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.swg-cta-card__body {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 3rem;
}

/* --- Editorial CTA (full dark section with large type — Branding page) --- */
.swg-cta-editorial {
  padding: clamp(4rem, 8vw, 8rem) var(--swg-px);
}

.swg-cta-editorial__box {
  max-width: var(--swg-max-width);
  margin-inline: auto;
  background: var(--swg-dark-navy);
  padding: clamp(3rem, 8vw, 10rem);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.swg-cta-editorial__title {
  font-size: clamp(3rem, 10vw, 10rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.swg-cta-editorial__body {
  font-size: clamp(1.125rem, 2.5vw, 1.875rem);
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  line-height: 1.5;
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: 3rem;
}

/* --- 3-col cards --- */
.swg-cards {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .swg-cards--3col { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .swg-cards--3col { grid-template-columns: repeat(3, 1fr); }
}

.swg-card {
  border-radius: var(--swg-radius-md);
  overflow: hidden;
  transition: var(--swg-transition);
}

.swg-card__image {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--swg-bg-slate-50);
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.swg-card:hover .swg-card__image {
  filter: grayscale(0);
}

.swg-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: transform 1s ease, opacity 0.5s ease;
}

.swg-card:hover .swg-card__image img {
  transform: scale(1.05);
  opacity: 1;
}

.swg-card__body {
  padding: 1.5rem 1rem 0;
}

.swg-card__title {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.swg-card__desc {
  font-size: 1.0625rem;
  color: var(--swg-text-hint);
  line-height: 1.5;
  transition: color 0.2s ease;
  max-width: 20rem;
}

.swg-card:hover .swg-card__desc {
  color: #fff;
}

/* --- Process steps (4-col, dark bg) --- */
.swg-steps {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .swg-steps { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (min-width: 1024px) {
  .swg-steps { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

.swg-step__number {
  font-size: 5rem;
  font-weight: 900;
  font-style: italic;
  font-family: var(--swg-font-serif);
  color: rgba(255,255,255,0.05);
  line-height: 1;
  margin-bottom: 1.5rem;
  transition: color 0.7s ease;
}

.swg-step:hover .swg-step__number {
  color: var(--swg-orange);
}

.swg-step__title {
  font-size: 1.375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  color: #fff;
}

.swg-step__divider {
  height: 2px;
  background: rgba(255,255,255,0.1);
  margin-bottom: 1.25rem;
  transition: background 0.5s ease;
}

.swg-step:hover .swg-step__divider {
  background: var(--swg-orange);
}

.swg-step__desc {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

/* --- Full-width image --- */
.swg-full-image {
  width: 100%;
  overflow: hidden;
}

.swg-full-image img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  display: block;
}

.swg-full-image--tall img {
  aspect-ratio: 16/9;
}

.swg-full-image__caption {
  max-width: var(--swg-max-width);
  margin-inline: auto;
  padding-inline: var(--swg-px);
  padding-top: 2rem;
}

.swg-full-image__caption-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--swg-near-black);
  margin-bottom: 0.25rem;
}

.swg-full-image__caption-tag {
  font-size: 0.6875rem;
  color: var(--swg-text-hint);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 500;
}

/* --- FAQ Accordion --- */
.swg-faq__item {
  border-bottom: 1px solid var(--swg-border-medium);
}

.swg-faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.5rem 0;
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  gap: 1rem;
}

.swg-faq__question {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 700;
  color: var(--swg-text-primary);
  transition: color 0.2s ease;
  line-height: 1.4;
}

.swg-faq__trigger:hover .swg-faq__question {
  color: var(--swg-orange);
}

.swg-faq__icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  color: var(--swg-text-muted);
  transition: transform 0.3s ease;
}

.swg-faq__item.is-open .swg-faq__icon {
  transform: rotate(45deg);
  color: var(--swg-orange);
}

.swg-faq__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.swg-faq__item.is-open .swg-faq__answer {
  max-height: 600px;
}

.swg-faq__answer-inner {
  padding-bottom: 1.5rem;
  font-size: 1.0625rem;
  color: var(--swg-text-muted);
  line-height: 1.7;
}

/* --- Locations 3-col --- */
.swg-locations {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .swg-locations { grid-template-columns: repeat(3, 1fr); }
}

.swg-location-card {
  border-radius: var(--swg-radius-md);
  overflow: hidden;
  border: 1px solid var(--swg-border-medium);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.swg-location-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transform: scale(1.02);
}

.swg-location-card__image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.swg-location-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.swg-location-card:hover .swg-location-card__image img {
  transform: scale(1.08);
}

.swg-location-card__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.swg-location-card:hover .swg-location-card__image-overlay {
  opacity: 0.85;
}

.swg-location-card__image-text {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 2;
}

.swg-location-card__city {
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.125rem;
}

.swg-location-card__subtitle {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

.swg-location-card__body {
  padding: 2rem;
}

.swg-location-card__desc {
  font-size: 0.9375rem;
  color: var(--swg-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* --- Logo grid --- */
.swg-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 768px)  { .swg-logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .swg-logo-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .swg-logo-grid { grid-template-columns: repeat(5, 1fr); } }

.swg-logo-grid__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  background: #fff;
  border: 1px solid var(--swg-border-light);
  border-radius: var(--swg-radius-md);
  height: 7rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.swg-logo-grid__item:hover {
  border-color: var(--swg-border-medium);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.swg-logo-grid__item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* --- Testimonial / quote --- */
.swg-quote {
  text-align: center;
  padding-inline: var(--swg-px);
}

.swg-quote blockquote {
  font-size: clamp(1.5rem, 3vw, 3rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--swg-text-primary);
  max-width: 52rem;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.swg-quote__cite {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--swg-near-black);
  display: block;
  margin-bottom: 0.25rem;
}

.swg-quote__role {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--swg-orange);
}

/* ============================================================
   FOOTER
   ============================================================ */

.swg-footer {
  background: #fff;
  border-top: 1px solid var(--swg-border-light);
  padding-top: var(--swg-section-sm);
  padding-bottom: 3rem;
  padding-inline: var(--swg-px);
}

.swg-footer__inner {
  max-width: var(--swg-max-width);
  margin-inline: auto;
}

.swg-footer__top {
  display: grid;
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .swg-footer__top {
    grid-template-columns: 5fr 7fr;
    gap: 2rem;
  }
}

.swg-footer__brand {
  max-width: 28rem;
}

.swg-footer__logo {
  margin-bottom: 1.5rem;
  display: inline-block;
}

.swg-footer__tagline {
  font-size: 0.9375rem;
  color: #475569; /* text-slate-600 */
  line-height: 1.7;
  margin-bottom: 2rem;
}

.swg-footer__social {
  display: flex;
  gap: 0.75rem;
}

.swg-footer__social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--swg-orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--swg-transition);
  text-decoration: none;
}

.swg-footer__social-link:hover {
  background: var(--swg-orange-hover);
  transform: scale(1.1);
}

.swg-footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .swg-footer__links {
    grid-template-columns: repeat(2, 1fr);
  }

  .swg-footer__links > *:last-child {
    grid-column: 1 / -1;
  }
}

.swg-footer__col-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--swg-text-primary);
  margin-bottom: 1.5rem;
}

.swg-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.swg-footer__nav a {
  font-size: 0.9375rem;
  color: #475569; /* text-slate-600 */
  text-decoration: none;
  transition: color 0.2s ease;
}

.swg-footer__nav a:hover,
.swg-footer__nav li a:hover {
  color: var(--swg-orange) !important;
}

.swg-footer__bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--swg-border-light);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  font-size: 0.8125rem;
  color: #64748b !important; /* text-slate-500 */
}

@media (min-width: 768px) {
  .swg-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.swg-footer__legal {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.swg-footer__legal a {
  color: #64748b; /* text-slate-500 */
  text-decoration: none;
  transition: color 0.2s ease;
}

.swg-footer__legal a:hover {
  color: var(--swg-text-primary);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

.swg-fade-up,
.swg-fade-left,
.swg-fade-right {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.21, 0.47, 0.32, 0.98),
              transform 0.8s cubic-bezier(0.21, 0.47, 0.32, 0.98);
}

.swg-fade-up    { transform: translateY(40px); }
.swg-fade-left  { transform: translateX(40px); }
.swg-fade-right { transform: translateX(-40px); }

.swg-fade-up.is-visible,
.swg-fade-left.is-visible,
.swg-fade-right.is-visible {
  opacity: 1;
  transform: translate(0);
}

/* Staggered children */
.swg-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.swg-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.swg-stagger.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.swg-stagger.is-visible > *:nth-child(3) { transition-delay: 0.2s; }
.swg-stagger.is-visible > *:nth-child(4) { transition-delay: 0.3s; }
.swg-stagger.is-visible > *:nth-child(5) { transition-delay: 0.4s; }
.swg-stagger.is-visible > *:nth-child(6) { transition-delay: 0.5s; }

.swg-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .swg-fade-up, .swg-fade-left, .swg-fade-right,
  .swg-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   WORDPRESS BLOCK EDITOR OVERRIDES
   ============================================================ */

.wp-site-blocks {
  padding: 0;
}

.wp-block-group {
  padding: 0;
}

/* Ensure full-width sections aren't constrained */
.alignfull {
  max-width: none;
  width: 100%;
  margin-inline: 0;
}

/* ============================================================
   WORDPRESS BLOCK EDITOR OVERRIDES
   Prevent WP block styles from interfering with section colours
   ============================================================ */

/* Reset WP block editor padding on the site */
.wp-site-blocks,
.wp-block-group,
.entry-content,
.wp-block-post-content {
  padding: 0 !important;
  margin: 0 !important;
}

/* Ensure our section colours aren't overridden by block themes */
.swg-section--off-white  { background-color: var(--swg-bg-off-white) !important; }
.swg-section--slate-50   { background-color: var(--swg-bg-slate-50) !important; }
.swg-section--dark       { background-color: var(--swg-bg-slate-dark) !important; color: #fff !important; }
.swg-section--near-black { background-color: var(--swg-near-black) !important; color: #fff !important; }
.swg-cta-band            { background-color: var(--swg-near-black) !important; color: #fff !important; }
.swg-cta-card__box       { background-color: var(--swg-dark-navy) !important; }
.swg-cta-editorial__box  { background-color: var(--swg-dark-navy) !important; }

/* Fix: WP adds is-layout-flow which can break section widths */
.swg-container.is-layout-flow,
.swg-container--narrow.is-layout-flow {
  max-width: var(--swg-max-width);
  padding-inline: var(--swg-px);
}

/* Ensure hero sections cover the nav correctly */
.swg-hero-light,
.swg-hero-dark,
.swg-hero-editorial {
  position: relative;
}

/* Fix mega menu grid on mid-size screens */
@media (max-width: 1280px) {
  .swg-mega-menu__inner {
    grid-template-columns: 1fr 1fr 280px;
    gap: 2rem;
  }
}

@media (max-width: 1100px) {
  .swg-mega-menu__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .swg-mega-menu__panel {
    display: none; /* hide the right panel on smaller desktops */
  }
}

/* Fix: nav links need cursor pointer */
.swg-nav__what-we-do-btn,
.swg-nav__link {
  cursor: pointer;
}

/* Fix: ensure the nav inner has enough height for logo */
.swg-nav__inner {
  min-height: 56px;
}

/* Fix: hero dark overlay needs to cover full height */
.swg-hero-dark__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Ensure hero content is above overlay */
.swg-hero-dark__inner,
.swg-hero-dark__dots {
  position: relative;
  z-index: 2;
}

/* Fix: services grid intro on homepage */
@media (min-width: 1024px) {
  .swg-services-intro-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   MEGA MENU — TSX-exact hover effects
   hover:scale-110 on icon, hover:text-orange on title (item 1)
   hover:text-slate-700 on title (other items)
   ============================================================ */

/* Icon scale on parent hover */
a:hover .swg-mega-icon {
  transform: scale(1.1);
}

/* Title colour on parent hover — handled inline via JS onmouseover
   but add CSS fallback */
a:hover .swg-mega-title {
  color: #DE8926;
}

/* Override for non-orange items (items 2-6): hover goes slate-700 not orange */
.swg-mega-menu a:not(:first-child):hover .swg-mega-title,
.swg-mega-menu div:last-child a:hover .swg-mega-title {
  color: #334155;
}

/* Mega menu close button positioning */
.swg-mega-menu__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

/* Mega menu grid responsive */
@media (max-width: 1280px) {
  .swg-mega-menu > div > div {
    grid-template-columns: 1fr 1fr 280px !important;
  }
}

@media (max-width: 1080px) {
  .swg-mega-menu > div > div {
    grid-template-columns: 1fr 1fr !important;
  }
  .swg-mega-menu > div > div > div:last-child {
    display: none;
  }
}

/* ── Branding page mobile responsive grids ── */
/* Systems, Not Surfaces: 1 col mobile → 3 col md+ (TSX: md:grid-cols-3) */
.swg-br-sys-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .swg-br-sys-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Precision/Integrity: 1 col mobile → 2 col sm+ (TSX: sm:grid-cols-2) */
.swg-br-pi-grid {
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .swg-br-pi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   CTA BOX — Canonical mobile-safe button rules
   Applies to all final CTA dark cards across all pages.
   These rules override any inline styles that may have been
   set incorrectly from MagicPath TSX output.
   ============================================================ */

/* 
 * CTA heading: scaled to never overflow on 360px viewport.
 * 6vw of 360px = 21.6px — too small, so clamp minimum is 1.75rem (28px).
 * On desktop the max is generous enough for editorial impact.
 */
.swg-cta-box h2,
.swg-cta-box h3 {
  font-size: clamp(1.75rem, 7vw, 6rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.04em !important;
  overflow-wrap: break-word;
  hyphens: manual; /* v1.53.1: was auto ("pres-/ence?"); long words are scaled to fit by swg-nav.js fitHeadings() */
}

/*
 * CTA subtext: comfortable reading size on all screens.
 */
.swg-cta-box p {
  font-size: clamp(0.9375rem, 3vw, 1.25rem) !important;
  line-height: 1.6 !important;
}

/* Phones: the CTA cards' inline padding (clamp(4rem,…)) left a ~160 px text column at 320 px. (v1.53.2) */
@media (max-width: 639px) {
  .swg-cta-box { padding-inline: clamp(1.25rem, 6vw, 2rem) !important; }
}

/* 
 * Button group: stack vertically on mobile, row on larger screens.
 * Each button sized to content — never stretched to full width.
 */
.swg-cta-box .swg-cta-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 480px) {
  .swg-cta-box .swg-cta-btns {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/*
 * CANONICAL CTA BUTTON:
 * - Always pill (border-radius:9999px) — no square buttons in CTAs
 * - Font size and padding use clamp to scale gracefully
 * - No text-transform:uppercase — prevents text wrapping on narrow screens
 * - letter-spacing: normal (uppercase + wide tracking = wrapping)
 */
.swg-cta-box a:not(.swg-cta-underline),
.swg-cta-box button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.625rem !important;
  padding: clamp(0.875rem, 2.5vw, 1.25rem) clamp(1.5rem, 4vw, 2.5rem) !important;
  border-radius: 9999px !important;
  font-size: clamp(0.9375rem, 2.5vw, 1.0625rem) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
}

/* ============================================================
   HERO SLIDESHOW INDICATORS — shared (Branding & Design, Photography & Video)
   Centred at the bottom of the hero on a dark glass pill so they read over any photo.
   Active slide = longer orange bar. Buttons keep a generous tap target.
   ============================================================ */
.swg-slide-dots {
  position: absolute;
  left: 50%;
  bottom: clamp(1.25rem, 3vw, 2.5rem);
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .25rem;
  padding: .125rem .75rem;
  border-radius: 9999px;
  background: rgba(2, 6, 23, .45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.swg-slide-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .75rem .3rem;
  background: none;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.swg-slide-dot span {
  display: block;
  width: 1.5rem;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .45);
  transition: width .6s ease, background-color .6s ease;
}
.swg-slide-dot:hover span { background: rgba(255, 255, 255, .85); }
.swg-slide-dot.is-active span { width: 3rem; background: #DE8926; }
.swg-slide-dot:focus-visible { outline: 2px solid #DE8926; outline-offset: 2px; border-radius: 4px; }
