/* =========================================================
   ATH Astra Child — custom.css
   Full site stylesheet: global, header, blog archive,
   blog single, 404, footer.
   ========================================================= */

/* ---------------------------------------------------------
   GLOBAL
   --------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #2C2C2C;
    background-color: #FFFFFF;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #000000;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    text-transform: none;
}

/* H3 is lighter weight in the brand system */
h3 {
    font-weight: 400;
}

p {
    line-height: 1.75;
}

a {
    color: #9b8b68;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: #000000;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Buttons — Astra + block editor */
.ast-btn,
.wp-block-button__link,
button[type="submit"],
input[type="submit"],
.button,
.ath-btn {
    display: inline-block;
    background: #9b8b68;
    color: #000000;
    border: 2px solid #9b8b68;
    border-radius: 3px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.75rem 1.75rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
}

.ast-btn:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.button:hover,
.ath-btn:hover {
    background: #000000;
    color: #FFFFFF;
    border-color: #000000;
    text-decoration: none;
}

/* Outline variant */
.ast-btn-outline,
.ath-btn-outline {
    background: transparent;
    color: #9b8b68;
    border: 2px solid #9b8b68;
}

.ast-btn-outline:hover,
.ath-btn-outline:hover {
    background: #9b8b68;
    color: #000000;
}

/* Block editor button (white on dark sections) */
.has-ast-global-color-0-background-color .ast-btn,
.has-ast-global-color-0-background-color .wp-block-button__link {
    background: #9b8b68;
    color: #000000;
}

/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */
#masthead,
.site-header,
.ast-desktop-header,
.ast-primary-header-bar,
.ast-header-wrap {
    background-color: #000000 !important;
}

/* Remove the divider line beneath the header */
#masthead,
#masthead .ast-primary-header-bar,
#masthead .main-header-bar,
#masthead .ast-header-wrap,
.site-header,
.ast-primary-header-bar {
    border-bottom: 0 !important;
}

/* Header brand: show the logo image. The site-title link is image-replaced
   — the brand graphic shows, while the text stays in the DOM (hidden) for
   accessibility/SEO. The link still points home. */
#masthead .custom-logo-link,
#masthead .site-logo-img {
    display: none !important;
}
#masthead .site-title {
    display: block !important;
    margin: 0;
    line-height: 0;
}
#masthead .site-title a {
    display: block;
    width: clamp(260px, 26vw, 360px);
    height: 66px;
    background-image: url('https://theagencyteamhawaii.com/wp-content/uploads/2026/06/the-agency-team-gold-white-1.webp');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: contain;
    font-size: 0 !important;       /* hide text, keep it for screen readers */
    color: transparent !important;
    /* Lift the mark off bright areas of the hero photo */
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}

/* Keep the primary menu on a single row — never wrap to a second line */
.ast-desktop-header .main-header-menu,
.ast-desktop-header .ast-nav-menu {
    flex-wrap: nowrap !important;
}
.ast-desktop-header .main-header-menu > li > a {
    white-space: nowrap;
}

/* Navigation links */
.ast-nav-menu > li > a,
.main-navigation ul li a,
.ast-desktop-header .main-header-menu > li > a {
    color: #FFFFFF !important;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.ast-nav-menu > li > a:hover,
.ast-nav-menu > li.current-menu-item > a,
.ast-nav-menu > li.current-menu-ancestor > a,
.main-navigation ul li a:hover,
.ast-desktop-header .main-header-menu > li > a:hover,
.ast-desktop-header .main-header-menu > li.current-menu-item > a {
    color: #9b8b68 !important;
}

/* Dropdown / sub-menus */
.ast-nav-menu .sub-menu,
.main-navigation .sub-menu {
    background: #000000 !important;
    border-top: 2px solid #9b8b68;
}

.ast-nav-menu .sub-menu li a,
.main-navigation .sub-menu li a {
    color: #FFFFFF !important;
    border-bottom: 1px solid rgba(232, 224, 204, 0.15);
}

.ast-nav-menu .sub-menu li a:hover,
.main-navigation .sub-menu li a:hover {
    color: #9b8b68 !important;
    background: rgba(155, 139, 104, 0.08) !important;
}

/* Sticky header shadow when scrolled */
body.ath-scrolled #masthead,
body.ath-scrolled .site-header,
body.ath-scrolled .ast-primary-header-bar {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease;
}

/* ---------------------------------------------------------
   REDUCED HEADER HEIGHT (site-wide)
   --------------------------------------------------------- */
.ast-primary-header-bar .main-header-bar,
.ast-primary-header-bar,
.main-header-bar {
    min-height: 84px !important;
}
.ast-primary-header-bar .site-header-section,
.main-header-bar .site-header-section,
.ast-primary-header-bar .ast-builder-grid-row {
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
}
/* Trim the logo so it doesn't drive the bar height back up */
#masthead .site-logo-img .custom-logo,
#masthead .site-logo-img img,
#masthead .custom-logo-link img,
.ast-site-identity img {
    max-height: 44px !important;
    width: auto !important;
}

/* ---------------------------------------------------------
   HOME: transparent header overlaid on the full-screen hero
   (the logo therefore sits IN the header, over the image top)
   --------------------------------------------------------- */
.page-template-template-home #masthead {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent !important;
    transition: background-color 0.3s ease;
}
.page-template-template-home #masthead .ast-primary-header-bar,
.page-template-template-home #masthead .main-header-bar,
.page-template-template-home #masthead .site-header,
.page-template-template-home #masthead .ast-header-wrap,
.page-template-template-home #masthead [data-header-theme],
.page-template-template-home #ast-mobile-header,
.page-template-template-home .ast-mobile-header-wrap {
    background: transparent !important;
}
/* Slight shadow/scrim behind the transparent header so the logo and nav
   stay legible over bright areas of the photo. Fades out once solid. */
.page-template-template-home #masthead::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.3s ease;
}
.page-template-template-home.ath-hero-scrolled #masthead::before {
    opacity: 0;
}
/* Solidify the header once the user scrolls ~halfway through the hero
   (driven by .ath-hero-scrolled, toggled in custom.js at 50% hero height) */
.page-template-template-home.ath-hero-scrolled #masthead,
.page-template-template-home.ath-hero-scrolled #masthead .ast-primary-header-bar,
.page-template-template-home.ath-hero-scrolled #masthead .main-header-bar,
.page-template-template-home.ath-hero-scrolled #masthead .site-header,
.page-template-template-home.ath-hero-scrolled #masthead .ast-header-wrap,
.page-template-template-home.ath-hero-scrolled #ast-mobile-header,
.page-template-template-home.ath-hero-scrolled .ast-mobile-header-wrap {
    background: #000000 !important;
}
/* While transparent (before the flip), suppress the sticky drop-shadow
   so it doesn't float over the image */
.page-template-template-home:not(.ath-hero-scrolled) #masthead {
    box-shadow: none !important;
}
/* Hero starts at the very top, behind the fixed header */
.page-template-template-home #content,
.page-template-template-home #primary {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Sell + Financing (body class set in functions.php): kill Astra's
   content-area top spacing so the page hero sits flush under the header */
body.ath-flush-hero #content,
body.ath-flush-hero #primary,
body.ath-flush-hero #content .ast-container,
body.ath-flush-hero .site-main,
body.ath-flush-hero .entry-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Mobile menu toggle */
.ast-mobile-menu-trigger span,
.ast-mobile-menu-trigger span::before,
.ast-mobile-menu-trigger span::after {
    background-color: #FFFFFF;
}

/* Mobile header */
#ast-mobile-header,
.ast-mobile-header-wrap {
    background-color: #000000 !important;
}

.ast-mobile-menu-trigger-close {
    color: #FFFFFF;
}

/* ---------------------------------------------------------
   BLOG ARCHIVE
   --------------------------------------------------------- */

/* Full-bleed white canvas for blog index + archives (kills gray gutters and
   any dark container showing through). */
.ath-blog-wrap {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #FFFFFF;
}
.ath-blog-wrap .site-main {
    background: #FFFFFF;
}

