/* =========================================
SAFE GLOBAL CLEANUP
Does NOT interfere with Amelia
========================================= */

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

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

*,
*::before,
*::after {
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6,
p, li, a, span {
  overflow-wrap: break-word;
}

/* =========================================
DO NOT LET SITE CSS BREAK AMELIA
========================================= */

.amelia-v2-booking,
.amelia-app-booking,
.amelia-app,
#amelia-container,
.amelia-catalog-booking,
.amelia-step-booking,
.am-fs__main,
.amelia-app-booking * {
  overflow: visible;
}

/* Do NOT force margins/padding/heights inside Amelia */
.amelia-app *,
.amelia-v2-booking *,
.amelia-app-booking *,
#amelia-container * {
  max-width: none;
}

/* =========================================
GENERAL BUTTONS / FORMS
========================================= */

button,
input[type="button"],
input[type="submit"],
.wp-block-button__link,
.ast-button,
button.menu-toggle {
  max-width: 100%;
  white-space: normal;
}

input,
select,
textarea {
  max-width: 100%;
  box-sizing: border-box;
}

/* =========================================
RESPONSIVE TYPOGRAPHY
========================================= */

h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.15;
}

h3 {
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1.2;
}

p,
li {
  font-size: clamp(0.98rem, 1.2vw, 1.05rem);
  line-height: 1.65;
}

/* =========================================
MOBILE CLEANUP
========================================= */

@media (max-width: 921px) {
  .ast-container,
  .site-content,
  .content-area,
  .site-main,
  .entry-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .wp-block-columns {
    flex-direction: column !important;
    gap: 20px;
  }

  .wp-block-column {
    flex-basis: 100% !important;
  }

  h1 {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }

  h2 {
    font-size: clamp(1.5rem, 6vw, 2.1rem);
  }

  h3 {
    font-size: clamp(1.25rem, 5vw, 1.7rem);
  }

  p,
  li {
    font-size: 1rem;
    line-height: 1.65;
  }
}

@media (max-width: 544px) {
  .ast-container,
  .site-content,
  .content-area,
  .site-main,
  .entry-content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .wp-block-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .wp-block-button__link,
  .ast-button,
  input[type="submit"] {
    width: 100%;
    text-align: center;
  }
}

/* =========================================
SHG PAGE BASE
Only affects your custom SHG sections
========================================= */

.shg-page-shell {
  --shg-bg: #f7f4ee;
  --shg-surface: #ffffff;
  --shg-surface-soft: #f2eee7;
  --shg-text: #1a1a1a;
  --shg-text-soft: #5f5a54;
  --shg-gold: #c8a96b;
  --shg-gold-dark: #b08d4e;
  --shg-border: rgba(26, 26, 26, 0.08);
  --shg-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  --shg-radius: 24px;
  --shg-radius-lg: 30px;
  --shg-container: 1200px;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--shg-text);
  background: var(--shg-bg);
}

.shg-page-shell *,
.shg-form-shortcode-wrap * {
  box-sizing: border-box;
}

.shg-page-shell img {
  display: block;
  width: 100%;
  height: auto;
}

.shg-container {
  width: min(var(--shg-container), calc(100% - 40px));
  margin: 0 auto;
}

/* =========================================
FULL WIDTH HERO
========================================= */

.shg-hero-breakout,
.shg-hero-minimal {
  position: relative;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  overflow: hidden;
}

.shg-hero-breakout {
  margin-top: -70px !important;
}

.shg-video-hero {
  --hero-min-height: 100svh;
  --video-scale: 1.08;
  --video-position-x: 50%;
  --video-position-y: 50%;
  position: relative;
  width: 100vw;
  min-height: var(--hero-min-height);
  overflow: hidden;
  background: #111;
  display: flex;
  align-items: center;
}

.shg-video-hero__media,
.shg-video-hero__overlay {
  position: absolute;
  inset: 0;
}

.shg-video-hero__media {
  z-index: 0;
  overflow: hidden;
  background: #111;
}

.shg-video-hero__video {
  position: absolute;
  top: var(--video-position-y);
  left: var(--video-position-x);
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%) scale(var(--video-scale));
  transform-origin: center center;
  pointer-events: none;
}

