
/* Positively Sustainable — static staging polish (earthy / green-living) */
:root {
  --ps-ink: #3f3222;
  --ps-muted: #6b5e4e;
  --ps-accent: #c97812;
  --ps-accent-2: #f7941e;
  --ps-leaf: #4a7c59;
  --ps-soft: #f7f1e6;
  --ps-line: #e5d9c6;
  --ps-white: #ffffff;
  --ps-radius: 12px;
  --ps-max: 1140px;
  --ps-shadow: 0 8px 24px rgba(63, 50, 34, 0.08);
}

html { scroll-behavior: smooth; }
body {
  color: var(--ps-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Soften WP chrome */
#wpadminbar { display: none !important; }
html { margin-top: 0 !important; }

/* Staging note already in HTML; tighten spacing */
.ps-static-note {
  max-width: var(--ps-max);
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 0.75rem !important;
}

/* Header / logo alignment */
.site-header,
.ast-primary-header-bar,
.main-header-bar-wrap {
  background: rgba(255,255,255,0.97) !important;
  border-bottom: 1px solid var(--ps-line);
  box-shadow: 0 1px 0 rgba(63,50,34,0.04);
}
.main-header-bar { padding: 0.4rem 0 !important; }
.ast-site-identity,
.site-branding {
  display: flex !important;
  align-items: center !important;
  gap: 0.65rem;
}
.custom-logo-link img,
.site-logo-img img,
.custom-logo {
  max-height: 56px !important;
  width: auto !important;
  height: auto !important;
  display: block;
}
.site-title a {
  color: var(--ps-ink) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

/* Nav polish */
.main-header-menu > .menu-item > .menu-link,
.ast-nav-menu .menu-link {
  font-weight: 600 !important;
  border-radius: 999px !important;
  padding: 0.45rem 0.9rem !important;
  transition: background .15s ease, color .15s ease;
}
.main-header-menu > .menu-item > .menu-link:hover,
.main-header-menu > .current-menu-item > .menu-link {
  background: var(--ps-soft) !important;
  color: var(--ps-accent) !important;
}

/* Content width / spacing */
.ast-container,
.site-content,
.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: var(--ps-max);
}
.site-content { padding-top: 0.5rem; }

/* Images: no broken-image collapse holes; keep aspect */
img {
  max-width: 100%;
  height: auto;
}
img[src=""],
img:not([src]) {
  visibility: hidden;
}
/* After lazy-load promote, ensure logos/cards show */
.attachment-full,
.attachment-thumbnail,
.attachment-medium,
.elementor-widget-image img,
.elementor-post__thumbnail img {
  display: block;
  border-radius: 8px;
}

/* Elementor post cards */
.elementor-posts-container,
.elementor-grid {
  gap: 1.25rem !important;
}
.elementor-post {
  background: var(--ps-white);
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius);
  overflow: hidden;
  box-shadow: var(--ps-shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.elementor-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(63,50,34,0.12);
}
.elementor-post__thumbnail {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ps-soft);
}
.elementor-post__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 !important;
}
.elementor-post__text {
  padding: 0.85rem 1rem 1.1rem !important;
}
.elementor-post__title {
  font-size: 1.05rem !important;
  line-height: 1.35 !important;
  color: var(--ps-ink) !important;
}
.elementor-post__title a {
  color: inherit !important;
  text-decoration: none !important;
}
.elementor-post__title a:hover {
  color: var(--ps-accent) !important;
}

/* Article body images */
.entry-content img,
.elementor-widget-image img {
  border-radius: 10px;
}

/* Buttons keep brand orange */
.ast-button,
.wp-block-button__link,
.elementor-button {
  border-radius: 999px !important;
}

/* Disabled forms */
form.ps-disabled,
.ps-disabled {
  opacity: 0.85;
  pointer-events: none;
}
form.ps-disabled::after {
  content: "";
  display: block;
  font-size: 0.8rem;
  color: var(--ps-muted);
  margin-top: 0.5rem;
}

/* Footer breathe */
.site-footer {
  border-top: 1px solid var(--ps-line);
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .custom-logo-link img,
  .custom-logo { max-height: 44px !important; }
  .elementor-posts-container { gap: 1rem !important; }
}

/* --- image follow-up: consistent 16:9 thumbs + generated featured image --- */
.elementor-post__thumbnail { aspect-ratio: 16 / 9; }
.elementor-posts .elementor-post__thumbnail img { object-fit: cover; }
.ps-generated-featured { margin: 0 0 1.5rem; }
.ps-generated-featured img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 10px; box-shadow: var(--ps-shadow);
}