/* Archive hero banner */
.ath-archive-hero {
    background-color: #000000;
    padding: 4rem 2rem;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ath-archive-hero h1,
.ath-archive-hero .page-title {
    font-family: 'Montserrat', sans-serif;
    color: #FFFFFF;
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin: 0 0 0.5rem;
    font-weight: 700;
}

.ath-archive-hero p,
.ath-archive-hero .archive-description {
    color: rgba(255, 255, 255, 0.75);
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    margin: 0;
    max-width: 600px;
}

/* Archive grid wrapper */
.ath-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

/* Post card */
.ath-post-card {
    background: #FFFFFF;
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid #E8E0CC;
}

.ath-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

/* Card thumbnail */
.ath-card-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.ath-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ath-post-card:hover .ath-card-thumb img {
    transform: scale(1.04);
}

/* Placeholder thumbnail when no featured image */
.ath-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ath-thumb-placeholder span {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    color: #9b8b68;
    text-transform: uppercase;
}

/* Card body */
.ath-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Category badge */
.ath-cat-badge {
    display: inline-block;
    background: #9b8b68;
    color: #000000;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    margin-bottom: 0.6rem;
    text-decoration: none;
}

/* Card title */
.ath-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 0.4rem;
    line-height: 1.3;
    /* Keep cards uniform — clamp long titles */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ath-card-title a {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ath-card-title a:hover {
    color: #9b8b68;
}

/* Card meta */
.ath-card-meta {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
    color: #6B6B6B;
    margin-bottom: 0.75rem;
}

/* Card excerpt — a few lines, clamped for uniform cards */
.ath-card-excerpt {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: #5a5a5a;
    line-height: 1.6;
    margin: 0 0 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read more link */
.ath-read-more {
    display: inline-block;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #9b8b68;
    text-decoration: none;
    margin-top: auto;
    transition: color 0.2s ease;
}

.ath-read-more:hover {
    color: #000000;
}

/* Pagination */
.ath-archive-pagination,
.pagination {
    padding: 2rem 0 3rem;
    font-family: 'Open Sans', sans-serif;
}

/* the_posts_pagination() nests the links in .nav-links, so the flex
   layout + gap must live here for spacing between numbers to apply. */
.ath-archive-pagination .nav-links,
.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

/* Scoped under .nav-links so the brand colors win over Astra's
   default anchor color (which was rendering the numbers white). */
.nav-links a.page-numbers,
.nav-links span.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid #E8E0CC;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    background: #FFFFFF;
    color: #2C2C2C;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav-links a.page-numbers:hover,
.nav-links a.page-numbers:focus {
    background: #9b8b68;
    color: #000000;
    border-color: #9b8b68;
}

.nav-links span.page-numbers.current {
    background: #9b8b68;
    color: #000000;
    border-color: #9b8b68;
    font-weight: 700;
}

/* Ellipsis between page ranges — flat, not boxed */
.nav-links .page-numbers.dots {
    border-color: transparent;
    background: none;
    color: #2C2C2C;
}

/* Prev / Next get a touch more emphasis */
.nav-links .page-numbers.prev,
.nav-links .page-numbers.next {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.75rem;
}

/* Archive responsive */
@media (max-width: 900px) {
    .ath-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .ath-archive-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .ath-archive-hero {
        padding: 2.5rem 1.25rem;
        min-height: 140px;
    }
}

/* ---------------------------------------------------------
   BLOG SINGLE
   --------------------------------------------------------- */
.ath-single-wrap {
    /* Full-bleed white canvas: removes the gray gutters, gives the hero and
       layout the full page width, and overrides any dark Astra container. */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #FFFFFF;
}
/* Force the post content area light at every level. Uses higher specificity +
   !important to override Astra's single-post container background (which was
   showing as a dark frame around the article). */
.ath-single-wrap .site-main,
.ath-single-wrap .ath-single-main,
.ath-single-wrap article.ath-single-post,
.ath-single-wrap .ath-single-post .ath-post-content {
    background-color: #FFFFFF !important;
    box-shadow: none !important;
}

/* Single post: two-column layout (article + sidebar) */
.ath-single-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 3.5rem;
    align-items: start;
}
.ath-single-main {
    min-width: 0;
}

/* Sticky sidebar */
.ath-single-sidebar {
    position: sticky;
    top: 90px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.ath-sidebar-cta {
    background: #000000;
    color: #FFFFFF;
    border-radius: 8px;
    padding: 1.85rem 1.5rem;
    text-align: center;
}
.ath-sidebar-cta h3 {
    color: #FFFFFF;
    font-size: 1.25rem;
    margin: 0 0 0.6rem;
}
.ath-sidebar-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 0 1.35rem;
}
.ath-sidebar-cta .ath-btn {
    display: block;
    margin-bottom: 0.6rem;
}
.ath-sidebar-cta .ath-btn:last-child {
    margin-bottom: 0;
}
.ath-sidebar-cta .ath-btn-outline {
    color: #FFFFFF;
    border-color: #FFFFFF;
}
.ath-sidebar-cta .ath-btn-outline:hover {
    background: #FFFFFF;
    color: #000000;
}
.ath-sidebar-recent {
    background: #FFFFFF;
    border: 1px solid #E8E0CC;
    border-radius: 8px;
    padding: 1.5rem;
}
.ath-sidebar-recent h3 {
    font-size: 1.1rem;
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #9b8b68;
}
.ath-sidebar-recent ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ath-recent-item {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #eee;
}
.ath-recent-item:first-child {
    padding-top: 0;
}
.ath-recent-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}
.ath-recent-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 4px;
    overflow: hidden;
    background: #f0f0f0;
    display: block;
}
.ath-recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ath-recent-title {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.35;
    color: #1a1a1a;
}
.ath-recent-title:hover {
    color: #9b8b68;
}
.ath-recent-date {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #6B6B6B;
}
@media (max-width: 900px) {
    .ath-single-layout {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }
    .ath-single-sidebar {
        position: static;
    }
}

/* Hero image container */
.ath-hero-wrap {
    position: relative;
    width: 100%;
    max-height: 60vh;
    overflow: hidden;
    background: #000000;
}

.ath-hero-wrap img.ath-hero-img {
    width: 100%;
    height: 60vh;
    max-height: 60vh;
    object-fit: cover;
    display: block;
}

/* Dark overlay on hero */
.ath-hero-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.75) 100%
    );
    pointer-events: none;
}

/* Title overlay on hero */
.ath-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    /* Center the content in a block that matches the article width, while the
       text inside stays left-aligned. */
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    text-align: left;
    z-index: 2;
}

.ath-hero-content .ath-post-title {
    font-family: 'Montserrat', sans-serif;
    color: #FFFFFF;
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    font-weight: 700;
    margin: 0 0 0.75rem;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    max-width: 900px;
}

/* Meta below hero title (date / author / cats) */
.ath-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.ath-hero-meta span,
.ath-hero-meta a {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.ath-hero-meta a:hover {
    color: #9b8b68;
}

.ath-hero-meta .ath-meta-sep {
    color: rgba(255, 255, 255, 0.4);
}

/* Plain title banner (no featured image) */
.ath-title-banner {
    background: #000000;
    padding: 4rem 2rem 3rem;
    text-align: center;
}

.ath-title-banner .ath-post-title {
    font-family: 'Montserrat', sans-serif;
    color: #FFFFFF;
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    font-weight: 700;
    margin: 0 auto 0.75rem;
    max-width: 780px;
}

.ath-title-banner .ath-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.ath-title-banner .ath-post-meta span,
.ath-title-banner .ath-post-meta a {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

/* Article wrapper — fills the main column of the two-column layout */
.ath-single-post {
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Inline post meta (used when no hero) */
.ath-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 2rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem;
    color: #6B6B6B;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #E8E0CC;
}

.ath-post-meta a {
    color: #9b8b68;
}

.ath-post-meta a:hover {
    color: #000000;
}

.ath-meta-sep {
    color: #E8E0CC;
}

/* Post content */
.ath-post-content {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #2C2C2C;
}

.ath-post-content h2,
.ath-post-content h3,
.ath-post-content h4 {
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
}

.ath-post-content p {
    margin-bottom: 1.5rem;
}

.ath-post-content a {
    color: #9b8b68;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ath-post-content a:hover {
    color: #000000;
}

.ath-post-content blockquote {
    border-left: 4px solid #9b8b68;
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    background: #F7F6F2;
    font-style: italic;
    color: #000000;
}

.ath-post-content img {
    border-radius: 4px;
    margin: 1.5rem 0;
}

/* Drop cap — first letter of first paragraph */
.ath-post-content > p:first-of-type::first-letter {
    font-size: 4em;
    float: left;
    line-height: 0.8;
    color: #9b8b68;
    margin-right: 0.1em;
    margin-top: 0.05em;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Author bio box */
.ath-author-box {
    border-left: 4px solid #9b8b68;
    padding: 1.5rem;
    background: #F7F6F2;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin: 2.5rem 0;
    border-radius: 0 4px 4px 0;
}

.ath-author-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ath-author-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #000000;
    margin: 0 0 0.4rem;
}

.ath-author-info p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: #6B6B6B;
    margin: 0;
    line-height: 1.6;
}

/* Tag list */
.ath-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #E8E0CC;
    border-bottom: 1px solid #E8E0CC;
}

.ath-tag-list a {
    display: inline-block;
    background: transparent;
    color: #9b8b68;
    border: 1px solid #9b8b68;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.ath-tag-list a:hover {
    background: #9b8b68;
    color: #000000;
}

/* Related posts section */
.ath-related-section {
    max-width: 1100px;
    margin: 3rem auto 4rem;
    padding: 0 1.5rem;
}

.ath-related-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: #000000;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #E8E0CC;
}

.ath-related-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.ath-related-card {
    background: #FFFFFF;
    border: 1px solid #E8E0CC;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ath-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.ath-related-card a {
    text-decoration: none;
}

.ath-related-card-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000000;
}

.ath-related-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.ath-related-card:hover .ath-related-card-thumb img {
    transform: scale(1.05);
}

.ath-related-card-body {
    padding: 1rem;
}

.ath-related-card-body h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #000000;
    margin: 0 0 0.4rem;
    line-height: 1.3;
}

.ath-related-card-body .ath-related-date {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.75rem;
    color: #6B6B6B;
}

