/*
 Theme Name:   Astra Child – Anthony Fell
 Theme URI:    https://test.anthonyfell.com
 Description:  Astra child theme for Anthony Fell Antiques
 Author:       WHCLS
 Template:     astra
 Version:      1.2.0
 Text Domain:  astra-child
*/

/* ========================================
   Anthony Fell – Global Styles
   ======================================== */

body {
    background-color: #121e34 !important;
    color: #e8e8e8 !important;
}

/* ========================================
   Hero Slideshow – Full Viewport
   ======================================== */

.af-hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #121e34;
    z-index: 0;
}

/* Spacer — creates scroll room so footer clears the fixed hero */
.af-hero-spacer {
    height: 100vh;
    width: 100%;
}

/* Ensure parent containers don't clip */
.ast-container,
.site-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: visible !important;
    position: relative;
    z-index: 1;
}

/* Header — fixed on top of hero */
.ast-primary-header-bar,
.main-header-bar,
.site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background-color: transparent !important;
    border-bottom: none !important;
}

/* Footer — above the hero, transparent background */
.site-footer,
.site-footer-wrap,
.footer-sml-wrap,
.footer-widgets-area,
.ast-footer-overlay {
    background-color: transparent !important;
    position: relative;
    z-index: 5;
}

/* Individual slides — absolute within hero, filling full area */
.af-hero-slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.12);
    transition: opacity 2s ease-in-out, transform 8s ease-out;
    will-change: opacity, transform;
}

/* Active slide: fade in + slow zoom from 1.12 → 1.20 over the full hold time */
.af-hero-slide.af-active {
    opacity: 1;
    transform: scale(1.20);
    transition: opacity 2s ease-in-out, transform 8s ease-out;
}

/* Outgoing slide: stay zoomed while fading out — no snap */
.af-hero-slide.af-outgoing {
    opacity: 0;
    transform: scale(1.20);
    transition: opacity 2s ease-in-out;
}

/* Dark overlay — covers entire hero including behind header */
.af-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(18, 30, 52, 0.45);
    z-index: 2;
}

/* Content area — sits within the fixed hero */
.af-hero-content {
    position: absolute;
    top: 88px; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 3;
    text-align: center;
    padding: 20px;
}

/* Indicator dots */
.af-hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 4;
}

.af-hero-subtitle {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    font-weight: 700;
    color: #c9a84c;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    margin: 0 0 16px;
    opacity: 0.9;
}

.af-hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(22px, 3.5vw, 42px);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 40px;
    line-height: 1.4;
    max-width: 800px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.af-hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.af-hero-btn {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 32px;
    border: 2px solid #c9a84c;
    transition: all 0.3s ease;
    cursor: pointer;
}

.af-hero-btn-primary {
    background-color: #c9a84c !important;
    color: #121e34 !important;
    text-shadow: none !important;
    font-weight: 500;
}

.af-hero-btn-primary:hover {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: #121e34 !important;
}

.af-hero-btn-secondary {
    background-color: transparent !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

.af-hero-btn-secondary:hover {
    background-color: #ffffff !important;
    color: #121e34 !important;
}

.af-hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(201, 168, 76, 0.6);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.af-hero-dot.af-active,
.af-hero-dot:hover {
    background: #c9a84c;
    border-color: #c9a84c;
}

/* Hero responsive */
@media (max-width: 768px) {
    .af-hero-content {
        top: 80px;
    }

    .af-hero-subtitle {
        font-size: 14px;
        letter-spacing: 0.3em;
    }

    .af-hero-title {
        font-size: 20px;
        margin-bottom: 30px;
    }

    .af-hero-btn {
        font-size: 12px;
        padding: 12px 24px;
    }
}

@media (max-width: 480px) {
    .af-hero-content {
        top: 60px;
    }

    .af-hero-title {
        font-size: 18px;
        letter-spacing: 0.08em;
    }

    .af-hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ========================================
   Category Archive – 4-Column Collection Grid
   ======================================== */

.af-category-page {
    max-width: 1150px;
    margin: 0 auto;
    padding: 80px 20px 60px;
}

.af-category-title {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    font-weight: 700;
    color: #c9a84c;
    text-align: center;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 40px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.3);
}

.af-collection-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px 30px;
}

.af-collection-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.af-collection-item:hover {
    transform: translateY(-4px);
}

