/* ========================================
   Service / Flatsome page enhance
   Palette LOCKED: gold on dark burgundy
   ======================================== */

:root {
  --sw-gold: #ffd56f;
  --sw-gold-soft: #ffe5b7;
  --sw-border: rgba(255, 213, 111, 0.35);
  --sw-border-soft: rgba(255, 213, 111, 0.22);
  --sw-max: 1080px;
}

body.sun-service-page {
  background: radial-gradient(circle at top, rgba(255, 212, 105, 0.12), rgba(24, 5, 5, 0.98) 45%), #140404 !important;
}

/* Top nav injected */
.sw-topbar {
  position: sticky;
  top: 0;
  z-index: 9999;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(18, 3, 3, 0.97) 0%, rgba(12, 2, 2, 0.94) 100%);
  border-bottom: 1px solid var(--sw-border-soft);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.sw-topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sw-topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--sw-gold);
  font-weight: 700;
  font-size: 16px;
}

.sw-topbar-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.sw-topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.sw-topbar-links a {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--sw-gold-soft) !important;
  text-decoration: none !important;
  font-size: 12.5px;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.sw-topbar-links a:hover {
  border-color: var(--sw-border);
  background: rgba(255, 213, 111, 0.08);
  color: #fff2cb !important;
}

.sw-topbar-links a.is-cta {
  border-color: rgba(255, 213, 111, 0.45);
  background: rgba(255, 213, 111, 0.14);
  color: var(--sw-gold) !important;
}

@media (max-width: 700px) {
  .sw-topbar-brand span {
    display: none;
  }
  .sw-topbar-links a:nth-child(n + 4):not(.is-cta) {
    display: none;
  }
}

/* Soften Flatsome pink content bg */
body.sun-service-page #wrapper,
body.sun-service-page #main,
body.sun-service-page #main.dark {
  background-color: transparent !important;
}

body.sun-service-page .header-bg-color,
body.sun-service-page .header-bottom,
body.sun-service-page .header-wrapper {
  background-color: #210000 !important;
}

/* TOC */
#ez-toc-container,
.ez-toc-widget-container,
div.ez-toc-widget-container,
body .ez-toc-container {
  background: linear-gradient(180deg, rgba(42, 9, 9, 0.94) 0%, rgba(22, 4, 4, 0.96) 100%) !important;
  border: 1px solid rgba(255, 212, 105, 0.35) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3) !important;
  color: #ffe6b2 !important;
}

#ez-toc-container .ez-toc-title,
.ez-toc-widget-container .ez-toc-title,
body .ez-toc-container .ez-toc-title {
  color: #ffd56f !important;
}

#ez-toc-container a,
.ez-toc-widget-container a,
body .ez-toc-container a,
#ez-toc-container ul li,
.ez-toc-widget-container ul li {
  color: #ffd56f !important;
}

#ez-toc-container a:hover,
.ez-toc-widget-container a:hover,
body .ez-toc-container a:hover {
  color: #fff2cb !important;
}

#ez-toc-container nav,
.ez-toc-widget-container nav,
#ez-toc-container .ez-toc-list,
.ez-toc-widget-container .ez-toc-list {
  background: transparent !important;
}

body.sun-service-page .sw-service-hero {
  max-width: var(--sw-max);
  margin: 18px auto 14px;
  padding: 20px 18px;
  border: 1px solid rgba(255, 212, 105, 0.28);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(56, 9, 9, 0.75) 0%, rgba(25, 4, 4, 0.92) 100%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

body.sun-service-page .sw-service-hero h1 {
  margin: 0 0 8px;
  color: #ffd56f;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.2;
}

body.sun-service-page .sw-service-hero p {
  margin: 0;
  color: rgba(255, 229, 183, 0.95);
  font-size: 15px;
  line-height: 1.6;
}

body.sun-service-page .sw-service-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

body.sun-service-page .sw-service-badges span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 212, 105, 0.32);
  color: #ffe8b4;
  background: rgba(255, 212, 105, 0.08);
  font-size: 12px;
}

body.sun-service-page .col-inner1,
body.sun-service-page .entry-content,
body.sun-service-page .page-inner,
body.sun-service-page article.type-post,
body.sun-service-page .blog-single .entry {
  border-radius: 14px !important;
  border: 1px solid rgba(255, 212, 105, 0.2) !important;
  background: rgba(20, 4, 4, 0.55) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22) !important;
}