/* Single post responsive */
@media (max-width: 900px) {
    .ath-related-posts {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ath-single-post {
        padding: 0 1rem;
    }

    .ath-author-box {
        flex-direction: column;
    }

    .ath-related-posts {
        grid-template-columns: 1fr;
    }

    .ath-hero-wrap img.ath-hero-img {
        height: 45vw;
    }

    .ath-hero-content {
        padding: 1.25rem 1rem;
    }
}

/* ---------------------------------------------------------
   404 PAGE
   --------------------------------------------------------- */
.error404 .ath-404-page {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
    background: #F7F6F2;
}

.ath-404-number {
    font-size: clamp(6rem, 20vw, 12rem);
    color: #9b8b68;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.error404 .ath-404-page h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: #000000;
    margin-bottom: 1rem;
}

.error404 .ath-404-page > p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: #6B6B6B;
    max-width: 500px;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Search form on 404 */
.error404 .ath-404-page .search-form {
    display: flex;
    gap: 0;
    max-width: 420px;
    width: 100%;
    margin: 0 auto 2rem;
    border: 1px solid #E8E0CC;
    border-radius: 3px;
    overflow: hidden;
    background: #FFFFFF;
}

.error404 .ath-404-page .search-form label {
    flex: 1;
    margin: 0;
}

.error404 .ath-404-page .search-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: #2C2C2C;
    background: transparent;
    outline: none;
}

.error404 .ath-404-page .search-submit {
    padding: 0.75rem 1.25rem;
    background: #9b8b68;
    color: #000000;
    border: none;
    border-radius: 0;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
}

.error404 .ath-404-page .search-submit:hover {
    background: #000000;
    color: #FFFFFF;
}

/* 404 CTA buttons */
.ath-404-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 0.5rem;
}

/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */
#colophon,
.site-footer,
.ast-footer-main,
.ast-footer-below,
.ast-footer-above,
.footer-widget-area,
.ast-above-footer-section {
    background: #000000 !important;
    color: #FFFFFF;
}

.site-footer p,
#colophon p,
.ast-footer-main p {
    color: rgba(255, 255, 255, 0.75);
}

/* Footer headings */
.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6,
#colophon h1,
#colophon h2,
#colophon h3,
#colophon h4,
.footer-widget-area .widget-title,
.ast-footer-widget .widget-title {
    color: #9b8b68 !important;
    font-family: 'Montserrat', sans-serif;
}

/* Footer links */
.site-footer a,
#colophon a,
.ast-footer-main a {
    color: #FFFFFF;
    transition: color 0.2s ease;
}

.site-footer a:hover,
#colophon a:hover,
.ast-footer-main a:hover {
    color: #9b8b68;
    text-decoration: none;
}

/* Footer nav menu */
.ast-footer-above .main-navigation ul li a,
.ast-footer-above .ast-nav-menu > li > a {
    color: rgba(255, 255, 255, 0.8) !important;
}

.ast-footer-above .main-navigation ul li a:hover,
.ast-footer-above .ast-nav-menu > li > a:hover {
    color: #9b8b68 !important;
}

/* Footer divider */
.ast-footer-main {
    border-top: 1px solid rgba(232, 224, 204, 0.2);
}

/* Footer copyright bar */
.ast-footer-copyright,
.ast-footer-below-section,
.ast-small-footer {
    background: rgba(0, 0, 0, 0.2) !important;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
}

.ast-footer-copyright a,
.ast-small-footer a {
    color: #9b8b68 !important;
}

/* Footer widget list items */
.site-footer .widget ul li,
#colophon .widget ul li {
    border-bottom: 1px solid rgba(232, 224, 204, 0.12);
    padding: 0.4rem 0;
}

.site-footer .widget ul li a,
#colophon .widget ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.site-footer .widget ul li a:hover,
#colophon .widget ul li a:hover {
    color: #9b8b68;
}

/* Footer info section (above the copyright bar) */
.ath-footer-info {
    background: #000000;
    color: #FFFFFF;
    padding: 3.5rem 0 2.5rem;
    border-bottom: 1px solid rgba(232, 224, 204, 0.15);
}
.ath-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
}
.ath-footer-col h3 {
    font-family: 'Montserrat', sans-serif;
    color: #9b8b68 !important;
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
}
.ath-footer-col h4 {
    color: #9b8b68 !important;
    font-family: 'Open Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    margin: 0 0 0.9rem;
}
.ath-footer-col p {
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 0.5rem;
    font-size: 0.92rem;
    line-height: 1.6;
}
.ath-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ath-footer-col li {
    margin-bottom: 0.5rem;
}
.ath-footer-info a {
    color: rgba(255, 255, 255, 0.8);
}
.ath-footer-info a:hover {
    color: #9b8b68;
}
@media (max-width: 880px) {
    .ath-footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 480px) {
    .ath-footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer legal row — links + Equal Housing Opportunity line */
.ath-footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    margin-top: 2.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(232, 224, 204, 0.15);
}
.ath-footer-eho {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    margin: 0;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}
.ath-footer-eho .ath-eho-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    color: #9b8b68;
}
.ath-footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
    font-size: 0.85rem;
}
.ath-footer-legal-links a {
    color: rgba(255, 255, 255, 0.7);
}
.ath-footer-legal-links a:hover {
    color: #9b8b68;
}
@media (max-width: 560px) {
    .ath-footer-legal {
        justify-content: center;
        text-align: center;
    }
    .ath-footer-legal-links {
        justify-content: center;
    }
}

/* RevX "Built by" credit (footer copyright bar) */
.ath-revx-credit {
    display: block;
    margin-top: 0.5rem;
}
.ath-revx-credit a {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    color: rgba(255, 255, 255, 0.55) !important;
    text-decoration: none;
}
.ath-revx-logo {
    height: 18px;
    width: auto;
    /* Logo art is black text on a transparent background — invert to white for the dark footer. */
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.2s ease;
}
.ath-revx-credit a:hover .ath-revx-logo {
    opacity: 1;
}

/* ---------------------------------------------------------
   PAGE SECTIONS — marketing pages (Home, etc.)
   --------------------------------------------------------- */
.ath-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.25rem;
}
.ath-container.ath-narrow {
    max-width: 780px;
}

.ath-section {
    padding: 5rem 0;
}

.ath-section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
}
.ath-section-sub {
    text-align: center;
    max-width: 640px;
    /* Negative top pulls the sub up close to its title while the title keeps
       its full 2.5rem spacing for sections that have no subtitle. */
    margin: -1.75rem auto 2.5rem;
    color: #6B6B6B;
}
.ath-section-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.ath-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    font-weight: 700;
    color: #9b8b68;
    margin-bottom: 0.75rem;
}

/* Inner-page hero (community, sell, financing, contact, etc.) */
.ath-page-hero {
    background: linear-gradient(135deg, #000000 0%, #2a2a2a 100%);
    color: #FFFFFF;
    padding: 4.5rem 0;
    text-align: center;
}
.ath-page-hero h1 {
    color: #FFFFFF;
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0;
}
.ath-page-hero-sub {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    max-width: 640px;
    margin: 0.85rem auto 0;
}
/* Optional photo hero (set 'image' in inc/ath-communities.php) */
.ath-page-hero--image {
    position: relative;
    background-color: #000000;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 6rem 0;
}
.ath-page-hero--image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.68) 100%);
    pointer-events: none;
}
.ath-page-hero--image .ath-container {
    position: relative;
    z-index: 1;
}
/* Eyebrow legibility on photo heroes — the default gold (#9b8b68) washes
   out against bright photos under the light overlay. Brighten it and add
   the same shadow the h1/intro carry so the kicker above the H1 stays
   readable. Applies to every --image hero (sell, financing, contact, …). */
.ath-page-hero--image .ath-eyebrow {
    color: #d8c79a;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}
/* Community area narrative — readable article block on white */
.ath-community-intro {
    background: #FFFFFF;
    padding: 4.5rem 0;
}
.ath-community-intro .ath-rich h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
}
.ath-community-intro .ath-rich h2:first-child,
.ath-community-intro .ath-rich > p:first-child {
    margin-top: 0;
}
.ath-community-intro .ath-rich > p:first-of-type {
    font-size: 1.15rem;
    color: #3a3a3a;
}

/* Rich body content (editor output) */
.ath-rich {
    line-height: 1.8;
}
.ath-rich h2,
.ath-rich h3 {
    margin-top: 1.75rem;
}
.ath-rich p {
    margin-bottom: 1.1rem;
}

/* Legal pages (Privacy Policy, Terms of Use, Fair Housing) */
.ath-legal-body {
    background: #FFFFFF;
}
.ath-legal-body .ath-rich h2 {
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    margin-top: 2.5rem;
    margin-bottom: 0.5rem;
}
.ath-legal-body .ath-rich ul {
    margin: 0 0 1.1rem 1.25rem;
    padding: 0;
}
.ath-legal-body .ath-rich li {
    margin-bottom: 0.5rem;
}
.ath-legal-updated {
    color: #6B6B6B;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--ath-border);
}

/* Home + community + sell pages: break every section out of Astra's content
   container so each runs full-width, edge-to-edge. Applied per-section (the same
   technique that works for the hero) — clipping a shared wrapper kills the breakout. */
.ath-home > section,
.ath-community > section,
.ath-buy > section,
.ath-sell > section,
.ath-valuation > section,
.ath-videos > section,
.ath-financing > section,
.ath-gbp > section,
.ath-contact > section,
.ath-legal > section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Home hero — full-screen image with dark gradient overlay */
.ath-home-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    text-align: center;
    padding: 7rem 0;
    background-color: #000000; /* fallback while image loads */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}
