/* THEME LOCAL BASE UTILITIES */
/* ============================================================================
   FRONTEND BASE UTILITIES
   Shared classes used by section components rendered in frontend routes.
   ============================================================================ */

.site .container {
  width: min(var(--container-max, 1380px), calc(100% - 2rem));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  row-gap: var(--container-row-gap, clamp(0.75rem, 1.4vw, 1.2rem));
}

.site section {
  display: flex;
  flex-direction: column;
  row-gap: var(--section-row-gap, clamp(1rem, 1.8vw, 1.6rem));
  padding-block: clamp(1rem, 2vw, 2rem);
  padding-inline: clamp(0.75rem, 1.5vw, 1.25rem);
}

.site .auto-grid {
  display: grid;
  gap: clamp(0.9rem, 1.6vw, 1.4rem);
  grid-template-columns: 1fr;
}

.site .auto-grid:has(> :nth-child(2)) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site .auto-grid:has(> :nth-child(3)) {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.site .auto-grid:has(> :nth-child(3)) > * {
  grid-column: span 2;
}

.site .auto-grid:has(> :nth-child(3)):has(> :last-child:nth-child(3n + 1)) > :last-child {
  grid-column: 1 / -1;
}

.site .auto-grid:has(> :nth-child(3)):has(> :last-child:nth-child(3n + 2)) > :nth-last-child(2),
.site .auto-grid:has(> :nth-child(3)):has(> :last-child:nth-child(3n + 2)) > :last-child {
  grid-column: span 3;
}

@supports not selector(:has(*)) {
  .site .auto-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .site .auto-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site .auto-grid > * {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .site .auto-grid {
    grid-template-columns: 1fr;
  }
}

.site[data-theme='hsg-theme'] .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--duration-normal) var(--ease-default),
              color var(--duration-normal) var(--ease-default),
              border-color var(--duration-normal) var(--ease-default);
  white-space: nowrap;
}

.site[data-theme='hsg-theme'] .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.site[data-theme='hsg-theme'] .btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.site[data-theme='hsg-theme'] .btn--primary:hover:not(:disabled) {
  background: var(--color-primary-hover);
}

.site[data-theme='hsg-theme'] .btn--primary.btn--primary-colorway {
  color: #fff;
  border-radius: var(--radius-full);
  border-color: var(--color-primary);
  background: var(--color-primary);
  box-shadow: none;
}

.site[data-theme='hsg-theme'] .btn--primary.btn--primary-colorway:hover:not(:disabled) {
  border-color: var(--color-primary-hover);
  background: var(--color-primary-hover);
  box-shadow: none;
}

.site[data-theme='hsg-theme'] .btn--secondary {
  background: var(--color-surface);
  color: var(--color-text-primary);
  border-color: var(--color-border);
  border-radius: var(--radius-full);
  box-shadow: none;
}

.site[data-theme='hsg-theme'] .btn--secondary:hover:not(:disabled) {
  background: var(--color-hover);
  border-color: var(--color-border);
}

.site[data-theme='hsg-theme'] .btn--danger {
  background: var(--color-danger);
  color: var(--color-text-inverse);
}

.site[data-theme='hsg-theme'] .btn--danger:hover:not(:disabled) {
  background: #b91c1c;
}

.site[data-theme='hsg-theme'] .btn--ghost {
  background: transparent;
  color: var(--color-text-secondary);
}

.site[data-theme='hsg-theme'] .btn--ghost:hover:not(:disabled) {
  background: var(--color-hover);
  color: var(--color-text-primary);
}