.af-item-title {
    font-family: 'Cinzel', serif;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.af-item-image-wrap {
    width: 100%;
    background-color: #d3d3e0;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 14px;
}

.af-item-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.af-item-placeholder {
    background-color: #c0c0d0;
}

.af-item-excerpt {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 300;
    color: #e8e8e8;
    line-height: 1.5;
    margin: 0;
    opacity: 0.85;
}

.af-more {
    color: #c9a84c;
    font-weight: 400;
    white-space: nowrap;
}

.af-collection-item:hover .af-item-title {
    color: #c9a84c;
}

.af-collection-item:hover .af-item-image-wrap {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Pagination */
.af-category-page .nav-links {
    text-align: center;
    margin-top: 50px;
}

.af-category-page .nav-links a,
.af-category-page .nav-links span {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    color: #c9a84c;
    text-decoration: none;
    padding: 8px 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.af-category-page .nav-links .current {
    background: rgba(201, 168, 76, 0.2);
    border-radius: 3px;
}

.af-no-items {
    text-align: center;
    color: #c9a84c;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 60px 0;
}

/* ========================================
   Responsive – Category Grid
   ======================================== */

@media (max-width: 960px) {
    .af-collection-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px 25px;
    }
}

@media (max-width: 768px) {
    .af-collection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 20px;
    }

    .af-category-title {
        font-size: 22px;
    }

    .af-item-title {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .af-collection-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 15px;
    }

    .af-item-image-wrap {
        padding: 10px;
    }

    .af-item-title {
        font-size: 13px;
    }

    .af-item-excerpt {
        font-size: 12px;
    }
}

/* ========================================
   Single Item Page – Two-Column Layout
   ======================================== */

.af-item-page {
    max-width: 1150px;
    margin: 0 auto;
    padding: 80px 20px 60px;
}

.af-item-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

/* Left column – text */
.af-item-text {
    padding-top: 10px;
}

.af-item-text .af-item-title {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    font-weight: 700;
    color: #c9a84c;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 30px;
    line-height: 1.2;
}

.af-item-description {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #ffffff;
    line-height: 1.7;
    margin-bottom: 30px;
}

.af-item-description p {
    margin: 0 0 18px;
}

.af-item-description p:last-child {
    margin-bottom: 0;
}

/* Specs */
.af-item-specs {
    border-top: 1px solid rgba(201, 168, 76, 0.3);
    padding-top: 20px;
    margin-top: 10px;
}

.af-spec {
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: #e8e8e8;
    margin: 0 0 8px;
    line-height: 1.5;
}

.af-spec-price {
    color: #c9a84c !important;
    font-weight: 400;
}

.af-spec-condition {
    font-style: italic;
    opacity: 0.8;
}

/* Right column – main image (sticky for long content) */
.af-item-image {
    background-color: #d3d3e0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    position: sticky;
    top: 100px;
    align-self: start;
}

.af-item-main-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Detail gallery – 3+ columns */
.af-item-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.af-gallery-thumb {
    background-color: #d3d3e0;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.af-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Back link */
.af-item-back {
    margin-top: 50px;
    text-align: center;
}

.af-back-link {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #c9a84c !important;
    text-decoration: none;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.af-back-link:hover {
    color: #ffffff !important;
}

/* Single item responsive */
@media (max-width: 768px) {
    .af-item-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .af-item-text .af-item-title {
        font-size: 22px;
    }

    .af-item-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .af-item-text .af-item-title {
        font-size: 18px;
    }

    .af-item-description {
        font-size: 14px;
    }

    .af-item-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ========================================
   About Page – Two-Column with Portrait
   ======================================== */

.af-about-page {
    max-width: 1150px;
    margin: 0 auto;
    padding: 80px 20px 60px;
}

.af-about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

/* Left column – text */
.af-about-text {
    padding-top: 10px;
}

.af-about-title {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    font-weight: 700;
    color: #c9a84c;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 30px;
    line-height: 1.2;
}

.af-about-body {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #ffffff;
    line-height: 1.7;
}

.af-about-body p {
    margin: 0 0 18px;
}

.af-about-body p:first-child {
    font-weight: 500;
    color: #ffffff;
}

/* Right column – portrait */
.af-about-portrait {
    position: sticky;
    top: 100px;
    align-self: start;
}

.af-about-img {
    width: 100%;
    height: auto;
    display: block;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

/* About responsive */
@media (max-width: 768px) {
    .af-about-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .af-about-title {
        font-size: 22px;
    }

    .af-about-portrait {
        position: static;
    }
}

@media (max-width: 480px) {
    .af-about-title {
        font-size: 18px;
    }

    .af-about-body {
        font-size: 14px;
    }
}

/* ========================================
   Contact Page – Form + Map Layout
   ======================================== */

.af-contact-page {
    max-width: 1150px;
    margin: 0 auto;
    padding: 80px 20px 60px;
}

.af-contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

/* Left column */
.af-contact-text {
    padding-top: 10px;
}

.af-contact-title {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    font-weight: 700;
    color: #c9a84c;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 20px;
    line-height: 1.2;
}

.af-contact-intro {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #ffffff;
    line-height: 1.7;
    margin-bottom: 30px;
}

.af-contact-intro p {
    margin: 0 0 18px;
}

/* Contact form — handled by WPForms plugin */
.af-contact-intro {
    margin-bottom: 0;
}

.af-contact-intro .wpforms-container {
    margin-top: 20px;
}

.af-contact-intro .wpforms-field input,
.af-contact-intro .wpforms-field textarea,
.af-contact-intro .wpforms-field select {
    width: 100%;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: #333;
    background-color: #f5e6d3;
    border: none;
    border-radius: 25px;
    padding: 12px 20px;
    outline: none;
    transition: box-shadow 0.3s ease;
}

.af-contact-intro .wpforms-field textarea {
    border-radius: 15px;
    resize: vertical;
    min-height: 100px;
}

.af-contact-intro .wpforms-field input:focus,
.af-contact-intro .wpforms-field textarea:focus {
    box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.5);
}

.af-contact-intro .wpforms-submit-container {
    text-align: right;
}

.af-contact-intro .wpforms-submit {
    font-family: 'Oswald', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    color: #121e34 !important;
    background-color: #c9a84c !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 12px 36px !important;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.af-contact-intro .wpforms-submit:hover {
    background-color: #dfc06a !important;
}

/* Right column */
.af-contact-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.af-contact-portrait {
    margin-bottom: 20px;
}

.af-contact-img {
    width: 100%;
    height: auto;
    display: block;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.af-contact-map {
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
}

.af-contact-map iframe {
    display: block;
}

/* Contact responsive */
@media (max-width: 768px) {
    .af-contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .af-contact-title {
        font-size: 22px;
    }

    .af-contact-sidebar {
        position: static;
    }

    .af-form-row-half {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .af-contact-title {
        font-size: 18px;
    }

    .af-contact-intro {
        font-size: 14px;
    }
}
