/**
 * Squarespace inner pages — editorial cream/gold theme (Services, About, etc.)
 */

body.sqs-seven-one:not(.homepage) {
  --nx-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nx-bg: #fdfcf8;
  --nx-text: #222222;
  --nx-muted: #6b6b6b;
  --nx-accent: #b58d3d;
  --nx-accent-hover: #9f7834;
  --nx-border: rgba(34, 34, 34, 0.1);
  --nx-container: 1320px;
}

/* Reset Squarespace section theme tokens → editorial palette */
body.sqs-seven-one #sections .page-section,
body.sqs-seven-one #footer-sections .page-section,
body.sqs-seven-one .header-menu {
  --siteBackgroundColor: #fdfcf8 !important;
  --backgroundOverlayColor: transparent !important;
  --headingExtraLargeColor: #222222 !important;
  --headingLargeColor: #222222 !important;
  --headingMediumColor: #222222 !important;
  --headingSmallColor: #222222 !important;
  --headingLinkColor: #9f7834 !important;
  --paragraphLargeColor: rgba(34, 34, 34, 0.82) !important;
  --paragraphMediumColor: rgba(34, 34, 34, 0.82) !important;
  --paragraphSmallColor: rgba(34, 34, 34, 0.68) !important;
  --paragraphLinkColor: #9f7834 !important;
  --tweak-heading-extra-large-color-on-background: #222222 !important;
  --tweak-heading-large-color-on-background: #222222 !important;
  --tweak-heading-medium-color-on-background: #222222 !important;
  --tweak-heading-small-color-on-background: #222222 !important;
  --tweak-paragraph-large-color-on-background: rgba(34, 34, 34, 0.82) !important;
  --tweak-paragraph-medium-color-on-background: rgba(34, 34, 34, 0.82) !important;
  --tweak-paragraph-small-color-on-background: rgba(34, 34, 34, 0.68) !important;
  --tweak-paragraph-link-color-on-background: #9f7834 !important;
  --primaryButtonBackgroundColor: #b58d3d !important;
  --primaryButtonTextColor: #ffffff !important;
  --secondaryButtonBackgroundColor: transparent !important;
  --secondaryButtonTextColor: #6b6b6b !important;
  --menuOverlayBackgroundColor: rgba(253, 252, 248, 0.98) !important;
  --menuOverlayButtonBackgroundColor: #b58d3d !important;
  --menuOverlayNavigationLinkColor: #222222 !important;
  --solidHeaderBackgroundColor: rgba(253, 252, 248, 0.92) !important;
}

body.sqs-seven-one #sections .page-section .section-background,
body.sqs-seven-one #sections .page-section .section-border {
  background-color: var(--nx-bg) !important;
}

body.sqs-seven-one #sections .page-section.has-background .section-background img {
  filter: brightness(0.92) saturate(0.88) contrast(1.02);
}

body.sqs-seven-one
  #sections
  .page-section.has-background:not(.black):not([data-section-theme="black"])
  .section-background-overlay {
  background: linear-gradient(
    180deg,
    rgba(253, 252, 248, 0.55) 0%,
    rgba(253, 252, 248, 0.88) 100%
  ) !important;
  opacity: 1 !important;
}

body.sqs-seven-one #sections .page-section.has-background .content {
  position: relative;
  z-index: 2;
}

/* Typography — match homepage editorial */
body.sqs-seven-one:not(.homepage) #sections .sqs-html-content h1 {
  font-family: var(--nx-font) !important;
  font-weight: 800 !important;
  font-size: clamp(2rem, 4.5vw, 3.25rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.03em !important;
  color: var(--nx-text) !important;
}

body.sqs-seven-one:not(.homepage) #sections .sqs-html-content h2 {
  font-family: var(--nx-font) !important;
  font-weight: 800 !important;
  font-size: clamp(1.45rem, 3vw, 2.15rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.025em !important;
  color: var(--nx-text) !important;
}

body.sqs-seven-one:not(.homepage) #sections .sqs-html-content h3 {
  font-family: var(--nx-font) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  color: var(--nx-text) !important;
}

body.sqs-seven-one:not(.homepage) #sections .sqs-html-content p,
body.sqs-seven-one:not(.homepage) #sections .sqs-html-content li {
  font-family: var(--nx-font) !important;
  font-size: clamp(1rem, 1.6vw, 1.08rem);
  line-height: 1.65;
  color: rgba(34, 34, 34, 0.82);
}

body.sqs-seven-one:not(.homepage) #sections .sqs-html-content a:not(.sqs-block-button-element) {
  color: var(--nx-accent-hover);
  font-weight: 600;
}

