/*
 Theme Name:   Auction House North Shields
 Theme URI:    https://northshields2.smoothbyteit.dev
 Description:  Custom Astra child theme for The Auction House North Shields
 Author:       SmoothByte IT
 Author URI:   https://smoothbyteit.dev
 Template:     astra
 Version:      1.0.8
 Text Domain:  astra-child
*/

/* ===== CSS Variables ===== */
:root {
    --ah-primary: #295235;
    --ah-primary-dark: #055c28;
    --ah-primary-light: #5ac891;
    --ah-text: #1f2937;
    --ah-text-light: #6b7280;
    --ah-bg: #f9fafb;
    --ah-white: #ffffff;
    --ah-border: #e5e7eb;
    --ah-red: #dc2626;
}

/* ===== Global ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ah-text);
    background: var(--ah-bg);
}

a {
    color: var(--ah-primary);
    transition: color 0.2s;
}

a:hover {
    color: var(--ah-primary-light);
}

/* ===== Hide default Astra header & footer ===== */
.ast-above-header-wrap,
.ast-below-header-wrap,
#ast-desktop-header,
#ast-mobile-header,
.site-header,
.main-header-bar,
.ast-primary-header-bar,
.site-footer,
.ast-footer-overlay,
.site-below-footer-wrap,
.ast-small-footer {
    display: none !important;
}

/* ===== Custom Header ===== */
.ah-header {
    background: var(--ah-white);
    border-bottom: 1px solid var(--ah-border);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ah-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.ah-logo img {
    height: 56px;
    width: auto;
    object-fit: contain;
}

.ah-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.ah-nav a {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ah-primary-dark);
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
    border-radius: 6px;
}

.ah-nav a:hover,
.ah-nav a.current {
    color: var(--ah-primary-light);
    background: rgba(41,82,53,0.04);
}

.ah-nav .ah-nav-divider {
    width: 1px;
    height: 20px;
    background: var(--ah-border);
    margin: 0 0.25rem;
}

.ah-nav .ah-btn-login,
.ah-nav .ah-btn-register {
    margin-left: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.ah-nav .ah-btn-login {
    color: var(--ah-primary);
    border: 1.5px solid var(--ah-primary);
    background: transparent;
}

.ah-nav .ah-btn-login:hover {
    background: var(--ah-primary);
    color: var(--ah-white);
}

.ah-nav .ah-btn-register {
    color: var(--ah-white);
    background: var(--ah-primary);
    border: 1.5px solid var(--ah-primary);
}

.ah-nav .ah-btn-register:hover {
    background: var(--ah-primary-dark);
    border-color: var(--ah-primary-dark);
}

.ah-nav .ah-btn-profile {
    margin-left: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--ah-primary);
    border: 1.5px solid var(--ah-primary);
    background: transparent;
    text-decoration: none;
    transition: all 0.2s;
}

.ah-nav .ah-btn-profile:hover {
    background: var(--ah-primary);
    color: var(--ah-white);
}

.ah-nav .ah-btn-profile i {
    margin-right: 0.35rem;
}

/* Hide wrp spans styling */
.wrpLoginLink, .wrpRegisterLink {
    display: inline;
}

/* Mobile menu toggle */
.ah-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--ah-primary-dark);
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .ah-mobile-toggle {
        display: block;
    }
    .ah-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--ah-white);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--ah-border);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        gap: 0.25rem;
    }
    .ah-nav.open {
        display: flex;
    }
    .ah-nav a {
        width: 100%;
        padding: 0.75rem 1rem;
    }
    .ah-nav .ah-nav-divider {
        display: none;
    }
    .ah-nav .ah-btn-login,
    .ah-nav .ah-btn-register {
        margin-left: 0;
        text-align: center;
        margin-top: 0.25rem;
    }
}

/* ===== Hero Section ===== */
.ah-hero {
    background: linear-gradient(135deg, var(--ah-primary) 0%, var(--ah-primary-dark) 100%);
    color: var(--ah-white);
    padding: 5rem 1.5rem;
    text-align: center;
}

.ah-hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.ah-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.ah-hero .ah-hero-btn {
    display: inline-block;
    background: var(--ah-white);
    color: var(--ah-primary);
    padding: 0.875rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 1rem;
}

.ah-hero .ah-hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .ah-hero h1 {
        font-size: 1.75rem;
    }
    .ah-hero p {
        font-size: 1rem;
    }
    .ah-hero {
        padding: 3rem 1.5rem;
    }
}

/* ===== Upcoming Auctions Section ===== */
.ah-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.ah-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ah-text);
    margin-bottom: 0.5rem;
}

