/* =========================================================
   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(180px, 18vw, 240px);
    height: 46px;
    background-image: url('https://theagency.revxsites.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;
}

/* 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.04em;
    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: 64px !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;
}

/* 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
   --------------------------------------------------------- */

/* 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.2rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 0.4rem;
    line-height: 1.3;
}

.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 */
.ath-card-excerpt {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: #2C2C2C;
    line-height: 1.65;
    margin: 0 0 1rem;
    flex: 1;
}

/* 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,
.page-numbers,
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 2rem 0 3rem;
    font-family: 'Open Sans', sans-serif;
}

.page-numbers a,
.page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #E8E0CC;
    border-radius: 3px;
    font-size: 0.875rem;
    color: #2C2C2C;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

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

/* 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 {
    max-width: 100%;
}

/* 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;
    padding: 2.5rem 2rem;
    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 */
.ath-single-post {
    max-width: 780px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

/* 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;
    }
}

/* 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;
}

/* 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;
}

/* Home page: break the whole layout out of Astra's content container so
   every section runs full-width, edge-to-edge (like the hero). */
.ath-home {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow-x: hidden;
}

/* 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 {
    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: 620px;
    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);
}
.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 — two-column: intro + 2×2 image grid */
.ath-communities-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3.5rem;
    align-items: center;
}
.ath-communities-intro h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin: 0 0 1.25rem;
}
.ath-communities-intro p {
    color: #555555;
    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;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
    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;
    }
}

/* 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;
}
.ath-reviews-stat {
    font-size: 1.25rem;
    color: #9b8b68;
    font-weight: 700;
    margin-bottom: 2rem;
}

/* 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;
    }
}

/* ---------------------------------------------------------
   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;
    }
}