.site[data-theme='hsg-theme'] .btn--icon {
  padding: var(--space-2);
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.site[data-theme='hsg-theme'] .btn--icon:hover:not(:disabled) {
  background: var(--color-hover);
}

.site[data-theme='hsg-theme'] .btn--lg {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
}

.site[data-theme='hsg-theme'] .btn--sm {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
}

.site[data-theme='hsg-theme'] .block-renderer > * + * {
  margin-top: var(--space-4);
}

.site[data-theme='hsg-theme'] .block-renderer h1,
.site[data-theme='hsg-theme'] .block-renderer h2,
.site[data-theme='hsg-theme'] .block-renderer h3,
.site[data-theme='hsg-theme'] .block-renderer h4 {
  margin-top: var(--space-8);
}

.site[data-theme='hsg-theme'] .block-renderer p {
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.site[data-theme='hsg-theme'] .block-renderer ul,
.site[data-theme='hsg-theme'] .block-renderer ol {
  padding-left: var(--space-6);
}

.site[data-theme='hsg-theme'] .block-renderer ul {
  list-style: disc;
}

.site[data-theme='hsg-theme'] .block-renderer ol {
  list-style: decimal;
}

.site[data-theme='hsg-theme'] .block-renderer li + li {
  margin-top: var(--space-2);
}

.site[data-theme='hsg-theme'] .block-renderer__image {
  margin: var(--space-8) 0;
}

.site[data-theme='hsg-theme'] .block-renderer__image img {
  border-radius: var(--radius-lg);
}

.site[data-theme='hsg-theme'] .block-renderer__image figcaption {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
}

.site[data-theme='hsg-theme'] .block-renderer__rhythm {
  display: grid;
  gap: 0.55rem;
  margin: clamp(1.4rem, 2.6vw, 2.2rem) 0;
}

.site[data-theme='hsg-theme'] .block-renderer__rhythm--left {
  max-width: min(100%, 28rem);
  margin-right: auto;
}

.site[data-theme='hsg-theme'] .block-renderer__rhythm--right {
  max-width: min(100%, 28rem);
  margin-left: auto;
}

.site[data-theme='hsg-theme'] .block-renderer__rhythm--full {
  max-width: none;
}

.site[data-theme='hsg-theme'] .block-renderer__rhythm-media {
  overflow: hidden;
  border: 1px solid #d8c5ad;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.08)),
    var(--color-surface);
  box-shadow: 0 18px 28px rgba(23, 32, 43, 0.1);
}

.site[data-theme='hsg-theme'] .block-renderer__rhythm-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.site[data-theme='hsg-theme'] .block-renderer__rhythm-caption {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  text-align: center;
}

.site[data-theme='hsg-theme'] .block-renderer__quote {
  padding: var(--space-4) var(--space-6);
  border-left: 3px solid var(--color-primary);
  background: var(--color-surface-raised);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.site[data-theme='hsg-theme'] .block-renderer__quote cite {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: normal;
}

.site[data-theme='hsg-theme'] .block-renderer__cta {
  margin: var(--space-8) 0;
  text-align: center;
}

.site[data-theme='hsg-theme'] .block-renderer__video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.site[data-theme='hsg-theme'] .block-renderer__video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================================
   FRONTEND LAYOUT BASE (STRUCTURE ONLY)
   Visual styling should come from tenant theme files.
   ============================================================================ */

.site {
  --font-sans: var(--theme-font-sans, var(--font-client-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif));
  --font-heading: var(--theme-font-heading, var(--font-client-display, var(--font-sans)));

  --color-bg: #fff;
  --color-surface: #fff;
  --color-surface-raised: #f8fafc;
  --color-border: #d1d5db;
  --color-border-light: #e5e7eb;
  --color-text-primary: #111827;
  --color-text-secondary: #4b5563;
  --color-text-muted: #6b7280;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
}

.site__main {
  flex: 1;
  overflow-x: clip;
}

.site h1,
.site h2,
.site h3,
.site h4 {
  font-family: var(--font-heading, var(--font-sans));
  text-wrap: balance;
}

.site p {
  text-wrap: pretty;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: var(--space-3) var(--space-6);
  min-height: 76px;
  gap: var(--space-4);
}

.header__logo {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: inherit;
}

.header__logo-mark {
  position: relative;
  display: block;
  width: var(--header-logo-width, 220px);
  height: var(--header-logo-height, 64px);
}

.header__logo img {
  width: 100%;
  height: 100%;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.35rem;
 
}

.header__group {
  position: relative;
}

.header__link {
  font-size: var(--text-sm);
  color: inherit;
  padding: 0.5rem 0.8rem;
  border: 1px solid transparent;
  text-decoration: none;
}

.header__summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.header__summary-link {
  color: inherit;
  text-decoration: none;
}

.header__summary::-webkit-details-marker {
  display: none;
}

.header__summary-caret {
  width: 0.58rem;
  height: 0.58rem;
  border-right: 1.75px solid currentColor;
  border-bottom: 1.75px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
}

.header__group[open] .header__summary-caret {
  transform: translateY(1px) rotate(-135deg);
}

.header__cta {
  margin-left: var(--space-2);
}

.header__group--cta .header__cta {
  margin-left: 0;
}

.header__submenu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 0.65rem;
  display: grid;
  gap: 0.4rem;
  z-index: 120;
}

.header__submenu--mega {
  left: 0;
  right: auto;
  width: max-content;
  max-width: calc(100vw - 2rem);
}

.header__submenu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.header__submenu-list--depth-0.header__submenu-list {
  grid-template-columns: 1fr;
}

.header__group--mega .header__submenu-list--depth-0.header__submenu-list {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.55rem;
}

.header__submenu-item {
  min-width: 0;
}

.header__submenu-link {
  display: block;
  color: inherit;
  padding: 0.55rem 0.7rem;
  text-decoration: none;
}

.header__submenu-link--overview {
  border: 1px dashed var(--color-border);
}

.header__submenu-item--column {
  display: block;
}

.header__submenu-column {
  display: grid;
  gap: 0.35rem;
}

.header__submenu-heading {
  display: block;
  padding: 0.55rem 0.7rem;
  font-weight: var(--font-semibold);
}

.header__mega-flyout {
  display: grid;
  grid-template-columns: minmax(220px, 280px);
  gap: 0;
  align-items: start;
}

.header__mega-flyout.is-split {
  grid-template-columns: minmax(220px, 280px) minmax(260px, 1fr);
  gap: 0.75rem;
}

.header__mega-primary,
.header__mega-secondary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.header__mega-flyout.is-split .header__mega-primary {
  border-right: 1px solid var(--color-border-light);
  padding-right: 0.65rem;
}

.header__mega-primary-item {
  min-width: 0;
}

.header__mega-entry {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.header__mega-caret {
  width: 1.1rem;
  height: 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  position: relative;
}

.header__mega-caret::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.28rem;
  height: 0.28rem;
  border-right: 1.75px solid currentColor;
  border-bottom: 1.75px solid currentColor;
  transform: translate(-58%, -50%) rotate(-45deg);
}

.header__mega-entry.is-active .header__mega-caret {
  transform: translateX(2px);
}

.header__mega-secondary {
  min-width: 0;
  padding-left: 0.25rem;
}

.header__mega-secondary-title {
  margin: 0 0 0.35rem;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
}

.header__mega-secondary-link {
  display: block;
  color: inherit;
  padding: 0.55rem 0.7rem;
  text-decoration: none;
}

.header__submenu-group {
  border: 1px solid var(--color-border-light);
  background: var(--color-surface-raised);
}

.header__submenu-summary {
  cursor: pointer;
  list-style: none;
  padding: 0.55rem 0.7rem;
  font-weight: var(--font-medium);
}

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

.header__submenu-panel {
  padding: 0 0.35rem 0.35rem;
}

.header__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.header__mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
}

@media (max-width: 768px) {
  .header__mobile-toggle {
    display: flex;
  }

  .header__nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: var(--space-4);
    right: var(--space-4);
    flex-direction: column;
    gap: var(--space-1);
    background: var(--color-surface);
    padding: var(--space-3);
  }

  .header__nav--open {
    display: flex;
    background-color: var(--color-surface);
  }

  .header__link {
    padding: var(--space-3) var(--space-4);
    width: 100%;
  }

  .header__group {
    width: 100%;
  }

  .header__summary {
    width: 100%;
    justify-content: space-between;
  }

  .header__submenu {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 0.35rem;
  }

  .header__group--mega .header__submenu-list--depth-0.header__submenu-list {
    grid-template-columns: 1fr;
  }

  .header__mega-flyout {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .header__mega-primary {
    border-right: 0;
    border-bottom: 1px solid var(--color-border-light);
    padding-right: 0;
    padding-bottom: 0.5rem;
  }

  .header__mega-secondary {
    padding-left: 0;
  }

  .header__cta {
    margin-left: 0;
    margin-top: var(--space-4);
    width: 100%;
    text-align: center;
  }
}

/* Footer */
.footer {
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-8);
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: var(--space-12) var(--space-6);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.footer__accent {
  margin: 0 0 var(--space-2);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  font-weight: 700;
}

.footer__logo-link {
  display: inline-flex;
  margin-bottom: var(--space-1);
}

.footer__logo-image {
  object-fit: contain;
}

.footer__brand h3 {
  margin-bottom: 0;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__title {
  margin: 0 0 var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.88rem;
  font-weight: 700;
}

.footer__nav a {
  font-size: var(--text-base);
  color: inherit;
  width: fit-content;
  padding: 0.1rem 0;
  border-bottom: 1px solid transparent;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: var(--text-base);
  color: var(--color-text-secondary);
}

.footer__contact p {
  margin: 0;
  padding: 0;
}

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

.footer__column {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}

.footer__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer__block {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__block-title {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer__text,
.footer__text p,
.footer__text li {
  color: var(--color-text-secondary);
}

.footer__text p:first-child {
  margin-top: 0;
}

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

.footer__media-grid {
  display: grid;
  gap: var(--space-3);
}

.footer__media-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer__media-item {
  overflow: hidden;
  border-radius: 14px;
}

.footer__media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer__bottom {
  border-top: 1px solid var(--color-border);
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: var(--space-6);
}

.footer__bottom p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding: var(--space-10) var(--space-6);
  }
}

/* ============================================================================
   BASIC / WIREFRAME FRONTEND
   Structural defaults only. Tenant themes own visual identity.
   ============================================================================ */

.site {
  --wire-bg: var(--color-surface, #fff);
  --wire-panel: var(--color-surface-raised, #f8fafc);
  --wire-border: var(--color-border, #d1d5db);
  --wire-text: var(--color-text-primary, #111827);
  --wire-muted: var(--color-text-secondary, #4b5563);
  --wire-radius: 0.75rem;
}

.site section,
.site article,
.site aside,
.site header {
  color: var(--wire-text);
}

.site .page,
.site .contact__layout,
.site .service,
.site .area,
.site .blog-post {
  width: min(var(--container-xl), calc(100% - 2rem));
  margin-inline: auto;
  border-radius: var(--wire-radius);
}

.site .content-section__head,
.site .services-list__head,
.site .area-projects__head,
.site .list-page-intro,
.site .blog-post__hero-content,
.site .archive-page-hero,
.site .page-hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-between;
  gap: var(--space-3);
}

.site .content-section__action--below {
  margin-top: var(--space-4);
  grid-column: 1 / -1;
  justify-self: start;
}

.site .archive-page-hero__title,
.site .archive-page-hero__description,
.site .archive-page-hero__meta,
.site .archive-page-hero__accent,
.site .content-section__accent,
.site .content-section__lede,
.site .services-list__accent,
.site .services-list__subtitle,
.site .faq__accent,
.site .faq__lede,
.site .testimonials__accent,
.site .testimonials__lede,
.site .page-hero__accent,
.site .page-hero__title,
.site .page-hero__description,
.site .page-hero__meta,
.site .area-projects__accent,
.site .area-projects__lede,
.site .blog-post__title,
.site .blog-post__excerpt,
.site .blog-post__date,
.site .blog-post__read-time {
  margin: 0;
}

.site .content-section__body {
  display: grid;
  gap: var(--space-4);
}

.site .page-hero__copy,
.site .blog-post__hero-content {
  display: grid;
  align-content: start;
  gap: var(--space-3);
}

.site .page-hero__layout,
.site .blog-post__layout,
.site .blog-post__feature {
  display: grid;
  gap: var(--space-4);
  width: 100%;
}

.site .page-hero__layout--split,
.site .blog-post__layout--split {
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  align-items: center;
}

.site .page-hero__layout--feature,
.site .blog-post__feature {
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  align-items: stretch;
}

.site .page-hero__feature,
.site .blog-post__media,
.site .blog-post__feature-media {
  min-height: 100%;
  border-radius: var(--wire-radius);
  overflow: hidden;
}

.site .page-hero__feature {
  min-height: 220px;
  background:
    radial-gradient(circle at 24% 22%, rgba(255, 255, 255, 0.42), transparent 42%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(194, 146, 92, 0.2));
}

.site .blog-post__featured-image {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
}

.site .blog-post__feature-panel {
  display: grid;
  align-content: center;
}

.site .hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--wire-border);
}

.site .hero__bg,
.site .hero__bg-slides {
  position: absolute;
  inset: 0;
}

.site .hero__bg {
  object-fit: cover;
}

.site .hero__bg-fallback {
  background: #9ca3af;
}

.site .hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.site .hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: var(--space-6);
}

.site .hero__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.site .hero__title,
.site .hero__subtitle,
.site .hero__accent,
.site .hero__highlights-title,
.site .hero__highlights-kicker,
.site .hero__highlights-copy {
  color: #fff;
  text-shadow: none;
}

.site .hero__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.site .hero__highlights {
  padding: var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--wire-radius);
}

.site .hero__highlights-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.site .hero__highlights-item {
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.site .hero__highlights-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.site .services-list__grid,
.site .services-list__groups,
.site .services__grid,
.site .blog__grid,
.site .team__grid,
.site .gallery-grid,
.site .reviews__grid,
.site .area-projects__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

.site .services-list__group {
  display: grid;
  gap: var(--space-4);
}

.site .areas__grid {
  display: grid;
  gap: var(--space-4);
}

.site .areas__row {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 1100px) {
  .site .areas__row--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .site .areas__row--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .site .areas__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site .areas__row {
    grid-template-columns: 1fr;
  }
}

.site .media-slider {
  overflow: hidden;
}

.site .media-slider__track {
  display: flex;
  gap: 0;
  transition: transform var(--duration-normal) var(--ease-default);
  will-change: transform;
}

.site .media-slider__slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: flex;
  flex-direction: column;
  align-self: flex-start;
}

.site .media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
  align-items: start;
}

.site .media-grid__item {
  border: 1px solid var(--wire-border);
  border-radius: calc(var(--wire-radius) - 0.2rem);
  overflow: hidden;
  background: #e5e7eb;
  aspect-ratio: 4 / 3;
  min-height: 0;
  max-height: 320px;
}

.site .media-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.site .service-card,
.site .area-card,
.site .blog-card,
.site .team-card,
.site .projects-list__card,
.site .reviews__card,
.site .area-projects__card {
  display: grid;
  gap: var(--space-3);
  border: 1px solid var(--wire-border);
  border-radius: var(--wire-radius);
  background: var(--wire-panel);
  padding: var(--space-2);
  box-shadow: none;
  transform: none;
}

.site .service-card__image,
.site .area-card__image,
.site .blog-card__image,
.site .team-card__image,
.site .gallery-grid__item,
.site .projects-list__photo,
.site .before-after__photo,
.site .area-projects__photo {
  border: 1px solid var(--wire-border);
  border-radius: calc(var(--wire-radius) - 0.2rem);
  overflow: hidden;
  background: #e5e7eb;
  height: clamp(180px, 24vw, 320px);
}

.site .service-card__image img,
.site .area-card__image img,
.site .blog-card__image img,
.site .team-card__image img,
.site .gallery-grid__item img,
.site .projects-list__photo img,
.site .before-after__photo img,
.site .area-projects__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.site .faq__layout,
.site .contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
}

.site .faq__media,
.site .contact__hero-col,
.site .contact-form,
.site .cta-banner.container,
.site .testimonials__slider,
.site .service__hero-copy,
.site .area__hero-copy {
  padding: var(--space-4);
}

.site .faq__list {
  display: grid;
  gap: var(--space-3);
}

.site .faq__item {
  border: 1px solid var(--wire-border);
  border-radius: calc(var(--wire-radius) - 0.2rem);
  background: var(--wire-bg);
}

.site .faq__question {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3);
  cursor: pointer;
  text-align: left;
}

.site .faq__answer-inner {
  padding: 0 var(--space-3) var(--space-3);
  color: var(--wire-muted);
}

.site .cta-banner__backdrop {
  display: none;
}

.site .cta-banner__actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.site .contact-form__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-3);
}

.site .contact-form__field {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.site .contact-form {
  display: grid;
  gap: var(--space-4);
  border: 1px solid var(--wire-border);
  border-radius: calc(var(--wire-radius) - 0.1rem);
  background: var(--wire-bg);
}

.site .contact-form__field label,
.site .contact-form__field legend {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--wire-text);
}

.site .contact-form__field input:not([type='checkbox']):not([type='file']),
.site .contact-form__field select,
.site .contact-form__field textarea {
  width: 100%;
  border: 1px solid var(--wire-border);
  border-radius: calc(var(--wire-radius) - 0.2rem);
  background: var(--wire-bg);
  color: var(--wire-text);
  padding: 0.65rem 0.75rem;
  box-shadow: none;
}

.site .contact-form__field textarea {
  min-height: 8rem;
  resize: vertical;
}

.site .contact-form__field small {
  color: var(--wire-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.site .contact-form__checkbox-group {
  display: grid;
  gap: 0.45rem;
}

.site .contact-form__checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
}

.site .contact-form__checkbox-group input[type='checkbox'],
.site .contact-form__field > label input[type='checkbox'] {
  width: auto;
  margin: 0;
  flex: 0 0 auto;
}

.site .contact-form .form-error {
  margin: 0;
  color: #b91c1c;
  font-size: 0.95rem;
}

.site .contact-form__success {
  display: grid;
  gap: 0.75rem;
  padding: var(--space-4);
  border: 1px solid var(--wire-border);
  border-radius: calc(var(--wire-radius) - 0.1rem);
  background: var(--wire-bg);
}

.site .contact-form__success h3,
.site .contact-form__success p {
  margin: 0;
}

.site .contact-form > .btn,
.site .contact-form > button {
  justify-self: start;
}

.site .testimonials__slider {
  position: relative;
  overflow: hidden;
}

.site .testimonials__measure {
  position: absolute;
  left: -9999px;
  top: 0;
  visibility: hidden;
  pointer-events: none;
  width: 100%;
}

.site .testimonials__measure-slide {
  width: 100%;
}

.site .testimonials__stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.site .testimonials__slide,
.site .testimonials__peek {
  border: 1px solid var(--wire-border);
  border-radius: calc(var(--wire-radius) - 0.2rem);
  background: var(--wire-bg);
  padding: var(--space-4);
}

.site .testimonials__controls,
.site .media-slider__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.site .testimonials__nav-btn,
.site .media-slider__dot,
.site .testimonials__dot {
  border: 1px solid var(--wire-border);
  background: var(--wire-bg);
  border-radius: 999px;
}

.site .testimonials__nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--wire-text);
  cursor: pointer;
}

