/* ---------------------------------------------------------------------
   NestWell360 overrides on top of the Sunnyaid template (main.css).

   SITE CONFIG: the one place to edit the app address and prices.
   Every page reads these values with a small script and fills in every
   [data-app-href] link and [data-price] amount. The HTML also contains
   the same values as fallback text (marked <!-- PRICE: placeholder -->)
   so pages still read correctly if scripts are off.
   - Prices are placeholders until the owner confirms them.
   --------------------------------------------------------------------- */
:root {
  --app-base: "https://app.nestwell360.com/";
  --price-free: "0";            /* PRICE: placeholder (USD) */
  --price-plus-month: "12";     /* PRICE: placeholder (USD per month) */
  --price-plus-year: "120";     /* PRICE: placeholder (USD per year) */
  --price-advisor: "79";        /* PRICE: placeholder (USD per 45-minute session) */
  --trial-days: "14";
}

/* Brigade palette in place of the template's teal and yellow */
:root {
  --color-primary: #0B1220;
  --color-heading: #0B1220;
  --color-default: #5A6373;
  --color-default-two: #5A6373;
  --color-yellow: #E9A132;
  --color-body: #F5F6F8;
  --nw-amber-text: #96660F;
  --nw-line: #DDE1E7;
}

body { color: var(--color-default); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 3px;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--color-primary); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* Logo */
.nw-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--color-primary); }
.nw-logo:hover { color: var(--color-primary); }
.nw-logo svg { width: 40px; height: 40px; flex: none; }
.nw-logo .m-bg { fill: var(--color-primary); }
.nw-logo .m-peak { fill: none; stroke: #fff; }
.nw-logo .m-dot { fill: var(--color-yellow); }
.nw-logo span { font-family: var(--font-heading); font-weight: 700; font-size: 24px; letter-spacing: -0.01em; }
.nw-logo--light { color: #fff; }
.nw-logo--light:hover { color: #fff; }
.nw-logo--light .m-bg { fill: #1B2436; }

/* Header: "Start free" button in the template's contact slot */
.header-contact a { gap: 10px; }
.header-contact a svg path { fill: #fff; }
.header-area .main-menu ul li a { font-weight: 500; }
.xb-header-menu .xb-menu-primary li a { font-weight: 500; }
.nw-mobile-cta { padding: 24px 30px 0; }
.nw-mobile-cta .thm-btn { width: 100%; justify-content: center; }

/* Hand-drawn amber ring around a highlighted word */
.nw-ring { position: relative; white-space: nowrap; z-index: 0; }
.nw-ring::after {
  content: ""; position: absolute; z-index: -1;
  left: -12px; right: -12px; top: 50%; height: 1.25em; transform: translateY(-46%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'%3E%3Cpath d='M30 9C70 0 160 2 186 16c20 11 8 30-38 37-50 8-118 4-138-12C-6 28 12 12 52 6' fill='none' stroke='%23E9A132' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.title-white .nw-ring::after, .nw-dark .nw-ring::after { opacity: .9; }

/* Hero */
.hero-right_img img { border-radius: 0 0 0 40px; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.hero-right_img img.nw-hero-wide { aspect-ratio: 1300 / 738; } /* landscape photo: keep both faces in frame */
.nw-hero-note { display: flex; align-items: center; gap: 10px; margin-top: 26px; color: var(--color-primary); font-weight: 500; }
.nw-hero-note svg { color: var(--nw-amber-text); flex: none; }
.xb-fanfact .xb-item--fan_inner { gap: 14px; }
.nw-stat-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: #fff; color: var(--color-primary); font-size: 22px; box-shadow: 0 4px 13px 0 #e9e9e4;
}
.nw-source { display: block; font-size: 13px; color: var(--color-default); margin-top: 14px; }
@media (max-width: 991px) {
  .hero-right_img { margin-top: 40px; }
  .hero-right_img img { border-radius: 30px; }
}

/* Dark band: why families trust us */
.nw-trust-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.nw-trust-list li {
  display: flex; gap: 16px; align-items: flex-start;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 20px 22px; color: #D3D8E2;
}
.nw-trust-list strong { display: block; color: #fff; font-size: 18px; margin-bottom: 4px; font-weight: 600; }
.nw-trust-list .nw-yes {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  display: grid; place-items: center; background: var(--color-yellow); color: var(--color-primary); font-size: 15px;
}
.about-content_wrap .about-right { padding-right: 70px; }
@media (max-width: 991px) { .about-content_wrap .about-right { padding-right: 0; margin-top: 30px; } }
.about-content_wrap { padding-bottom: 80px; }
.nw-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.nw-chip {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 40px; padding: 8px 16px;
  background: rgba(233,161,50,.14); color: #F3C77B; font-size: 15px; font-weight: 500;
}

/* Problem cards */
.nw-pain {
  height: 100%; background: #fff; border: 1px solid var(--nw-line); border-radius: 20px; padding: 32px 28px;
}
.nw-pain h3 { font-size: 20px; line-height: 1.35; margin-bottom: 10px; color: var(--color-heading); }
.nw-pain p { margin: 0; }

/* "Who it's for" cards reuse .xb-services with an icon instead of a photo */
.xb-services .nw-card-icon {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  background: var(--color-body); color: var(--color-primary); font-size: 26px; margin: 26px 0 22px;
  transition: .3s;
}
.xb-services:hover .nw-card-icon { background: var(--color-yellow); }
.xb-services .xb-item--content { min-height: 78px; }
.xb-services .xb-item--button .srv-btn { gap: 10px; }

/* Steps: keep the template's photo frames the same size */
.xb-work .xb-item--img img { width: 253px; height: 282px; object-fit: cover; }
.xb-work .xb-item--img.nw-wide img { width: 260px; height: 256px; }
.nw-step-chip {
  display: inline-block; margin-top: 12px; border-radius: 40px; padding: 4px 12px; font-size: 13px; font-weight: 600;
  background: #fff; color: var(--color-primary); border: 1px solid var(--nw-line);
}
.nw-step-chip--plus { background: var(--color-yellow); border-color: var(--color-yellow); }

/* Free vs Plus cards (template .xb-cta) */
.xb-cta .nw-price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 4px; color: #fff; }
.xb-cta .nw-price .amt { font-family: var(--font-heading); font-size: 52px; line-height: 1; font-weight: 700; }
.xb-cta .nw-price .per { color: #C9CFDA; }
.xb-cta .nw-price-note { color: #C9CFDA; font-size: 15px; }
.xb-cta .cta-item { color: #E4E7EE; }
.xb-cta.nw-plus { box-shadow: inset 0 0 0 2px var(--color-yellow); }
.nw-badge {
  display: inline-block; background: var(--color-yellow); color: var(--color-primary);
  font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  border-radius: 40px; padding: 6px 14px; margin-bottom: 16px;
}
.nw-note { color: #AEB5C2; font-size: 14px; line-height: 1.5; margin-top: 20px; }
.nw-plans-more { text-align: center; margin-top: 30px; }
.nw-plans-more a { color: var(--color-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* Feature strip icons */
.xb-feature .nw-feature-icon {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--color-body); color: var(--color-primary); font-size: 18px;
}

/* Comparison: NestWell360 vs referral services */
.nw-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 767px) { .nw-compare { grid-template-columns: 1fr; } }
.nw-compare__col { background: #fff; border: 1px solid var(--nw-line); border-radius: 20px; padding: 34px 30px; }
.nw-compare__col--us { border: 2px solid var(--color-yellow); }
.nw-compare__col h3 { font-size: 24px; margin-bottom: 18px; }
.nw-compare__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.nw-compare__col li { display: flex; gap: 14px; }
.nw-compare__col li i { margin-top: 4px; font-size: 18px; width: 20px; text-align: center; }
.nw-compare__col li .fa-check-circle { color: var(--nw-amber-text); }
.nw-compare__col li .fa-minus-circle { color: #8F959F; }
.nw-compare__col strong { display: block; color: var(--color-heading); font-weight: 600; }

/* Story box (template award box layout) */
.nw-story {
  background: #fff; border-radius: 20px; box-shadow: 0 30px 60px 0 rgba(11,18,32,.08);
  padding: 70px; display: grid; grid-template-columns: 5fr 7fr; gap: 50px; align-items: start;
}
@media (max-width: 991px) { .nw-story { grid-template-columns: 1fr; padding: 40px 30px; gap: 20px; } }
.nw-story blockquote {
  margin: 24px 0 0; padding-left: 20px; border-left: 4px solid var(--color-yellow);
  font-family: var(--font-heading); font-size: 22px; line-height: 1.4; color: var(--color-heading);
}
.nw-story p { font-size: 17px; line-height: 1.7; }

/* Guides (template news cards with an icon panel instead of a photo) */
.xb-news .nw-guide-art {
  height: 200px; border-radius: 20px; display: grid; place-items: center; font-size: 56px;
  background: var(--color-primary) url("../img/shape/cta-bg-shape01.png") center / cover no-repeat;
  color: var(--color-yellow); transition: .3s;
}
.xb-news:hover .nw-guide-art { transform: translateY(-4px); }
.xb-news .nw-guide-tag {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--nw-amber-text);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px;
}
.xb-news .xb-item--content { margin: -16px 0 18px; }
.xb-news .news-btn { gap: 10px; }

/* FAQ uses native <details> styled like the template accordion */
.nw-faq { max-width: 880px; margin: 0 auto; display: grid; gap: 14px; }
.nw-faq details { background: #fff; border: 1px solid var(--nw-line); border-radius: 14px; }
.nw-faq summary {
  list-style: none; cursor: pointer; padding: 22px 60px 22px 26px; position: relative;
  font-size: 18px; font-weight: 600; color: var(--color-heading);
}
.nw-faq summary::-webkit-details-marker { display: none; }
.nw-faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--color-body);
  display: grid; place-items: center; font-size: 20px; line-height: 1; color: var(--color-primary);
}
.nw-faq details[open] summary::after { content: "\2212"; background: var(--color-yellow); }
.nw-faq .answer { padding: 0 26px 22px; }
.nw-faq .answer p:last-child { margin-bottom: 0; }
.nw-faq .disclaimer { font-size: 14px; color: #6B7280; }

/* Bottom CTA: photo fills the right half of the template box */
.cta-wrap { overflow: hidden; }
.cta-wrap .xb-item--img { top: 0; width: 46%; }
.cta-wrap .xb-item--img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.cta-wrap .xb-item--title, .cta-wrap .xb-item--sub-title, .cta-wrap .cta-button { max-width: 50%; }
@media (max-width: 767px) {
  .cta-wrap .xb-item--title, .cta-wrap .xb-item--sub-title, .cta-wrap .cta-button { max-width: none; }
}
.cta-wrap .cta-button { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-wrap .xb-item--title { text-transform: none; }

/* Footer */
.footer .footer-widget .xb-item--holder a { color: inherit; }
.footer .nw-footer-cta .thm-btn { margin-top: 26px; }
.footer .nw-footer-about { color: #C9CFDA; max-width: 340px; margin-top: 18px; }

/* Legal placeholders */
.nw-legal { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 767px) { .nw-legal { grid-template-columns: 1fr; } }
.nw-legal > div { background: #fff; border: 1px dashed #C7CDD6; border-radius: 16px; padding: 28px; }
.nw-legal h2 { font-size: 24px; margin-bottom: 12px; }
.nw-flag {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--nw-amber-text);
  background: #FFF4E0; border-radius: 6px; padding: 4px 10px; margin-bottom: 12px;
}

/* Pricing page */
.nw-page-head { padding: 150px 0 60px; text-align: center; }
.nw-page-head .content { max-width: 640px; margin: 0 auto; }
.nw-compare-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 20px; overflow: hidden; border: 1px solid var(--nw-line); }
.nw-compare-table th, .nw-compare-table td { padding: 16px 20px; border-bottom: 1px solid var(--nw-line); text-align: left; vertical-align: top; }
.nw-compare-table thead th { background: var(--color-primary); color: #fff; font-weight: 600; }
.nw-compare-table thead th:not(:first-child), .nw-compare-table td:not(:first-child) { text-align: center; width: 22%; }
.nw-compare-table tbody th { font-weight: 500; color: var(--color-heading); }
.nw-compare-table tr.nw-group th { background: var(--color-body); font-family: var(--font-heading); font-size: 18px; }
.nw-compare-table tr:last-child th, .nw-compare-table tr:last-child td { border-bottom: 0; }
.nw-compare-table .fa-check { color: var(--nw-amber-text); }
.nw-compare-table .nw-no { color: #9AA1AD; }
.nw-table-wrap { overflow-x: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .wow { visibility: visible !important; }
}

/* Fixes after first render */
.body_wrap { overflow-x: clip; }
.title, h1, h2, h3, .xb-item--title, .xb-item--text, .sub-title { text-transform: none !important; }
.xb-cta .cta-item svg { flex: none; }
.xb-cta .list-title { display: block; margin-top: 18px; }
.nw-story blockquote { background: none; padding: 0 0 0 20px; }
.nw-story p + p { margin-top: 14px; }
.cta-wrap { background-image: none !important; background-color: var(--color-primary); }
.footer { background-image: none !important; background-color: #070C16; }
.footer .footer-bottom p, .footer .footer-widget .xb-item--list a { color: #B9C0CC; }
.footer .footer-widget .xb-item--list a:hover { color: var(--color-yellow); }
.footer .footer-widget .xb-item--title { color: #fff; }
.thm-btn, .srv-btn, .news-btn, .header-contact a { text-transform: none !important; }
@media (max-width: 991px) { .hero-right_img { margin-bottom: 40px; } }

/* Pricing page plans */
.nw-page-head { min-height: 0 !important; padding: 170px 0 50px; }
.nw-page-head .nw-hero-note { justify-content: center; }
.nw-toggle-row { display: flex; justify-content: center; margin-bottom: 40px; }
.nw-billing-toggle { display: inline-flex; background: #fff; border: 1px solid var(--nw-line); border-radius: 60px; padding: 5px; }
.nw-billing-toggle button {
  border: 0; background: none; border-radius: 60px; padding: 12px 24px; font-weight: 600; color: var(--color-primary);
}
.nw-billing-toggle button[aria-pressed="true"] { background: var(--color-primary); color: #fff; }
.nw-billing-toggle .save { color: var(--nw-amber-text); font-weight: 500; }
.nw-billing-toggle button[aria-pressed="true"] .save { color: var(--color-yellow); }
.nw-plan { display: flex; flex-direction: column; }
.xb-services.nw-plan { padding: 40px 34px; }
.xb-services.nw-plan .xb-item--content { min-height: 0; }
.nw-plan-price { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 4px; color: var(--color-heading); }
.nw-plan-price .amt { font-family: var(--font-heading); font-size: 52px; line-height: 1; font-weight: 700; }
.nw-plan-price .per { color: var(--color-default); }
.nw-plan-note { font-size: 14px; color: var(--color-default); }
.nw-plan-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.nw-plan-list .cta-item { display: flex; gap: 10px; align-items: baseline; color: var(--color-heading); }
.nw-plan-list .cta-item svg { flex: none; }
.thm-btn.nw-btn-outline { background: #fff; box-shadow: inset 0 0 0 2px var(--color-primary); display: inline-flex; }
.thm-btn.nw-btn-outline:hover { background: var(--color-primary); color: #fff; }
.xb-cta.nw-plan .thm-btn { display: inline-flex; }
.nw-compare-table small { color: var(--color-default); font-size: 14px; }
.text-center .content, .section-title.text-center .content { margin-left: auto; margin-right: auto; max-width: 620px; }
.header-contact a svg { margin-left: 4px; }
.xb-cta.nw-plan .xb-cta-list { margin-top: 26px; }

/* Photos on the "Who it's for" and guide cards */
.xb-services .nw-card-photo { margin: 22px 0 20px; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 2; }
.xb-services .nw-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.xb-services:hover .nw-card-photo img { transform: scale(1.04); }
.xb-services .nw-card-icon--panel {
  width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 16px; margin: 22px 0 20px; font-size: 52px;
  background: var(--color-primary) url("../img/shape/cta-bg-shape01.png") center / cover no-repeat; color: var(--color-yellow);
}
.xb-services:hover .nw-card-icon--panel { background-color: var(--color-primary); color: #fff; }
.xb-news .nw-guide-photo { background: none; padding: 0; overflow: hidden; }
.xb-news .nw-guide-photo img { width: 100%; height: 100%; object-fit: cover; }
.nw-story-photo { margin: 28px 0 0; }
.nw-story-photo img { width: 100%; height: auto; border-radius: 16px; display: block; }