/* Dark gradient overlay for legible text over the photo */
.ath-home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.30) 0%,
        rgba(0, 0, 0, 0.45) 55%,
        rgba(0, 0, 0, 0.80) 100%
    );
    z-index: 1;
    pointer-events: none;
}
.ath-hero-inner {
    position: relative;
    z-index: 2;
}
.ath-home-hero .ath-eyebrow {
    color: #FFFFFF;
    opacity: 0.9;
}
.ath-home-hero h1,
.ath-home-hero .ath-hero-title {
    color: #FFFFFF;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    margin: 0 0 1rem;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
    line-height: 1.15;
}
.ath-hero-sub {
    max-width: none;
    margin: 0 auto 2rem;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
    white-space: nowrap; /* keep on one line */
}
/* Allow the sub to wrap on small screens so it doesn't overflow */
@media (max-width: 640px) {
    .ath-hero-sub {
        white-space: normal;
        max-width: 90vw;
    }
}
/* Brand eyebrow above the BUY / SELL tabs */
.ath-hero-eyebrow {
    text-align: center;
    margin: 0 0 0.9rem;
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

/* Hero BUY / SELL tabs — joined pair, gold active state with pointer arrow */
.ath-hero-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}
.ath-hero-tab {
    background: #000000;
    color: #FFFFFF;
    border: 0;
    padding: 15px 25px;
    min-width: 80px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease;
}
.ath-hero-tab:first-child {
    border-radius: 8px 0 0 8px;
}
.ath-hero-tab:last-child {
    border-radius: 0 8px 8px 0;
}
.ath-hero-tab:hover {
    background: #333333;
}
.ath-hero-tab.is-active {
    background: #9b8b68;
}
.ath-hero-tab.is-active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #9b8b68;
}

/* Hero tab panels — only the active one shows, with a soft fade-in */
.ath-hero-panel {
    display: none;
}
.ath-hero-panel.is-active {
    display: block;
    animation: ath-fade-in 0.4s ease-in;
}
@keyframes ath-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* The sell pitch line is long — let it wrap (buy sub stays nowrap) */
.ath-hero-panel[data-ath-panel="sell"] .ath-hero-sub {
    white-space: normal;
}
.ath-hero-cta-row {
    margin: 0 0 2rem;
}

/* Pill CTA variant — solid gold primary button with icon (hero buttons).
   Pairs with the frosted consult card below: solid = primary, glass = secondary */
.ath-btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border-radius: 999px;
    background: #9b8b68;
    color: #1a1a1a;
    border-color: #9b8b68;
    padding: 0.95rem 2.25rem;
    font-size: 0.9rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease,
                background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ath-btn-pill:hover {
    background: #c5b487;
    color: #1a1a1a;
    border-color: #c5b487;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35), 0 0 22px rgba(155, 139, 104, 0.45);
}
.ath-btn-pill-icon {
    display: inline-flex;
}
.ath-btn-pill-icon svg {
    width: 20px;
    height: 20px;
}

/* Consultation CTA — frosted-glass card with gold icon chip
   (same glass treatment as the promo cards below the hero) */
.ath-cta-consult {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(15, 15, 15, 0.45);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: #FFFFFF;
    border: 1px solid rgba(155, 139, 104, 0.55);
    border-radius: 14px;
    padding: 0.8rem 1.6rem 0.8rem 0.8rem;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease,
                border-color 0.2s ease, background 0.2s ease;
}
.ath-cta-consult:hover,
.ath-cta-consult:focus {
    color: #FFFFFF;
    text-decoration: none;
    transform: translateY(-2px);
    background: rgba(155, 139, 104, 0.30);
    border-color: #c5b487;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.40), 0 0 24px rgba(155, 139, 104, 0.35);
}
.ath-cta-consult:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 3px;
}
.ath-cta-consult-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: #9b8b68;
}
.ath-cta-consult-icon svg {
    width: 24px;
    height: 24px;
}
.ath-cta-consult-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.ath-cta-consult-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.3;
}
.ath-cta-consult-sub {
    font-size: 0.8rem;
    opacity: 0.88;
    line-height: 1.35;
}
.ath-cta-consult-arrow {
    flex: none;
    display: flex;
    color: #c5b487; /* gold accent; brightens to white on hover */
}
.ath-cta-consult:hover .ath-cta-consult-arrow {
    color: #FFFFFF;
}
.ath-cta-consult-arrow svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}
.ath-cta-consult:hover .ath-cta-consult-arrow svg {
    transform: translateX(4px);
}
/* Scroll variant (e.g. Financing hero) — arrow points down to an on-page
   target, so nudge it vertically on hover instead of sideways */
.ath-cta-consult--scroll:hover .ath-cta-consult-arrow svg {
    transform: translateY(4px);
}

/* Hero search — Ylopo autocomplete widget (hydrated by the site-wide loader) */
.ath-hero-search {
    max-width: 640px;
    margin: 0 auto 2rem;
    text-align: left; /* widget dropdown reads better left-aligned */
}
/* Search only applies to buying — hidden while the SELL tab is active */
.ath-hero-search.is-hidden {
    display: none;
}
/* Reserve space so the hero doesn't jump when the widget hydrates;
   also keeps layout stable on staging domains where Ylopo won't render. */
.ath-hero-search .YLOPO_searchWidget {
    min-height: 56px;
}

/* Ylopo search widget skin — white field with a gold pill search button.
   Selectors target Ylopo's rendered DOM (.grouped-location-autocomplete-input
   is a wrapper whose gold background shows through the right padding; the
   magnifier is drawn by its ::after). Same approach as the current live
   site's Squarespace custom CSS, with the FontAwesome glyph swapped for an
   inline SVG since this theme doesn't load FontAwesome. */
.YLOPO-widget .grouped-location-autocomplete .grouped-location-autocomplete-input::before {
    display: none !important; /* widget's default search icon */
}
.YLOPO-widget .grouped-location-autocomplete .grouped-location-autocomplete-input {
    width: 100%;
    background-color: #9b8b68;
    border: 0;
    padding-right: 60px;
    padding-left: 0;
}
.YLOPO-widget .grouped-location-autocomplete .grouped-location-autocomplete-input,
.YLOPO-widget .multi-location-autocomplete {
    border-radius: 8px 999px 999px 8px; /* pill curve on the button end */
}
.YLOPO-widget .grouped-location-autocomplete .grouped-location-autocomplete-input input {
    background: #FFFFFF;
    left: 0 !important;
    border-radius: 8px 0 0 8px !important;
    padding-left: 24px !important;
}
.YLOPO-widget .grouped-location-autocomplete .grouped-location-autocomplete-input::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-left: 18px;
    margin-right: -42px; /* sit inside the wrapper's right padding */
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cline x1='15.5' y1='15.5' x2='21' y2='21'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ath-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.ath-home-hero .ath-btn-outline {
    color: #FFFFFF;
    border-color: #FFFFFF;
}
.ath-home-hero .ath-btn-outline:hover {
    background: #FFFFFF;
    color: #000000;
}

/* Feature trio — frosted-glass cards over a photo */
.ath-promo {
    position: relative;
    padding: 5.5rem 0;
    background-color: #000000;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.ath-promo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    pointer-events: none;
}
.ath-promo-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.ath-promo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.75rem 1.75rem 2.25rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #FFFFFF;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease;
}
.ath-promo-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.24);
    color: #FFFFFF;
}
.ath-promo-icon svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    color: #FFFFFF;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}
.ath-promo-title {
    color: #FFFFFF;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 1rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
.ath-promo-text {
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin: 0 0 1.75rem;
    flex: 1;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}
.ath-promo-link {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #FFFFFF;
    transition: color 0.2s ease;
}
.ath-promo-card:hover .ath-promo-link {
    color: #9b8b68;
}
@media (max-width: 860px) {
    .ath-promo-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
}

/* Tinted sections */
.ath-featured,
.ath-reviews {
    background: #F7F6F2;
}

/* Communities — dark section: intro + 2×2 image grid */
.ath-communities {
    background-color: #1a1a1a;
}
.ath-communities-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3.5rem;
    align-items: center;
}
.ath-communities-intro h2 {
    color: #FFFFFF;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin: 0 0 1.25rem;
}
.ath-communities-intro p {
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 2rem;
}
.ath-communities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.ath-community-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 185px;
    padding: 1rem;
    border-radius: 4px;
    overflow: hidden;
    background-color: #000000;
    background-image: linear-gradient(160deg, #000000 0%, #333333 100%); /* fallback */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
    color: #FFFFFF !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
    transition: transform 0.3s ease;
}
/* Darkening overlay so the name stays legible over any photo */
.ath-community-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.30);
    transition: background 0.3s ease;
}
.ath-community-card span {
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.ath-community-card:hover {
    transform: translateY(-4px);
}
.ath-community-card:hover::after {
    background: rgba(0, 0, 0, 0.12);
}
@media (max-width: 900px) {
    .ath-communities-layout {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }
}
@media (max-width: 420px) {
    .ath-communities-grid {
        grid-template-columns: 1fr;
    }
}

/* Communities archive (template-communities.php) — every community grouped
   by island as linked image tiles. Reuses .ath-community-card. */

/* Full-bleed: break out of Astra's boxed .ast-container so the section
   backgrounds (hero, nav, archive) span the full screen width. The inner
   .ath-container still centers the actual content. */
.page-template-template-communities #content .ast-container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

/* Sticky jump nav (anchors to each island section) */
.ath-island-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.ath-island-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1.75rem;
}
.ath-island-nav li {
    margin: 0;
}
.ath-island-nav a {
    display: block;
    padding: 0.9rem 0.25rem;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.ath-island-nav a:hover,
.ath-island-nav a:focus {
    color: #FFFFFF;
    border-bottom-color: #9b8b68;
}

.ath-communities-archive {
    background: #FFFFFF;
    background-image: linear-gradient(180deg, #f6f4ef 0%, #FFFFFF 320px);
    padding: 4.5rem 0 5.5rem;
}
.ath-community-island {
    scroll-margin-top: 70px; /* clears the sticky island nav on anchor jump */
}
.ath-community-island + .ath-community-island {
    margin-top: 4.5rem;
}

/* Island header: gold eyebrow rule + display title, with the intro set as a
   readable column beside / beneath it. */
.ath-community-island-title {
    position: relative;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin: 0 0 1.1rem;
    padding-left: 1rem;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}
.ath-community-island-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.12em;
    bottom: 0.12em;
    width: 4px;
    border-radius: 4px;
    background: #9b8b68;
}
.ath-community-island-intro {
    max-width: 80ch;
    margin: 0 0 2.25rem;
    color: #4a4a4a;
    font-size: 1.05rem;
    line-height: 1.75;
}
.ath-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}
/* Blog index: larger cards/images than the communities-archive default above.
   Scoped to .ath-blog-wrap so the global rule still drives the communities grid. */
