/* WordPress-only styles: markup that exists in the theme but not in the static HTML build.
   Kept out of site.css so re-copying site.css from the HTML build never wipes them. */

/* Floating cards hang past the 1248px wrap; never let them add a horizontal scrollbar. */
html, body { overflow-x: clip; }

/* Mobile accordion for the Home card sections (built by js/cards-responsive.js, shown below 1024px only) */
.fsec-list { display: none; }

/* ---------- FAQ section: same layout on Home and every page with FAQs (moved from home.css) ---------- */
.faq { margin-top: 138px; display: flex; justify-content: space-between; align-items: flex-start; }
.faq-left { width: 448px; }
.faq-left .h1 { line-height: 76px; }
.help { margin-top: 35px; width: 448px; height: 466px; border-radius: 28.2px; }
.help > img { transition: transform 1.2s var(--ease-out); }
.help:hover > img { transform: scale(1.05); }
.help .shade { background: linear-gradient(180deg, rgba(102,102,102,0) 0%, #000 100%); }
.help .copy { left: 28px; top: 265px; width: 380px; }
.help h3 { font-family: var(--serif); font-weight: 500; font-size: 28.2px; line-height: 38px; }
.help p { margin-top: 8px; width: 366px; font-size: 16.9px; line-height: 24px; color: rgba(255,255,255,.85); }
.help .btn { margin-top: 23px; height: 51px; padding: 0 33.8px; border-radius: 14px; background: #fff; color: var(--ink); font-size: 16.9px; }
.help .btn::before { background: var(--highlight); }
.faq-right { width: 707px; }
.tabs { position: relative; display: inline-flex; gap: 5px; padding: 5px; border-radius: 15px; background: var(--sand-2); }
.tabs button { position: relative; z-index: 1; height: 45px; padding: 0 20px; border-radius: 11.2px; font-size: 15px; line-height: 20px; font-weight: 600; color: #444; transition: color .3s; }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tab-pill { position: absolute; top: 5px; bottom: 5px; left: 0; border-radius: 11.2px; background: #fff; box-shadow: 0 4px 12px -6px rgb(0 0 0 / .2); transition: transform .45s var(--ease-out), width .45s var(--ease-out); }
.faq { overflow-anchor: none; } /* the click handler in functions.php keeps the clicked item in place instead */
/* All tab panels share one grid cell (hidden ones invisible but sized), so switching tabs never changes the
   FAQ's height. Otherwise, near the page bottom, a shorter panel shortens the page and the browser scrolls up. */
.faq-right { display: grid; align-content: start; }
.faq-right > .tabs { justify-self: start; }
.faq-right > .qa { grid-row: 2; grid-column: 1; }
.faq-right > .qa[hidden] { display: flex; visibility: hidden; }
.faq-right > .qa:first-child { margin-top: 0; } /* pages with one FAQ group have no tabs */

/* ---------- FAQ accordion (inside .faq) ---------- */
.qa { margin-top: 35px; display: flex; flex-direction: column; gap: 12px; }
.qa[hidden] { display: none; }
.qa details { border-radius: 17.5px; background: #fff; border: 1.25px solid var(--line); transition: background-color .35s, border-color .3s, color .35s; animation: fadeUp .6s var(--ease-out) backwards; }
.qa details:nth-child(2) { animation-delay: .06s; } .qa details:nth-child(3) { animation-delay: .12s; } .qa details:nth-child(4) { animation-delay: .18s; }
.qa details:not([open]):hover { border-color: var(--brand); }
.qa details[open] { background: var(--navy); border-color: var(--navy); color: #fff; }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 23px 26px 24px 27px; font-size: 16.2px; line-height: 22px; font-weight: 700; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary svg { flex: none; color: var(--brand); transition: transform .4s var(--spring), opacity .3s; }
.qa details[open] summary { padding-bottom: 0; padding-top: 19px; }
.qa details[open] summary svg { opacity: 0; transform: rotate(180deg); color: #fff; }
.qa details p { padding: 15px 26px 24px; font-weight: 500; line-height: 23px; font-size: 16.2px; }

/* ---------- Detail copy + FAQ under product / property-type pages ---------- */
.more { padding: 0 0 120px; }
.more-copy { width: 820px; }
.more-copy .h2 { font-size: 44px; line-height: 52px; }
.more-copy .entry-content { margin-top: 28px; }
.more .faq { margin-top: 120px; }
.more .faq:first-child { margin-top: 0; }

/* In-page anchors (#faq, #pricing, #steps) land below the sticky header */
[id] { scroll-margin-top: 96px; }

/* ---------- Rich text (post body, "more" copy, legal) ---------- */
.entry-content > * + * { margin-top: 18px; }
.entry-content p, .entry-content li { font-size: 18px; line-height: 30px; color: var(--text); }
.entry-content strong, .entry-content b { color: var(--ink); font-weight: 700; }
.entry-content h2 { margin-top: 48px; font-family: var(--serif); font-weight: 500; font-size: 32px; line-height: 42px; color: var(--ink); }
.entry-content h3 { margin-top: 32px; font-size: 22px; line-height: 30px; font-weight: 700; color: var(--ink); }
.entry-content ul, .entry-content ol { padding-left: 22px; display: grid; gap: 8px; }
.entry-content ul { list-style: disc; } .entry-content ol { list-style: decimal; }
.entry-content li::marker { color: var(--purple); }
.entry-content a { color: var(--purple-deep); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--brand-deep); }
.entry-content img { max-width: 100%; height: auto; border-radius: 20px; }
.entry-content blockquote { padding: 20px 24px; border-left: 4px solid var(--purple); background: #fff; border-radius: 0 16px 16px 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 24px; background: #fff; border-radius: 16px; overflow: hidden; }
.entry-content th, .entry-content td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.entry-content th { font-weight: 700; color: var(--ink); background: var(--lilac); }

/* ---------- Blog listing ---------- */
.blog-head { padding: 88px 0 56px; }
.blog-head .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.blog-head .product-lead { width: 720px; }
.blog-cats { display: flex; flex-wrap: wrap; gap: 10px; }
.blog-cats a { height: 42px; padding: 0 18px; border-radius: 40px; background: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 600; color: var(--ink); transition: background-color .2s, color .2s; }
.blog-cats a:hover, .blog-cats a[aria-current] { background: var(--purple); color: #fff; }
.blog-list { padding: 0 0 120px; }
.blog-list.related .h2 { margin-bottom: 40px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.post-card { border-radius: 28px; background: #fff; overflow: hidden; transition: transform .4s var(--ease-out), box-shadow .4s; }
.post-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -32px rgb(40 20 80 / .45); }
.post-card-link { display: flex; flex-direction: column; height: 100%; }
.post-card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-card-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card-cat { font-size: 13px; line-height: 20px; font-weight: 700; color: var(--purple-deep); text-transform: uppercase; letter-spacing: .04em; }
.post-card-title { font-family: var(--serif); font-weight: 500; font-size: 25px; line-height: 33px; color: var(--ink); }
.post-card-text { font-size: 15px; line-height: 24px; color: var(--text); }
.post-card-meta { margin-top: auto; padding-top: 8px; font-size: 13.5px; line-height: 22px; color: var(--muted); }
.pagination { margin-top: 56px; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 16px; border-radius: 22px; background: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 600; color: var(--ink); }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--purple); color: #fff; }

/* ---------- Single post ---------- */
.post-head { padding: 72px 0 40px; }
.post-head .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.post-head .rank-math-breadcrumb { font-size: 14px; color: var(--muted); }
.post-head .rank-math-breadcrumb a:hover { color: var(--purple-deep); }
.post-title { width: 960px; }
.post-head .product-lead { width: 820px; }
.post-meta { font-size: 15px; line-height: 24px; color: var(--muted); }
.post-hero { height: 560px; margin-bottom: 64px; border-radius: 32px; overflow: hidden; }
.post-hero img { width: 100%; height: 100%; object-fit: cover; }
.post-body { display: flex; justify-content: space-between; align-items: flex-start; gap: 80px; padding-bottom: 120px; }
.post-content { width: 760px; flex: none; }
.post-aside { width: 360px; flex: none; position: sticky; top: 110px; }
.post-cta { padding: 32px; border-radius: 28px; background: #fff; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.post-cta-title { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 34px; color: var(--ink); }

/* ---------- Header dropdown (menu item with sub-items, e.g. Product) ---------- */
.menu-drop { position: relative; display: flex; align-items: center; gap: 7px; }
.menu-drop::after { content: ''; width: 6px; height: 6px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--ease-out), margin .3s; }
.menu-drop:hover::after, .menu-drop:focus-within::after { transform: rotate(225deg); margin-top: 3px; }
.menu-sub { position: absolute; left: -16px; top: calc(100% + 20px); z-index: 60; min-width: 248px; padding: 10px; border-radius: 18px; background: #fff; box-shadow: 0 24px 48px -24px rgb(40 20 80 / .35), 0 0 0 1px var(--line); display: flex; flex-direction: column; visibility: hidden; opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .3s var(--ease-out), visibility 0s .3s; }
.menu-sub::before { content: ''; position: absolute; left: 0; right: 0; top: -22px; height: 22px; } /* hover bridge from the label */
.menu-drop:hover .menu-sub, .menu-drop:focus-within .menu-sub { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.header .menu .menu-sub a { display: block; padding: 11px 14px; border-radius: 11px; font-size: 15px; line-height: 22px; color: var(--ink); white-space: nowrap; transition: background-color .2s, color .2s; }
.header .menu .menu-sub a::after { display: none; }
.header .menu .menu-sub a:hover, .header .menu .menu-sub a[aria-current] { background: var(--lilac); color: var(--purple-deep); }
