:root {
  --amega-font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --amega-font-heading: var(--amega-font-body);
  --amega-color-primary: #1e73be;
  --amega-color-secondary: #0f172a;
  --amega-color-accent: #f59e0b;
  --amega-color-background: #ffffff;
  --amega-color-text: #111827;
  --amega-color-muted: #64748b;
  --amega-content-size: 1180px;
  --amega-wide-size: 1440px;
  --amega-section-padding-y: clamp(3rem, 7vw, 6rem);
  --amega-section-padding-x: clamp(1rem, 4vw, 3rem);
  --amega-block-gap: 1.5rem;
  --amega-radius: 24px;
  --amega-header-top-height: 36px;
  --amega-header-main-height: 84px;
  --amega-header-bottom-height: 44px;
  --amega-header-bg: #ffffff;
  --amega-header-text: #111827;
  --amega-header-top-bg: #0f172a;
  --amega-header-top-text: #ffffff;
  --amega-header-bottom-bg: #f8fafc;
  --amega-header-bottom-text: #111827;
  --amega-header-logo-width: 180px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--amega-font-body);
  color: var(--amega-color-text);
  background: var(--amega-color-background);
}

body .is-layout-constrained > .alignwide {
  max-width: var(--amega-wide-size);
}

body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: var(--amega-content-size);
}

a {
  transition: color 160ms ease, opacity 160ms ease, background-color 160ms ease;
}

.wp-site-blocks {
  min-height: 100vh;
}

.amega-header {
  position: relative;
  z-index: 20;
  color: var(--amega-header-text);
  background: var(--amega-header-bg);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
}

.amega-header a {
  color: inherit;
}

.amega-header-top {
  min-height: var(--amega-header-top-height);
  color: var(--amega-header-top-text);
  background: var(--amega-header-top-bg);
  font-size: 0.875rem;
}

.amega-header-main {
  min-height: var(--amega-header-main-height);
  background: var(--amega-header-bg);
}

.amega-header-bottom {
  min-height: var(--amega-header-bottom-height);
  color: var(--amega-header-bottom-text);
  background: var(--amega-header-bottom-bg);
  font-size: 0.92rem;
}

.amega-header .wp-block-site-logo img,
.amega-header .custom-logo {
  width: var(--amega-header-logo-width);
  height: auto;
  max-width: 100%;
}

.amega-header-main .wp-block-navigation__container {
  gap: clamp(1rem, 2vw, 2rem);
}

.amega-sticky-header .amega-header {
  position: sticky;
  top: 0;
}

.amega-section,
.amega-section-builder,
.wp-block-amega-section {
  padding-top: var(--amega-section-padding-y);
  padding-bottom: var(--amega-section-padding-y);
  padding-left: var(--amega-section-padding-x);
  padding-right: var(--amega-section-padding-x);
}

.amega-section.is-amega-fullscreen,
.amega-section-builder.is-amega-fullscreen,
.wp-block-amega-section.is-amega-fullscreen {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.amega-section__inner {
  width: 100%;
  max-width: var(--amega-content-size);
  margin-inline: auto;
}

.amega-section__inner.is-wide {
  max-width: var(--amega-wide-size);
}

.amega-section--center {
  text-align: center;
}

.amega-card,
.is-style-amega-card {
  border: 1px solid rgba(100, 116, 139, 0.18);
  border-radius: var(--amega-radius);
  background: var(--amega-card-bg, #ffffff);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.is-style-amega-glass {
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--amega-radius);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.12);
}

.is-style-amega-rounded-section {
  border-radius: var(--amega-radius);
  overflow: hidden;
}

.amega-footer {
  color: #ffffff;
  background: var(--amega-color-secondary, #0f172a);
}

.amega-footer a {
  color: inherit;
}

@media (max-width: 782px) {
  .amega-header-main .wp-block-group {
    gap: 1rem;
  }

  .amega-header-top,
  .amega-header-bottom {
    text-align: center;
  }
}