.shg-video-hero__overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.26) 52%, rgba(0,0,0,.16) 100%),
    linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.42) 100%);
}

.shg-video-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 110px 0 78px;
}

.shg-video-hero__container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  color: #fff;
}

.shg-video-hero__eyebrow,
.shg-kicker {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--shg-gold);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 700;
}

.shg-video-hero h1 {
  margin: 0 0 18px;
  max-width: 780px;
  font-size: clamp(2.8rem, 5vw, 5.35rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  color: #fff;
  font-weight: 700;
}

.shg-video-hero p {
  margin: 0;
  max-width: 700px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: rgba(255,255,255,.92);
}

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

.shg-video-hero__actions,
.shg-feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.shg-video-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: .95rem;
  transition: all .28s ease;
  border: 1px solid transparent;
}

.shg-video-btn--gold {
  background: var(--shg-gold);
  color: #111;
}

.shg-video-btn--gold:hover {
  background: var(--shg-gold-dark);
  color: #111;
  transform: translateY(-1px);
}

.shg-video-btn--ghost {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.34);
  backdrop-filter: blur(8px);
}

.shg-video-btn--ghost:hover {
  background: rgba(255,255,255,.16);
  color: #fff;
}

.shg-video-btn--dark {
  background: #111;
  color: #fff;
}

.shg-video-btn--dark:hover {
  background: #222;
  color: #fff;
  transform: translateY(-1px);
}

/* =========================================
CONTENT SECTIONS
========================================= */

.shg-section {
  padding: 96px 0;
}

.shg-section--intro {
  background: linear-gradient(180deg, #fbf9f5 0%, #f7f4ee 100%);
}

.shg-section--services {
  background: #fff;
}

.shg-section--feature {
  background: var(--shg-surface-soft);
}

.shg-section--form-intro {
  padding-top: 90px;
  padding-bottom: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f4ee 100%);
}

.shg-grid {
  display: grid;
  gap: 42px;
  align-items: center;
}

.shg-grid--2 {
  grid-template-columns: 1.02fr .98fr;
}

.shg-copy h2,
.shg-section-heading h2,
.shg-form-intro h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.shg-copy p,
.shg-section-heading p,
.shg-form-intro p {
  margin: 0 0 18px;
  color: var(--shg-text-soft);
  line-height: 1.85;
  font-size: 1rem;
}

.shg-section-heading,
.shg-form-intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.shg-image-card,
.shg-feature-image {
  overflow: hidden;
  border-radius: var(--shg-radius-lg);
  box-shadow: var(--shg-shadow);
  background: var(--shg-surface);
}

.shg-image-card img,
.shg-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shg-image-card,
.shg-image-card img {
  min-height: 560px;
}

.shg-feature-image,
.shg-feature-image img {
  min-height: 620px;
}

/* =========================================
SERVICE CARDS
========================================= */

.shg-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}

.shg-service-card {
  background: linear-gradient(180deg, #ffffff 0%, #faf7f2 100%);
  border: 1px solid var(--shg-border);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 10px 25px rgba(0,0,0,.04);
  transition: transform .25s ease, box-shadow .25s ease;
}

.shg-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(0,0,0,.07);
}

.shg-service-card h3 {
  margin: 0 0 12px;
  font-size: 1.12rem;
  line-height: 1.3;
}

.shg-service-card p {
  margin: 0;
  color: var(--shg-text-soft);
  line-height: 1.8;
  font-size: .96rem;
}

/* =========================================
FORMINATOR ONLY
========================================= */

.shg-form-shortcode-wrap {
  max-width: 980px;
  margin: 0 auto 110px;
  padding: 0 20px;
}

.shg-form-shortcode-wrap .forminator-ui {
  background: #fff;
  border: 1px solid rgba(26,26,26,.08);
  border-radius: 28px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,.06);
}

.shg-form-shortcode-wrap .forminator-label {
  color: #1a1a1a !important;
  font-weight: 600 !important;
}

.shg-form-shortcode-wrap input,
.shg-form-shortcode-wrap select,
.shg-form-shortcode-wrap textarea {
  border-radius: 16px !important;
}