.ath-blog-wrap .ath-archive-grid {
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2rem;
    max-width: 1320px;
    margin: 3rem auto;
    padding: 0 2rem;
}

/* ---- Archive community cards — cinematic, photo-zoom tiles ---- */
.ath-communities-archive .ath-community-card {
    display: block;
    aspect-ratio: 4 / 5;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #1a1a1a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
                box-shadow 0.4s ease;
}
/* Override the global flat dim overlay — the gradient scrim lives on .media */
.ath-communities-archive .ath-community-card::after {
    display: none;
}
.ath-communities-archive .ath-community-card-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.01);
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ath-community-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.45) 38%,
        rgba(0, 0, 0, 0.10) 70%,
        rgba(0, 0, 0, 0.18) 100%
    );
    transition: opacity 0.4s ease;
}
/* Gold accent line that sweeps in along the bottom on hover */
.ath-communities-archive .ath-community-card::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    height: 4px;
    background: #9b8b68;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ath-communities-archive .ath-community-card-body {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.5rem 1.4rem 1.4rem;
    text-align: left;
}
.ath-community-card-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    text-transform: none;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}
.ath-community-card-sub {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
    max-width: 30ch;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
/* "Explore →" cue: hidden-ish until hover, then slides up into view */
.ath-community-card-cue {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.35rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #d8c9a6;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.ath-community-card-cue svg {
    transition: transform 0.35s ease;
}

/* Hover / focus state */
.ath-communities-archive .ath-community-card:hover,
.ath-communities-archive .ath-community-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.32);
}
.ath-communities-archive .ath-community-card:hover .ath-community-card-media,
.ath-communities-archive .ath-community-card:focus-visible .ath-community-card-media {
    transform: scale(1.09);
}
.ath-communities-archive .ath-community-card:hover::before,
.ath-communities-archive .ath-community-card:focus-visible::before {
    transform: scaleX(1);
}
.ath-communities-archive .ath-community-card:hover .ath-community-card-cue,
.ath-communities-archive .ath-community-card:focus-visible .ath-community-card-cue {
    opacity: 1;
    transform: translateY(0);
}
.ath-communities-archive .ath-community-card:hover .ath-community-card-cue svg,
.ath-communities-archive .ath-community-card:focus-visible .ath-community-card-cue svg {
    transform: translateX(3px);
}

@media (max-width: 480px) {
    .ath-archive-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .ath-community-card-name {
        font-size: 1.2rem;
    }
    .ath-community-card-sub {
        display: none; /* keep small tiles clean on phones */
    }
}

@media (prefers-reduced-motion: reduce) {
    .ath-communities-archive .ath-community-card,
    .ath-community-card-media,
    .ath-communities-archive .ath-community-card::before,
    .ath-community-card-cue,
    .ath-community-card-cue svg {
        transition: none;
    }
}

/* Embed placeholders (YLOPO / reviews) */
.ath-embed-placeholder {
    border: 2px dashed #9b8b68;
    border-radius: 6px;
    padding: 3rem 1.5rem;
    text-align: center;
    color: #6B6B6B;
    background: #FFFFFF;
}

/* Reviews */
.ath-reviews {
    text-align: center;
    background: linear-gradient(180deg, #f7f6f2 0%, #ffffff 70%);
    border-top: 1px solid #eee7dc;
    border-bottom: 1px solid #eee7dc;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}
.ath-reviews-header {
    max-width: 860px;
    margin: 0 auto 2rem;
}
.ath-reviews-intro {
    max-width: 44rem;
    margin: 1rem auto 0;
    color: #4a4a4a;
    line-height: 1.75;
    font-size: 1rem;
}
.ath-reviews-stat {
    font-size: 1.25rem;
    color: #9b8b68;
    font-weight: 700;
    margin: 1.25rem auto 2.25rem;
}
.ath-reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    text-align: left;
    align-items: start;
}
/* Zillow review scroller: full-width track showing 3 cards at a time */
.ath-reviews-single {
    text-align: left;
}
.ath-reviews-readall {
    text-align: center;
    margin: 1.5rem 0 0;
}
.ath-reviews-readall-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: #9b8b68;
    text-decoration: none;
}
.ath-reviews-readall-link:hover,
.ath-reviews-readall-link:focus-visible {
    text-decoration: underline;
}
.ath-reviews-readall-link svg {
    width: 16px;
    height: 16px;
}
.ath-reviews-label {
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
    text-align: center;
}
.ath-review-platform-desc {
    margin: 0 0 1.5rem;
    color: #616161;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
}

/* Static review carousel — horizontal scroll-snap track + arrow controls.
   JS (custom.js) scrolls the track one card at a time on arrow click. */