body.sun-service-page h1,
body.sun-service-page h2,
body.sun-service-page h3,
body.sun-service-page .entry-title {
  color: #ffd56f !important;
}

body.sun-service-page a {
  color: #ffdf79 !important;
}

body.sun-service-page .sw-service-actions {
  max-width: var(--sw-max);
  margin: 16px auto 26px;
  padding: 0 12px;
}

body.sun-service-page .sw-service-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.sun-service-page .sw-service-actions a {
  display: block;
  text-decoration: none !important;
  border-radius: 12px;
  border: 1px solid rgba(255, 212, 105, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: #ffe6b2 !important;
  padding: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

body.sun-service-page .sw-service-actions a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 212, 105, 0.58);
  background: rgba(255, 212, 105, 0.1);
}

body.sun-service-page .sw-service-actions strong {
  display: block;
  color: #ffd56f;
  margin-bottom: 4px;
  font-size: 16px;
}

/* Related articles cards */
.sw-related {
  max-width: var(--sw-max);
  margin: 8px auto 32px;
  padding: 0 12px;
}

.sw-related h2 {
  margin: 0 0 12px;
  color: #ffd56f !important;
  font-size: clamp(20px, 2.2vw, 26px);
  text-align: center;
}

.sw-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.sw-related-grid a {
  display: block;
  text-decoration: none !important;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 212, 105, 0.28);
  background: linear-gradient(180deg, rgba(36, 9, 8, 0.92), rgba(20, 5, 4, 0.96));
  color: #ffe6b2 !important;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.sw-related-grid a:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 212, 105, 0.55);
}

.sw-related-grid strong {
  display: block;
  color: #ffd56f;
  margin-bottom: 4px;
  font-size: 15px;
}

.sw-related-grid span {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 229, 183, 0.9);
}

@media (max-width: 920px) {
  body.sun-service-page .sw-service-actions-grid,
  .sw-related-grid {
    grid-template-columns: 1fr;
  }
}

body.sun-service-page img {
  border-radius: 10px;
}

body.sun-service-page .absolute-footer,
body.sun-service-page .footer-wrapper {
  background: #1a0505 !important;
  border-top: 1px solid var(--sw-border-soft);
}

/* ============================================================
   PREMIUM POLISH v3 — match the home page's luxury framing
   ============================================================ */

body.sun-service-page .sw-service-hero {
  border: 1px solid transparent;
  background:
    linear-gradient(165deg, rgba(56, 12, 9, 0.85) 0%, rgba(22, 4, 4, 0.95) 100%) padding-box,
    linear-gradient(180deg, rgba(255, 213, 111, 0.6) 0%, rgba(255, 213, 111, 0.14) 55%, rgba(255, 213, 111, 0.22) 100%) border-box;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 236, 190, 0.12);
}

body.sun-service-page .sw-service-hero h1 {
  background: linear-gradient(180deg, #fff3cf 0%, #ffd56f 55%, #e8a93f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sw-topbar {
  border-bottom: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(18, 3, 3, 0.97) 0%, rgba(12, 2, 2, 0.94) 100%) padding-box,
    linear-gradient(90deg, rgba(255, 213, 111, 0.05), rgba(255, 213, 111, 0.45), rgba(255, 213, 111, 0.05)) border-box;
}

.sw-topbar-links a.is-cta {
  box-shadow: 0 4px 14px rgba(255, 176, 0, 0.15);
}

.sw-related h2 {
  background: linear-gradient(180deg, #fff3cf 0%, #ffd56f 55%, #e8a93f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sw-related-grid a:hover,
body.sun-service-page .sw-service-actions a:hover {
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 213, 111, 0.35),
    0 6px 24px rgba(255, 190, 80, 0.12);
}

/* Final refinement: micro-UX details */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body.sun-service-page ::selection {
  background: rgba(255, 213, 111, 0.85);
  color: #1c0402;
}

body.sun-service-page [id] {
  scroll-margin-top: 70px;
}

body.sun-service-page a:focus-visible,
body.sun-service-page button:focus-visible {
  outline: 2px solid rgba(255, 213, 111, 0.75);
  outline-offset: 2px;
}

body.sun-service-page::-webkit-scrollbar {
  width: 10px;
}

body.sun-service-page::-webkit-scrollbar-thumb {
  background: rgba(255, 213, 111, 0.28);
  border-radius: 8px;
}

body.sun-service-page::-webkit-scrollbar-track {
  background: #120202;
}