.site .media-slider__controls .btn {
  min-width: 5.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
}

.site .service__hero-shell,
.site .area__hero-shell {
  display: grid;
  gap: var(--space-4);
}

.site .testimonials__inner {
  display: grid;
  gap: var(--space-4);
}

.site .blog-post__hero-inner,
.site .service__hero-inner,
.site .area__hero-inner {
  display: grid;
  gap: var(--space-4);
}

.site .service__featured-image,
.site .area__featured-image {
  border: 1px solid var(--wire-border);
  border-radius: var(--wire-radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 420px;
}

.site .service__featured-image img,
.site .area__featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.site .before-after__grid,
.site .media-grid,
.site .before-after__photos,
.site .area-projects__photos {
  display: grid;
  gap: var(--space-3);
}

.site .pager {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.site .pager__link,
.site .pager__page {
  border: 1px solid var(--wire-border);
  border-radius: 0.5rem;
  background: var(--wire-bg);
  padding: 0.4rem 0.6rem;
}

@media (min-width: 900px) {
  .site .hero__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  }

  .site .contact__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .site .testimonials__stage {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr) minmax(0, 0.8fr);
  }
}

@media (max-width: 700px) {
  .site .contact-form__grid {
    grid-template-columns: 1fr;
  }

  .site .contact-form__field {
    grid-column: 1 / -1 !important;
  }
}

/* ============================================================================
   THEME: HSG THEME
   Home Service Growth brand system based on the live marketing site
   Set `FRONTEND_THEME=hsg-theme`
   ============================================================================ */

.site[data-theme='hsg-theme'] {
  --theme-font-sans: var(--font-client-hero), 'Montserrat', 'Segoe UI', sans-serif;
  --theme-font-heading: var(--font-client-hero), 'Montserrat', 'Segoe UI', sans-serif;
  --theme-font-hero: var(--font-client-hero), 'Montserrat', 'Segoe UI', sans-serif;

  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-md: 0 16px 32px rgba(23, 72, 105, 0.12);
  --shadow-lg: 0 24px 48px rgba(23, 72, 105, 0.16);

  --color-primary: #2980b9;
  --color-primary-hover: #236f9f;
  --color-primary-active: #174869;
  --color-primary-light: #d7ebf8;
  --color-primary-soft: #9bc3df;
  --color-primary-muted: #5d88a7;

  --color-secondary: #2b3d4f;
  --color-secondary-hover: #2d4053;
  --color-accent: #f39c12;

  --color-bg: #ecf0f1;
  --color-surface: #ffffff;
  --color-surface-raised: #f6f9fb;
  --color-hover: #eef5fa;
  --color-border: #c6d5df;
  --color-border-light: #dde8ee;

  --color-text-primary: #22313f;
  --color-text-secondary: #425466;
  --color-text-muted: #687b8d;
  --color-text-inverse: #ffffff;
  --header-logo-width: 340px;
  --header-logo-height: 96px;

  background:
    radial-gradient(circle at 0% 0%, rgba(41, 128, 185, 0.1), transparent 42%),
    radial-gradient(circle at 100% 0%, rgba(243, 156, 18, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0)),
    var(--color-bg);
}

.site[data-theme='hsg-theme'] h1,
.site[data-theme='hsg-theme'] h2,
.site[data-theme='hsg-theme'] h3,
.site[data-theme='hsg-theme'] h4,
.site[data-theme='hsg-theme'] h5,
.site[data-theme='hsg-theme'] h6 {
  margin: 0;
  color: var(--color-text-primary);
  font-family: var(--theme-font-heading);
  letter-spacing: -0.03em;
}

.site[data-theme='hsg-theme'] h1 {
  font-size: clamp(2.6rem, 5.8vw, 5rem);
  line-height: 0.92;
  text-transform: none;
  font-weight: 800;
}

.site[data-theme='hsg-theme'] h2 {
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1;
  text-transform: none;
  font-weight: 800;
}

.site[data-theme='hsg-theme'] h3 {
  font-size: clamp(1.35rem, 2.2vw, 2.05rem);
  line-height: 1.08;
  text-transform: none;
  font-weight: 700;
}

.site[data-theme='hsg-theme'] h4 {
  font-size: clamp(1.08rem, 1.6vw, 1.32rem);
  line-height: 1.18;
  text-transform: none;
  font-weight: 700;
}

.site[data-theme='hsg-theme'] h5,
.site[data-theme='hsg-theme'] h6 {
  line-height: 1.2;
  text-transform: none;
  font-weight: 700;
}

.site[data-theme='hsg-theme'] .header {
  background: linear-gradient(180deg, rgba(43, 61, 79, 0.96), rgba(45, 64, 83, 0.92));
  border-bottom: 4px solid #f39c12;
  box-shadow: 0 14px 30px rgba(23, 72, 105, 0.18);
}

.site[data-theme='hsg-theme'] .header__nav {
  background: transparent;
  border-color: rgba(251, 225, 182, 0.2);
  border-radius: var(--radius-lg);
}

.site[data-theme='hsg-theme'] .header__link {
  color: #f8fbfd;
  font-weight: 600;
}

.site[data-theme='hsg-theme'] .header__link:hover {
  background: rgba(243, 156, 18, 0.14);
  color: #f39c12;
}

.site[data-theme='hsg-theme'] .hero__overlay {
  background: linear-gradient(180deg, rgba(43, 61, 79, 0.08), rgba(23, 72, 105, 0.5));
}

.site[data-theme='hsg-theme'] .service-card,
.site[data-theme='hsg-theme'] .blog-card,
.site[data-theme='hsg-theme'] .area-card,
.site[data-theme='hsg-theme'] .team-card,
.site[data-theme='hsg-theme'] .faq__item,
.site[data-theme='hsg-theme'] .projects-list__card,
.site[data-theme='hsg-theme'] .before-after__group,
.site[data-theme='hsg-theme'] .reviews__card {
  border: 1px solid rgba(41, 128, 185, 0.14);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(41, 128, 185, 0.04), rgba(255, 255, 255, 0)),
    var(--color-surface);
  box-shadow: var(--shadow-md);
}

.site[data-theme='hsg-theme'] .service-card:hover,
.site[data-theme='hsg-theme'] .blog-card:hover,
.site[data-theme='hsg-theme'] .area-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.site[data-theme='hsg-theme'] .btn--primary {
  background: #f39c12;
  border-color: #f39c12;
  color: #2b3d4f;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(243, 156, 18, 0.28);
}

.site[data-theme='hsg-theme'] .btn--primary:hover:not(:disabled) {
  background: #d68910;
  border-color: #d68910;
}

.site[data-theme='hsg-theme'] .btn--secondary {
  background: rgba(43, 61, 79, 0.08);
  border-color: rgba(43, 61, 79, 0.16);
  color: var(--color-secondary);
  border-radius: 12px;
  box-shadow: none;
}

.site[data-theme='hsg-theme'] .btn--secondary:hover:not(:disabled) {
  background: rgba(41, 128, 185, 0.1);
  border-color: rgba(41, 128, 185, 0.28);
}