.ath-review-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ath-review-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0.25rem 1rem;
    flex: 1 1 auto;
    /* Hide the native scrollbar (arrows drive the carousel) */
    scrollbar-width: none;
}
.ath-review-track::-webkit-scrollbar {
    display: none;
}
.ath-review-card {
    flex: 0 0 calc((100% - 2.5rem) / 3); /* 3 across; the rest scroll into view */
    scroll-snap-align: start;
    box-sizing: border-box;
    background: #FFFFFF;
    border: 1px solid #ece9e1;
    border-radius: 14px;
    padding: 1.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.ath-review-top {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.ath-review-avatar {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9b8b68, #c2b393);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ath-review-id {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}
.ath-review-author-name {
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}
.ath-review-stars {
    color: #e7b53c;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    line-height: 1;
}
.ath-review-text {
    color: #3a3a3a;
    font-size: 0.98rem;
    line-height: 1.65;
    margin: 0;
    flex: 1 1 auto;
}
.ath-review-foot {
    margin: 0;
    padding-top: 0.9rem;
    border-top: 1px solid #ece9e1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.ath-review-author-agent {
    font-size: 0.85rem;
    font-weight: 600;
    color: #9b8b68;
}
.ath-review-author-date {
    font-size: 0.8rem;
    color: #6B6B6B;
}
.ath-review-nav {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    min-width: 0;
    padding: 0;
    line-height: 0;
    border-radius: 50%;
    border: 1px solid #d9d4c7;
    background: #FFFFFF;
    color: #9b8b68;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ath-review-nav svg {
    width: 20px;
    height: 20px;
    display: block;
}
.ath-review-nav:hover,
.ath-review-nav:focus-visible {
    background: #9b8b68;
    border-color: #9b8b68;
    color: #FFFFFF;
}
.ath-review-nav[disabled] {
    opacity: 0.35;
    cursor: default;
    background: #FFFFFF;
    color: #9b8b68;
    border-color: #d9d4c7;
}

@media (max-width: 900px) {
    .ath-reviews-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .ath-review-card {
        flex-basis: calc((100% - 1.25rem) / 2); /* 2 across */
    }
}
@media (max-width: 600px) {
    .ath-review-card {
        flex-basis: 100%; /* 1 at a time */
    }
}

/* ============================================================
   TEAM CAROUSEL — auto-scrolling marquee of the agent roster
   (template-parts/team-carousel.php). Two copies of the track
   slide left forever; the duplicate is aria-hidden. Pauses on
   hover/focus; falls back to a swipeable strip with no motion.
   ============================================================ */
.ath-team {
    background-color: #1a1a1a;
    /* Communities above is the same dark — a hairline keeps them distinct */
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ath-team .ath-section-title {
    color: #FFFFFF;
}
.ath-team .ath-section-sub {
    color: #c9c4b8;
}
.ath-team-marquee {
    position: relative;
    overflow: hidden;
    margin-top: 2.5rem;
    /* Fade the strip into the page edges */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ath-team-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: ath-team-scroll var(--ath-team-duration, 40s) linear infinite;
}
.ath-team-marquee:hover .ath-team-track,
.ath-team-track:focus-within {
    animation-play-state: paused;
}
@keyframes ath-team-scroll {
    from { transform: translateX(0); }
    /* Two identical copies, so -50% lands on a seam — a clean loop */
    to   { transform: translateX(-50%); }
}
.ath-team-card {
    flex: 0 0 auto;
    width: 230px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
    padding: 1.5rem 1.25rem;
    background: #FFFFFF;
    border: 1px solid #ece9e1;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ath-team-card:hover,
.ath-team-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.12);
}
.ath-team-photo {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #9b8b68, #c2b393);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ath-team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ath-team-photo-placeholder {
    color: #FFFFFF;
    font-weight: 700;
    font-size: 2.2rem;
    line-height: 1;
    text-transform: uppercase;
}
.ath-team-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #1a1a1a;
    line-height: 1.25;
}
.ath-team-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9b8b68;
}
.ath-team .ath-section-cta {
    margin-top: 2.5rem;
    text-align: center;
}

@media (max-width: 600px) {
    .ath-team-card {
        width: 190px;
        padding: 1.25rem 1rem;
    }
    .ath-team-photo {
        width: 110px;
        height: 110px;
    }
}

/* No auto-scroll for users who prefer reduced motion: stop the
   marquee and let them swipe the strip instead. */
@media (prefers-reduced-motion: reduce) {
    .ath-team-marquee {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .ath-team-track {
        animation: none;
    }
    /* Hide the duplicate copy so the roster isn't listed twice */
    .ath-team-card[aria-hidden="true"] {
        display: none;
    }
}

/* CTA band */
.ath-cta-band {
    background: #9b8b68;
    text-align: center;
    padding: 4rem 0;
}
.ath-cta-band h2 {
    color: #000000;
    margin-bottom: 1.5rem;
}
.ath-cta-band .ath-btn {
    background: #000000;
    color: #FFFFFF;
    border-color: #000000;
}
.ath-cta-band .ath-btn:hover {
    background: #FFFFFF;
    color: #000000;
    border-color: #FFFFFF;
}

@media (max-width: 600px) {
    .ath-section {
        padding: 3.5rem 0;
    }
    .ath-home-hero {
        min-height: calc(100vh - 60px);
        padding: 5rem 0;
        /* Fixed/parallax backgrounds are unreliable on mobile; ensure cover scroll */
        background-attachment: scroll;
    }
}

/* ---------------------------------------------------------
   SELL PAGE ("Why List With Us")
   --------------------------------------------------------- */

/* Hero — extends .ath-page-hero with the pitch paragraph + CTA */
.ath-sell-hero {
    padding: 6.5rem 0;
}
.ath-sell-hero-intro {
    max-width: 760px;
    margin: 1.5rem auto 2rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    line-height: 1.75;
}
.ath-sell-hero-cta {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
/* No overlay — the Kauai sunrise photo is dark enough on its own; the text
   shadow on the headline/pitch carries any remaining legibility. */
.ath-sell-hero.ath-page-hero--image::before {
    background: none;
}
.ath-sell-hero h1,
.ath-sell-hero .ath-page-hero-sub,
.ath-sell-hero .ath-sell-hero-intro {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

/* Benefits — 3×2 grid of bordered cards with gold icons */
.ath-sell-benefits {
    background: #FFFFFF;
}
.ath-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.ath-benefit-card {
    background: #FFFFFF;
    border: 1px solid #E8E0CC;
    border-radius: 6px;
    padding: 2.25rem 1.75rem;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ath-benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.16);
}
.ath-benefit-icon svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.25rem;
    color: #9b8b68;
}
.ath-benefit-card h3 {
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0 0 0.75rem;
}
.ath-benefit-card p {
    font-size: 0.95rem;
    color: #5a5a5a;
    line-height: 1.7;
    margin: 0;
}

/* Selling process — numbered step cards on the tinted background */
.ath-sell-process {
    background: #F7F6F2;
}
.ath-process-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.ath-process-step {
    position: relative;
    background: #FFFFFF;
    border: 1px solid #E8E0CC;
    border-radius: 6px;
    padding: 2rem 1.75rem 1.75rem 5.25rem;
}
.ath-process-num {
    position: absolute;
    left: 1.5rem;
    top: 1.9rem;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: #9b8b68;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
}
.ath-process-step h3 {
    font-weight: 600;
    font-size: 1.15rem;
    margin: 0 0 0.6rem;
}
.ath-process-step p {
    font-size: 0.95rem;
    color: #5a5a5a;
    line-height: 1.7;
    margin: 0;
}

/* Closing CTA band — supporting line between heading and button */
.ath-sell-cta-sub {
    max-width: 680px;
    margin: -0.5rem auto 1.75rem;
    color: rgba(0, 0, 0, 0.78);
}

@media (max-width: 900px) {
    .ath-benefits-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 640px) {
    .ath-benefits-grid,
    .ath-process-grid {
        grid-template-columns: 1fr;
    }
    .ath-process-step {
        padding: 1.75rem 1.5rem 1.5rem 4.75rem;
    }
}

/* ---------------------------------------------------------
   FINANCING PAGE
   --------------------------------------------------------- */

/* Hero — same bright photo treatment as the Sell hero: light overlay,
   text shadow carries the legibility */
.ath-financing-hero {
    padding: 6rem 0;
}
.ath-financing-hero.ath-page-hero--image::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.45) 100%);
}
.ath-financing-hero h1 {
    max-width: 880px;
    margin: 0 auto;
}
.ath-financing-hero h1,
.ath-financing-hero .ath-financing-hero-intro {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}
.ath-financing-hero-intro {
    max-width: 760px;
    margin: 1.5rem auto 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
    line-height: 1.75;
}
.ath-financing-hero-cta {
    margin: 2rem 0 0;
}

/* Smooth scroll for the "Get pre-approved now ↓" anchor */
html {
    scroll-behavior: smooth;
}
#pre-approval-form {
    scroll-margin-top: 90px; /* clear the sticky header */
}

/* Lending team — four cards + NFM office footer */
.ath-lending-team {
    background: #FFFFFF;
}
.ath-lending-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.ath-lender-card {
    background: #FFFFFF;
    border: 1px solid #E8E0CC;
    border-radius: 6px;
    padding: 2rem 1.25rem;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ath-lender-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.16);
}
.ath-lender-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.25rem;
}
.ath-lender-card h3 {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0 0 0.25rem;
}
.ath-lender-role {
    color: #6B6B6B;
    font-size: 0.85rem;
    margin: 0 0 0.15rem;
}
.ath-lender-nmls {
    color: #9b8b68;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin: 0 0 0.9rem;
}
.ath-lender-contact {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.7;
}
.ath-lender-contact a {
    display: block;
    overflow-wrap: anywhere;
}
.ath-nfm-office {
    text-align: center;
    margin-top: 3rem;
}
.ath-nfm-office img {
    height: 44px;
    width: auto;
    margin: 0 auto 0.75rem;
}
.ath-nfm-office p {
    color: #6B6B6B;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

/* Pre-approval form */
.ath-preapproval {
    background: #F7F6F2;
}
.ath-form {
    max-width: 680px;
    margin: 0 auto;
}
.ath-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.25rem;
}
.ath-form-field {
    margin: 0 0 1.25rem;
}
.ath-form-field label {
    display: block;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
    color: #2C2C2C;
}
.ath-form-req {
    color: #9b8b68;
}
.ath-form input[type="text"],
.ath-form input[type="email"],
.ath-form input[type="tel"] {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #d8d0bd;
    border-radius: 4px;
    background: #FFFFFF;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: #2C2C2C;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ath-form select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #d8d0bd;
    border-radius: 4px;
    background: #FFFFFF;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: #2C2C2C;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ath-form input:focus,
.ath-form select:focus {
    outline: none;
    border-color: #9b8b68;
    box-shadow: 0 0 0 3px rgba(155, 139, 104, 0.25);
}
/* Checkbox groups (Application) and single opt-ins (newsletter) */
.ath-form-checkgroup {
    border: 0;
    padding: 0;
    margin: 0 0 1.25rem;
}
.ath-form-checkgroup legend {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
    color: #2C2C2C;
    padding: 0;
}
.ath-form-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    color: #2C2C2C;
    margin: 0.35rem 0;
    cursor: pointer;
}
.ath-form-check input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #9b8b68;
    flex: none;
}
.ath-form-check-single {
    margin-top: -0.5rem;
}
/* TCPA consent disclosure */
.ath-form-consent {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
    line-height: 1.6;
    color: #6a6a6a;
    margin: 0 0 1.5rem;
}
.ath-form-consent a {
    color: #9b8b68;
    text-decoration: underline;
}
.ath-form-submit {
    text-align: center;
    margin: 0.5rem 0 0;
}
.ath-form-submit .ath-btn {
    min-width: 220px;
}
/* Honeypot — visually removed, still in the DOM for bots */
.ath-form-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
/* Success / error notices */
.ath-form-notice {
    max-width: 680px;
    margin: 0 auto 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
}
.ath-form-notice--success {
    background: #eef3e9;
    border: 1px solid #9bb178;
    color: #3c5a23;
}
.ath-form-notice--error {
    background: #f9ecec;
    border: 1px solid #c98989;
    color: #7a2727;
}

@media (max-width: 1024px) {
    .ath-lending-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 560px) {
    .ath-lending-grid,
    .ath-form-row {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------
   CONTACT PAGE
   --------------------------------------------------------- */

/* Hero — same bright photo treatment as Sell/Financing */
.ath-contact-hero {
    padding: 6rem 0;
}
.ath-contact-hero.ath-page-hero--image::before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.45) 100%);
}
.ath-contact-hero h1,
.ath-contact-hero .ath-contact-hero-intro {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}
.ath-contact-hero-intro {
    max-width: 720px;
    margin: 1.25rem auto 2rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
    line-height: 1.75;
}
/* Quick actions — frosted-glass cards (same glass language as the home
   hero's consultation CTA) with gold icon chips */
