/*
 * EMPRYN content pages
 * Premium dark treatment for standard WordPress pages such as
 * Terms, Privacy, Shipping, Returns, About and Contact.
 * Front page and WooCommerce screens are deliberately excluded.
 */

body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) {
  background: var(--empryn-navy) !important;
  color: #e7ecf2 !important;
}

body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) #main,
body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) .site-main,
body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) .ct-container,
body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) .ct-container-full,
body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) .content-area,
body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) .hero-section,
body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) .entry-header,
body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) article.page,
body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) .entry-card,
body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) .entry-content {
  background: var(--empryn-navy) !important;
  background-image: none !important;
  color: #e7ecf2 !important;
}

/* Remove light card borders/shadows inherited from Blocksy on long-form pages. */
body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) article.page,
body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) .entry-card {
  border-color: rgba(255,255,255,.08) !important;
  box-shadow: none !important;
}

/* EMPRYN gold headings, including the page title above the content. */
body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) .entry-content h1,
body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) .entry-content h2,
body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) .entry-content h3,
body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) .entry-content h4,
body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) .entry-content h5,
body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) .entry-content h6,
body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) .page-title,
body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) .entry-title,
body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) .hero-section h1,
body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) .hero-section .page-title {
  color: var(--empryn-gold) !important;
}

/* Body copy stays soft-white for comfortable reading. */
body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) .entry-content p,
body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) .entry-content li,
body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) .entry-content td,
body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) .entry-content th,
body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) .entry-content label,
body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) .entry-content span:not(.wp-block-button__link) {
  color: #e7ecf2 !important;
}

body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) .entry-content strong,
body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) .entry-content b {
  color: var(--empryn-offwhite) !important;
}

/* Links are white; EMPRYN gold is reserved for hover/focus. */
body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) .entry-content a:not(.wp-block-button__link) {
  color: #ffffff !important;
  text-decoration-color: rgba(255,255,255,.48) !important;
  text-underline-offset: 3px;
}

body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) .entry-content a:not(.wp-block-button__link):hover,
body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) .entry-content a:not(.wp-block-button__link):focus-visible {
  color: var(--empryn-gold) !important;
  text-decoration-color: var(--empryn-gold) !important;
}

body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) .entry-content hr {
  border-color: rgba(255,255,255,.14) !important;
}

body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) .entry-content blockquote {
  border-left-color: var(--empryn-gold) !important;
  background: rgba(255,255,255,.04) !important;
  color: #e7ecf2 !important;
}

/* Blocksy foreground/background variables can otherwise override page content colors. */
body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) #main,
body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) article.page,
body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) .hero-section {
  --theme-text-color: #e7ecf2;
  --theme-headings-color: var(--empryn-gold);
  --theme-link-initial-color: #ffffff;
  --theme-link-hover-color: var(--empryn-gold-hover);
}

@media (max-width: 689px) {
  body.empryn-storefront.page:not(.empryn-front-page):not(.woocommerce-page) .entry-content {
    font-size: 0.98rem;
    line-height: 1.75;
  }
}

/* v0.9.1 — definitive Contact page palette + Blocksy header fix.
 * Important: never paint generic .ct-container elements navy here. Blocksy uses
 * .ct-container inside the header; doing so creates the dark rectangle that
 * previously covered the center of the ivory header.
 */
body.empryn-contact-page {
  background: #0B2746 !important;
  color: #F8F5EE !important;
}

/* Contact content only — deliberately excludes generic .ct-container. */
body.empryn-contact-page #main,
body.empryn-contact-page .site-main,
body.empryn-contact-page .content-area,
body.empryn-contact-page article.page,
body.empryn-contact-page .entry-card,
body.empryn-contact-page .entry-content,
body.empryn-contact-page .hero-section,
body.empryn-contact-page .entry-header,
body.empryn-contact-page .elementor-location-single,
body.empryn-contact-page .elementor-location-archive {
  background: #0B2746 !important;
  background-image: none !important;
  color: #F8F5EE !important;
}

/* Blocksy header: ivory all the way across, including its inner containers. */
body.empryn-contact-page #header,
body.empryn-contact-page header.ct-header,
body.empryn-contact-page .ct-header,
body.empryn-contact-page [data-header],
body.empryn-contact-page #header [data-row],
body.empryn-contact-page .ct-header [data-row],
body.empryn-contact-page [data-header] [data-row],
body.empryn-contact-page #header .ct-container,
body.empryn-contact-page #header .ct-container-fluid,
body.empryn-contact-page .ct-header .ct-container,
body.empryn-contact-page .ct-header .ct-container-fluid,
body.empryn-contact-page [data-header] .ct-container,
body.empryn-contact-page [data-header] .ct-container-fluid {
  background: #F8F5EE !important;
  background-image: none !important;
  border-bottom-color: rgba(7, 28, 51, .10) !important;
  box-shadow: none !important;
}