.site[data-theme='hsg-theme'] .footer {
  background:
    linear-gradient(180deg, #22313f 0%, #16222d 100%);
}

.site[data-theme='hsg-theme'] .footer__content,
.site[data-theme='hsg-theme'] .footer__content a {
  color: #f8fafc;
}

/* ============================================================================
   ATLAS OXIDE: RHYTHM + LAYOUT PASS
   ============================================================================ */

.site[data-theme='hsg-theme'] .site__main {
  padding: clamp(1rem, 1vw, 1.5rem) 0 clamp(3.5rem, 5vw, 5.5rem);
}

.site[data-theme='hsg-theme'] .hero {
  border: 1px solid rgba(41, 128, 185, 0.16);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(23, 72, 105, 0.14);
}

.site[data-theme='hsg-theme'] .hero__inner {
  padding: clamp(2rem, 5.5vw, 5rem) clamp(1.25rem, 4vw, 3.5rem);
}

.site[data-theme='hsg-theme'] .hero__grid {
  gap: clamp(1.4rem, 3.2vw, 2.8rem);
}

.site[data-theme='hsg-theme'] .hero__accent {
  display: flex;
  width: fit-content;
  margin: 0;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(251, 225, 182, 0.88);
  color: #2b3d4f;
  border: 1px solid rgba(243, 156, 18, 0.5);
}

.site[data-theme='hsg-theme'] .hero__title {
  margin: 0.8rem 0 0;
}

.site[data-theme='hsg-theme'] .hero__subtitle {
  margin-top: 1rem;
  max-width: 56ch;
  font-size: clamp(1.02rem, 1.4vw, 1.22rem);
  line-height: 1.55;
  color: var(--color-text-secondary);
}

.site[data-theme='hsg-theme'] .hero__actions {
  margin-top: clamp(1.15rem, 2.6vw, 1.9rem);
  gap: 0.85rem;
}

.site[data-theme='hsg-theme'] .hero.container,
.site[data-theme='hsg-theme'] .home-intro-feature.container,
.site[data-theme='hsg-theme'] .content-section__shell.container,
.site[data-theme='hsg-theme'] .services-list__shell.container,
.site[data-theme='hsg-theme'] .faq__layout.container,
.site[data-theme='hsg-theme'] .testimonials__shell.container,
.site[data-theme='hsg-theme'] .cta-banner.container {
  padding: clamp(1.35rem, 2.1vw, 2.15rem);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.site[data-theme='hsg-theme'] .hero__inner {
  padding-inline: clamp(1.25rem, 4vw, 3.5rem);
}

.site[data-theme='hsg-theme'] .home-intro-feature.container,
.site[data-theme='hsg-theme'] .content-section__shell.container,
.site[data-theme='hsg-theme'] .services-list__shell.container,
.site[data-theme='hsg-theme'] .faq__layout.container,
.site[data-theme='hsg-theme'] .testimonials__shell.container {
  max-width: var(--container-xl);
}

.site[data-theme='hsg-theme'] .content-section__shell.container {
  padding: clamp(1.35rem, 2.1vw, 2.15rem);
}

.site[data-theme='hsg-theme'] .content-section__head,
.site[data-theme='hsg-theme'] .content-section__body {
  width: 100%;
}

.site[data-theme='hsg-theme'] .home-hero-section--split .hero__media {
  background:
    linear-gradient(180deg, rgba(11, 24, 52, 0.08), rgba(11, 24, 52, 0.02)),
    url('https://sepbhgqkowpmqzynormq.supabase.co/storage/v1/object/public/media/2d8b1b4c-0ec6-4002-8707-edb39964b151/assets/1774339574770-1-47760501-b1db-474e-a74c-48e43f3c1be2/website-img-2560w.webp') center top / cover no-repeat;
}

.site[data-theme='hsg-theme'] .home-hero-section--split .hero__media .hero__bg,
.site[data-theme='hsg-theme'] .home-hero-section--split .hero__media .hero__bg-fallback {
  opacity: 0;
}

.site[data-theme='hsg-theme'] .home-hero-section--split .hero__media::after {
  content: '';
  left: auto;
  right: 0.9rem;
  bottom: 0.9rem;
  width: min(38%, 13.25rem);
  aspect-ratio: 1.58;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    url('https://sepbhgqkowpmqzynormq.supabase.co/storage/v1/object/public/media/2d8b1b4c-0ec6-4002-8707-edb39964b151/assets/1774339569895-0-ef5cf5e6-bc0b-4ced-a806-3f77ea0a3226/dashboard-img-2707w.webp') center center / cover no-repeat;
  box-shadow:
    0 22px 44px rgba(16, 27, 54, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.site[data-theme='hsg-theme'] .home-hero-section--split .hero__media::before {
  content: '↗';
  left: auto;
  right: calc(min(38%, 13.25rem) + 1rem);
  bottom: 1.2rem;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 12px;
  font-size: 1rem;
}

.site[data-theme='hsg-theme'] .content-section__head,
.site[data-theme='hsg-theme'] .services-list__head,
.site[data-theme='hsg-theme'] .area-projects__head {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(195, 146, 92, 0.32);
}


.site[data-theme='hsg-theme'] .content-section__body {
  margin-top: clamp(0.5rem, 1.1vw, 0.9rem);
}

.site[data-theme='hsg-theme'] .home-intro-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: clamp(1rem, 2.4vw, 2rem);
  align-items: stretch;
}

.site[data-theme='hsg-theme'] .home-intro-feature__copy {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}


.site[data-theme='hsg-theme'] .home-intro-feature__lede {
  font-size: 1.07rem;
  line-height: 1.66;
  color: #243447;
}

.site[data-theme='hsg-theme'] .home-intro-feature__actions {
  margin-top: 0.2rem;
}

.site[data-theme='hsg-theme'] .home-intro-feature__visual {
  border: 1px solid #d3bea3;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff4df 0%, #f3e7d8 100%);
  padding: clamp(0.9rem, 1.5vw, 1.15rem);
}

.site[data-theme='hsg-theme'] .home-intro-feature--media_left .home-intro-feature__copy {
  order: 2;
}

.site[data-theme='hsg-theme'] .home-intro-feature--media_left .home-intro-feature__visual {
  order: 1;
}

.site[data-theme='hsg-theme'] .home-intro-feature__image-shell,
.site[data-theme='hsg-theme'] .home-intro-feature__image,
.site[data-theme='hsg-theme'] .home-intro-feature__image picture,
.site[data-theme='hsg-theme'] .home-intro-feature__image img {
  display: block;
  width: 100%;
  height: 100%;
}

.site[data-theme='hsg-theme'] .home-intro-feature__image-shell {
  overflow: hidden;
  border-radius: 10px;
}

.site[data-theme='hsg-theme'] .home-intro-feature__image img {
  object-fit: cover;
}

.site[data-theme='hsg-theme'] .services-list__grid,
.site[data-theme='hsg-theme'] .services__grid,
.site[data-theme='hsg-theme'] .areas__grid,
.site[data-theme='hsg-theme'] .blog__grid,
.site[data-theme='hsg-theme'] .team__grid,
.site[data-theme='hsg-theme'] .reviews__grid {
  gap: clamp(1rem, 1.8vw, 1.45rem);
}

@media (min-width: 1100px) {
  .site[data-theme='hsg-theme'] .services-list__grid,
  .site[data-theme='hsg-theme'] .services__grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

.site[data-theme='hsg-theme'] .service-card,
.site[data-theme='hsg-theme'] .blog-card,
.site[data-theme='hsg-theme'] .area-card,
.site[data-theme='hsg-theme'] .team-card,
.site[data-theme='hsg-theme'] .projects-list__card,
.site[data-theme='hsg-theme'] .faq__item,
.site[data-theme='hsg-theme'] .reviews__card,
.site[data-theme='hsg-theme'] .before-after__group {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 22px rgba(19, 30, 43, 0.1);
}

.site[data-theme='hsg-theme'] .service-card__body,
.site[data-theme='hsg-theme'] .area-card__body,
.site[data-theme='hsg-theme'] .blog-card__body,
.site[data-theme='hsg-theme'] .team-card__body,
.site[data-theme='hsg-theme'] .projects-list__copy,
.site[data-theme='hsg-theme'] .area-projects__copy {
  padding: clamp(1rem, 1.7vw, 1.45rem);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.site[data-theme='hsg-theme'] .projects-list__media {
  width: 100%;
  flex: 1 1 auto;
}

.site[data-theme='hsg-theme'] .projects-list__photos {
  width: 100%;
  justify-items: stretch;
  align-items: stretch;
  grid-auto-rows: minmax(180px, 1fr);
}

.site[data-theme='hsg-theme'] .projects-list__photos.projects-list__photos--1 {
  grid-template-columns: 1fr;
}

.site[data-theme='hsg-theme'] .projects-list__photos.projects-list__photos--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site[data-theme='hsg-theme'] .projects-list__photos.projects-list__photos--3,
.site[data-theme='hsg-theme'] .projects-list__photos.projects-list__photos--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site[data-theme='hsg-theme'] .projects-list__photos--1 .projects-list__photo {
  min-height: clamp(280px, 34vw, 420px);
}

.site[data-theme='hsg-theme'] .projects-list__photo {
  width: 100%;
}

.site[data-theme='hsg-theme'] .area-projects__card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.site[data-theme='hsg-theme'] .area-projects__card--media-only .area-projects__card-head {
  justify-content: flex-end;
  padding: clamp(0.7rem, 1.2vw, 0.95rem);
  padding-bottom: 0;
}

.site[data-theme='hsg-theme'] .area-projects__card--media-only .area-projects__copy {
  display: none;
}

.site[data-theme='hsg-theme'] .area-projects__media {
  flex: 1 1 auto;
}

.site[data-theme='hsg-theme'] .area-projects__photos {
  grid-auto-rows: minmax(180px, 1fr);
}

.site[data-theme='hsg-theme'] .area-projects__photos--1 {
  grid-template-columns: 1fr;
}

.site[data-theme='hsg-theme'] .area-projects__photos--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site[data-theme='hsg-theme'] .area-projects__photos--3,
.site[data-theme='hsg-theme'] .area-projects__photos--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site[data-theme='hsg-theme'] .area-projects__photos--1 .area-projects__photo {
  min-height: clamp(280px, 34vw, 420px);
}

.site[data-theme='hsg-theme'] .profile-card-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, 420px);
  gap: clamp(1.2rem, 2vw, 1.8rem);
  align-items: start;
  padding: clamp(1rem, 1.8vw, 1.5rem);
  border: 1px solid #d9c9a3;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0)),
    var(--color-surface);
  box-shadow: 0 12px 0 rgba(15, 23, 42, 0.06);
}

.site[data-theme='hsg-theme'] .profile-card-section__copy {
  display: grid;
  align-content: start;
  gap: 0.65rem;
}

.site[data-theme='hsg-theme'] .profile-card-section__copy h3 {
  margin: 0;
}

.site[data-theme='hsg-theme'] .profile-card-section__role {
  margin: 0;
  color: #7b6440;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site[data-theme='hsg-theme'] .profile-card-section__text {
  margin: 0;
  max-width: 56ch;
  line-height: 1.7;
}

.site[data-theme='hsg-theme'] .profile-card-section__image {
  overflow: hidden;
  border-radius: 16px;
}

.site[data-theme='hsg-theme'] .profile-card-section__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.site[data-theme='hsg-theme'] .service-card__icon,
.site[data-theme='hsg-theme'] .area-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #111;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 247, 247, 0.92) 100%);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(3px);
  flex-shrink: 0;
}

.site[data-theme='hsg-theme'] .service-card__icon {
  margin-left: auto;
  margin-bottom: auto;
}

.site[data-theme='hsg-theme'] .service-card__icon svg,
.site[data-theme='hsg-theme'] .area-card__icon svg,
.site[data-theme='hsg-theme'] .area-card__icon-svg {
  width: 19px;
  height: 19px;
  min-width: 19px;
  min-height: 19px;
  flex: 0 0 19px;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.45));
}

.site[data-theme='hsg-theme'] .service-card__icon img,
.site[data-theme='hsg-theme'] .service-card__icon-image,
.site[data-theme='hsg-theme'] .area-card__icon img,
.site[data-theme='hsg-theme'] .area-card__icon-image {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 0;
}


.site[data-theme='hsg-theme'] .service-card__action,
.site[data-theme='hsg-theme'] .area-card__action,
.site[data-theme='hsg-theme'] .blog-card__title a,
.site[data-theme='hsg-theme'] .area-card {
  margin-top: 0.65rem;
}

.site[data-theme='hsg-theme'] .process-steps {
  display: grid;
  gap: clamp(0.72rem, 1.4vw, 1.05rem);
}

.site[data-theme='hsg-theme'] .process-steps__item {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 0.9rem;
  padding: clamp(0.9rem, 1.4vw, 1.2rem);
  border: 1px solid #d8c7b2;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.66);
}

.site[data-theme='hsg-theme'] .process-steps__index {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: #23364d;
  color: #fff;
  font-weight: 700;
}



.site[data-theme='hsg-theme'] .process-steps__copy p {
  margin: 0.4rem 0 0;
  line-height: 1.62;
}

.site[data-theme='hsg-theme'] .testimonials__slide,
.site[data-theme='hsg-theme'] .testimonials__peek {
  padding: clamp(1rem, 1.8vw, 1.35rem);
}

.site[data-theme='hsg-theme'] .reviews__card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.site[data-theme='hsg-theme'] .testimonials__quote,
.site[data-theme='hsg-theme'] .reviews__quote {
  font-size: clamp(1.08rem, 1.7vw, 1.34rem);
  line-height: 1.55;
}

.site[data-theme='hsg-theme'] .reviews__quote {
  flex: 1 1 auto;
  margin: 0;
}

.site[data-theme='hsg-theme'] .reviews__author {
  margin-top: auto;
}

.site[data-theme='hsg-theme'] .faq__list {
  gap: 0.95rem;
}

.site[data-theme='hsg-theme'] .faq__media {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.site[data-theme='hsg-theme'] .faq__title {
  margin: 0;
  max-width: 11ch;
}

.site[data-theme='hsg-theme'] .faq__lede {
  max-width: 42rem;
  margin: 0;
  color: var(--color-text-secondary);
}

.site[data-theme='hsg-theme'] .faq__item {
  overflow: hidden;
  border: 1px solid rgba(220, 229, 245, 0.95);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.95));
  box-shadow: 0 18px 40px rgba(17, 28, 53, 0.06);
  transition:
    border-color 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site[data-theme='hsg-theme'] .faq__item:hover,