.ath-contact-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    max-width: 880px;
    margin: 0 auto;
}
.ath-contact-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1.75rem 1.25rem 1.6rem;
    background: rgba(15, 15, 15, 0.45);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(155, 139, 104, 0.55);
    border-radius: 14px;
    color: #FFFFFF;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease,
                border-color 0.2s ease, background 0.2s ease;
}
.ath-contact-action:hover,
.ath-contact-action:focus {
    color: #FFFFFF;
    transform: translateY(-3px);
    background: rgba(155, 139, 104, 0.30);
    border-color: #c5b487;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.40), 0 0 24px rgba(155, 139, 104, 0.35);
}
.ath-contact-action:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 3px;
}
.ath-contact-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #9b8b68;
    margin-bottom: 0.65rem;
}
.ath-contact-action-icon svg {
    width: 26px;
    height: 26px;
}
.ath-contact-action-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.3;
}
.ath-contact-action-sub {
    font-size: 0.85rem;
    opacity: 0.88;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
@media (max-width: 720px) {
    .ath-contact-actions {
        grid-template-columns: 1fr;
        max-width: 380px;
    }
}

/* Service areas — compact line of links to community pages, not chips */
.ath-contact-areas {
    background: #FFFFFF;
    text-align: center;
    padding: 2.75rem 0;
    border-bottom: 1px solid #EFEADD;
}
.ath-areas-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
    color: #9b8b68;
    margin: 0 0 0.9rem;
}
.ath-areas-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    font-size: 1.05rem;
    line-height: 1.6;
}
.ath-areas-links a {
    position: relative;
    padding: 0.15rem 1.15rem;
    color: #1A1A1A;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.18s ease;
}
.ath-areas-links a:hover,
.ath-areas-links a:focus-visible {
    color: #9b8b68;
}
/* Thin hairline divider between links (skips the first on each row visually) */
.ath-areas-links a:not(:first-child)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 0.95em;
    background: #DAD0B8;
}
.ath-areas-specialties {
    margin: 1.1rem 0 0;
    color: #8A8A8A;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

/* Office locations — full-width alternating rows (map + details side by side,
   sides swap on each office for a staggered/zigzag layout) */
.ath-contact-offices {
    background: #F7F6F2;
}
.ath-office-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.ath-office-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    background: #FFFFFF;
    border: 1px solid #E8E0CC;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.10);
}
/* Even offices: flip the map to the right so the rows zigzag */
.ath-office-card:nth-child(even) .ath-office-map {
    grid-column: 2;
    grid-row: 1;
}
.ath-office-card:nth-child(even) .ath-office-body {
    grid-column: 1;
    grid-row: 1;
}
.ath-office-map {
    min-height: 340px;
    background: #E8E0CC;
}
.ath-office-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
.ath-office-body {
    padding: 1.75rem 1.75rem 2rem;
}
.ath-office-body h3 {
    font-weight: 600;
    font-size: 1.3rem;
    margin: 0 0 1.1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #9b8b68;
}
.ath-office-line {
    margin: 0 0 0.9rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #2C2C2C;
}
.ath-office-line:last-child {
    margin-bottom: 0;
}
.ath-office-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9b8b68;
    margin-bottom: 0.15rem;
}

@media (max-width: 800px) {
    /* Stack each row: map on top, details below (no zigzag on mobile) */
    .ath-office-card,
    .ath-office-card:nth-child(even) {
        grid-template-columns: 1fr;
    }
    .ath-office-card:nth-child(even) .ath-office-map {
        grid-column: 1;
        grid-row: 1;
    }
    .ath-office-card:nth-child(even) .ath-office-body {
        grid-column: 1;
        grid-row: 2;
    }
    .ath-office-map {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
}

/* ---------------------------------------------------------
   UTILITY / MISC
   --------------------------------------------------------- */

/* Section divider */
.ath-divider {
    border: none;
    border-top: 1px solid #E8E0CC;
    margin: 3rem 0;
}

/* Highlighted text */
.ath-highlight {
    color: #9b8b68;
}

/* Responsive video wrapper */
.ath-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 6px;
    margin: 2rem 0;
}

.ath-video-wrap iframe,
.ath-video-wrap video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Screen reader only */
.ath-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Global content background */
.ast-page-builder-template .entry-content,
.entry-content,
.hentry {
    background: transparent;
}

/* Astra container width override */
.ast-container {
    max-width: 1200px;
}

/* ---------------------------------------------------------
   BOTTOM-RIGHT CONTACT POPUP (home page)
   --------------------------------------------------------- */
.ath-popup {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 200;
    width: 210px;
    max-width: calc(100vw - 2rem);
    background: #FFFFFF;
    color: #2C2C2C;
    border-radius: 8px;
    border-top: 2px solid #9b8b68;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25);
    padding: 1.05rem 0.85rem 0.72rem;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    /* Hidden until JS reveals it */
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.ath-popup.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.ath-popup[hidden] {
    display: none;
}
.ath-popup-close {
    position: absolute;
    top: 0.3rem;
    right: 0.4rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    line-height: 1;
    color: #9a9a9a;
    cursor: pointer;
    padding: 0.2rem 0.3rem;
    transition: color 0.2s ease;
}
.ath-popup-close:hover {
    color: #000000;
}
.ath-popup-title {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    margin: 0 0 0.7rem;
}
.ath-popup-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1rem;
    font-weight: 700;
    color: #9b8b68;
    text-decoration: none;
    margin-bottom: 0.7rem;
    transition: color 0.2s ease;
}
.ath-popup-phone:hover {
    color: #5a5a5a;
}
.ath-popup-phone svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex-shrink: 0;
}
.ath-popup-disclaimer {
    font-size: 0.6rem;
    line-height: 1.5;
    color: #8a8a8a;
    margin: 0;
    padding-top: 0.6rem;
    border-top: 1px solid #ededed;
}
@media (max-width: 480px) {
    .ath-popup {
        right: 0.75rem;
        left: 0.75rem;
        bottom: 0.75rem;
        width: auto;
    }
}

/* ---------------------------------------------------------
   CTR PLAYBOOK COMPONENTS
   Market answer + stat strip, FAQ, agent spotlight,
   hero proof lines, GBP landing page.
   --------------------------------------------------------- */

/* Hero trust line (home hero, buy panel) */
.ath-hero-proof {
    margin-top: 0.85rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #e8dcbf;
}

/* "Market data updated June 2026" badge in the community hero */
.ath-updated-badge {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.3rem 0.9rem;
    border: 1px solid rgba(232, 220, 191, 0.55);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #e8dcbf;
}

/* Market answer — the 5-second landing */
.ath-market-answer {
    background: #F7F6F2;
    padding: 3rem 0;
    text-align: center;
}
.ath-market-answer-text {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #2C2C2C;
    margin: 0;
}
.ath-stat-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
}
.ath-stat-strip li {
    text-align: center;
}
.ath-stat-value {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #000000;
}
.ath-stat-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6B6B6B;
    margin-top: 0.25rem;
}
.ath-stat-source {
    margin: 1.25rem 0 0;
    font-size: 0.78rem;
    color: #8a8a8a;
}

/* FAQ — community pages */
.ath-faq {
    background: #FFFFFF;
}
.ath-faq-item {
    border-bottom: 1px solid #E8E0CC;
}
.ath-faq-item:first-of-type {
    border-top: 1px solid #E8E0CC;
}
.ath-faq-q {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #000000;
    padding: 1.15rem 2rem 1.15rem 0.25rem;
    cursor: pointer;
    list-style: none;
    position: relative;
    transition: color 0.2s ease;
}
.ath-faq-q::-webkit-details-marker {
    display: none;
}
.ath-faq-q::after {
    content: '+';
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: 400;
    color: #9b8b68;
    transition: transform 0.2s ease;
}
.ath-faq-item[open] .ath-faq-q::after {
    content: '\2212'; /* minus sign */
}
.ath-faq-q:hover {
    color: #9b8b68;
}
.ath-faq-a {
    padding: 0 0.25rem 1.35rem;
}
.ath-faq-a p {
    margin: 0;
    line-height: 1.75;
    color: #3a3a3a;
}

/* Agent spotlight — a human on every page */
.ath-agent-spotlight {
    background: #F7F6F2;
}
.ath-spotlight-card {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    background: #FFFFFF;
    border: 1px solid #E8E0CC;
    border-radius: 8px;
    padding: 2.25rem;
}
.ath-spotlight-photo {
    flex-shrink: 0;
}
.ath-spotlight-photo img {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 50%;
}
.ath-spotlight-name {
    font-size: 1.5rem;
    margin: 0 0 0.2rem;
}
.ath-spotlight-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9b8b68;
    font-weight: 600;
    margin: 0 0 0.85rem;
}
.ath-spotlight-text {
    margin: 0 0 1.25rem;
    line-height: 1.7;
    color: #3a3a3a;
}
.ath-spotlight-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.9rem;
}
.ath-spotlight-profile {
    font-weight: 600;
    font-size: 0.9rem;
}
@media (max-width: 640px) {
    .ath-spotlight-card {
        flex-direction: column;
        text-align: center;
        padding: 1.75rem 1.25rem;
    }
    .ath-spotlight-actions {
        justify-content: center;
    }
}