/* SEO-generated pages inside bright wrapper */
body.sqs-seven-one .nexterra-seo-generated-section {
  background: var(--nx-bg) !important;
}

body.sqs-seven-one .nexterra-seo-generated-section .section-background {
  display: none;
}

body.sqs-seven-one .nexterra-seo-home__heading {
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
}

body.sqs-seven-one .nexterra-seo-home__eyebrow {
  color: var(--nx-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 600;
}

body.sqs-seven-one .nexterra-seo-home__eyebrow::before {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 2px;
  margin-right: 0.65rem;
  vertical-align: middle;
  background: var(--nx-accent);
}

/* Nav active state */
body.sqs-seven-one .header-nav-item--active a {
  color: var(--nx-accent) !important;
  font-weight: 600 !important;
}

body.sqs-seven-one .header-menu-nav-item--active .header-menu-nav-item-content {
  color: var(--nx-accent) !important;
}

body.sqs-seven-one .header-menu {
  font-family: var(--nx-font) !important;
}

body.sqs-seven-one .header-menu-bg,
body.sqs-seven-one .header-menu-nav-wrapper {
  background: rgba(253, 252, 248, 0.98) !important;
}

body.sqs-seven-one .header-menu-nav-item-content {
  font-weight: 600 !important;
  font-size: 1.05rem !important;
  letter-spacing: 0.02em;
}

/* Blocks: images, accordions, pricing cards */
body.sqs-seven-one:not(.homepage) #sections .fluid-image-container {
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 16px 48px rgba(34, 34, 34, 0.08);
}

body.sqs-seven-one:not(.homepage) #sections .sqs-block-accordion .accordion-item {
  border-radius: 14px;
  margin-bottom: 0.65rem;
  overflow: hidden;
  border: 1px solid var(--nx-border);
  background: #fff;
  box-shadow: 0 4px 16px rgba(34, 34, 34, 0.04);
}

body.sqs-seven-one:not(.homepage) #sections .sqs-block-accordion .accordion-item[aria-expanded="true"] {
  border-color: rgba(181, 141, 61, 0.28);
}

body.sqs-seven-one:not(.homepage) #sections .sqs-block-accordion .accordion-item__title {
  font-family: var(--nx-font) !important;
  font-weight: 600;
}

body.sqs-seven-one:not(.homepage) #sections .Marquee-svg-text,
body.sqs-seven-one:not(.homepage) #sections .Marquee-item--text {
  font-family: var(--nx-font) !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em;
  color: var(--nx-text) !important;
}

/* Summary / list cards on Services page */
body.sqs-seven-one:not(.homepage) #sections .summary-item,
body.sqs-seven-one:not(.homepage) #sections .portfolio-grid-item,
body.sqs-seven-one:not(.homepage) #sections .user-items-list-item {
  border-radius: 16px;
  border: 1px solid var(--nx-border);
  background: #fff;
  box-shadow: 0 8px 28px rgba(34, 34, 34, 0.05);
}

body.sqs-seven-one:not(.homepage) #sections .summary-title a,
body.sqs-seven-one:not(.homepage) #sections .portfolio-title {
  font-family: var(--nx-font) !important;
  font-weight: 700 !important;
  color: var(--nx-text) !important;
}

/* Forms (Contact sections) */
body.sqs-seven-one:not(.homepage) #sections .form-wrapper {
  font-family: var(--nx-font);
}

body.sqs-seven-one:not(.homepage) #sections .form-button-wrapper .button {
  background: var(--nx-accent) !important;
  border-color: var(--nx-accent) !important;
  border-radius: 999px !important;
}

/* Page width rhythm */
body.sqs-seven-one:not(.homepage) main.container #sections {
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

body.sqs-seven-one main.container,
body.sqs-seven-one #page {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.sqs-seven-one #sections > .page-section:first-child {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.sqs-seven-one:not(.homepage) #sections > .page-section:first-child .content-wrapper {
  padding-top: clamp(0.65rem, 1.5vw, 1rem) !important;
}

body.sqs-seven-one:not(.homepage) #sections > .page-section:first-child .content {
  padding-top: 0 !important;
}

body.sqs-seven-one .nexterra-seo-generated-section > .content-wrapper {
  padding-top: clamp(0.65rem, 1.5vw, 1rem) !important;
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem) !important;
}

body.sqs-seven-one .nexterra-seo-home-section {
  padding-top: clamp(0.5rem, 1.2vw, 0.85rem) !important;
}