.site[data-theme='hsg-theme'] .faq__item:focus-within {
  border-color: rgba(66, 133, 244, 0.18);
  box-shadow: 0 22px 48px rgba(17, 28, 53, 0.09);
  transform: translateY(-2px);
}

.site[data-theme='hsg-theme'] .faq__item[open] {
  border-color: rgba(66, 133, 244, 0.22);
  box-shadow: 0 24px 52px rgba(17, 28, 53, 0.1);
}

.site[data-theme='hsg-theme'] .faq__question {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  list-style: none;
  cursor: pointer;
}

.site[data-theme='hsg-theme'] .faq__question::-webkit-details-marker {
  display: none;
}

.site[data-theme='hsg-theme'] .faq__question-index {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: rgba(66, 133, 244, 0.08);
  border: 1px solid rgba(66, 133, 244, 0.14);
  color: var(--color-primary);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.site[data-theme='hsg-theme'] .faq__question-text {
  color: var(--color-text-primary);
  font-size: clamp(1.02rem, 1.3vw, 1.18rem);
  font-weight: 700;
  line-height: 1.4;
}

.site[data-theme='hsg-theme'] .faq__toggle {
  display: inline-grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  background: rgba(19, 27, 52, 0.05);
  color: var(--color-text-primary);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1;
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 220ms cubic-bezier(0.22, 1, 0.36, 1),
    color 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site[data-theme='hsg-theme'] .faq__item[open] .faq__toggle {
  transform: rotate(45deg);
  background: rgba(66, 133, 244, 0.12);
  color: var(--color-primary);
}

.site[data-theme='hsg-theme'] .faq__answer {
  display: grid;
}

.site[data-theme='hsg-theme'] .faq__answer-inner {
  padding: 0 1.2rem 1.2rem 4.8rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.site[data-theme='hsg-theme'] .gallery-grid,
.site[data-theme='hsg-theme'] .before-after__grid,
.site[data-theme='hsg-theme'] .media-grid,
.site[data-theme='hsg-theme'] .projects-list__photos,
.site[data-theme='hsg-theme'] .before-after__photos,
.site[data-theme='hsg-theme'] .area-projects__list,
.site[data-theme='hsg-theme'] .area-projects__photos {
  gap: clamp(0.72rem, 1.25vw, 1rem);
}

.site[data-theme='hsg-theme'] .gallery-grid__item,
.site[data-theme='hsg-theme'] .media-grid__item,
.site[data-theme='hsg-theme'] .projects-list__photo,
.site[data-theme='hsg-theme'] .before-after__photo,
.site[data-theme='hsg-theme'] .area-projects__photo {
  border-radius: 10px;
  overflow: hidden;
}

.site[data-theme='hsg-theme'] .list-section__items {
  display: grid;
  gap: 0.85rem;
  padding-left: 1.4rem;
}

.site[data-theme='hsg-theme'] .list-section__item-body > :first-child,
.site[data-theme='hsg-theme'] .table-section__table td > :first-child {
  margin-top: 0;
}

.site[data-theme='hsg-theme'] .list-section__item-body > :last-child,
.site[data-theme='hsg-theme'] .table-section__table td > :last-child {
  margin-bottom: 0;
}

.site[data-theme='hsg-theme'] .table-section__wrap {
  overflow-x: auto;
}

.site[data-theme='hsg-theme'] .table-section__table {
  width: 100%;
  border-collapse: collapse;
}

.site[data-theme='hsg-theme'] .table-section__table th,
.site[data-theme='hsg-theme'] .table-section__table td {
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(41, 128, 185, 0.18);
  text-align: left;
  vertical-align: top;
}

.site[data-theme='hsg-theme'] .table-section__table th {
  background: rgba(41, 128, 185, 0.08);
}

.site[data-theme='hsg-theme'] .cta-banner.container {
  padding: clamp(1.2rem, 2.4vw, 1.8rem);
  border-radius: 12px;
}

.site[data-theme='hsg-theme'] .before-after__group {
  padding: clamp(0.72rem, 1.25vw, 1rem);
}

@media (min-width: 900px) {
  .site[data-theme='hsg-theme'] .before-after__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

@media (max-width: 980px) {
  .site[data-theme='hsg-theme'] .home-intro-feature {
    grid-template-columns: 1fr;
  }

  .site[data-theme='hsg-theme'] .profile-card-section {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .site[data-theme='hsg-theme'] .content-section__shell.container,
  .site[data-theme='hsg-theme'] .services-list__shell.container,
  .site[data-theme='hsg-theme'] .faq__layout.container,
  .site[data-theme='hsg-theme'] .testimonials__shell.container,
  .site[data-theme='hsg-theme'] .cta-banner.container,
  .site[data-theme='hsg-theme'] .home-intro-feature.container,
  .site[data-theme='hsg-theme'] .hero.container {
    padding: 1rem;
    border-radius: 12px;
  }

  .site[data-theme='hsg-theme'] .process-steps__item {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   HSG PRODUCT MARKETING REFRESH
   ============================================================================ */

.site[data-theme='hsg-theme'] {
  --theme-font-sans: var(--font-client-hero), 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --theme-font-heading: var(--font-client-hero), 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --theme-font-hero: var(--font-client-hero), 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --color-primary: #4285f4;
  --color-primary-hover: #3274e2;
  --color-primary-active: #255fc5;
  --color-primary-light: #e9f1ff;
  --color-primary-soft: #9ebdfc;
  --color-primary-muted: #6b85b2;
  --color-secondary: #111a32;
  --color-secondary-hover: #182441;
  --color-accent: #4285f4;
  --color-bg: #f6f8fe;
  --color-surface: #ffffff;
  --color-surface-raised: #fbfcff;
  --color-hover: #eef4ff;
  --color-border: #dfe7f6;
  --color-border-light: #edf2fb;
  --color-text-primary: #131b34;
  --color-text-secondary: #4b5b79;
  --color-text-muted: #8090ad;
  --color-text-inverse: #ffffff;
  --header-logo-width: 310px;
  --header-logo-height: 70px;
  background:
    radial-gradient(circle at 0% 0%, rgba(66, 133, 244, 0.08), transparent 34%),
    radial-gradient(circle at 100% 10%, rgba(66, 133, 244, 0.05), transparent 26%),
    linear-gradient(180deg, #fbfcff 0%, #f4f7fd 100%);
}

.site[data-theme='hsg-theme'] h1,
.site[data-theme='hsg-theme'] h2,
.site[data-theme='hsg-theme'] h3,
.site[data-theme='hsg-theme'] h4,
.site[data-theme='hsg-theme'] h5,
.site[data-theme='hsg-theme'] h6 {
  letter-spacing: -0.05em;
}

.site[data-theme='hsg-theme'] h1 {
  font-size: clamp(3.1rem, 6vw, 5.85rem);
}

.site[data-theme='hsg-theme'] h2 {
  font-size: clamp(2.25rem, 4vw, 4rem);
  line-height: 0.96;
}

.site[data-theme='hsg-theme'] h3 {
  font-size: clamp(1.38rem, 2.2vw, 2.05rem);
  line-height: 1.04;
}

.site[data-theme='hsg-theme'] section {
  padding-block: clamp(2.75rem, 5vw, 6rem);
}

.site[data-theme='hsg-theme'] .site__main {
  padding: 0 0 clamp(4rem, 6vw, 6rem);
}

.site[data-theme='hsg-theme'] .header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(218, 227, 243, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(17, 27, 54, 0.05);
}

.site[data-theme='hsg-theme'] .header__inner {
  max-width: min(1520px, calc(100% - 3rem));
  min-height: 92px;
  padding: 1rem 0;
}

.site[data-theme='hsg-theme'] .header__logo,
.site[data-theme='hsg-theme'] .header__summary-link {
  color: var(--color-text-primary);
  font-weight: 800;
}

.site[data-theme='hsg-theme'] .header__nav {
  flex: 1 1 auto;
  justify-content: center;
  gap: clamp(0.25rem, 1vw, 0.9rem);
  background: transparent;
  border: 0;
  border-radius: 0;
}

.site[data-theme='hsg-theme'] .header__link {
  color: var(--color-text-secondary);
  font-size: 1.08rem;
  font-weight: 500;
  border-radius: 999px;
}

.site[data-theme='hsg-theme'] .header__link:hover,
.site[data-theme='hsg-theme'] .header__summary:hover {
  background: rgba(66, 133, 244, 0.08);
  color: var(--color-primary);
}

.site[data-theme='hsg-theme'] .header__submenu,
.site[data-theme='hsg-theme'] .header__submenu-group {
  border-color: rgba(218, 227, 243, 0.9);
  background: rgba(255, 255, 255, 0.98);
  border-radius: 18px;
  box-shadow: 0 20px 44px rgba(17, 27, 54, 0.08);
}

.site[data-theme='hsg-theme'] .header__cta {
  margin-left: auto;
}

.site[data-theme='hsg-theme'] .btn--primary {
  background: linear-gradient(180deg, #4b89f4 0%, #3d79e3 100%);
  border-color: transparent;
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(66, 133, 244, 0.24);
}

.site[data-theme='hsg-theme'] .btn--primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #3d79e3 0%, #2f6ddd 100%);
}

.site[data-theme='hsg-theme'] .btn--secondary {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(219, 228, 243, 0.95);
  color: var(--color-text-primary);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(18, 30, 58, 0.08);
}

.site[data-theme='hsg-theme'] .btn--secondary:hover:not(:disabled) {
  background: #fff;
  border-color: rgba(66, 133, 244, 0.2);
}

.site[data-theme='hsg-theme'] .hero {
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  background: transparent;
}

.site[data-theme='hsg-theme'] .hero__overlay {
  display: none;
}

.site[data-theme='hsg-theme'] .hero__inner {
  padding: clamp(1.1rem, 2.6vw, 2.4rem) 0;
}

.site[data-theme='hsg-theme'] .home-hero-section--split .hero__layout,
.site[data-theme='hsg-theme'] .hero__layout--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(500px, 0.94fr);
  gap: clamp(1.2rem, 2.8vw, 2.4rem);
  align-items: center;
}

.site[data-theme='hsg-theme'] .home-hero-section--split .hero__layout {
  width: 100%;
  min-height: clamp(420px, 54vh, 620px);
}

.site[data-theme='hsg-theme'] .hero__copy {
  display: grid;
  align-content: center;
  gap: 0.8rem;
}

.site[data-theme='hsg-theme'] .home-hero-section--split .hero__copy {
  justify-self: start;
  max-width: 36rem;
  padding-right: clamp(0rem, 1.2vw, 1rem);
}

.site[data-theme='hsg-theme'] .hero__accent {
  width: fit-content;
  padding: 0.58rem 1rem;
  border-radius: 999px;
  background: var(--color-primary-light);
  border: 1px solid rgba(66, 133, 244, 0.22);
  color: var(--color-primary);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.site[data-theme='hsg-theme'] .hero__title {
  max-width: 10ch;
  margin: 0;
  color: var(--color-text-primary);
  font-size: clamp(2.2rem, 4.6vw, 4.7rem);
  line-height: 0.92;
}

.site[data-theme='hsg-theme'] .hero__subtitle {
  max-width: 28rem;
  margin: 0;
  color: var(--color-text-secondary);
  font-size: clamp(0.98rem, 1.18vw, 1.16rem);
  line-height: 1.52;
}

.site[data-theme='hsg-theme'] .hero__actions {
  margin-top: 0.1rem;
  gap: 0.7rem;
}

.site[data-theme='hsg-theme'] .hero__media {
  position: relative;
  min-height: clamp(250px, 27vw, 400px);
  border-radius: 30px;
  overflow: hidden;
  background: #dbe8ff;
  box-shadow: 0 34px 80px rgba(17, 27, 54, 0.15);
}

.site[data-theme='hsg-theme'] .home-hero-section--split .hero__media {
  grid-column: 2;
  justify-self: end;
  align-self: center;
  width: min(100%, 640px);
  min-height: clamp(320px, 32vw, 470px);
}

.site[data-theme='hsg-theme'] .hero__media .hero__bg,
.site[data-theme='hsg-theme'] .hero__media .hero__bg-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.site[data-theme='hsg-theme'] .hero__media::after {
  content: 'Revenue Growth +42%\A Average result for plumbing clients';
  white-space: pre-line;
  position: absolute;
  left: 1.8rem;
  right: 1.8rem;
  bottom: 1.6rem;
  padding: 1.3rem 1.45rem 1.3rem 5.4rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--color-text-secondary);
  font-size: 1.02rem;
  line-height: 1.45;
  box-shadow: 0 16px 34px rgba(16, 27, 54, 0.12);
  backdrop-filter: blur(10px);
}

.site[data-theme='hsg-theme'] .hero__media::before {
  content: '↗';
  position: absolute;
  left: 2.35rem;
  bottom: 2.15rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #4b89f4, #3d79e3);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(66, 133, 244, 0.28);
}

.site[data-theme='hsg-theme'] .content-section__head,
.site[data-theme='hsg-theme'] .services-list__head,
.site[data-theme='hsg-theme'] .area-projects__head {
  justify-content: center;

  text-align: center;
  border-bottom: 0;
  padding-bottom: 0;
}

.site[data-theme='hsg-theme'] .content-section__body {
  margin-top: clamp(1rem, 2vw, 1.75rem);
}

.site[data-theme='hsg-theme'] .home-intro-feature {
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 4.5vw, 4rem) 0;
}

.site[data-theme='hsg-theme'] .home-intro-feature__copy {
  display: grid;
  gap: 1rem;
}

.site[data-theme='hsg-theme'] .home-intro-feature__lede {
  color: var(--color-text-secondary);
  font-size: clamp(1.08rem, 1.45vw, 1.35rem);
  line-height: 1.72;
}

.site[data-theme='hsg-theme'] .home-intro-feature__actions {
  margin-top: 0.6rem;
}

.site[data-theme='hsg-theme'] .home-intro-feature__visual {
  border: 0;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.64);
  padding: 1rem;
  box-shadow: 0 26px 64px rgba(19, 31, 63, 0.1);
}

.site[data-theme='hsg-theme'] .service__hero,
.site[data-theme='hsg-theme'] .area__hero {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.site[data-theme='hsg-theme'] .service__hero-inner,
.site[data-theme='hsg-theme'] .area__hero-inner {
  gap: clamp(1.35rem, 2vw, 2rem);
}

.site[data-theme='hsg-theme'] .service__hero-layout,
.site[data-theme='hsg-theme'] .area__hero-layout,
.site[data-theme='hsg-theme'] .service__hero-feature,
.site[data-theme='hsg-theme'] .area__hero-feature,
.site[data-theme='hsg-theme'] .service__hero-shell,
.site[data-theme='hsg-theme'] .area__hero-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(220, 229, 245, 0.95);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 26px 62px rgba(17, 28, 53, 0.08);
}

.site[data-theme='hsg-theme'] .service__hero-layout:not(.service__hero-layout--with-image),
.site[data-theme='hsg-theme'] .service__hero-feature:not(.service__hero-feature--with-image),
.site[data-theme='hsg-theme'] .service__hero-shell:not(.service__hero-shell--with-image) {
  max-width: 880px;
  margin-inline: auto;

}

.site[data-theme='hsg-theme'] .service__hero-layout,
.site[data-theme='hsg-theme'] .area__hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.site[data-theme='hsg-theme'] .service__hero-layout--with-image,
.site[data-theme='hsg-theme'] .area__hero-layout--with-image,
.site[data-theme='hsg-theme'] .service__hero-feature--with-image,
.site[data-theme='hsg-theme'] .area__hero-feature--with-image {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
}

.site[data-theme='hsg-theme'] .service__hero-copy,
.site[data-theme='hsg-theme'] .area__hero-copy,
.site[data-theme='hsg-theme'] .service__hero-feature-panel,
.site[data-theme='hsg-theme'] .area__hero-feature-panel,
.site[data-theme='hsg-theme'] .service__hero-panel,
.site[data-theme='hsg-theme'] .area__hero-panel {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: clamp(1.35rem, 2.2vw, 2rem);
}

.site[data-theme='hsg-theme'] .service__hero-layout:not(.service__hero-layout--with-image) .service__hero-copy,
.site[data-theme='hsg-theme'] .service__hero-feature:not(.service__hero-feature--with-image) .service__hero-feature-panel,
.site[data-theme='hsg-theme'] .service__hero-shell:not(.service__hero-shell--with-image) .service__hero-panel {
  padding: clamp(1.25rem, 2vw, 1.8rem);
  gap: 0.65rem;
}

.site[data-theme='hsg-theme'] .service__hero-media,
.site[data-theme='hsg-theme'] .area__hero-media,
.site[data-theme='hsg-theme'] .service__hero-feature-media,
.site[data-theme='hsg-theme'] .area__hero-feature-media {
  position: relative;
  min-height: clamp(320px, 34vw, 560px);
  padding: 1.1rem;
}

.site[data-theme='hsg-theme'] .service__featured-image,
.site[data-theme='hsg-theme'] .area__featured-image {
  height: 100%;
  max-height: none;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  background: #dbe8ff;
  box-shadow: 0 22px 42px rgba(17, 28, 53, 0.12);
}

.site[data-theme='hsg-theme'] .service__hero-shell {
  min-height: 0;
}

.site[data-theme='hsg-theme'] .service__hero-shell .service__featured-image,
.site[data-theme='hsg-theme'] .area__hero-shell .area__featured-image {
  position: absolute;
  inset: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}


.site[data-theme='hsg-theme'] .service__breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  width: fit-content;
  padding: 0.58rem 0.95rem;
  border: 1px solid rgba(66, 133, 244, 0.12);
  border-radius: 999px;
  background: rgba(237, 244, 255, 0.82);
  color: var(--color-primary);
  font-size: 0.92rem;
  font-weight: 700;
}

.site[data-theme='hsg-theme'] .service__breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.site[data-theme='hsg-theme'] .service__accent {
  width: fit-content;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(66, 133, 244, 0.08);
  border: 1px solid rgba(66, 133, 244, 0.14);
  color: var(--color-primary);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site[data-theme='hsg-theme'] .service__title-row,
.site[data-theme='hsg-theme'] .area__title-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.site[data-theme='hsg-theme'] .service__icon,
.site[data-theme='hsg-theme'] .area__icon {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 18px;
  border: 1px solid rgba(66, 133, 244, 0.12);
  background: linear-gradient(180deg, #edf4ff 0%, #e5eeff 100%);
  color: var(--color-primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.site[data-theme='hsg-theme'] .service__icon svg,
.site[data-theme='hsg-theme'] .service__icon img,
.site[data-theme='hsg-theme'] .service__icon-image,
.site[data-theme='hsg-theme'] .area__icon svg,
.site[data-theme='hsg-theme'] .area__icon img,
.site[data-theme='hsg-theme'] .area__icon-image {
  width: 2rem;
  height: 2rem;
}

.site[data-theme='hsg-theme'] .service__title,
.site[data-theme='hsg-theme'] .area__title {
  margin: 0;
  color: var(--color-text-primary);
  font-size: clamp(2rem, 3vw, 3.05rem);
  line-height: 0.98;
}

.site[data-theme='hsg-theme'] .service__excerpt,
.site[data-theme='hsg-theme'] .area__excerpt {
  max-width: 36rem;
  margin: 0;
  color: var(--color-text-secondary);
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  line-height: 1.52;
}

.site[data-theme='hsg-theme'] .home-intro-feature__image-shell {
  border-radius: 24px;
}

.site[data-theme='hsg-theme'] .text-content-section--media_right {
  margin-inline: calc(50% - 50vw);
  padding-inline: max(1.25rem, calc((100vw - min(1360px, calc(100vw - 3rem))) / 2));
  background: linear-gradient(180deg, #131f3a 0%, #0f1a33 100%);
}

.site[data-theme='hsg-theme'] .text-content-section--media_right .home-intro-feature__copy h2,
.site[data-theme='hsg-theme'] .text-content-section--media_right .home-intro-feature__copy p,
.site[data-theme='hsg-theme'] .text-content-section--media_right .home-intro-feature__lede,
.site[data-theme='hsg-theme'] .text-content-section--media_right .home-intro-feature__lede * {
  color: #f4f7ff;
}

.site[data-theme='hsg-theme'] .text-content-section--media_right .home-intro-feature__copy p,
.site[data-theme='hsg-theme'] .text-content-section--media_right .home-intro-feature__lede {
  color: rgba(232, 239, 255, 0.74);
}

.site[data-theme='hsg-theme'] .text-content-section--media_right .home-intro-feature__visual {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
  border: 1px solid rgba(128, 160, 230, 0.18);
  transform: rotate(1.6deg);
}

.site[data-theme='hsg-theme'] .services-list__grid,
.site[data-theme='hsg-theme'] .services__grid,
.site[data-theme='hsg-theme'] .reviews__grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1.35rem;
  align-items: stretch;
}

.site[data-theme='hsg-theme'] .service-card,
.site[data-theme='hsg-theme'] .blog-card,
.site[data-theme='hsg-theme'] .area-card,
.site[data-theme='hsg-theme'] .team-card,
.site[data-theme='hsg-theme'] .projects-list__card,
.site[data-theme='hsg-theme'] .faq__item,
.site[data-theme='hsg-theme'] .reviews__card,
.site[data-theme='hsg-theme'] .before-after__group,
.site[data-theme='hsg-theme'] .profile-card-section {
  border: 1px solid rgba(220, 229, 245, 0.95);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 52px rgba(17, 28, 53, 0.07);
}

.site[data-theme='hsg-theme'] .service-card {
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 260ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 260ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.site[data-theme='hsg-theme'] .service-card:hover,
.site[data-theme='hsg-theme'] .service-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(66, 133, 244, 0.18);
  box-shadow: 0 28px 56px rgba(17, 28, 53, 0.1);
}

.site[data-theme='hsg-theme'] .service-card__body,
.site[data-theme='hsg-theme'] .area-card__body,
.site[data-theme='hsg-theme'] .blog-card__body,
.site[data-theme='hsg-theme'] .team-card__body,
.site[data-theme='hsg-theme'] .projects-list__copy,
.site[data-theme='hsg-theme'] .area-projects__copy {
  padding: clamp(1.2rem, 1.45vw, 1.6rem);
  gap: 0.65rem;
}

.site[data-theme='hsg-theme'] .service-card__icon,
.site[data-theme='hsg-theme'] .area-card__icon {
  color: var(--color-primary);
  border-radius: 16px;
  border: 1px solid rgba(66, 133, 244, 0.08);
  background: linear-gradient(180deg, #edf4ff 0%, #e5eeff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.site[data-theme='hsg-theme'] .service-card__action,
.site[data-theme='hsg-theme'] .area-card__action,
.site[data-theme='hsg-theme'] .blog-card__title a {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  width: fit-content;
  padding: 0.56rem 0.88rem;
  border: 1px solid rgba(66, 133, 244, 0.14);
  border-radius: 999px;
  background: rgba(237, 244, 255, 0.82);
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms cubic-bezier(0.22, 1, 0.36, 1),
    color 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site[data-theme='hsg-theme'] .service-card__action:hover,
.site[data-theme='hsg-theme'] .service-card__action:focus-visible,
.site[data-theme='hsg-theme'] .area-card__action:hover,
.site[data-theme='hsg-theme'] .area-card__action:focus-visible,
.site[data-theme='hsg-theme'] .blog-card__title a:hover,
.site[data-theme='hsg-theme'] .blog-card__title a:focus-visible {
  transform: translateY(-1px);
  background: rgba(66, 133, 244, 0.12);
  border-color: rgba(66, 133, 244, 0.24);
  box-shadow:
    0 10px 20px rgba(66, 133, 244, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.site[data-theme='hsg-theme'] .process-steps {
  gap: 1rem;
}

.site[data-theme='hsg-theme'] .process-steps__item {
  grid-template-columns: 1fr;
  gap: 1.4rem;
  min-height: 280px;
  padding: clamp(1.6rem, 2vw, 2rem);
  border: 1px solid rgba(221, 229, 244, 0.95);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(17, 28, 53, 0.06);
  position: relative;
}

.site[data-theme='hsg-theme'] .process-steps__index {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-primary);
  font-size: 2rem;
  border: 1px solid rgba(220, 228, 242, 0.95);
  box-shadow: 0 10px 20px rgba(18, 30, 58, 0.06);
}

.site[data-theme='hsg-theme'] .process-steps__copy {
  display: grid;
  gap: 0.8rem;
}

.site[data-theme='hsg-theme'] .process-steps__copy p {
  margin: 0;
  line-height: 1.72;
  color: var(--color-text-secondary);
}

.site[data-theme='hsg-theme'] .process-steps__item:last-child {
  background: linear-gradient(180deg, #4b89f4 0%, #3d79e3 100%);
  border-color: transparent;
  box-shadow: 0 24px 48px rgba(66, 133, 244, 0.22);
}

.site[data-theme='hsg-theme'] .process-steps__item:last-child .process-steps__copy,
.site[data-theme='hsg-theme'] .process-steps__item:last-child .process-steps__copy p,
.site[data-theme='hsg-theme'] .process-steps__item:last-child .process-steps__index {
  color: #fff;
}

.site[data-theme='hsg-theme'] .process-steps__item:last-child .process-steps__index {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.18);
}

.site[data-theme='hsg-theme'] .testimonials__controls {
  justify-content: flex-end;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.site[data-theme='hsg-theme'] .testimonials__nav-btn {
  min-width: 4.3rem;
  min-height: 4.3rem;
  border: 1px solid rgba(219, 228, 243, 0.95);
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.72);
}

.site[data-theme='hsg-theme'] .testimonials__dot {
  display: none;
}

.site[data-theme='hsg-theme'] .testimonials__slide,
.site[data-theme='hsg-theme'] .testimonials__peek {
  padding: 0;
  border: 0;
  background: transparent;
}

.site[data-theme='hsg-theme'] .reviews__card {
  padding: clamp(1.75rem, 2vw, 2.15rem);
}

.site[data-theme='hsg-theme'] .testimonials__quote,
.site[data-theme='hsg-theme'] .reviews__quote {
  font-size: clamp(1.1rem, 1.55vw, 1.4rem);
  line-height: 1.75;
  font-style: italic;
}

.site[data-theme='hsg-theme'] .testimonials__shell.container {
  gap: clamp(1rem, 1.8vw, 1.5rem);
}

.site[data-theme='hsg-theme'] .testimonials__inner {
  gap: clamp(1rem, 1.8vw, 1.45rem);
}

.site[data-theme='hsg-theme'] .testimonials__title {
  max-width: 12ch;
  margin: 0;
}

.site[data-theme='hsg-theme'] .testimonials__lede {
  max-width: 38rem;
  margin: 0;
  color: var(--color-text-secondary);
}

.site[data-theme='hsg-theme'] .testimonials__stage {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.4fr) minmax(0, 0.78fr);
  gap: clamp(0.9rem, 1.8vw, 1.4rem);
  align-items: stretch;
}

.site[data-theme='hsg-theme'] .testimonials__slide,
.site[data-theme='hsg-theme'] .testimonials__peek,
.site[data-theme='hsg-theme'] .reviews__card {
  border: 1px solid rgba(220, 229, 245, 0.95);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.95));
  box-shadow: 0 22px 52px rgba(17, 28, 53, 0.08);
}

.site[data-theme='hsg-theme'] .testimonials__slide {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: clamp(1.5rem, 2.4vw, 2.1rem);
}

.site[data-theme='hsg-theme'] .testimonials__peek {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding: 1.2rem 1.1rem;
  opacity: 0.58;
  transform: scale(0.94);
  filter: saturate(0.86);
}

.site[data-theme='hsg-theme'] .testimonials__chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.46rem 0.78rem;
  border-radius: 999px;
  background: rgba(66, 133, 244, 0.08);
  border: 1px solid rgba(66, 133, 244, 0.14);
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site[data-theme='hsg-theme'] .testimonials__stars,
.site[data-theme='hsg-theme'] .reviews__stars,
.site[data-theme='hsg-theme'] .testimonials__peek-stars {
  color: var(--color-tertiary, #f39c12);
}

.site[data-theme='hsg-theme'] .testimonials__stars,
.site[data-theme='hsg-theme'] .reviews__stars {
  font-size: 1.08rem;
  letter-spacing: 0.16rem;
}

.site[data-theme='hsg-theme'] .testimonials__peek-stars {
  font-size: 0.92rem;
  letter-spacing: 0.12rem;
}

.site[data-theme='hsg-theme'] .testimonials__quote {
  margin: 0;
  color: var(--color-text-primary);
  font-size: clamp(1.3rem, 1.95vw, 1.8rem);
  line-height: 1.6;
  font-style: normal;
  letter-spacing: -0.02em;
}

.site[data-theme='hsg-theme'] .testimonials__peek-quote {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.site[data-theme='hsg-theme'] .testimonials__author,
.site[data-theme='hsg-theme'] .reviews__author {
  margin-top: auto;
}

.site[data-theme='hsg-theme'] .testimonials__author-row,
.site[data-theme='hsg-theme'] .reviews__author-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.site[data-theme='hsg-theme'] .testimonials__name,
.site[data-theme='hsg-theme'] .reviews__author strong,
.site[data-theme='hsg-theme'] .testimonials__peek-name {
  color: var(--color-text-primary);
  font-size: 0.98rem;
  font-weight: 700;
  font-style: normal;
}

.site[data-theme='hsg-theme'] .testimonials__tags,
.site[data-theme='hsg-theme'] .reviews__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site[data-theme='hsg-theme'] .testimonials__tag,
.site[data-theme='hsg-theme'] .reviews__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.64rem;
  border-radius: 999px;
  background: rgba(19, 27, 52, 0.05);
  color: var(--color-text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
}

.site[data-theme='hsg-theme'] .testimonials__nav-btn {
  min-width: 5.4rem;
  min-height: 3.4rem;
  border-radius: 999px;
  border-color: rgba(66, 133, 244, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: var(--color-text-primary);
  box-shadow: 0 14px 28px rgba(17, 28, 53, 0.08);
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site[data-theme='hsg-theme'] .testimonials__nav-btn:hover,
.site[data-theme='hsg-theme'] .testimonials__nav-btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(66, 133, 244, 0.22);
  background: #fff;
  box-shadow: 0 18px 32px rgba(17, 28, 53, 0.1);
}

.site[data-theme='hsg-theme'] .gallery-grid__item,
.site[data-theme='hsg-theme'] .media-grid__item,
.site[data-theme='hsg-theme'] .projects-list__photo,
.site[data-theme='hsg-theme'] .before-after__photo,
.site[data-theme='hsg-theme'] .area-projects__photo {
  border-radius: 24px;
}

.site[data-theme='hsg-theme'] .table-section__table {
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 52px rgba(17, 28, 53, 0.08);
}

.site[data-theme='hsg-theme'] .table-section__table th,
.site[data-theme='hsg-theme'] .table-section__table td {
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(221, 229, 245, 0.95);
  text-align: center;
}

.site[data-theme='hsg-theme'] .table-section__table thead th {
  font-weight: 800;
}

.site[data-theme='hsg-theme'] .table-section__table th:first-child,
.site[data-theme='hsg-theme'] .table-section__table td:first-child {
  text-align: left;
}

.site[data-theme='hsg-theme'] .table-section__table td:nth-child(2) {
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
  font-weight: 700;
}

.site[data-theme='hsg-theme'] .table-section__table td:nth-child(n + 3) {
  background: rgba(239, 68, 68, 0.06);
  color: #b91c1c;
}

.site[data-theme='hsg-theme'] .table-section__table tbody td:nth-child(n + 2) {
  font-size: 1.08rem;
  font-weight: 700;
}

.site[data-theme='hsg-theme'] .table-section__table tbody tr:not(:last-child) td:nth-child(2),
.site[data-theme='hsg-theme'] .table-section__table tbody tr:not(:last-child) td:nth-child(n + 3) {
  font-size: 1.3rem;
  line-height: 1;
}

.site[data-theme='hsg-theme'] .table-section__table tbody tr:last-child td:nth-child(2) {
  color: #15803d;
}

.site[data-theme='hsg-theme'] .table-section__table tbody tr:last-child td:nth-child(n + 3) {
  color: #b91c1c;
}

.site[data-theme='hsg-theme'] .cta-banner.container {
  padding: clamp(2.4rem, 4vw, 4rem);
  border-radius: 30px;
  background: linear-gradient(145deg, #131f3a, #0f1a33);
  color: #fff;
  box-shadow: 0 28px 72px rgba(15, 24, 49, 0.18);
}

.site[data-theme='hsg-theme'] .contact__layout.cta-banner--feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1rem, 2vw, 1.6rem);
  align-items: stretch;
}

.site[data-theme='hsg-theme'] .contact__layout.cta-banner--feature .cta-banner__backdrop {
  display: block;
  position: relative;
  min-height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(75, 137, 244, 0.22), transparent 36%),
    rgba(255, 255, 255, 0.04);
}

.site[data-theme='hsg-theme'] .contact__layout.cta-banner--feature .cta-banner__backdrop-mosaic {
  display: none;
}

.site[data-theme='hsg-theme'] .contact__layout.cta-banner--feature .cta-banner__backdrop::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.06), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
}

.site[data-theme='hsg-theme'] .contact__layout.cta-banner--feature .cta-banner__backdrop::after {
  display: none;
}

.site[data-theme='hsg-theme'] .contact__layout.cta-banner--feature .cta-banner__inner.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-content: center;
  padding: 0;
}

.site[data-theme='hsg-theme'] .contact__layout.cta-banner--feature .contact__hero-col {
  padding: 0;
}

.site[data-theme='hsg-theme'] .contact__layout.cta-banner--feature .contact__brand {
  position: absolute;
  left: clamp(2rem, 4vw, 3rem);
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(42% - clamp(1.5rem, 2vw, 2rem));
  transform: translateY(-50%);
  pointer-events: none;
}

.site[data-theme='hsg-theme'] .contact__layout.cta-banner--feature .contact__brand-logo,
.site[data-theme='hsg-theme'] .contact__layout.cta-banner--feature .contact__brand .header__logo {
  width: 100%;
}

.site[data-theme='hsg-theme'] .contact__layout.cta-banner--feature .contact__brand .header__logo-mark {
  width: 100%;
  height: clamp(110px, 18vw, 180px);
}

.site[data-theme='hsg-theme'] .contact__layout.cta-banner--feature .contact__title,
.site[data-theme='hsg-theme'] .contact__layout.cta-banner--feature h2.contact__title,
.site[data-theme='hsg-theme'] .contact__layout.cta-banner--feature .hero__subtitle,
.site[data-theme='hsg-theme'] .contact__layout.cta-banner--feature .home-intro-feature__accent {
  color: #f4f7ff;
}

.site[data-theme='hsg-theme'] .contact__layout.cta-banner--feature .contact__form-col {
  display: grid;
}

.site[data-theme='hsg-theme'] .contact__layout.cta-banner--feature .contact-form {
  padding: 1.1rem;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 44px rgba(8, 15, 30, 0.18);
}

.site[data-theme='hsg-theme'] .cta-banner__title,
.site[data-theme='hsg-theme'] .cta-banner__text,
.site[data-theme='hsg-theme'] .cta-banner__accent {
  color: #fff;
}

.site[data-theme='hsg-theme'] .footer {
  background: #0f1a33;
}

.site[data-theme='hsg-theme'] .footer__content,
.site[data-theme='hsg-theme'] .footer__content a {
  color: #f3f7ff;
}

@media (min-width: 1100px) {
  .site[data-theme='hsg-theme'] .services-list__grid,
  .site[data-theme='hsg-theme'] .services__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .site[data-theme='hsg-theme'] .services-list__grid > *,
  .site[data-theme='hsg-theme'] .services__grid > * {
    grid-column: auto;
  }

  .site[data-theme='hsg-theme'] .services-list__grid > :last-child,
  .site[data-theme='hsg-theme'] .services__grid > :last-child {
    grid-column: auto;
  }

  .site[data-theme='hsg-theme'] .services-list__grid:has(> :nth-child(3)):has(> :last-child:nth-child(3n + 1)) > :last-child,
  .site[data-theme='hsg-theme'] .services__grid:has(> :nth-child(3)):has(> :last-child:nth-child(3n + 1)) > :last-child,
  .site[data-theme='hsg-theme'] .services-list__grid:has(> :nth-child(3)):has(> :last-child:nth-child(3n + 2)) > :nth-last-child(2),
  .site[data-theme='hsg-theme'] .services__grid:has(> :nth-child(3)):has(> :last-child:nth-child(3n + 2)) > :nth-last-child(2),
  .site[data-theme='hsg-theme'] .services-list__grid:has(> :nth-child(3)):has(> :last-child:nth-child(3n + 2)) > :last-child,
  .site[data-theme='hsg-theme'] .services__grid:has(> :nth-child(3)):has(> :last-child:nth-child(3n + 2)) > :last-child {
    grid-column: auto;
  }

  .site[data-theme='hsg-theme'] .process-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .site[data-theme='hsg-theme'] .process-steps__item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 4.1rem;
    right: -1.8rem;
    width: 3.2rem;
    height: 1px;
    background: rgba(207, 217, 235, 0.95);
  }
}

@media (max-width: 980px) {
  .site[data-theme='hsg-theme'] .header__inner {
    max-width: calc(100% - 2rem);
  }

  .site[data-theme='hsg-theme'] .home-hero-section--split .hero__layout,
  .site[data-theme='hsg-theme'] .hero__layout--split,
  .site[data-theme='hsg-theme'] .home-intro-feature {
    grid-template-columns: 1fr;
  }

  .site[data-theme='hsg-theme'] .home-hero-section--split .hero__layout {
    min-height: 0;
  }

  .site[data-theme='hsg-theme'] .home-hero-section--split .hero__copy,
  .site[data-theme='hsg-theme'] .home-hero-section--split .hero__media {
    grid-column: auto;
    justify-self: stretch;
    max-width: none;
    width: 100%;
  }

  .site[data-theme='hsg-theme'] .service__hero-layout--with-image,
  .site[data-theme='hsg-theme'] .area__hero-layout--with-image,
  .site[data-theme='hsg-theme'] .service__hero-feature--with-image,
  .site[data-theme='hsg-theme'] .area__hero-feature--with-image {
    grid-template-columns: 1fr;
  }

  .site[data-theme='hsg-theme'] .contact__layout.cta-banner--feature {
    grid-template-columns: 1fr;
  }

  .site[data-theme='hsg-theme'] .contact__layout.cta-banner--feature .cta-banner__backdrop {
    min-height: 260px;
  }

  .site[data-theme='hsg-theme'] .contact__layout.cta-banner--feature .contact__brand {
    position: static;
    width: 100%;
    transform: none;
    pointer-events: auto;
    justify-content: flex-start;
  }

  .site[data-theme='hsg-theme'] .contact__layout.cta-banner--feature .contact__brand .header__logo-mark {
    width: min(100%, 260px);
    height: 96px;
  }

  .site[data-theme='hsg-theme'] .hero__title {
    max-width: none;
    font-size: clamp(2rem, 7vw, 3.5rem);
    line-height: 0.96;
  }

  .site[data-theme='hsg-theme'] .services-list__grid,
  .site[data-theme='hsg-theme'] .services__grid,
  .site[data-theme='hsg-theme'] .reviews__grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  }

  .site[data-theme='hsg-theme'] .testimonials__stage {
    grid-template-columns: 1fr;
  }

  .site[data-theme='hsg-theme'] .testimonials__peek {
    display: none;
  }

  .site[data-theme='hsg-theme'] .hero__media {
    min-height: 360px;
  }

  .site[data-theme='hsg-theme'] .hero__media::after {
    position: static;
    display: block;
    margin: 1rem;
  }
}

@media (max-width: 760px) {
  .site[data-theme='hsg-theme'] .container {
    width: min(var(--container-max, 1380px), calc(100% - 1rem));
  }

  .site[data-theme='hsg-theme'] section {
    padding-inline: 0.5rem;
  }

  .site[data-theme='hsg-theme'] .hero.container,
  .site[data-theme='hsg-theme'] .home-intro-feature.container,
  .site[data-theme='hsg-theme'] .content-section__shell.container,
  .site[data-theme='hsg-theme'] .services-list__shell.container,
  .site[data-theme='hsg-theme'] .faq__layout.container,
  .site[data-theme='hsg-theme'] .testimonials__shell.container,
  .site[data-theme='hsg-theme'] .cta-banner.container {
    padding-inline: 0.9rem;
  }

  .site[data-theme='hsg-theme'] .header__inner {
    max-width: calc(100% - 1rem);
    min-height: 80px;
  }

  .site[data-theme='hsg-theme'] .cta-banner.container {
    padding: 1.25rem;
    border-radius: 24px;
  }

  .site[data-theme='hsg-theme'] .contact__layout.cta-banner--feature {
    gap: 0.9rem;
  }

  .site[data-theme='hsg-theme'] .contact__layout.cta-banner--feature .cta-banner__backdrop {
    display: none;
    min-height: 0;
  }

  .site[data-theme='hsg-theme'] .contact__layout.cta-banner--feature .cta-banner__inner.contact__inner {
    gap: 0.75rem;
  }

  .site[data-theme='hsg-theme'] .contact__layout.cta-banner--feature .contact__hero-col {
    gap: 0.75rem;
  }

  .site[data-theme='hsg-theme'] .contact__layout.cta-banner--feature .contact__brand {
    justify-content: flex-start;
    margin-top: -0.15rem;
  }

  .site[data-theme='hsg-theme'] .contact__layout.cta-banner--feature .contact__brand .header__logo-mark {
    width: min(100%, 180px);
    height: 72px;
  }

  .site[data-theme='hsg-theme'] .contact__layout.cta-banner--feature .contact-form {
    padding: 0.9rem;
  }

  .site[data-theme='hsg-theme'] .header__nav,
  .site[data-theme='hsg-theme'] .header__nav--open {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(219, 228, 244, 0.94);
    border-radius: 22px;
    box-shadow: 0 24px 52px rgba(17, 27, 54, 0.12);
    backdrop-filter: blur(16px);
  }

  .site[data-theme='hsg-theme'] .hero__title {
    font-size: clamp(1.9rem, 10.5vw, 2.85rem);
    line-height: 0.98;
  }

  .site[data-theme='hsg-theme'] .services-list__grid,
  .site[data-theme='hsg-theme'] .services__grid,
  .site[data-theme='hsg-theme'] .reviews__grid {
    grid-template-columns: 1fr;
  }

  .site[data-theme='hsg-theme'] .hero__media {
    min-height: 280px;
  }

  .site[data-theme='hsg-theme'] .hero__media::before,
  .site[data-theme='hsg-theme'] .hero__media::after {
    display: none;
  }

  .site[data-theme='hsg-theme'] .service__hero-copy,
  .site[data-theme='hsg-theme'] .area__hero-copy,
  .site[data-theme='hsg-theme'] .service__hero-feature-panel,
  .site[data-theme='hsg-theme'] .area__hero-feature-panel,
  .site[data-theme='hsg-theme'] .service__hero-panel,
  .site[data-theme='hsg-theme'] .area__hero-panel {
    padding: 1.5rem;
  }

  .site[data-theme='hsg-theme'] .service__title-row,
  .site[data-theme='hsg-theme'] .area__title-row {
    gap: 0.8rem;
  }

  .site[data-theme='hsg-theme'] .service__icon,
  .site[data-theme='hsg-theme'] .area__icon {
    width: 3.35rem;
    height: 3.35rem;
    border-radius: 16px;
  }

  .site[data-theme='hsg-theme'] .service__title,
  .site[data-theme='hsg-theme'] .area__title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .site[data-theme='hsg-theme'] .faq__question {
    gap: 0.8rem;
    padding: 1rem;
  }

  .site[data-theme='hsg-theme'] .faq__question-index {
    width: 2.3rem;
    height: 2.3rem;
  }

  .site[data-theme='hsg-theme'] .faq__answer-inner {
    padding: 0 1rem 1rem 1rem;
  }

  .site[data-theme='hsg-theme'] .testimonials__controls {
    justify-content: center;
  }

  .site[data-theme='hsg-theme'] .table-section__table th,
  .site[data-theme='hsg-theme'] .table-section__table td {
    padding: 0.85rem 0.8rem;
  }
}