.ah-section-subtitle {
    color: var(--ah-text-light);
    margin-bottom: 2rem;
}

/* ===== Custom Footer ===== */
.ah-footer {
    background: #1f2937;
    color: #d1d5db;
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 3rem;
}

.ah-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 2rem;
}

.ah-footer h3 {
    color: var(--ah-white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ah-footer a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.ah-footer a:hover {
    color: var(--ah-white);
}

.ah-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ah-footer-links li {
    margin-bottom: 0.5rem;
}

.ah-footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 0.5rem;
}

.ah-footer-brand img {
    height: 48px;
    width: auto;
    margin-bottom: 0.75rem;
    filter: brightness(0) invert(1);
}

.ah-footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.ah-footer-contact i {
    width: 18px;
    margin-right: 0.5rem;
    color: var(--ah-primary-light);
}

.ah-footer-bottom {
    max-width: 1280px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid #374151;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #9ca3af;
}

.ah-footer-bottom a {
    color: #9ca3af;
    font-size: 0.8rem;
}

.ah-footer-bottom a:hover {
    color: var(--ah-white);
}

@media (max-width: 768px) {
    .ah-footer-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .ah-footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* ===== Contact Page ===== */
.ah-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.ah-contact-card {
    background: var(--ah-white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid var(--ah-border);
}

.ah-contact-card i {
    font-size: 2rem;
    color: var(--ah-primary);
    margin-bottom: 1rem;
}

.ah-contact-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ah-contact-card p {
    color: var(--ah-text-light);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .ah-contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Page Headers ===== */
.ah-page-header {
    background: linear-gradient(135deg, var(--ah-primary) 0%, var(--ah-primary-dark) 100%);
    color: var(--ah-white);
    padding: 3rem 1.5rem;
    text-align: center;
}

.ah-page-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.ah-page-header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* ===== Content Pages (Terms, Privacy) ===== */
.ah-content-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.ah-content-page h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--ah-text);
}

.ah-content-page h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}

.ah-content-page p {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: var(--ah-text-light);
}

.ah-content-page ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.ah-content-page ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--ah-text-light);
}

/* ===== AuctionForge overrides ===== */
.bp-row {
    max-width: 1280px;
    margin: 0 auto;
}

.bpw-upcoming-wrap {
    max-width: 1280px !important;
}

/* Narrow container for auction listings */
.bp-container {
    max-width: 900px !important;
    margin: 0 auto !important;
}

/* Bigger green auction titles */
.bp-lot__title .bp-title,
.bp-title {
    font-size: 1.35rem !important;
    font-weight: 600 !important;
    color: var(--ah-primary) !important;
    line-height: 1.4 !important;
}

/* Simplified narrow header - no image, solid background */
.bp-header {
    background-image: none !important;
    background: #f5f5f5 !important;
    min-height: 80px !important;
    padding: 1.5rem 1.5rem !important;
}

.bp-header .bp-header__overlay {
    display: none !important;
}

.bp-header .bp-header__content {
    position: relative !important;
    text-align: center !important;
}

.bp-header .bp-header__content h1 {
    font-size: 1.75rem !important;
    margin: 0 !important;
    color: var(--ah-text) !important;
}

.bp-header .bp-header__time,
.bp-header__time {
    color: var(--ah-primary) !important;
}

/* ===== WP Admin Bar Fix ===== */
body.admin-bar .ah-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .ah-header {
        top: 46px;
    }
}

/* ===== Astra Content Area — Full Width Overrides ===== */
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post,
.ast-plain-container .ast-article-single,
.ast-plain-container .ast-article-post {
    padding: 0;
    margin: 0;
    background: transparent;
}

.ast-separate-container,
.ast-plain-container {
    background: transparent;
}

#primary {
    padding: 0;
    margin: 0;
}

.site-content .ast-container {
    max-width: 100%;
    padding: 0;
}

.entry-content {
    margin: 0;
}

.ast-article-single .entry-content {
    margin: 0;
}

/* Remove Astra's default page title */
.ast-archive-description,
.entry-header,
.page-header {
    display: none !important;
}

/* Remove Astra default content spacing */
.site-main > article {
    padding: 0;
    margin: 0;
}

.site-content > .ast-container {
    display: block;
}

/* Full width override */
.ast-page-builder-template .site-content > .ast-container,
.page .site-content > .ast-container {
    max-width: 100%;
    padding: 0;
}

/* Remove any Astra breadcrumbs */
.ast-breadcrumbs-wrapper {
    display: none !important;
}

/* Remove Astra scroll to top if clashing */
#ast-scroll-top {
    background: var(--ah-primary);
}