.shg-form-shortcode-wrap .forminator-button,
.shg-form-shortcode-wrap button[type="submit"] {
  background: var(--shg-gold) !important;
  color: #111 !important;
  border: 0 !important;
  border-radius: 999px !important;
  min-height: 54px !important;
  font-weight: 700 !important;
  padding: 0 28px !important;
}

/* =========================================
PRICING PAGE BLACK DESIGN
PAGE ID 2879 ONLY
========================================= */

body.page-id-2879,
.page-id-2879 .site,
.page-id-2879 .site-content,
.page-id-2879 .content-area,
.page-id-2879 .site-main,
.page-id-2879 .entry-content,
.page-id-2879 .ast-container {
  background: #000 !important;
  color: #fff !important;
}

.page-id-2879 .entry-title,
.page-id-2879 .entry-header {
  display: none !important;
}

.page-id-2879 .site-main,
.page-id-2879 .entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.page-id-2879 .ast-container,
.page-id-2879 .site-content,
.page-id-2879 .content-area,
.page-id-2879 .site-main,
.page-id-2879 .entry-content {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.page-id-2879 .wp-block-group,
.page-id-2879 .wp-block-cover,
.page-id-2879 .wp-block-columns {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 100% !important;
}

.page-id-2879 .shg-container {
  width: 100% !important;
  max-width: 1400px;
  padding-left: 40px;
  padding-right: 40px;
  margin: 0 auto;
}

.page-id-2879 .shg-page-shell,
.page-id-2879 .shg-section,
.page-id-2879 .shg-section--intro,
.page-id-2879 .shg-section--services,
.page-id-2879 .shg-section--feature,
.page-id-2879 .shg-section--form-intro {
  background: #000 !important;
}

.page-id-2879 .shg-service-card,
.page-id-2879 .shg-image-card,
.page-id-2879 .shg-feature-image {
  background: #111 !important;
  border: 1px solid rgba(200,169,107,.3) !important;
  box-shadow: 0 25px 70px rgba(0,0,0,.5) !important;
}

.page-id-2879 h1,
.page-id-2879 h2,
.page-id-2879 h3,
.page-id-2879 p,
.page-id-2879 li {
  color: #fff !important;
}

.page-id-2879 .shg-copy p,
.page-id-2879 .shg-section-heading p,
.page-id-2879 .shg-service-card p {
  color: rgba(255,255,255,.75) !important;
}

.page-id-2879 .wp-block-button__link,
.page-id-2879 .shg-video-btn--gold,
.page-id-2879 a[href="#booking"] {
  background: #c8a96b !important;
  color: #000 !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  padding: 14px 28px !important;
}

.page-id-2879 .wp-block-button__link:hover {
  background: #e0bd63 !important;
}

/* =========================================
ELECTRICAL PAGE CLEANUP
PAGE ID 2068 ONLY
========================================= */

body.page-id-2068 .entry-content,
body.page-id-2068 .wp-block-group,
body.page-id-2068 .wp-block-cover,
body.page-id-2068 .wp-block-columns,
body.page-id-2068 .wp-block-column {
  margin-top: 0 !important;
}

body.page-id-2068 .site-main,
body.page-id-2068 article,
body.page-id-2068 .entry-content {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.page-id-2068 .entry-content > *:not(:first-child) {
  min-height: auto !important;
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}

body.page-id-2068 .wp-block-spacer {
  height: 0 !important;
  min-height: 0 !important;
  display: none !important;
}

/* =========================================
DARK CARD + CTA FIXES
Scoped to SHG only
========================================= */

.shg-dark-card {
  background: linear-gradient(145deg, #0a0f1c, #121a2b) !important;
  color: #fff !important;
  padding: 40px !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.6) !important;
}

.shg-dark-card h3 {
  color: #fff !important;
  font-weight: 700 !important;
}

.shg-dark-card .shg-kicker {
  color: #f5b942 !important;
  opacity: 1 !important;
}

.shg-dark-card li {
  color: #e0e6f0 !important;
}

.shg-dark-card strong {
  color: #fff !important;
}

.shg-bottom-cta {
  background: linear-gradient(135deg, #07111f, #111a33) !important;
  padding: 70px 60px !important;
  border-radius: 28px !important;
}

.shg-bottom-cta,
.shg-bottom-cta * {
  color: #fff !important;
  opacity: 1 !important;
}

.shg-bottom-cta h1,
.shg-bottom-cta h2,
.shg-bottom-cta h3 {
  color: #fff !important;
  opacity: 1 !important;
  font-weight: 800 !important;
}

.shg-bottom-cta p {
  color: rgba(255,255,255,.85) !important;
  opacity: 1 !important;
}

.shg-bottom-cta .wp-block-button__link {
  color: #111 !important;
}

.shg-bottom-cta .is-style-outline .wp-block-button__link {
  color: #fff !important;
}

/* Hide Jetpack share/likes safely */
.sharedaddy,
.sd-sharing-enabled,
.sd-like-enabled,
div.sharedaddy,
div#jp-relatedposts,
.entry-footer,
.post-navigation,
.comments-area {
  display: none !important;
}

/* =========================================
HOME PAGE HERO ONLY
========================================= */

body.home .entry-content,
body.home .post,
body.home article,
body.home .content-area,
body.home .site-content {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.home .site-content {
  padding-top: 0 !important;
}

.shg-hero-minimal {
  height: 100vh;
}

.shg-hero-minimal * {
  box-sizing: border-box;
}

/* =========================================
RESPONSIVE SHG SECTIONS
========================================= */

@media (max-width: 1100px) {
  .shg-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .shg-grid--2 {
    grid-template-columns: 1fr;
  }

  .shg-image-card,
  .shg-feature-image,
  .shg-image-card img,
  .shg-feature-image img {
    min-height: auto;
  }
}

@media (max-width: 991px) {
  .shg-hero-breakout {
    margin-top: -58px !important;
  }

  .shg-video-hero {
    --hero-min-height: 100svh;
    --video-scale: 1.12;
  }

  .shg-video-hero__container,
  .shg-container {
    width: min(1200px, calc(100% - 32px));
  }

  .shg-video-hero__inner {
    padding: 96px 0 64px;
  }

  .shg-video-hero h1 {
    max-width: 640px;
    font-size: clamp(2.4rem, 7vw, 4rem);
  }

  .shg-video-hero p {
    max-width: 560px;
    font-size: 1rem;
    line-height: 1.72;
  }
}

@media (max-width: 767px) {
  .shg-hero-breakout {
    margin-top: -44px !important;
  }

  .shg-video-hero {
    --hero-min-height: 100svh;
    --video-scale: 1.18;
    align-items: flex-end;
  }

  .shg-video-hero__overlay {
    background:
      linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.62) 100%),
      linear-gradient(90deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.20) 100%);
  }

  .shg-video-hero__container,
  .shg-container {
    width: calc(100% - 24px);
  }

  .shg-video-hero__inner {
    padding: 84px 0 34px;
  }

  .shg-video-hero__eyebrow,
  .shg-kicker {
    margin-bottom: 12px;
    font-size: .72rem;
    letter-spacing: .16em;
  }

  .shg-video-hero h1 {
    margin-bottom: 14px;
    max-width: 100%;
    font-size: clamp(2rem, 10vw, 2.95rem);
    line-height: 1.04;
  }

  .shg-video-hero p {
    max-width: 100%;
    font-size: .96rem;
    line-height: 1.65;
  }

  .shg-video-hero__actions,
  .shg-feature-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 26px;
  }

  .shg-video-btn {
    width: 100%;
    min-height: 50px;
    padding: 0 20px;
    font-size: .92rem;
  }

  .shg-section {
    padding: 72px 0;
  }

  .shg-section--form-intro {
    padding-top: 72px;
    padding-bottom: 22px;
  }

  .shg-services-grid {
    grid-template-columns: 1fr;
  }

  .shg-form-shortcode-wrap {
    padding: 0 12px;
    margin-bottom: 90px;
  }

  .shg-form-shortcode-wrap .forminator-ui {
    padding: 22px;
    border-radius: 22px;
  }

  .page-id-2879 .shg-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .shg-bottom-cta {
    padding: 44px 24px !important;
    border-radius: 22px !important;
  }
}

/* Smooth anchor scroll */
html {
  scroll-behavior: smooth;
}