/* GBP landing page */
.ath-gbp-hero {
    padding: 5.5rem 0;
}
.ath-gbp-proof {
    margin: 1rem auto 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #e8dcbf;
}
.ath-gbp-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.75rem;
}
/* Outline buttons sit on a dark hero here — keep them legible */
.ath-gbp-hero .ath-btn-outline {
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.65);
}
.ath-gbp-hero .ath-btn-outline:hover {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: #000000;
}
.ath-gbp-faces {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.75rem;
    list-style: none;
    margin: 2.5rem 0 0;
    padding: 0;
}
.ath-gbp-faces a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    color: #FFFFFF;
}
.ath-gbp-face {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(232, 220, 191, 0.75);
}
.ath-gbp-face-name {
    font-size: 0.85rem;
    font-weight: 600;
}
.ath-gbp-search-widget {
    max-width: 680px;
    margin: 0 auto;
}

/* =========================================================
   Featured Listings carousel — native port of the Ylopo
   listing scroller. Cards are injected by custom.js; markup
   + data proxy live in inc/ath-featured-listings.php. Styles
   adapted from Ylopo's plugin-listing-gallery-3.css, scoped
   under .ath-listing-gallery so the generic class names
   (.item, .scroll-left) can't leak into the rest of the site.
   ========================================================= */
.ath-listing-gallery {
    position: relative;
}
.ath-listing-gallery .plugin-listing-scroll {
    position: relative;
}
.ath-listing-gallery .plugin-listing-scroller {
    overflow: hidden;
    width: 80%;
    margin: 0 auto;
    position: relative;
    min-height: 22rem; /* reserve height before cards load */
}
.ath-listing-gallery .plugin-listing-scroller-inner {
    display: flex;
    flex-wrap: nowrap;
    position: relative;
    left: 0;
    transition: left 120ms;
}
.ath-listing-gallery .plugin-listing-scroller-inner.centered {
    justify-content: center;
}
.ath-listing-gallery .item {
    flex: 0 0 auto;
    display: block;
    margin-right: 1.25rem;
    border-radius: 0.375rem;
    background-color: #2a2a2a;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 22rem;
    text-decoration: none;
}
.ath-listing-gallery .item:last-child {
    margin-right: 0;
}
.ath-listing-gallery .item > .item-detail {
    padding: 17.109375rem 1.25rem 1.25rem;
    background: rgba(0, 0, 0, 0.1);
    transition: background 80ms;
    position: relative;
    height: 100%;
}
.ath-listing-gallery .item > .item-detail:hover {
    background: transparent;
}
.ath-listing-gallery .item > .item-detail > .item-detail {
    margin-bottom: 0.625rem;
    line-height: 1;
    color: #fff;
    text-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.5);
}
.ath-listing-gallery .item-detail.price {
    font-size: 2.25rem;
    font-weight: 700;
}
.ath-listing-gallery .item-detail.mls-id {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
}
.ath-listing-gallery .item-detail.address {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: lowercase;
}
.ath-listing-gallery .item-detail.address span {
    display: block;
    text-transform: capitalize;
}
.ath-listing-gallery .item-detail-data {
    font-size: 0.875rem;
    font-weight: 700;
}
.ath-listing-gallery .item-detail-data span {
    color: #fff;
    text-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.5);
}
.ath-listing-gallery .item-detail-tags .item-tag {
    display: inline-block;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 0.875rem;
    line-height: 1.25rem;
    padding: 0.1875rem 1rem;
    border-radius: 1.875rem;
    text-transform: capitalize;
    margin: 0.5rem 0.1875rem 0;
    text-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.5);
    box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.5);
}
.ath-listing-gallery .scroll-left,
.ath-listing-gallery .scroll-right {
    position: absolute;
    top: calc(50% - 30px);
    background: none;
    border: 0;
    padding: 0;
    line-height: 0;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 120ms;
}
.ath-listing-gallery .scroll-left {
    left: 1.875rem;
}
.ath-listing-gallery .scroll-right {
    right: 1.875rem;
}
.ath-listing-gallery .scroll-left svg path,
.ath-listing-gallery .scroll-right svg path {
    fill: #000;
}
.ath-listing-gallery.is-empty,
.ath-listing-gallery.is-error {
    display: none;
}

@media (max-width: 900px) {
    .ath-listing-gallery .item-detail.price { font-size: 2rem; }
    .ath-listing-gallery .item-detail.address { font-size: 1.125rem; }
}
@media (max-width: 800px) {
    .ath-listing-gallery .scroll-left { left: 0; }
    .ath-listing-gallery .scroll-right { right: 0; }
    .ath-listing-gallery .item > .item-detail { background: transparent !important; }
}
@media (max-width: 500px) {
    .ath-listing-gallery .item > .item-detail { padding: 1.25rem !important; }
}
@media (max-width: 480px) {
    .ath-listing-gallery .scroll-left { left: -0.9375rem; }
    .ath-listing-gallery .scroll-right { right: -0.9375rem; }
}

@media (prefers-reduced-motion: reduce) {
    .ath-listing-gallery .plugin-listing-scroller-inner,
    .ath-listing-gallery .item > .item-detail,
    .ath-listing-gallery .scroll-left,
    .ath-listing-gallery .scroll-right {
        transition: none;
    }
}

/* =========================================================
   Buy page — browse-by-area link grid
   ========================================================= */
.ath-buy-hero-search {
    margin-top: 1.75rem;
}
.ath-buy-area-group {
    margin: 0 auto 2rem;
    max-width: 900px;
}
.ath-buy-area-group:last-of-type {
    margin-bottom: 0;
}
.ath-buy-area-island {
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ath-gold, #9b8b68);
    margin: 0 0 0.85rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e7e0d4;
}
.ath-buy-area-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.4rem 1.5rem;
}
.ath-buy-area-links a {
    display: inline-block;
    padding: 0.25rem 0;
}

/* =========================================================
   Home Valuation page — hero CTA row + secondary link
   ========================================================= */
.ath-valuation-hero-cta {
    margin: 1.75rem 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.ath-valuation-instant {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 0.95rem;
    opacity: 0.92;
}
.ath-valuation-instant:hover {
    opacity: 1;
}

/* =========================================================
   Videos page — click-to-load YouTube facade + grid
   ========================================================= */
.ath-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: var(--ath-card-radius, 6px);
    overflow: hidden;
}
/* Fallback for browsers without aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
    .ath-video { height: 0; padding-bottom: 56.25%; }
}
.ath-video-trigger {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    display: block;
}
.ath-video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.ath-video-trigger:hover .ath-video-thumb,
.ath-video-trigger:focus-visible .ath-video-thumb {
    transform: scale(1.04);
}
.ath-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 68px;
    height: 48px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.ath-video-play svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}
.ath-video-play-bg {
    fill: #212121;
    fill-opacity: 0.82;
    transition: fill 0.2s ease, fill-opacity 0.2s ease;
}
.ath-video-trigger:hover .ath-video-play-bg,
.ath-video-trigger:focus-visible .ath-video-play-bg {
    fill: var(--ath-gold, #9b8b68);
    fill-opacity: 1;
}
.ath-video-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Featured (latest) — wider, centered */
.ath-video--featured {
    max-width: 880px;
    margin: 0 auto;
}
.ath-videos-featured-title {
    text-align: center;
    font-family: var(--ath-font-heading, 'Montserrat', sans-serif);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 1rem auto 0;
    max-width: 760px;
}

/* Section backgrounds — these sections break out to full width, so they need
   an explicit background or they show the dark body behind them (dark on dark). */
.ath-videos-featured {
    background: #F7F6F2;
}
.ath-videos-group {
    background: #FFFFFF;
}
.ath-videos-featured-title,
.ath-video-card-title {
    color: var(--ath-body-text, #2C2C2C);
}

/* Library grid */
.ath-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem 1.5rem;
}
.ath-video-card-title {
    font-size: 1.02rem;
    line-height: 1.35;
    margin: 0.75rem 0 0;
}
.ath-videos-group + .ath-videos-group {
    padding-top: 0;
}
.ath-videos-subscribe {
    margin: 1.25rem 0 0;
}
.ath-videos-subscribe a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

/* Homepage "From Our Channel" section (full-bleed, needs its own background) */
.ath-home-videos {
    background: #FFFFFF;
}

/* Contextual single-video spotlight (Buy, Home Valuation, community pages) */
.ath-video-spotlight {
    background: #F7F6F2;
    text-align: center;
}
.ath-video-spotlight .ath-video {
    margin: 0 auto;
}
.ath-video-spotlight-title {
    font-family: var(--ath-font-heading, 'Montserrat', sans-serif);
    font-weight: 600;
    font-size: 1.05rem;
    margin: 1rem 0 0;
    color: var(--ath-body-text, #2C2C2C);
}

/* ---------------------------------------------------------
   RELATED COMMUNITIES (community pages — internal linking)
   --------------------------------------------------------- */
.ath-related-communities {
    background: #F7F6F2;
    text-align: center;
}
.ath-related-community-links {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}
.ath-related-community-links a {
    display: inline-block;
    padding: 0.5rem 1.1rem;
    border: 1px solid var(--ath-border, #E8E0CC);
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--ath-body-text, #2C2C2C);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.ath-related-community-links a:hover {
    background: var(--ath-gold, #9b8b68);
    border-color: var(--ath-gold, #9b8b68);
    color: #FFFFFF;
}
.ath-related-communities-all {
    margin: 1.5rem 0 0;
}
.ath-related-communities-all a {
    color: var(--ath-gold-dark, #5a5a5a);
    font-weight: 600;
    text-decoration: none;
}
.ath-related-communities-all a:hover {
    text-decoration: underline;
}