/* Header navigation and icons on the ivory Contact header. */
body.empryn-contact-page #header .menu-item > a,
body.empryn-contact-page .ct-header .menu-item > a,
body.empryn-contact-page [data-header] .menu-item > a,
body.empryn-contact-page #header [data-id="search"],
body.empryn-contact-page #header [data-id="account"],
body.empryn-contact-page #header [data-id="cart"],
body.empryn-contact-page .ct-header [data-id="search"],
body.empryn-contact-page .ct-header [data-id="account"],
body.empryn-contact-page .ct-header [data-id="cart"],
body.empryn-contact-page #header svg,
body.empryn-contact-page .ct-header svg {
  color: #071C33 !important;
  fill: currentColor;
}
body.empryn-contact-page #header .menu-item.current-menu-item > a,
body.empryn-contact-page #header .menu-item > a:hover,
body.empryn-contact-page .ct-header .menu-item.current-menu-item > a,
body.empryn-contact-page .ct-header .menu-item > a:hover {
  color: #C9A15B !important;
}

/* Keep the Blocksy-selected navy+gold logo untouched and readable on ivory. */
body.empryn-contact-page #header [data-id="logo"],
body.empryn-contact-page #header .site-logo-container,
body.empryn-contact-page .ct-header [data-id="logo"],
body.empryn-contact-page .ct-header .site-logo-container {
  background: transparent !important;
}
body.empryn-contact-page #header img.custom-logo,
body.empryn-contact-page .ct-header img.custom-logo {
  filter: none !important;
  opacity: 1 !important;
}

/* Contact typography. */
body.empryn-contact-page .page-title,
body.empryn-contact-page .entry-title,
body.empryn-contact-page .entry-content h1,
body.empryn-contact-page .entry-content h2,
body.empryn-contact-page .entry-content h3 {
  color: #C9A15B !important;
}
body.empryn-contact-page .entry-content p,
body.empryn-contact-page .entry-content li,
body.empryn-contact-page .entry-content label {
  color: rgba(248,245,238,.92) !important;
}
body.empryn-contact-page .entry-content a:not(.button):not(.wp-element-button) {
  color: #E4C98A;
}

/* Contact form. */
body.empryn-contact-page .entry-content input[type="text"],
body.empryn-contact-page .entry-content input[type="email"],
body.empryn-contact-page .entry-content input[type="tel"],
body.empryn-contact-page .entry-content input[type="url"],
body.empryn-contact-page .entry-content input[type="number"],
body.empryn-contact-page .entry-content select,
body.empryn-contact-page .entry-content textarea,
body.empryn-contact-page .wpcf7-form-control:not(.wpcf7-submit) {
  width: 100%;
  border: 1px solid rgba(228,201,138,.46) !important;
  border-radius: 10px !important;
  background: rgba(248,245,238,.055) !important;
  color: #F8F5EE !important;
  box-shadow: none !important;
}
body.empryn-contact-page .entry-content input::placeholder,
body.empryn-contact-page .entry-content textarea::placeholder {
  color: rgba(248,245,238,.52) !important;
}
body.empryn-contact-page .entry-content input:focus,
body.empryn-contact-page .entry-content select:focus,
body.empryn-contact-page .entry-content textarea:focus {
  border-color: #E4C98A !important;
  outline: 2px solid rgba(228,201,138,.18) !important;
  outline-offset: 1px;
}
body.empryn-contact-page .entry-content input[type="submit"],
body.empryn-contact-page .entry-content button[type="submit"],
body.empryn-contact-page .wpcf7-submit {
  min-height: 50px;
  padding: 0 28px;
  border: 0 !important;
  border-radius: 10px !important;
  background: #C9A15B !important;
  color: #071C33 !important;
  font-weight: 800;
}
body.empryn-contact-page .entry-content input[type="submit"]:hover,
body.empryn-contact-page .entry-content button[type="submit"]:hover,
body.empryn-contact-page .wpcf7-submit:hover {
  background: #E4C98A !important;
  color: #071C33 !important;
}
body.empryn-contact-page .wpcf7-not-valid-tip { color: #F3B4B4 !important; }
body.empryn-contact-page .wpcf7-response-output {
  border-color: rgba(228,201,138,.55) !important;
  color: #F8F5EE !important;
}
